randsburg
Interface GraphInfo


public interface GraphInfo

Interface defines methods to be called by GraphMethods methods direction should be either GraphMethods.HORIZONTAL or GraphMethods.VERTICAL


Method Summary
 java.awt.Component getComponent()
           
 int getGraphSize(int direction)
           
 float[] getGrid(int direction)
          grid should be set by call to graphMethods.findGrid()
 double getMax(int direction)
           
 double getMin(int direction)
           
 int getOffset(int direction)
          return topOffset for VERTICAL, leftOffset for HORIZONTAL
 java.awt.Color getScaleColor(int direction)
           
 java.awt.Font getScaleFont(int direction)
           
 java.awt.Color getScaleFontColor(int direction)
           
 java.lang.String getScaleLabel(int direction)
           
 int getScalePosition(int direction)
           
 double scale(double y, int direction)
           
 

Method Detail

getMin

public double getMin(int direction)

getMax

public double getMax(int direction)

scale

public double scale(double y,
                    int direction)

getScaleFont

public java.awt.Font getScaleFont(int direction)

getScaleColor

public java.awt.Color getScaleColor(int direction)

getScaleLabel

public java.lang.String getScaleLabel(int direction)

getScaleFontColor

public java.awt.Color getScaleFontColor(int direction)

getScalePosition

public int getScalePosition(int direction)

getGrid

public float[] getGrid(int direction)
grid should be set by call to graphMethods.findGrid()


getGraphSize

public int getGraphSize(int direction)

getOffset

public int getOffset(int direction)
return topOffset for VERTICAL, leftOffset for HORIZONTAL


getComponent

public java.awt.Component getComponent()