All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.eou.toolkit.gauge.TraceRecorder
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JPanel
|
+----com.ibm.eou.toolkit.gauge.BaseGauge
|
+----com.ibm.eou.toolkit.gauge.TraceRecorder
- public class TraceRecorder
- extends BaseGauge
- implements Serializable
This gauge presents a trace of recent values, scrolling from right to
left. The trace is created by a dot at the right hand edge with a vertical
position representing the current gauge value.
-
TraceRecorder()
- Construct a TraceRecorder with an initial value of 0 and a range from 0 to 100.
-
TraceRecorder(int, int, int)
- Minimal constructor which accepts only the initial value, the minimum value and the
maximum value.
-
TraceRecorder(int, int, int, int, long, int, Color, Color)
- Create a new TraceRecorder specifying the number of pixels the trace
scrolls on each update, the maximum interval in milliseconds between updates,
the number of horizontal scale lines required, the color of
the lines, and the color used to fill the area under the trace line.
-
copyright()
-
-
gaugeModelChanged(GaugeModelChangeEvent)
- This method can be overriden by extending classes which
need to react to a change to one or more of the models settings.
-
getAdvance()
- Return the number of pixels that the trace will advance by.
-
getFillColor()
- Return the color used to fill the area under the trace.
-
getInterval()
- Return the millisecond interval between advances.
-
getMinimumSize()
-
-
getNumberOfLines()
- Return the number of scale lines on the TraceRecorder.
-
getScaleColor()
- Return the color of the scale.
-
getTraceColor()
- 'get' accessor method for traceColor.
-
paintComponent(Graphics, Dimension, int, int, int)
- Paint the gauge.
-
processComponentEvent(ComponentEvent)
-
-
setAdvance(int)
- Set the number of pixels that the trace advances by in each step.
-
setBackground(Color)
-
-
setFillColor(Color)
- Specify the color used to fill the area under the trace.
-
setInterval(long)
- Specify the millisecond interval b
etween advances.
-
setNumberOfLines(int)
- Set the number of scale lines on the TraceRecorder.
-
setScaleColor(Color)
- Set the scale color.
-
setTraceColor(Color)
- 'set' accessor method for traceColor.
TraceRecorder
public TraceRecorder(int initialValue,
int minimum,
int maximum,
int advance,
long interval,
int numberOfLines,
Color scaleColor,
Color fillColor)
- Create a new TraceRecorder specifying the number of pixels the trace
scrolls on each update, the maximum interval in milliseconds between updates,
the number of horizontal scale lines required, the color of
the lines, and the color used to fill the area under the trace line.
The interval can be specified as INDEFINITE_WAIT, in which case the
gauge updates only when the value changes.
TraceRecorder
public TraceRecorder(int initialValue,
int minimum,
int maximum)
- Minimal constructor which accepts only the initial value, the minimum value and the
maximum value. The remaining properties default to a 2 pixel advance, a 10
millisecond interval, 7 black scale lines and a blue fill.
TraceRecorder
public TraceRecorder()
- Construct a TraceRecorder with an initial value of 0 and a range from 0 to 100.
The remaining properties default to a 2 pixel advance, a 200
millisecond interval, 7 black scale lines and a blue fill.
copyright
public static String copyright()
getInterval
public long getInterval()
- Return the millisecond interval between advances.
setInterval
public void setInterval(long interval)
- Specify the millisecond interval b
etween advances.
getAdvance
public int getAdvance()
- Return the number of pixels that the trace will advance by.
setAdvance
public void setAdvance(int advance)
- Set the number of pixels that the trace advances by in each step.
getNumberOfLines
public int getNumberOfLines()
- Return the number of scale lines on the TraceRecorder.
setNumberOfLines
public void setNumberOfLines(int numberOfLines)
- Set the number of scale lines on the TraceRecorder.
getScaleColor
public Color getScaleColor()
- Return the color of the scale.
setScaleColor
public void setScaleColor(Color color)
- Set the scale color. Null will be ignored.
getFillColor
public Color getFillColor()
- Return the color used to fill the area under the trace.
setFillColor
public void setFillColor(Color color)
- Specify the color used to fill the area under the trace.
Null is ignored.
setTraceColor
public void setTraceColor(Color color)
- 'set' accessor method for traceColor.
getTraceColor
public Color getTraceColor()
- 'get' accessor method for traceColor.
getMinimumSize
public synchronized Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class JComponent
processComponentEvent
public void processComponentEvent(ComponentEvent e)
- Overrides:
- processComponentEvent in class BaseGauge
setBackground
public synchronized void setBackground(Color c)
- Overrides:
- setBackground in class Component
gaugeModelChanged
protected void gaugeModelChanged(GaugeModelChangeEvent e)
- This method can be overriden by extending classes which
need to react to a change to one or more of the models settings.
- Overrides:
- gaugeModelChanged in class BaseGauge
paintComponent
public synchronized void paintComponent(Graphics g,
Dimension s,
int value,
int min,
int max)
- Paint the gauge.
- Overrides:
- paintComponent in class BaseGauge
All Packages Class Hierarchy This Package Previous Next Index