org.ejtools.graph
Class Track

java.lang.Object
  |
  +--org.ejtools.graph.Track
All Implemented Interfaces:
GraphElement, LabelElement

public class Track
extends java.lang.Object
implements GraphElement, LabelElement

Description of the Class

Version:
$Revision: 1.11 $
Author:
Laurent Etiemble

Field Summary
protected  java.awt.Color color
          Description of the Field
protected  org.ejtools.graph.Track.TrackLabel component
          Description of the Field
protected  java.text.NumberFormat format
          Description of the Field
protected  java.lang.String label
          Description of the Field
protected  java.lang.String name
          Description of the Field
protected  java.util.Vector points
          Description of the Field
protected  Range xr
          Description of the Field
protected  Range yr
          Description of the Field
 
Constructor Summary
Track(java.lang.String name)
          Constructor for the Track object
 
Method Summary
 void addValue(double value)
          Adds a feature to the Point attribute of the Track object
 void clear()
          Description of the Method
 void draw(java.awt.Graphics graphics, double scaleX, double offsetX, double scaleY, double offsetY)
          Description of the Method
 java.awt.Color getColor()
          Gets the color attribute of the Element object
 javax.swing.JComponent getComponent()
          Gets the component attribute of the LabelElement object
 java.util.Collection getPoints()
          Gets the points attribute of the Track object
 Range getXRange()
          Gets the xRange attribute of the GraphModel object
 Range getYRange()
          Gets the yRange attribute of the GraphModel object
 void setColor(java.awt.Color color)
          Sets the color.
 void setLabel(java.lang.String label)
          Sets the label.
 void setName(java.lang.String name)
          Sets the name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

color

protected java.awt.Color color
Description of the Field


component

protected org.ejtools.graph.Track.TrackLabel component
Description of the Field


format

protected java.text.NumberFormat format
Description of the Field


label

protected java.lang.String label
Description of the Field


name

protected java.lang.String name
Description of the Field


points

protected java.util.Vector points
Description of the Field


xr

protected Range xr
Description of the Field


yr

protected Range yr
Description of the Field

Constructor Detail

Track

public Track(java.lang.String name)
Constructor for the Track object

Parameters:
name - Description of the Parameter
Method Detail

addValue

public void addValue(double value)
Adds a feature to the Point attribute of the Track object

Parameters:
value - The feature to be added to the Value attribute

clear

public void clear()
Description of the Method


draw

public void draw(java.awt.Graphics graphics,
                 double scaleX,
                 double offsetX,
                 double scaleY,
                 double offsetY)
Description copied from interface: GraphElement
Description of the Method

Specified by:
draw in interface GraphElement
Parameters:
graphics - Description of the Parameter
scaleX - Description of the Parameter
offsetX - Description of the Parameter
scaleY - Description of the Parameter
offsetY - Description of the Parameter

getColor

public java.awt.Color getColor()
Description copied from interface: GraphElement
Gets the color attribute of the Element object

Specified by:
getColor in interface GraphElement
Returns:
The color value

getComponent

public javax.swing.JComponent getComponent()
Description copied from interface: LabelElement
Gets the component attribute of the LabelElement object

Specified by:
getComponent in interface LabelElement
Returns:
The component value

getPoints

public java.util.Collection getPoints()
Gets the points attribute of the Track object

Returns:
The points value

getXRange

public Range getXRange()
Description copied from interface: GraphElement
Gets the xRange attribute of the GraphModel object

Specified by:
getXRange in interface GraphElement
Returns:
The xRange value

getYRange

public Range getYRange()
Description copied from interface: GraphElement
Gets the yRange attribute of the GraphModel object

Specified by:
getYRange in interface GraphElement
Returns:
The yRange value

setColor

public void setColor(java.awt.Color color)
Sets the color.

Parameters:
color - The color to set

setLabel

public void setLabel(java.lang.String label)
Sets the label.

Parameters:
label - The label to set

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - The name to set


Copyright © 2002-2003 EJTools Org.. All Rights Reserved.