public class PlaneAxisAnnotation extends java.lang.Object implements AxisAnnotation
Modifier and Type | Field and Description |
---|---|
static boolean |
INVERT_Y |
static Orientation |
X_ORIENT |
static Orientation |
Y_ORIENT |
Constructor and 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 and 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)
AxisAnnotation
drawLabels
in interface AxisAnnotation
g
- graphics contextpublic java.awt.Insets getPadding(boolean withScroll)
AxisAnnotation
getPadding
in interface AxisAnnotation
withScroll
- true if the padding should be large enough to
accommodate labelling requirements if the
surface is scrolledCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.