|
JHotDraw 7.0.9 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.draw.AbstractFigure
org.jhotdraw.draw.AbstractCompositeFigure
org.jhotdraw.draw.GroupFigure
org.jhotdraw.samples.svg.figures.SVGGroupFigure
public class SVGGroupFigure
SVGGroup.
Field Summary |
---|
Fields inherited from class org.jhotdraw.draw.AbstractFigure |
---|
changingDepth, listenerList |
Fields inherited from interface org.jhotdraw.draw.CompositeFigure |
---|
LAYOUT_INSETS |
Constructor Summary | |
---|---|
SVGGroupFigure()
Creates a new instance. |
Method Summary | |
---|---|
SVGGroupFigure |
clone()
Returns a clone of the figure. |
java.util.LinkedList<Handle> |
createHandles(int detailLevel)
Creates handles used to manipulate the figure. |
void |
draw(java.awt.Graphics2D g)
Draws the figure and its decorator figure. |
java.lang.Object |
getAttribute(AttributeKey name)
Gets an attribute from the Figure. |
java.util.Map<AttributeKey,java.lang.Object> |
getAttributes()
Returns a view to all attributes of this figure. |
boolean |
isEmpty()
Returns true, if this figure is empty for one of the following reasons: A group has no children A path has less than two points An ellipse or a rectangle has a width or a height of 0 A text has no characters |
void |
read(DOMInput in)
|
void |
setAttribute(AttributeKey key,
java.lang.Object value)
Sets an attribute of the figure without firing events. |
void |
setAttributes(java.util.Map<AttributeKey,java.lang.Object> map)
|
java.lang.String |
toString()
|
void |
write(DOMOutput out)
|
Methods inherited from class org.jhotdraw.draw.GroupFigure |
---|
canConnect, chop |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jhotdraw.draw.Figure |
---|
addFigureListener, addNotify, canConnect, changed, contains, findCompatibleConnector, findConnector, findFigureInside, getActions, getAttributesRestoreData, getBounds, getConnectors, getCursor, getDecomposition, getDrawingArea, getEndPoint, getLayer, getPreferredSize, getStartPoint, getTool, getToolTipText, getTransformRestoreData, handleDrop, handleMouseClick, includes, invalidate, isInteractive, isVisible, remap, removeFigureListener, removeNotify, requestRemove, restoreAttributesTo, restoreTransformTo, setBounds, setVisible, transform, willChange |
Constructor Detail |
---|
public SVGGroupFigure()
Method Detail |
---|
public void setAttribute(AttributeKey key, java.lang.Object value)
Figure
Use AttributeKey.basicSet
for typesafe access to this
method.
This is a basic operation which does not fire events. Use method
setAttribute
if you need event firing, or - alternatively - the following
code sequence:
aFigure.willChange(); Object oldData = aFigure.getAttributesRestoreData(); STROKE_COLOR.basicSet(aFigure, ...); aFigure.changed(); Object newData = aFigure.getAttributesRestoreData(); ...fire an UndoableEditEvent oldData and newData...
setAttribute
in interface Figure
setAttribute
in class AbstractCompositeFigure
AttributeKey.basicSet(org.jhotdraw.draw.Figure, T)
public java.lang.Object getAttribute(AttributeKey name)
Figure
Use AttributeKey.get()
for typesafe access to this method.
getAttribute
in interface Figure
getAttribute
in class AbstractCompositeFigure
AttributeKey.get(org.jhotdraw.draw.Figure)
public java.util.Map<AttributeKey,java.lang.Object> getAttributes()
Figure
getAttributes
in interface Figure
getAttributes
in class AbstractCompositeFigure
public void setAttributes(java.util.Map<AttributeKey,java.lang.Object> map)
public void draw(java.awt.Graphics2D g)
Figure
draw
in interface Figure
draw
in class AbstractCompositeFigure
g
- The Graphics2D to draw to.public java.util.LinkedList<Handle> createHandles(int detailLevel)
Figure
createHandles
in interface Figure
createHandles
in class AbstractCompositeFigure
detailLevel
- The detail level of the handles. Usually this is 0 for
bounding box handles and 1 for point handles.
Handle
public final void write(DOMOutput out) throws java.io.IOException
write
in interface DOMStorable
write
in class AbstractCompositeFigure
java.io.IOException
public final void read(DOMInput in) throws java.io.IOException
read
in interface DOMStorable
read
in class AbstractCompositeFigure
java.io.IOException
public boolean isEmpty()
SVGFigure
isEmpty
in interface SVGFigure
public java.lang.String toString()
toString
in class AbstractFigure
public SVGGroupFigure clone()
Figure
clone
in interface Figure
clone
in class AbstractCompositeFigure
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |