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.


Constructor Index

 o TraceRecorder()
Construct a TraceRecorder with an initial value of 0 and a range from 0 to 100.
 o TraceRecorder(int, int, int)
Minimal constructor which accepts only the initial value, the minimum value and the maximum value.
 o 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.

Method Index

 o copyright()
 o 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.
 o getAdvance()
Return the number of pixels that the trace will advance by.
 o getFillColor()
Return the color used to fill the area under the trace.
 o getInterval()
Return the millisecond interval between advances.
 o getMinimumSize()
 o getNumberOfLines()
Return the number of scale lines on the TraceRecorder.
 o getScaleColor()
Return the color of the scale.
 o getTraceColor()
'get' accessor method for traceColor.
 o paintComponent(Graphics, Dimension, int, int, int)
Paint the gauge.
 o processComponentEvent(ComponentEvent)
 o setAdvance(int)
Set the number of pixels that the trace advances by in each step.
 o setBackground(Color)
 o setFillColor(Color)
Specify the color used to fill the area under the trace.
 o setInterval(long)
Specify the millisecond interval b etween advances.
 o setNumberOfLines(int)
Set the number of scale lines on the TraceRecorder.
 o setScaleColor(Color)
Set the scale color.
 o setTraceColor(Color)
'set' accessor method for traceColor.

Constructors

 o 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.

 o 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.

 o 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.

Methods

 o copyright
 public static String copyright()
 o getInterval
 public long getInterval()
Return the millisecond interval between advances.

 o setInterval
 public void setInterval(long interval)
Specify the millisecond interval b etween advances.

 o getAdvance
 public int getAdvance()
Return the number of pixels that the trace will advance by.

 o setAdvance
 public void setAdvance(int advance)
Set the number of pixels that the trace advances by in each step.

 o getNumberOfLines
 public int getNumberOfLines()
Return the number of scale lines on the TraceRecorder.

 o setNumberOfLines
 public void setNumberOfLines(int numberOfLines)
Set the number of scale lines on the TraceRecorder.

 o getScaleColor
 public Color getScaleColor()
Return the color of the scale.

 o setScaleColor
 public void setScaleColor(Color color)
Set the scale color. Null will be ignored.

 o getFillColor
 public Color getFillColor()
Return the color used to fill the area under the trace.

 o setFillColor
 public void setFillColor(Color color)
Specify the color used to fill the area under the trace. Null is ignored.

 o setTraceColor
 public void setTraceColor(Color color)
'set' accessor method for traceColor.

 o getTraceColor
 public Color getTraceColor()
'get' accessor method for traceColor.

 o getMinimumSize
 public synchronized Dimension getMinimumSize()
Overrides:
getMinimumSize in class JComponent
 o processComponentEvent
 public void processComponentEvent(ComponentEvent e)
Overrides:
processComponentEvent in class BaseGauge
 o setBackground
 public synchronized void setBackground(Color c)
Overrides:
setBackground in class Component
 o 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
 o 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