|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.AbstractDrawable
de.erichseifert.gral.PlotArea
public abstract class PlotArea
Abstract class that represents a canvas for the plot which will be drawn.
Field Summary | |
---|---|
static Settings.Key |
BACKGROUND
Key for specifying the Paint instance to be used to
paint the background of the plot area. |
static Settings.Key |
BORDER
Key for specifying the Stroke instance to be used to
paint the border of the plot area. |
static Settings.Key |
COLOR
Key for specifying the Paint instance to be used to
fill the border of the plot area. |
Constructor Summary | |
---|---|
PlotArea()
Creates a new PlotArea2D object with default background color and border. |
Method Summary | ||
---|---|---|
|
getSetting(Settings.Key key)
Returns the setting with the specified key. |
|
|
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 de.erichseifert.gral.AbstractDrawable |
---|
getBounds, getHeight, getPreferredSize, getWidth, getX, getY, setBounds, setBounds |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.erichseifert.gral.Drawable |
---|
draw |
Field Detail |
---|
public static final Settings.Key BACKGROUND
Paint
instance to be used to
paint the background of the plot area.
public static final Settings.Key BORDER
Stroke
instance to be used to
paint the border of the plot area.
public static final Settings.Key COLOR
Paint
instance to be used to
fill the border of the plot area.
Constructor Detail |
---|
public PlotArea()
Method Detail |
---|
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 |