|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.plots.axes.AbstractAxisRenderer2D
public abstract class AbstractAxisRenderer2D
Abstract class that provides function for rendering axes in two-dimensional space.
Functionality includes:
Field Summary |
---|
Fields inherited from interface de.erichseifert.gral.plots.axes.AxisRenderer |
---|
INTERSECTION, LABEL, LABEL_COLOR, LABEL_DISTANCE, LABEL_ROTATION, SHAPE, SHAPE_COLOR, SHAPE_DIRECTION_SWAPPED, SHAPE_NORMAL_ORIENTATION_CLOCKWISE, SHAPE_STROKE, SHAPE_VISIBLE, TICK_LABELS, TICK_LABELS_DISTANCE, TICK_LABELS_FORMAT, TICK_LABELS_OUTSIDE, TICK_LABELS_ROTATION, TICKS, TICKS_ALIGNMENT, TICKS_COLOR, TICKS_CUSTOM, TICKS_LENGTH, TICKS_MINOR, TICKS_MINOR_ALIGNMENT, TICKS_MINOR_COLOR, TICKS_MINOR_COUNT, TICKS_MINOR_LENGTH, TICKS_MINOR_STROKE, TICKS_SPACING, TICKS_STROKE |
Constructor Summary | |
---|---|
AbstractAxisRenderer2D()
Initializes a new AbstractAxisRenderer2D instances with
default settings. |
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. |
|
|
getSetting(Settings.Key key)
Returns the setting with the specified key. |
|
List<Tick> |
getTicks(Axis axis)
Returns a list of all tick element on the axis. |
|
|
removeSetting(Settings.Key key)
Removes the setting with the specified key. |
|
|
removeSettingDefault(Settings.Key key)
Removes the default setting with the specified key. |
|
|
setSetting(Settings.Key key,
T value)
Sets the setting with the specified key to the specified value. |
|
|
setSettingDefault(Settings.Key key,
T value)
Sets a default value for the setting with the specified key. |
|
void |
settingChanged(SettingChangeEvent event)
Invoked if a setting has changed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.erichseifert.gral.plots.axes.AxisRenderer |
---|
viewToWorld, worldToView |
Constructor Detail |
---|
public AbstractAxisRenderer2D()
AbstractAxisRenderer2D
instances with
default settings.
Method Detail |
---|
public Drawable getRendererComponent(Axis axis)
AxisRenderer
getRendererComponent
in interface AxisRenderer
axis
- axis to be displayed
Axis
public List<Tick> getTicks(Axis axis)
AxisRenderer
getTicks
in interface AxisRenderer
axis
- Axis
Tick
instancespublic PointND<Double> getNormal(Axis axis, Number value, boolean extrapolate, boolean forceLinear)
AxisRenderer
getNormal
in interface AxisRenderer
axis
- Axisvalue
- World coordinate value to convertextrapolate
- Option to activate extrapolation value that are not on the axisforceLinear
- Force linear interpolation.
public PointND<Double> getPosition(Axis axis, Number value, boolean extrapolate, boolean forceLinear)
AxisRenderer
getPosition
in interface AxisRenderer
axis
- Axisvalue
- World coordinate value to convertextrapolate
- Option to activate extrapolation value that are not on the axisforceLinear
- Force linear interpolation.
public <T> T getSetting(Settings.Key key)
SettingsStorage
getSetting
in interface SettingsStorage
T
- Type of setting.key
- Key.
public <T> void setSetting(Settings.Key key, T value)
SettingsStorage
setSetting
in interface SettingsStorage
T
- Type of setting.key
- Key.value
- Value to be set.public <T> void removeSetting(Settings.Key key)
SettingsStorage
removeSetting
in interface SettingsStorage
T
- Type of setting.key
- Key.public <T> void setSettingDefault(Settings.Key key, T value)
SettingsStorage
setSettingDefault
in interface SettingsStorage
T
- Type of setting.key
- Key.value
- Value to be set.public <T> void removeSettingDefault(Settings.Key key)
SettingsStorage
removeSettingDefault
in interface SettingsStorage
T
- Type of setting.key
- Key.public void settingChanged(SettingChangeEvent event)
SettingsListener
settingChanged
in interface SettingsListener
event
- Event containing information about the changed setting.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |