DESY ACOP Beans Home

de.desy.acop.displayers.tools
Class AcopDisplayerParameters

java.lang.Object
  extended by com.cosylab.gui.displayers.DisplayerParameters
      extended by de.desy.acop.displayers.tools.AcopDisplayerParameters
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AcopGraphParameters, AcopTableParameters, AcopVideoParameters

public class AcopDisplayerParameters
extends DisplayerParameters

AcopDisplayerParameters are parameters displayer parameters intended to be used in combination with AcopDisplayer. This parameters holds reference to the remote connection point as well as other parameters that define the look and presentation of the value on the displayer, such as minimum and maximum value, format etc.

Version:
$Id: Templates.xml,v 1.10 2004/01/13 16:17:13 jbobnar Exp $
Author:
Jaka Bobnar
See Also:
AcopDisplayer, Serialized Form

Field Summary
 
Fields inherited from class com.cosylab.gui.displayers.DisplayerParameters
name, names, values
 
Constructor Summary
  AcopDisplayerParameters()
          Constructs new AcopDisplayerParameters.
  AcopDisplayerParameters(AcopDisplayer adisp, DoubleDisplayer ddisp)
          Constructs new AcopDisplayerParameters gathering the essential data from the provided displayer.
  AcopDisplayerParameters(ConnectionParameters parameters)
          Constructs new AcopDisplayerParameters with the provided connection point.
  AcopDisplayerParameters(ConnectionParameters parameters, int index)
          Constructs new AcopDisplayerParameters with the provided connection point and index in the array of incomming data.
  AcopDisplayerParameters(ConnectionParameters parameters, int index, Converter converter)
          Constructs new AcopDisplayerParameters using the provided parameters.
  AcopDisplayerParameters(ConnectionParameters parameters, int index, double min, double max, java.lang.String units, java.lang.String format)
          Constructs new AcopDisplayerParameters using the provided parameters.
  AcopDisplayerParameters(ConnectionParameters parameters, int index, double min, double max, java.lang.String units, java.lang.String format, Converter converter)
          Constructs new AcopDisplayerParameters using the provided parameters.
protected AcopDisplayerParameters(java.lang.String name, int size, AcopDisplayer adisp, DoubleDisplayer ddisp)
          Constructs new AcopDisplayerParameters gathering the essential data from the provided displayer.
protected AcopDisplayerParameters(java.lang.String name, int size, ConnectionParameters parameters, int index, double min, double max, java.lang.String units, java.lang.String format)
          Constructs new AcopDisplayerParameters using the provided parameters.
protected AcopDisplayerParameters(java.lang.String name, int size, ConnectionParameters parameters, int index, double min, double max, java.lang.String units, java.lang.String format, Converter converter)
          Contructs new AcopDisplayerParameters using the provided parameters.
protected AcopDisplayerParameters(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> values)
          Creates new instance of AcopDisplayerParameters.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 AcopDisplayerParameters deriveWith(int arrayIndex)
          Returns new AcopDisplayerParameters which resebles this object but has a different array index.
 int getArrayIndex()
          Returns the array index.
 ConnectionParameters getConnectionParameters()
          Returns the connection parameters.
 Converter getConverter()
          Returns the converter associated with this parameters.
 int hashCode()
           
 
Methods inherited from class com.cosylab.gui.displayers.DisplayerParameters
addParameter, count, equals, getBool, getDouble, getFormat, getInt, getMaximum, getMinimum, getName, getNames, getParameter, getUnits, getValues, putParameter, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AcopDisplayerParameters

public AcopDisplayerParameters()
Constructs new AcopDisplayerParameters.


AcopDisplayerParameters

public AcopDisplayerParameters(ConnectionParameters parameters)
Constructs new AcopDisplayerParameters with the provided connection point.

Parameters:
parameters - remote connection point

AcopDisplayerParameters

public AcopDisplayerParameters(ConnectionParameters parameters,
                               int index)
Constructs new AcopDisplayerParameters with the provided connection point and index in the array of incomming data.

