org.strbio.util.graph
Interface AxisScale

All Known Implementing Classes:
XAxisScale, YAxisScale

public interface AxisScale

A scale to go along an axis of a graph, i.e. x or y axes.

  Version 1.0, 4/20/99 - original version.
  

Version:
1.0, 4/20/99
Author:
JMC

Method Summary
 int getParallelSpace()
          How much space parallel to the axis is required to draw the scale, outside the graph box?
 int getPerpendicularSpace()
          How much space is required perpendicular to the axis, outside the graph box?
 void paintAxisScale(java.awt.Graphics g, java.awt.Rectangle r)
          Draw the axis scale, relative to a given rectangle containing the graph.
 void setFlipped(boolean fl)
          Flip this axis from normal java orientation (left->right, top->bottom).
 void setFont(java.awt.Font f, java.awt.FontMetrics fm)
          set the font labels will be printed in.
 void setFormat(java.lang.String x)
          set the format labels will be printed in.
 void setMax(double x)
          set the maximum value that will be graphed.
 void setMin(double x)
          set the minimum value that will be graphed.
 

Method Detail

setFlipped

void setFlipped(boolean fl)
Flip this axis from normal java orientation (left->right, top->bottom). Default is true for Y, false for X.


setMin

void setMin(double x)
set the minimum value that will be graphed.


setMax

void setMax(double x)
set the maximum value that will be graphed.


setFormat

void setFormat(java.lang.String x)
set the format labels will be printed in.


setFont

void setFont(java.awt.Font f,
             java.awt.FontMetrics fm)
set the font labels will be printed in.


getParallelSpace

int getParallelSpace()
How much space parallel to the axis is required to draw the scale, outside the graph box?


getPerpendicularSpace

int getPerpendicularSpace()
How much space is required perpendicular to the axis, outside the graph box?


paintAxisScale

void paintAxisScale(java.awt.Graphics g,
                    java.awt.Rectangle r)
Draw the axis scale, relative to a given rectangle containing the graph.