AxisAnnotationpublic class PlaneAxisAnnotation extends java.lang.Object implements AxisAnnotation
| Modifier and Type | Field | Description |
|---|---|---|
static boolean |
INVERT_Y |
|
static Orientation |
X_ORIENT |
|
static Orientation |
Y_ORIENT |
| Constructor | Description |
|---|---|
PlaneAxisAnnotation(int gxlo,
int gxhi,
int gylo,
int gyhi,
Axis xaxis,
Axis yaxis,
Tick[] xticks,
Tick[] yticks,
java.lang.String xlabel,
java.lang.String ylabel,
Captioner captioner,
boolean xAnnotate,
boolean yAnnotate) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
drawLabels(java.awt.Graphics g) |
Paints the annotations.
|
java.awt.Insets |
getPadding(boolean withScroll) |
Returns the padding insets 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 PlaneAxisAnnotation(int gxlo,
int gxhi,
int gylo,
int gyhi,
Axis xaxis,
Axis yaxis,
Tick[] xticks,
Tick[] yticks,
java.lang.String xlabel,
java.lang.String ylabel,
Captioner captioner,
boolean xAnnotate,
boolean yAnnotate)
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 axiscaptioner - text renderer for axis labels etcxAnnotate - true iff annotations are required on X axisyAnnotate - true iff annotations are required on Y axispublic void drawLabels(java.awt.Graphics g)
AxisAnnotationdrawLabels in interface AxisAnnotationg - graphics contextpublic java.awt.Insets getPadding(boolean withScroll)
AxisAnnotationgetPadding in interface AxisAnnotationwithScroll - true if the padding should be large enough to
accommodate labelling requirements if the
surface is scrolledCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.