Parameters:
parameters - remote connectin point
index - array data index

AcopDisplayerParameters

public AcopDisplayerParameters(ConnectionParameters parameters,
                               int index,
                               double min,
                               double max,
                               java.lang.String units,
                               java.lang.String format)
Constructs new AcopDisplayerParameters using the provided parameters.

Parameters:
parameters - remote connection point
index - array data index
min - minimum value
max - maximum value
units - physical units
format - C-style format

AcopDisplayerParameters

protected AcopDisplayerParameters(java.lang.String name,
                                  int size,
                                  ConnectionParameters parameters,
                                  int index,
                                  double min,
                                  double max,
                                  java.lang.String units,
                                  java.lang.String format)
Constructs new AcopDisplayerParameters using the provided parameters.

Parameters:
name - the name of the parameters
size - initial number of all parameters
parameters - remote connection point
index - array data index
min - maximum value
max - minimum value
units - physical units
format - C-style format

AcopDisplayerParameters

protected AcopDisplayerParameters(java.lang.String name,
                                  int size,
                                  AcopDisplayer adisp,
                                  DoubleDisplayer ddisp)
Constructs new AcopDisplayerParameters gathering the essential data from the provided displayer.

Parameters:
name - the name of the parameters
size - the number of all parameters
adisp - source for connection related parameters
ddisp - source for display related parameters

AcopDisplayerParameters

public AcopDisplayerParameters(AcopDisplayer adisp,
                               DoubleDisplayer ddisp)
Constructs new AcopDisplayerParameters gathering the essential data from the provided displayer.

Parameters:
adisp - source for connection related parameters
ddisp - source for display related parameters

AcopDisplayerParameters

public AcopDisplayerParameters(ConnectionParameters parameters,
                               int index,
                               Converter converter)
Constructs new AcopDisplayerParameters using the provided parameters.

Parameters:
parameters - remote connection point
index - array data index
converter - converter associated with the data source

AcopDisplayerParameters

public AcopDisplayerParameters(ConnectionParameters parameters,
                               int index,
                               double min,
                               double max,
                               java.lang.String units,
                               java.lang.String format,
                               Converter converter)
Constructs new AcopDisplayerParameters using the provided parameters.

Parameters:
parameters - remote connection point
index - array data index
min - minimum value
max - maximum value
units - physical units
format - C-style format
converter - converter associated with the data source

AcopDisplayerParameters

protected AcopDisplayerParameters(java.lang.String name,
                                  int size,
                                  ConnectionParameters parameters,
                                  int index,
                                  double min,
                                  double max,
                                  java.lang.String units,
                                  java.lang.String format,
                                  Converter converter)
Contructs new AcopDisplayerParameters using the provided parameters.

Parameters:
name - the name of the parameters
size - number of all parameters
parameters - remote connection point
index - array data index
min - minimum value
max - maximum value
units - physical units
format - C-style format
converter - converter associated with the data source

AcopDisplayerParameters

protected AcopDisplayerParameters(java.lang.String name,
                                  java.util.Map<java.lang.String,java.lang.Object> values)
Creates new instance of AcopDisplayerParameters.

Parameters:
name - the name of this parameters
vaues - additional parameters - all necessary parameters should be included in this map
Method Detail

getConverter

public Converter getConverter()
Returns the converter associated with this parameters.

Returns:
the converter

hashCode

public int hashCode()
Overrides:
hashCode in class DisplayerParameters

compareTo

public int compareTo(java.lang.Object o)

getConnectionParameters

public ConnectionParameters getConnectionParameters()
Returns the connection parameters.

Returns:
the remote connection point

getArrayIndex

public int getArrayIndex()
Returns the array index.

Returns:
the arrayIndex

deriveWith

public AcopDisplayerParameters deriveWith(int arrayIndex)
Returns new AcopDisplayerParameters which resebles this object but has a different array index.

Parameters:
arrayIndex - new array index
Returns:
new acop displayer parameters


Copyright © 2010. All Rights Reserved.