public class PlaneAxisAnnotation extends Object implements AxisAnnotation
| Modifier and Type | Field and Description |
|---|---|
static boolean |
INVERT_Y |
| Constructor and Description |
|---|
PlaneAxisAnnotation(int gxlo,
int gxhi,
int gylo,
int gyhi,
Axis xaxis,
Axis yaxis,
Tick[] xticks,
Tick[] yticks,
Orientation xorient,
Orientation yorient,
String xlabel,
String ylabel,
Tick[] x2ticks,
Tick[] y2ticks,
Orientation x2orient,
Orientation y2orient,
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 PlaneAxisAnnotation(int gxlo,
int gxhi,
int gylo,
int gyhi,
Axis xaxis,
Axis yaxis,
Tick[] xticks,
Tick[] yticks,
Orientation xorient,
Orientation yorient,
String xlabel,
String ylabel,
Tick[] x2ticks,
Tick[] y2ticks,
Orientation x2orient,
Orientation y2orient,
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 axisxorient - tick label orientation on X axisyorient - tick label orientation on 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 nullx2orient - tick label orientation on secondary X axisy2orient - tick label orientation on secondary Y axisx2label - 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)
AxisAnnotationdrawLabels in interface AxisAnnotationg - graphics contextpublic Surround getSurround(boolean withScroll)
AxisAnnotationgetSurround in interface AxisAnnotationwithScroll - true if the padding should be large enough to
accommodate labelling requirements if the
surface is scrolledCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.