edu.sc.seis.fissuresUtil.display.borders
Class Border.BorderFormat

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.display.borders.Border.BorderFormat
Enclosing class:
Border

public abstract class Border.BorderFormat
extends java.lang.Object


Field Summary
protected  double divSize
           
protected  double ticksPerDiv
           
 
Constructor Summary
Border.BorderFormat(double divisionSize, int ticksPerDivision)
          The division size determines the number of divisions that will be created for a given unit range.
 
Method Summary
 void draw(edu.iris.Fissures.model.UnitRangeImpl range, java.awt.Graphics2D g2d)
           
 double getDivSize()
           
protected  float[] getFirstPoint()
           
abstract  java.lang.String getLabel(double value)
           
protected  double getLimitingSize()
           
abstract  java.lang.String getMaxString()
           
protected  float[] getNextPoint(float increment, float[] curPoint)
           
 boolean willFit(edu.iris.Fissures.model.UnitRangeImpl range, java.awt.Graphics2D g2d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

divSize

protected double divSize

ticksPerDiv

protected double ticksPerDiv
Constructor Detail

Border.BorderFormat

public Border.BorderFormat(double divisionSize,
                           int ticksPerDivision)
The division size determines the number of divisions that will be created for a given unit range. The UnitRangeImpl returned by the getRange method of implementing classes should use the same units as whatever was used to get this division size If ticks per division = 5 then there will be 1 major tick followed by 4 minor ticks for every division. If it's 10, there will be 1 major tick followed by 9 minor ticks

Method Detail

willFit

public boolean willFit(edu.iris.Fissures.model.UnitRangeImpl range,
                       java.awt.Graphics2D g2d)

getLimitingSize

protected double getLimitingSize()

getMaxString

public abstract java.lang.String getMaxString()

draw

public void draw(edu.iris.Fissures.model.UnitRangeImpl range,
                 java.awt.Graphics2D g2d)

getFirstPoint

protected float[] getFirstPoint()

getNextPoint

protected float[] getNextPoint(float increment,
                               float[] curPoint)

getDivSize

public double getDivSize()

getLabel

public abstract java.lang.String getLabel(double value)