rrdService.util
Class YGrid

java.lang.Object
  |
  +--rrdService.util.YGrid
All Implemented Interfaces:
java.io.Serializable

public class YGrid
extends java.lang.Object
implements java.io.Serializable

The class YGrid makes vertical grid lines appear at grid step interval. Every label factor gridstep, a major grid line is printed, along with label showing the value of the grid line. If you want no y-grid at all use the default constructor

Version:
1.0 date : 15/07/2001
key-word
Author:
Pellier Damien FIRMENICH SA
See Also:
YGrid, RoundRobinGraphic, Serialized Form

Field Summary
private  boolean defaultGrid
          Default grid
private  int gridStep
          The grid step of ygrid
private  int labelFactor
          The label factor of ygrid
 
Constructor Summary
YGrid()
          Default constructor of XGrid
YGrid(int gridStep, int labelFactor)
          Constructor of YGrid
 
Method Summary
 int getGridStep()
          Returns the grid step of this ygrid
 int getLabelFactor()
          Returns the label factor of this ygrid
 void setGridStep(int gridStep)
          Replaces the grid step of this xgrid
 void setLabelFactor(int labelFactor)
          Replaces the label factor of this xgrid
 java.lang.String toString()
          Returns a string representation of this ygrid
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

defaultGrid

private boolean defaultGrid
Default grid

gridStep

private int gridStep
The grid step of ygrid

labelFactor

private int labelFactor
The label factor of ygrid
Constructor Detail

YGrid

public YGrid()
Default constructor of XGrid

YGrid

public YGrid(int gridStep,
             int labelFactor)
Constructor of YGrid
Parameters:
gridStep - The grid step of ygrid
labelFactor - The label factor of ygrid
Method Detail

getGridStep

public int getGridStep()
Returns the grid step of this ygrid

getLabelFactor

public int getLabelFactor()
Returns the label factor of this ygrid

setGridStep

public void setGridStep(int gridStep)
Replaces the grid step of this xgrid
Parameters:
gridStep - The grid step of ygrid to set

setLabelFactor

public void setLabelFactor(int labelFactor)
Replaces the label factor of this xgrid
Parameters:
gridStep - The label factor of ygrid to set

toString

public java.lang.String toString()
Returns a string representation of this ygrid
Overrides:
toString in class java.lang.Object

Copyright 1885-2001 FIRMENICH SA, Geneva

Submit a bug or feature
Copyright 1885-2001 FIRMENICH SA, Geneva,
All Rights Reserved.