FreeHEP API
Version current

org.freehep.j3d.plot
Class AxisBuilder

java.lang.Object
  extended byorg.freehep.j3d.plot.AxisBuilder
Direct Known Subclasses:
XAxisBuilder, YAxisBuilder, ZAxisBuilder

public class AxisBuilder
extends Object

Source Code:
AxisBuilder.java

Field Summary
protected static float labelOffSet
           
protected static float major
           
protected static float minor
           
protected static float scale
           
protected static float tickOffSet
           
 
Method Summary
 void apply()
          Call this method after setting the required axis properties, to actually setup/modify the axis appearance.
 void createLabelsNTicks(double min, double max)
          Call the createLabelsNTicks method if you would like the axisbuilder to create axis labels and tick positions for you.
 String getLabel()
           
 javax.media.j3d.Font3D getLabelFont()
           
 javax.media.j3d.Node getNode()
          Returns the node representing this Axis Subclasses can override this method to transform this axis to make it into an X,Y,Z axis.
 javax.media.j3d.Font3D getTickFont()
           
 String[] getTickLabels()
           
 double[] getTickLocations()
          Tick labels and locations (positions) can be set by the caller or calculated and set by the createLabelsNTicks method as a convenience.
 void setLabel(String label)
           
 void setLabelFont(javax.media.j3d.Font3D font)
           
 void setTickFont(javax.media.j3d.Font3D font)
           
 void setTickLabels(String[] labels)
           
 void setTickLocations(double[] ticks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scale

protected static float scale

major

protected static float major

minor

protected static float minor

tickOffSet

protected static float tickOffSet

labelOffSet

protected static float labelOffSet
Method Detail

getLabel

public String getLabel()

setLabel

public void setLabel(String label)

getLabelFont

public javax.media.j3d.Font3D getLabelFont()

setLabelFont

public void setLabelFont(javax.media.j3d.Font3D font)

getTickFont

public javax.media.j3d.Font3D getTickFont()

setTickFont

public void setTickFont(javax.media.j3d.Font3D font)

getTickLocations

public double[] getTickLocations()
Tick labels and locations (positions) can be set by the caller or calculated and set by the createLabelsNTicks method as a convenience.


setTickLocations

public void setTickLocations(double[] ticks)

getTickLabels

public String[] getTickLabels()

setTickLabels

public void setTickLabels(String[] labels)

createLabelsNTicks

public void createLabelsNTicks(double min,
                               double max)
Call the createLabelsNTicks method if you would like the axisbuilder to create axis labels and tick positions for you.


apply

public void apply()
Call this method after setting the required axis properties, to actually setup/modify the axis appearance.


getNode

public javax.media.j3d.Node getNode()
Returns the node representing this Axis Subclasses can override this method to transform this axis to make it into an X,Y,Z axis.


FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.