DESY ACOP Beans Home

de.desy.acop.displayers.tools
Class AcopGraphParameters

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

public class AcopGraphParameters
extends AcopDisplayerParameters

AcopGraphParameters is an extension of AcopDisplayerParameters which also hold data about visualization of a single graph in a chart. This parameters are intended for use with AcopChart and only hold information that can be read by the AcopChart object.

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

Field Summary
 
Fields inherited from class com.cosylab.gui.displayers.DisplayerParameters
name, names, values
 
Constructor Summary
  AcopGraphParameters()
          Constructs a new AcopGraphParameters object.
  AcopGraphParameters(AcopDisplayerParameters adp)
          Constructs new AcopGraphParameters using the supplied parameters.
  AcopGraphParameters(AcopDisplayerParameters adp, java.awt.Color color, int fft, int drawStyle, int mode, int width, boolean trend, int trendLength)
          Constructs a new AcopGraphParameters object with the specified parameters values
  AcopGraphParameters(AcopDisplayerParameters adp, java.awt.Color color, int fft, int drawStyle, int mode, int width, boolean trend, int trendLength, Converter converter)
          Constructs a new AcopGraphParameters object with the specified parameters values
  AcopGraphParameters(ConnectionParameters param)
          Constructs a new AcopGraphParameters object with the given connection point.
  AcopGraphParameters(ConnectionParameters parameters, java.awt.Color color, int fft, int drawStyle, int mode, int width, boolean trend, int trendLength)
          Constructs a new AcopGraphParameters object with the specified parameters values
  AcopGraphParameters(ConnectionParameters parameters, java.awt.Color color, int fft, int drawStyle, int mode, int width, boolean trend, int trendLength, Converter converter)
          Constructs a new AcopGraphParameters object with the specified parameters values
protected AcopGraphParameters(ConnectionParameters parameters, int index, double min, double max, java.lang.String units, java.lang.String format, java.awt.Color color, int fft, int drawStyle, int mode, int width, boolean trend, int trendLength, Converter converter)
          Constructs a new AcopGraphParameters object with the specified parameters values
 
Method Summary
 java.awt.Color getColor()
          Sets the color of the graph.
 int getDrawStyle()
          Returns the acop draw style.
 int getFFT()
          Returns the acop fft mode.
 int getMode()
          Returns the acop display mode.
 int getTrendLength()
          Returns the number of points if this is a trend.
 int getWidth()
          Returns the width of the graph line.
 boolean isTrend()
          Returns true if this is shown as a trend graph.
 
Methods inherited from class de.desy.acop.displayers.tools.AcopDisplayerParameters
compareTo, deriveWith, getArrayIndex, getConnectionParameters, getConverter, 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

AcopGraphParameters

public AcopGraphParameters()
Constructs a new AcopGraphParameters object.


AcopGraphParameters

public AcopGraphParameters(ConnectionParameters param)
Constructs a new AcopGraphParameters object with the given connection point.

Parameters:
param - remote connection point

AcopGraphParameters

public AcopGraphParameters(ConnectionParameters parameters,
                           java.awt.Color color,
                           int fft,
                           int drawStyle,
                           int mode,
                           int width,
                           boolean trend,
                           int trendLength)
Constructs a new AcopGraphParameters object with the specified parameters values

Parameters:
parameters - remote connection point
color - color of the graph
fft - acop fft mode
drawStyle - style of the graph
mode - acop graph mode
width - the width of the line
trend - a flag indicating if this is a trend graph
trendLength - number of trend points if this is a trend
See Also:
Acop

AcopGraphParameters

public AcopGraphParameters(ConnectionParameters parameters,
                           java.awt.Color color,
                           int fft,
                           int drawStyle,
                           int mode,
                           int width,
                           boolean trend,
                           int trendLength,
                           Converter converter)
Constructs a new AcopGraphParameters object with the specified parameters values

Parameters:
parameters - remote connection point
color - color of the graph
fft - acop fft mode
drawStyle - style of the graph
mode - acop graph mode
width - the width of the line
trend - a flag indicating if this is a trend graph
trendLength - number of trend points if this is a trend
converter - converter associated with this connection point
See Also:
Acop

AcopGraphParameters

protected AcopGraphParameters(ConnectionParameters parameters,
                              int index,
                              double min,
                              double max,
                              java.lang.String units,
                              java.lang.String format,
                              java.awt.Color color,
                              int fft,
                              int drawStyle,
                              int mode,
                              int width,
                              boolean trend,
                              int trendLength,
                              Converter converter)
Constructs a new AcopGraphParameters object with the specified parameters values

Parameters:
parameters - remote connection point
index - index of the value in the array if this is a spectrum
min - minimum value
max - maximum value
units - physical units
format - C-style format
color - color of the graph
fft - acop fft mode
drawStyle - style of the graph
mode - acop graph mode
width - the width of the line
trend - a flag indicating if this is a trend graph
trendLength - number of trend points if this is a trend
converter - converter associated with this connection point
See Also:
Acop

AcopGraphParameters

public AcopGraphParameters(AcopDisplayerParameters adp)
Constructs new AcopGraphParameters using the supplied parameters.

Parameters:
adp -

AcopGraphParameters

public AcopGraphParameters(AcopDisplayerParameters adp,
                           java.awt.Color color,
                           int fft,
                           int drawStyle,
                           int mode,
                           int width,
                           boolean trend,
                           int trendLength)
Constructs a new AcopGraphParameters object with the specified parameters values

Parameters:
adp - additional displayer parameters
color - color of the graph
fft - acop fft mode
drawStyle - style of the graph
mode - acop graph mode
width - the width of the line
trend - a flag indicating if this is a trend graph
trendLength - number of trend points if this is a trend
See Also:
Acop

AcopGraphParameters

public AcopGraphParameters(AcopDisplayerParameters adp,
                           java.awt.Color color,
                           int fft,
                           int drawStyle,
                           int mode,
                           int width,
                           boolean trend,
                           int trendLength,
                           Converter converter)
Constructs a new AcopGraphParameters object with the specified parameters values

Parameters:
adp - additional displayer parameters
color - color of the graph
fft - acop fft mode
drawStyle - style of the graph
mode - acop graph mode
width - the width of the line
trend - a flag indicating if this is a trend graph
trendLength - number of trend points if this is a trend
converter - converter associated with this connection point
See Also:
Acop
Method Detail

getColor

public java.awt.Color getColor()
Sets the color of the graph.

Returns:
the color
See Also:
Acop.setForeground(Color)

getFFT

public int getFFT()
Returns the acop fft mode.

Returns:
the fFT
See Also:
Acop.setFFT(int)

getDrawStyle

public int getDrawStyle()
Returns the acop draw style.

Returns:
the graphStyle
See Also:
AcopDrawStyleEnum, Acop.setDrawStyle(int)

isTrend

public boolean isTrend()
Returns true if this is shown as a trend graph.

Returns:
is trend

getTrendLength

public int getTrendLength()
Returns the number of points if this is a trend.

Returns:
the trend length

getMode

public int getMode()
Returns the acop display mode.

Returns:
the mode
See Also:
AcopDisplayMode, Acop.setDisplayMode(int)

getWidth

public int getWidth()
Returns the width of the graph line.

Returns:
the width
See Also:
Acop.setDrawWidth(int)


Copyright © 2010. All Rights Reserved.