org.ejtools.graph
Class CompositeTrack

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

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

Description of the Class

Version:
$Revision: 1.8 $
Author:
Laurent Etiemble

Field Summary
protected  javax.swing.JPanel component
          Description of the Field
protected  java.awt.GridLayout layout
          Description of the Field
protected  java.util.Collection tracks
          Description of the Field
 
Constructor Summary
CompositeTrack()
          Constructor for the Track object
 
Method Summary
 void addTrack(Track t)
          Adds a feature to the Track attribute of the CompositeTrack 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
 Range getXRange()
          Gets the xRange attribute of the GraphModel object
 Range getYRange()
          Gets the yRange attribute of the GraphModel object
 void removeTrack(Track t)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

protected javax.swing.JPanel component
Description of the Field


layout

protected java.awt.GridLayout layout
Description of the Field


tracks

protected java.util.Collection tracks
Description of the Field

Constructor Detail

CompositeTrack

public CompositeTrack()
Constructor for the Track object

Method Detail

addTrack

public void addTrack(Track t)
Adds a feature to the Track attribute of the CompositeTrack object

Parameters:
t - The feature to be added to the Track 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

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

removeTrack

public void removeTrack(Track t)
Description of the Method

Parameters:
t - Description of the Parameter


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