physicon.graphLib
Class ScaleDrawerBase

java.lang.Object
  |
  +--physicon.graphLib.DrawerBase
        |
        +--physicon.graphLib.ScaleDrawerBase
Direct Known Subclasses:
LinearGridDrawer, LinearScaleDrawer

public abstract class ScaleDrawerBase
extends DrawerBase

Represents the abstract drawer object for the scale Contains the vector with the dashes coordinates.


Field Summary
 double maxParam
           
 double minParam
           
 
Constructor Summary
ScaleDrawerBase(java.awt.Color _c)
          Constructor.
 
Method Summary
 void addDash(java.awt.Point _pt)
          Add the specified point to the dash array
 int dashesNumber()
          Returnes the number of ashes in the dash array
 java.awt.Color getColor()
           
 java.awt.Point getDash(int _i)
          Returns the coordinates of the dash at the given index of dash array
 void reset()
          Resets the drawer.
 
Methods inherited from class physicon.graphLib.DrawerBase
contains, drawLocal, getGlobalLevel, getGlobalRefPoint, getLocalRoughRect, setGlobalLevel, setGlobalRefPoint
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minParam

public double minParam

maxParam

public double maxParam
Constructor Detail

ScaleDrawerBase

public ScaleDrawerBase(java.awt.Color _c)
Constructor.
Method Detail

getColor

public final java.awt.Color getColor()

addDash

public final void addDash(java.awt.Point _pt)
Add the specified point to the dash array
Parameters:
_pt - - the point to be added to the end of dash array.

getDash

public java.awt.Point getDash(int _i)
Returns the coordinates of the dash at the given index of dash array
Parameters:
_i - - the given index

dashesNumber

public int dashesNumber()
Returnes the number of ashes in the dash array

reset

public void reset()
Resets the drawer. Clears the dash array and set all the field to 0.
Overrides:
reset in class DrawerBase