public abstract class AbstractPointRenderer extends BasicSettingsStorage implements PointRenderer, SettingsListener
COLOR, ERROR_COLOR, ERROR_COLUMN_BOTTOM, ERROR_COLUMN_TOP, ERROR_DISPLAYED, ERROR_SHAPE, ERROR_STROKE, SHAPE, VALUE_ALIGNMENT_X, VALUE_ALIGNMENT_Y, VALUE_COLOR, VALUE_COLUMN, VALUE_DISPLAYED, VALUE_DISTANCE, VALUE_FONT, VALUE_FORMAT, VALUE_LOCATION, VALUE_ROTATION
Constructor and Description |
---|
AbstractPointRenderer()
Creates a new AbstractPointRenderer object with default shape and
color.
|
Modifier and Type | Method and Description |
---|---|
protected <T> void |
setSetting(Key key,
T value,
boolean isDefault)
Sets the setting or default setting with the specified key to a new
value.
|
void |
settingChanged(SettingChangeEvent event)
Invoked if a setting has changed.
|
addSettingsListener, getSetting, hasSetting, hasSettingDefault, notifySettingChanged, removeSetting, removeSettingDefault, removeSettingsListener, setSetting, setSettingDefault
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPoint, getPointShape, getValue
getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault
public AbstractPointRenderer()
public void settingChanged(SettingChangeEvent event)
settingChanged
in interface SettingsListener
event
- Event containing information about the changed setting.protected <T> void setSetting(Key key, T value, boolean isDefault)
BasicSettingsStorage
setSetting
in class BasicSettingsStorage
T
- Type of setting.key
- Key.value
- Value to be set.isDefault
- true
when the value should be the default,
otherwise false
Copyright © 2009-2013. All Rights Reserved.