org.omegahat.Graphics.Plots
Class CategoricalBottomAxis
java.lang.Object
|
+--org.omegahat.Graphics.Primitives.GraphicalObject
|
+--org.omegahat.Graphics.Primitives.RGO
|
+--org.omegahat.Graphics.Primitives.GraphicalContainer
|
+--org.omegahat.Graphics.Plots.Axis
|
+--org.omegahat.Graphics.Plots.CategoricalAxis
|
+--org.omegahat.Graphics.Plots.CategoricalBottomAxis
- All Implemented Interfaces:
- Addable, AxisInt, Copyable, GraphicalComponentInt, GraphicalContainerInt, MathOperable, ScaledComponentInt, SimpleGraphicalContainerInt, Subsettable, Tree
- public class CategoricalBottomAxis
- extends CategoricalAxis
an axis with arbitrary strings as the labels.
The axis uses a grid allocator to define a region for each tick
| Fields inherited from class org.omegahat.Graphics.Primitives.RGO |
region |
| Methods inherited from class org.omegahat.Graphics.Plots.Axis |
create, createTickData, getAxisLabel, getNTicks, getTickLabels, getTickLocations, makeAxis, removeTicks, setAxisLabel, setNTicks, setTickLabels, setTickLocations |
| Methods inherited from class org.omegahat.Graphics.Primitives.GraphicalContainer |
add, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addValue, copy, copy, draw, drawChildren, get, getChild, getChildCount, getChildren, getDevice, getOrigin, getRegionAllocator, getXScale, getYScale, parent, parent, remove, removeGraphicalObject, removeGraphicalObject, setOrigin, setRegionAllocator, setXScale, setYScale, subset, subset, transform, transform |
| Methods inherited from class org.omegahat.Graphics.Primitives.RGO |
center, centre, createRegionDescription, createRegionDescription, getRegion, height, height, setHJust, setRegion, setVJust, width, width, x, x, y, y |
| Methods inherited from class org.omegahat.Graphics.Primitives.GraphicalObject |
cacheSize, getFontSize, getFontSize, getParameters, getParents, getStatus, isActive, isVisible, lastHeightCM, lastRegion, lastWidthCM, parents, setActive, setParameters, setParents, setVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.omegahat.Graphics.Primitives.GraphicalComponentInt |
draw, getParameters, getRegion, isActive, isVisible, parent, parent, parents, setActive, setParameters, setRegion, setVisible |
CategoricalBottomAxis
public CategoricalBottomAxis(java.lang.String[] labels)
CategoricalBottomAxis
public CategoricalBottomAxis(java.lang.String[] labels,
java.lang.String label)
makeLabel
public void makeLabel(java.lang.String label)
- Description copied from interface:
AxisInt
- Make this string the label for the entire axis.
- Overrides:
makeLabel in class Axis
makeContainer
public void makeContainer(ScaleInt sx)
- Overrides:
makeContainer in class Axis
makeMajor
public void makeMajor()
- Overrides:
makeMajor in class Axis
makeTicks
public void makeTicks(ScaleInt s,
double[] tickX,
java.lang.String[] tickLabel)
- Overrides:
makeTicks in class Axis