|
JHotDraw 7.2 | ||||||||
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.svg.figures.SVGAttributedFigure
public abstract class SVGAttributedFigure
SVGAttributedFigure.
Field Summary |
---|
Fields inherited from class org.jhotdraw.draw.AbstractFigure |
---|
changingDepth, listenerList |
Fields inherited from class org.jhotdraw.beans.AbstractBean |
---|
propertySupport |
Constructor Summary | |
---|---|
SVGAttributedFigure()
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. |
|
void |
read(DOMInput in)
|
|
|
setAttribute(AttributeKey<T> key,
T newValue)
Sets an attribute of the figure. |
|
void |
write(DOMOutput out)
|
Methods inherited from class org.jhotdraw.draw.AbstractAttributedFigure |
---|
applyAttributesTo, clone, drawFill, drawStroke, drawText, getAttribute, getAttributeKey, getAttributes, getAttributesRestoreData, getDrawingArea, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, readAttributes, removeAttribute, restoreAttributesTo, setAttributeEnabled, setAttributes, writeAttributes |
Methods inherited from class org.jhotdraw.beans.AbstractBean |
---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jhotdraw.draw.Figure |
---|
contains, getBounds, getTransformRestoreData, restoreTransformTo, transform |
Constructor Detail |
---|
public SVGAttributedFigure()
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 setAttribute(AttributeKey<T> key, T newValue)
AbstractAttributedFigure
setAttribute
in interface Figure
setAttribute
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
public final void write(DOMOutput out) throws java.io.IOException
write
in interface DOMStorable
write
in class AbstractAttributedFigure
java.io.IOException
public final void read(DOMInput in) throws java.io.IOException
read
in interface DOMStorable
read
in class AbstractAttributedFigure
java.io.IOException
|
Copyright 1996-2009 (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 |