|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AxisRenderer
Interface for generic renderers of axes.
Field Summary | |
---|---|
static Settings.Key |
INTERSECTION
Key for specifying the intersection point of axis. |
static Settings.Key |
LABEL
Key for specifying the String instance for the label
text of the axis. |
static Settings.Key |
LABEL_COLOR
Key for specifying the Paint instance to be used to
paint the axis label. |
static Settings.Key |
LABEL_DISTANCE
Key for specifying a Number value for the distance
from the axis to the label. |
static Settings.Key |
LABEL_ROTATION
Key for specifying a Number value for the rotation of
the axis label in degrees. |
static Settings.Key |
SHAPE
Key for specifying the Shape instance that defines
the shape of the axis. |
static Settings.Key |
SHAPE_COLOR
Key for specifying Paint instance to be used to paint
the axis, its ticks and its labels. |
static Settings.Key |
SHAPE_DIRECTION_SWAPPED
Key for specifying a Boolean value which decides
whether the axis direction will be changed. |
static Settings.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 Settings.Key |
SHAPE_STROKE
Key for specifying the Stroke instance which define
the shape of the axis. |
static Settings.Key |
SHAPE_VISIBLE
Key for specifying a Boolean value which decides
whether the shape of the axis will be drawn. |
static Settings.Key |
TICK_LABELS
Key for specifying whether tick labels are drawn. |
static Settings.Key |
TICK_LABELS_DISTANCE
Key for specifying a Number value for the distance
of labels to their ticks. |
static Settings.Key |
TICK_LABELS_FORMAT
Key for specifying the {java.text.Format} instance which converts the tick values to labels. |
static Settings.Key |
TICK_LABELS_OUTSIDE
Key for specifying a Boolean value which decides
whether the tick labels are drawn outside of the plot. |
static Settings.Key |
TICK_LABELS_ROTATION
Key for specifying a Number value for the rotation
of the tick labels in degrees. |
static Settings.Key |
TICKS
Key for specifying a Boolean value which decides
whether major ticks are drawn. |
static Settings.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 Settings.Key |
TICKS_COLOR
Key for specifying the Paint instance to be used to
paint the shapes of major ticks. |
static Settings.Key |
TICKS_CUSTOM
Custom labels as a Map with a position
(Double ) as key and a label (String ) as value. |
static Settings.Key |
TICKS_LENGTH
Key for specifying a Number value for the length of
major tick strokes. |
static Settings.Key |
TICKS_MINOR
Key for specifying a Boolean value which decides
whether minor ticks are drawn. |
static Settings.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 Settings.Key |
TICKS_MINOR_COLOR
Key for specifying the Paint instance to be used to
paint the the shapes of minor ticks. |
static Settings.Key |
TICKS_MINOR_COUNT
Key for specifying an Integer value for the count
of minor ticks. |
static Settings.Key |
TICKS_MINOR_LENGTH
Key for specifying a Number value for the length
of minor tick strokes. |
static Settings.Key |
TICKS_MINOR_STROKE
Key for specifying the Stroke instance which is used
to draw all minor ticks. |
static Settings.Key |
TICKS_SPACING
Key for specifying a Number value for the interval
for major ticks. |
static Settings.Key |
TICKS_STROKE
Key for specifying the Stroke instance which is used
to draw all major ticks. |
Method Summary | |
---|---|
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. |
Methods inherited from interface de.erichseifert.gral.util.SettingsStorage |
---|
getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault |
Field Detail |
---|
static final Settings.Key INTERSECTION
static final Settings.Key SHAPE
Shape
instance that defines
the shape of the axis.
static final Settings.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 Settings.Key SHAPE_NORMAL_ORIENTATION_CLOCKWISE
Boolean
value which decides
whether normal vector is calculated using clockwise (true
)
or counterclockwise rotation (false
).
static final Settings.Key SHAPE_COLOR
Paint
instance to be used to paint
the axis, its ticks and its labels.
static final Settings.Key SHAPE_STROKE
Stroke
instance which define
the shape of the axis.
static final Settings.Key SHAPE_DIRECTION_SWAPPED
Boolean
value which decides
whether the axis direction will be changed.
static final Settings.Key TICKS
Boolean
value which decides
whether major ticks are drawn.
static final Settings.Key TICKS_SPACING
Number
value for the interval
for major ticks.
static final Settings.Key TICKS_LENGTH
Number
value for the length of
major tick strokes. The length is specified relative to the font height.
static final Settings.Key TICKS_STROKE
Stroke
instance which is used
to draw all major ticks.
static final Settings.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 Settings.Key TICKS_COLOR
Paint
instance to be used to
paint the shapes of major ticks.
static final Settings.Key TICK_LABELS
static final Settings.Key TICK_LABELS_FORMAT
static final Settings.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 Settings.Key TICK_LABELS_OUTSIDE
Boolean
value which decides
whether the tick labels are drawn outside of the plot.
static final Settings.Key TICK_LABELS_ROTATION
Number
value for the rotation
of the tick labels in degrees.
static final Settings.Key TICKS_MINOR
Boolean
value which decides
whether minor ticks are drawn.
static final Settings.Key TICKS_MINOR_COUNT
Integer
value for the count
of minor ticks.
static final Settings.Key TICKS_MINOR_LENGTH
Number
value for the length
of minor tick strokes. The length is specified relative to font height.
static final Settings.Key TICKS_MINOR_STROKE
Stroke
instance which is used
to draw all minor ticks.
static final Settings.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 Settings.Key TICKS_MINOR_COLOR
Paint
instance to be used to
paint the the shapes of minor ticks.
static final Settings.Key TICKS_CUSTOM
Map
with a position
(Double
) as key and a label (String
) as value.
static final Settings.Key LABEL
String
instance for the label
text of the axis.
static final Settings.Key LABEL_DISTANCE
Number
value for the distance
from the axis to the label. The length is specified relative to font height.
static final Settings.Key LABEL_ROTATION
Number
value for the rotation of
the axis label in degrees.
static final Settings.Key LABEL_COLOR
Paint
instance to be used to
paint the axis label.
Method Detail |
---|
Drawable getRendererComponent(Axis axis)
axis
- axis to be displayed
Axis
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 axis
Number viewToWorld(Axis axis, double value, boolean extrapolate)
axis
- Axisvalue
- View coordinate value to convertextrapolate
- Option to activate extrapolation value that are not on the axis
List<Tick> getTicks(Axis axis)
axis
- Axis
Tick
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |