public interface AxisRenderer extends SettingsStorage
Modifier and Type | Field and Description |
---|---|
static Key |
INTERSECTION
Key for specifying a
Number value for the intersection point of
axis. |
static Key |
LABEL
Key for specifying the
String instance for the label text of
the axis. |
static Key |
LABEL_COLOR
Key for specifying the
Paint instance to be used to
paint the axis label. |
static Key |
LABEL_DISTANCE
Key for specifying a
Number value for the distance from the
axis to the label. |
static Key |
LABEL_FONT
Key for specifying the
Font instance to be used to
display the axis label text. |
static Key |
LABEL_ROTATION
Key for specifying a
Number value for the rotation of the axis
label in degrees. |
static Key |
SHAPE
Key for specifying the
Shape instance that defines the
shape of the axis. |
static Key |
SHAPE_COLOR
Key for specifying
Paint instance to be used to paint
the axis, its ticks and its labels. |
static Key |
SHAPE_DIRECTION_SWAPPED
Key for specifying a
Boolean value which decides
whether the axis direction will be changed. |
static Key |
SHAPE_NORMAL_ORIENTATION_CLOCKWISE
Key for specifying a
Boolean value which decides whether normal
vector is calculated using clockwise (true ) or counterclockwise
rotation (false ). |
static Key |
SHAPE_STROKE
Key for specifying the
Stroke instance which define
the shape of the axis. |
static Key |
SHAPE_VISIBLE
Key for specifying a
Boolean value which decides whether the
shape of the axis will be drawn. |
static Key |
TICK_LABELS
Key for specifying a
Boolean value whether tick labels will be
shown. |
static Key |
TICK_LABELS_DISTANCE
Key for specifying a
Number value for the distance of labels to
their ticks. |
static Key |
TICK_LABELS_FORMAT
Key for specifying the
Format instance which converts
the tick values to labels. |
static Key |
TICK_LABELS_OUTSIDE
Key for specifying a
Boolean value which decides whether the
tick labels are drawn outside of the plot. |
static Key |
TICK_LABELS_ROTATION
Key for specifying a
Number value for the rotation of the tick
labels in degrees. |
static Key |
TICKS
Key for specifying a
Boolean value which decides
whether major ticks are drawn. |
static Key |
TICKS_ALIGNMENT
Key for specifying a
Number value for the alignment
of major ticks: 0.0 means outside, 0.5 means centered, 1.0 means inside. |
static Key |
TICKS_AUTO_SPACING
Key for specifying a
Boolean value which decides whether the
interval for major and minor ticks is chosen automatically. |
static Key |
TICKS_COLOR
Key for specifying the
Paint instance to be used to
paint the shapes of major ticks. |
static Key |
TICKS_CUSTOM
|
static Key |
TICKS_FONT
Key for specifying the
Font instance to be used to
display the text of major ticks. |
static Key |
TICKS_LENGTH
Key for specifying a
Number value for the length of major tick
strokes. |
static Key |
TICKS_MINOR
Key for specifying a
Boolean value which decides whether minor
ticks are drawn. |
static Key |
TICKS_MINOR_ALIGNMENT
Key for specifying a
Number value for the alignment of minor
ticks: 0.0 means outside, 0.5 means centered, 1.0 means inside. |
static Key |
TICKS_MINOR_COLOR
Key for specifying the
Paint instance to be used to
paint the the shapes of minor ticks. |
static Key |
TICKS_MINOR_COUNT
Key for specifying an
Integer value for the count of minor
ticks. |
static Key |
TICKS_MINOR_LENGTH
Key for specifying a
Number value for the length of minor tick
strokes. |
static Key |
TICKS_MINOR_STROKE
Key for specifying the
Stroke instance which is used
to draw all minor ticks. |
static Key |
TICKS_SPACING
Key for specifying a
Number value for the interval
for major ticks. |
static Key |
TICKS_STROKE
Key for specifying the
Stroke instance which is used
to draw all major ticks. |
Modifier and Type | Method and Description |
---|---|
PointND<Double> |
getNormal(Axis axis,
Number value,
boolean extrapolate,
boolean forceLinear)
Returns the normal vector at the position of the specified value.
|
PointND<Double> |
getPosition(Axis axis,
Number value,
boolean extrapolate,
boolean forceLinear)
Returns the position of the specified value on the axis.
|
Drawable |
getRendererComponent(Axis axis)
Returns a component that displays the specified axis.
|
List<Tick> |
getTicks(Axis axis)
Returns a list of all tick element on the axis.
|
Number |
viewToWorld(Axis axis,
double value,
boolean extrapolate)
Converts a view (screen) coordinate value to a world (axis) coordinate
value.
|
double |
worldToView(Axis axis,
Number value,
boolean extrapolate)
Converts a world (axis) coordinate value to a view (screen) coordinate
value.
|
getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault
static final Key INTERSECTION
Number
value for the intersection point of
axis.static final Key SHAPE
Shape
instance that defines the
shape of the axis.static final Key SHAPE_VISIBLE
Boolean
value which decides whether the
shape of the axis will be drawn. This doesn't influence ticks or labels.static final Key SHAPE_NORMAL_ORIENTATION_CLOCKWISE
Boolean
value which decides whether normal
vector is calculated using clockwise (true
) or counterclockwise
rotation (false
).static final Key SHAPE_COLOR
Paint
instance to be used to paint
the axis, its ticks and its labels.static final Key SHAPE_STROKE
Stroke
instance which define
the shape of the axis.static final Key SHAPE_DIRECTION_SWAPPED
Boolean
value which decides
whether the axis direction will be changed.static final Key TICKS
Boolean
value which decides
whether major ticks are drawn.static final Key TICKS_SPACING
Number
value for the interval
for major ticks.static final Key TICKS_AUTO_SPACING
Boolean
value which decides whether the
interval for major and minor ticks is chosen automatically.static final Key TICKS_LENGTH
Number
value for the length of major tick
strokes. The length is specified relative to the font height.static final Key TICKS_STROKE
Stroke
instance which is used
to draw all major ticks.static final Key TICKS_ALIGNMENT
Number
value for the alignment
of major ticks: 0.0 means outside, 0.5 means centered, 1.0 means inside.static final Key TICKS_FONT
Font
instance to be used to
display the text of major ticks.static final Key TICKS_COLOR
Paint
instance to be used to
paint the shapes of major ticks.static final Key TICK_LABELS
Boolean
value whether tick labels will be
shown.static final Key TICK_LABELS_FORMAT
Format
instance which converts
the tick values to labels.static final Key TICK_LABELS_DISTANCE
Number
value for the distance of labels to
their ticks. The distance is specified relative to the font height.static final Key TICK_LABELS_OUTSIDE
Boolean
value which decides whether the
tick labels are drawn outside of the plot.static final Key TICK_LABELS_ROTATION
Number
value for the rotation of the tick
labels in degrees.static final Key TICKS_MINOR
Boolean
value which decides whether minor
ticks are drawn.static final Key TICKS_MINOR_COUNT
Integer
value for the count of minor
ticks.static final Key TICKS_MINOR_LENGTH
Number
value for the length of minor tick
strokes. The length is specified relative to font height.static final Key TICKS_MINOR_STROKE
Stroke
instance which is used
to draw all minor ticks.static final Key TICKS_MINOR_ALIGNMENT
Number
value for the alignment of minor
ticks: 0.0 means outside, 0.5 means centered, 1.0 means inside.static final Key TICKS_MINOR_COLOR
Paint
instance to be used to
paint the the shapes of minor ticks.static final Key TICKS_CUSTOM
static final Key LABEL_DISTANCE
Number
value for the distance from the
axis to the label. The length is specified relative to font height.static final Key LABEL_ROTATION
Number
value for the rotation of the axis
label in degrees.static final Key LABEL_FONT
Font
instance to be used to
display the axis label text.Drawable getRendererComponent(Axis axis)
axis
- axis to be displayedAxis
double worldToView(Axis axis, Number value, boolean extrapolate)
axis
- Axisvalue
- World coordinate value to convertextrapolate
- Option to activate extrapolation value that are not
on the axisNumber viewToWorld(Axis axis, double value, boolean extrapolate)
axis
- Axisvalue
- View coordinate value to convertextrapolate
- Option to activate extrapolation value that are not
on the axisList<Tick> getTicks(Axis axis)
axis
- AxisTick
instancesPointND<Double> getPosition(Axis axis, Number value, boolean extrapolate, boolean forceLinear)
axis
- Axisvalue
- World coordinate value to convertextrapolate
- Option to activate extrapolation value that are not
on the axisforceLinear
- Force linear interpolation.PointND<Double> getNormal(Axis axis, Number value, boolean extrapolate, boolean forceLinear)
axis
- Axisvalue
- World coordinate value to convertextrapolate
- Option to activate extrapolation value that are not
on the axisforceLinear
- Force linear interpolation.Copyright © 2009-2013. All Rights Reserved.