|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.desy.acop.displayers.chart.AcopChartConsumer de.desy.acop.displayers.chart.AcopTrendChartConsumer
public class AcopTrendChartConsumer
AcopTrendChartConsumer
is a consumer used by AcopTrendChart
Each consumer can present one trend line in the chart which shows
the time evolution of some remote property. Consumers can be added
or removed from the chart in runtime. This consumer works with
AcopGraphHistoryParameters
which specifiy all the properties
required to customize a particular trend line.
AcopTrendChart
,
AcopGraphHistoryParameters
Field Summary | |
---|---|
static int |
MAX_POINTS
|
static java.lang.String |
SEQUENCE_INDEX
|
static java.lang.String |
SEQUENCE_LENGTH
|
Fields inherited from class de.desy.acop.displayers.chart.AcopChartConsumer |
---|
acopChartReorg, arraySize, color, disable, dispalyMode, displayerParameters, displayHandle, lastTimestamp, maxNumber, name, SUPPORTED_CHARACTERISTICS, SUPPORTED_CONSUMER_TYPES, textHandle, width, xData, xLabels, yData |
Constructor Summary | |
---|---|
AcopTrendChartConsumer(AcopTrendChart acopTrendChart,
java.lang.String name)
Constructs a new AcopTrendChartConsumer. |
Method Summary | |
---|---|
double[][] |
dumpData()
Returns all data from chart. |
HistoryParameters |
getHistoryParameters()
Returns the history parameters if this graph includes history data. |
int |
getSequenceIndex()
Returns the sequence index. |
int |
getSequenceLength()
Returns the length of the sequence. |
boolean |
isNormalizedData()
Returns true if this consumer shows data as normalized. |
boolean |
isTrendChart()
Returns true if this graph is a trend. |
void |
loadHistoryData(double[][] historyData)
Sets the history data for this graph. |
void |
setCharacteristics(java.util.Map characteristics)
Sets new dynamic value characteristics to this data consumer. |
void |
setDisplayerParameters(AcopGraphParameters displayerParameters)
Associates AcopGraphParameters with this consumer. |
void |
setNormalizedData(boolean normalized)
Sets the data in the consumer normalized or absolute. |
void |
setSequenceIndex(int sequenceIndex)
Sets the sequence index. |
void |
setSequenceLength(int sequenceLength)
Sets the length of the sequence. |
void |
setTrendChart(boolean isTrendChart)
Sets the trend chart mode for this graph. |
protected void |
updateChart()
|
void |
updateValue(long timestamp,
double[] value)
Notifys this consumer about new dynamic value update. |
Methods inherited from class de.desy.acop.displayers.chart.AcopChartConsumer |
---|
applyParameters, destroy, getAcopChart, getArraySize, getColor, getDataConsumer, getDefaultDataConsumer, getDisplayerParameters, getDisplayMode, getLastTimestamp, getName, getPreferredXMax, getPreferredXMin, getPreferredYMax, getPreferredYMin, getSupportedCharacteristics, getSupportedConsumerTypes, getXData, getXLabels, getYData, isChubbyLines, isDataDrawn, refreshPlot, reinitializePlot, setChubbyLines, setColor, setDisplayMode, setPreferredYMax, setPreferredYMin, setXLabels, updateDataState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SEQUENCE_LENGTH
public static final java.lang.String SEQUENCE_INDEX
public static final int MAX_POINTS
Constructor Detail |
---|
public AcopTrendChartConsumer(AcopTrendChart acopTrendChart, java.lang.String name)
acopTrendChart
- parent chartname
- the name of the consumerMethod Detail |
---|
protected void updateChart()
updateChart
in class AcopChartConsumer
public void setCharacteristics(java.util.Map characteristics)
DataConsumer
setCharacteristics
in interface DataConsumer
setCharacteristics
in class AcopChartConsumer
characteristics
- the Map
with attripublic void setDisplayerParameters(AcopGraphParameters displayerParameters)
AcopChartConsumer
setDisplayerParameters
in class AcopChartConsumer
public void updateValue(long timestamp, double[] value) throws CommonException
DoubleSeqConsumer
updateValue
in interface DoubleSeqConsumer
updateValue
in class AcopChartConsumer
timestamp
- the time of dynamic value eventvalue
- new value
CommonException
public boolean isTrendChart()
AcopChartConsumer
isTrendChart
in class AcopChartConsumer
public void setTrendChart(boolean isTrendChart)
AcopChartConsumer
setTrendChart
in class AcopChartConsumer
public void setNormalizedData(boolean normalized)
normalized
- true for normalized, false for absolutepublic boolean isNormalizedData()
public double[][] dumpData()
AcopChartConsumer
dumpData
in class AcopChartConsumer
public int getSequenceIndex()
public void setSequenceIndex(int sequenceIndex)
sequenceIndex
- the sequenceIndex to setpublic int getSequenceLength()
public void setSequenceLength(int sequenceLength)
sequenceLength
- the sequenceLength to setpublic HistoryParameters getHistoryParameters()
public void loadHistoryData(double[][] historyData)
historyData
- data array: historyData[0] holds timestamp and historyData[1]
holds values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |