public class PlaneAxisAnnotation extends Object implements AxisAnnotation
Modifier and Type | Field and Description |
---|---|
static boolean |
INVERT_Y |
static Orientation |
X_ORIENT |
static Orientation |
X2_ORIENT |
static Orientation |
Y_ORIENT |
static Orientation |
Y2_ORIENT |
Constructor and Description |
---|
PlaneAxisAnnotation(int gxlo,
int gxhi,
int gylo,
int gyhi,
Axis xaxis,
Axis yaxis,
Tick[] xticks,
Tick[] yticks,
String xlabel,
String ylabel,
Tick[] x2ticks,
Tick[] y2ticks,
String x2label,
String y2label,
Captioner captioner,
SideFlags annotateFlags)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
drawLabels(Graphics g)
Paints the annotations.
|
Surround |
getSurround(boolean withScroll)
Returns the padding space around the edge of a plot bounds rectangle
required to accommodate the labels painted by this object.
|
public static final boolean INVERT_Y
public static final Orientation X_ORIENT
public static final Orientation Y_ORIENT
public static final Orientation X2_ORIENT
public static final Orientation Y2_ORIENT
public PlaneAxisAnnotation(int gxlo, int gxhi, int gylo, int gyhi, Axis xaxis, Axis yaxis, Tick[] xticks, Tick[] yticks, String xlabel, String ylabel, Tick[] x2ticks, Tick[] y2ticks, String x2label, String y2label, Captioner captioner, SideFlags annotateFlags)
gxlo
- graphics X coordinate lower boundgxhi
- graphics X coordinate upper boundgylo
- graphics Y coordinate lower boundgyhi
- graphics Y coordinate upper boundxaxis
- X axis objectyaxis
- Y axis objectxticks
- array of ticks along the X axisyticks
- array of ticks along the Y axisxlabel
- text label on X axisylabel
- text label on Y axisx2ticks
- array of ticks along secondary X axis, may be nully2ticks
- array of ticks along secondary Y axis, may be nullx2label
- text label on secondary X axisy2label
- text label on secondary Y axiscaptioner
- text renderer for axis labels etcannotateFlags
- indicates which sides of the plot are annotatedpublic void drawLabels(Graphics g)
AxisAnnotation
drawLabels
in interface AxisAnnotation
g
- graphics contextpublic Surround getSurround(boolean withScroll)
AxisAnnotation
getSurround
in interface AxisAnnotation
withScroll
- true if the padding should be large enough to
accommodate labelling requirements if the
surface is scrolledCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.