physicon.graphLib
Class LinearGridDrawer

java.lang.Object
  |
  +--physicon.graphLib.DrawerBase
        |
        +--physicon.graphLib.ScaleDrawerBase
              |
              +--physicon.graphLib.LinearGridDrawer

public class LinearGridDrawer
extends ScaleDrawerBase

The drawer object for the linear grid

See Also:
ScaleDrawerBase

Field Summary
 java.awt.Point maxOffset
           
 java.awt.Point minOffset
           
 
Fields inherited from class physicon.graphLib.ScaleDrawerBase
maxParam, minParam
 
Constructor Summary
LinearGridDrawer()
          Constructor
LinearGridDrawer(java.awt.Color _c)
           
 
Method Summary
 void drawLocal(java.awt.Graphics g)
          Draws the grid to the given Graphics object.
 java.awt.Rectangle getLocalRoughRect()
          Returns the local rough rect
 void reset()
          Resets the current object
 
Methods inherited from class physicon.graphLib.ScaleDrawerBase
addDash, dashesNumber, getColor, getDash
 
Methods inherited from class physicon.graphLib.DrawerBase
contains, getGlobalLevel, getGlobalRefPoint, setGlobalLevel, setGlobalRefPoint
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minOffset

public java.awt.Point minOffset

maxOffset

public java.awt.Point maxOffset
Constructor Detail

LinearGridDrawer

public LinearGridDrawer()
Constructor

LinearGridDrawer

public LinearGridDrawer(java.awt.Color _c)
Method Detail

drawLocal

public void drawLocal(java.awt.Graphics g)
Draws the grid to the given Graphics object. Grid is the line set. Each line started at the point getDash()+minOffset and finished at the point getDash()+maxOffset
Parameters:
g - - given Graphics object
Overrides:
drawLocal in class DrawerBase

getLocalRoughRect

public java.awt.Rectangle getLocalRoughRect()
Returns the local rough rect
Overrides:
getLocalRoughRect in class DrawerBase

reset

public void reset()
Resets the current object
Overrides:
reset in class ScaleDrawerBase