|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAxisTitlePainter
Interface for an painter of the title of an axis of the Chart2D.
Field Summary | |
---|---|
static String |
PROPERTY_TITLEFONT
Constant for a of the title font. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add a listener for the given property. |
int |
getHeight(IAxis axis,
Graphics2D g2d)
Returns the height of this axis title in px with respect to the current title of the given axis. |
PropertyChangeListener[] |
getPropertyChangeListeners(String propertyName)
Returns an array of all the listeners that were added to the this instance with addPropertyChangeListener(String, PropertyChangeListener) . |
Font |
getTitleFont()
Returns the font used for painting the title or null if not configured. |
int |
getWidth(IAxis axis,
Graphics2D g2d)
Returns the width of this axis title in px with respect to the current title of the given axis. |
void |
paintTitle(IAxis axis,
Graphics2D g)
Invoked to let implementations paint the given title of the given axis. |
void |
removePropertyChangeListener(String property,
PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property. |
void |
setTitleFont(Font font)
Sets the title font to use. |
Field Detail |
---|
static final String PROPERTY_TITLEFONT
PropertyChangeEvent
of the title font.
Method Detail |
---|
void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
The following
types should be fired to
listeners:PropertyChangeEvent
getPropertyName() |
getSource() |
getOldValue() |
getNewValue() |
---|---|---|---|
|
that changed |
, the old value. |
, the new value. |
propertyName
- the property to be informed about changes.listener
- the listener that will be informed.PropertyChangeListener[] getPropertyChangeListeners(String propertyName)
addPropertyChangeListener(String, PropertyChangeListener)
.
propertyName
- The name of the property being listened to.
addPropertyChangeListener(String, PropertyChangeListener)
.PropertyChangeSupport.getPropertyChangeListeners(java.lang.String)
void removePropertyChangeListener(String property, PropertyChangeListener listener)
listener
was added
more than once to the same event source for the specified property, it will be notified one
less time after being removed. If propertyName
is null, no exception is thrown
and no action is taken. If listener
is null, or was never added for the
specified property, no exception is thrown and no action is taken.
property
- The name of the property that was listened on.listener
- The PropertyChangeListener to be removed.PropertyChangeSupport.removePropertyChangeListener(java.lang.String,
java.beans.PropertyChangeListener)
int getHeight(IAxis axis, Graphics2D g2d)
axis
- the instance this title painter is working for.g2d
- needed for size informations (e.g. font widths).
void setTitleFont(Font font)
font
- the font to use for the title.Font getTitleFont()
int getWidth(IAxis axis, Graphics2D g2d)
axis
- the instance this title painter is working for.g2d
- needed for size informations (e.g. font widths).
void paintTitle(IAxis axis, Graphics2D g)
Implementations should make use of the information about the axis coordinates (start pixel,end pixel) and the graphics context (for font dimensions) to do it right.
axis
- the axis to paint the title of, needed e.g. to IAxis.getTitle()
.g
- needed for size informations.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |