Package org.freehep.j3d.plot
Class ExtendedAxisBuilder
- java.lang.Object
-
- org.freehep.j3d.plot.ExtendedAxisBuilder
-
- Direct Known Subclasses:
ExtendedXAxisBuilder,ExtendedYAxisBuilder,ExtendedZAxisBuilder
public class ExtendedAxisBuilder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static floatlabelOffSetprotected static floatmajorprotected static floatminorprotected static floatscaleprotected static floattickOffSet
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply()Call this method after setting the required axis properties, to actually setup/modify the axis appearance.voidcreateLabelsNTicks(double min, double max)Call the createLabelsNTicks method if you would like the axisbuilder to create axis labels and tick positions for you.StringgetLabel()javax.media.j3d.Font3DgetLabelFont()javax.media.j3d.NodegetNode()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.Font3DgetTickFont()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.protected voidsetAxisNonPickable()voidsetLabel(String label)voidsetLabelFont(javax.media.j3d.Font3D font)voidsetTickFont(javax.media.j3d.Font3D font)voidsetTickLabels(String[] labels)voidsetTickLocations(double[] ticks)
-
-
-
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.
-
setAxisNonPickable
protected void setAxisNonPickable()
-
-