|
JHotDraw 7.5.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jhotdraw.beans.AbstractBean org.jhotdraw.draw.AbstractFigure org.jhotdraw.draw.AbstractAttributedFigure org.jhotdraw.samples.odg.figures.ODGAttributedFigure
public abstract class ODGAttributedFigure
ODGAttributedFigure.
Field Summary |
---|
Fields inherited from class org.jhotdraw.draw.AbstractFigure |
---|
changingDepth, listenerList |
Fields inherited from class org.jhotdraw.beans.AbstractBean |
---|
propertySupport |
Fields inherited from interface org.jhotdraw.draw.Figure |
---|
CONNECTABLE_PROPERTY, REMOVABLE_PROPERTY, SELECTABLE_PROPERTY, TRANSFORMABLE_PROPERTY |
Constructor Summary | |
---|---|
ODGAttributedFigure()
Creates a new instance. |
Method Summary | ||
---|---|---|
void |
draw(java.awt.Graphics2D g)
Draws the figure. |
|
void |
drawFigure(java.awt.Graphics2D g)
This method is invoked before the rendered image of the figure is composited. |
|
java.util.Collection<javax.swing.Action> |
getActions(java.awt.geom.Point2D.Double p)
Returns a collection of actions which are presented to the user in a popup menu. |
|
|
set(AttributeKey<T> key,
T newValue)
Sets an attribute of the figure. |
Methods inherited from class org.jhotdraw.draw.AbstractAttributedFigure |
---|
applyAttributesTo, clone, drawFill, drawStroke, drawText, get, getAttributeKey, getAttributes, getAttributesRestoreData, getDrawingArea, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, read, readAttributes, removeAttribute, restoreAttributesTo, setAttributeEnabled, setAttributes, write, writeAttributes |
Methods inherited from class org.jhotdraw.beans.AbstractBean |
---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jhotdraw.samples.odg.figures.ODGFigure |
---|
isEmpty |
Constructor Detail |
---|
public ODGAttributedFigure()
Method Detail |
---|
public void draw(java.awt.Graphics2D g)
Figure
draw
in interface Figure
draw
in class AbstractAttributedFigure
g
- The Graphics2D to draw to.public void drawFigure(java.awt.Graphics2D g)
public <T> void set(AttributeKey<T> key, T newValue)
AbstractAttributedFigure
set
in interface Figure
set
in class AbstractAttributedFigure
AttributeKey.set(org.jhotdraw.draw.Figure, T)
public java.util.Collection<javax.swing.Action> getActions(java.awt.geom.Point2D.Double p)
AbstractFigure
The collection may contain null entries. These entries are used interpreted as separators in the popup menu.
getActions
in interface Figure
getActions
in class AbstractFigure
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |