|
JHotDraw 7.0.6 | |||||||||
| 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.AbstractAttributedCompositeFigure
org.jhotdraw.samples.svg.figures.SVGPath
public class SVGPath
SVGPath is a composite Figure which contains one or more BezierFigures as its children.
XXX - Roll in the read() method of SVGLine.
| Field Summary |
|---|
| Fields inherited from class org.jhotdraw.draw.AbstractFigure |
|---|
changingDepth, decorator, listenerList |
| Fields inherited from interface org.jhotdraw.draw.CompositeFigure |
|---|
LAYOUT_INSETS |
| Constructor Summary | |
|---|---|
SVGPath()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
basicTransform(java.awt.geom.AffineTransform tx)
Transforms the figure. |
java.util.LinkedList<Handle> |
createHandles(int detailLevel)
Creates handles used to manipulate the figure. |
void |
drawFigure(java.awt.Graphics2D g)
|
void |
drawFill(java.awt.Graphics2D g)
This method is called by method draw() to draw the fill area of the figure. |
void |
drawStroke(java.awt.Graphics2D g)
This method is called by method draw() to draw the text of the figure . |
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 |
invalidate()
Informs that a figure needs to be redrawn. |
protected void |
invalidatePath()
|
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)
|
protected void |
readAttributes(DOMInput in)
|
protected void |
readPoints(DOMInput in)
|
protected void |
validate()
|
protected void |
validatePath()
|
void |
write(DOMOutput out)
|
protected void |
writeAttributes(DOMOutput out)
|
protected void |
writePoints(DOMOutput out)
|
| Methods inherited from class org.jhotdraw.draw.AbstractAttributedCompositeFigure |
|---|
applyAttributesTo, basicSetAttribute, basicSetAttributeOnChildren, clone, drawChildren, drawConnectors, drawText, getAttribute, getAttributeKey, getAttributes, getFigureDrawBounds, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, removeAttribute, setAttribute, setAttributeEnabled, setAttributes |
| Methods inherited from class org.jhotdraw.draw.AbstractCompositeFigure |
|---|
add, add, addAll, addNotify, basicAdd, basicAdd, basicAddAll, basicRemove, basicRemoveAllChildren, basicRemoveChild, basicSetBounds, changed, contains, findChild, findChildIndex, findFigureInside, getBounds, getChild, getChildCount, getChildren, getChildrenFrontToBack, getDecomposition, getLayouter, getPreferredSize, getRestoreData, invalidateBounds, layout, remove, removeAllChildren, removeChild, removeNotify, restoreTo, sendToBack, sendToFront, setLayouter, undoableEditHappened, willChange |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SVGPath()
| Method Detail |
|---|
public void drawFigure(java.awt.Graphics2D g)
drawFigure in class AbstractAttributedCompositeFigurepublic void drawFill(java.awt.Graphics2D g)
AbstractAttributedCompositeFigure
drawFill in class AbstractAttributedCompositeFigurepublic void drawStroke(java.awt.Graphics2D g)
AbstractAttributedCompositeFigure
drawStroke in class AbstractAttributedCompositeFigurepublic void invalidate()
AbstractFigure
invalidate in interface Figureinvalidate in class AbstractCompositeFigureprotected void validate()
validate in class AbstractCompositeFigureprotected void validatePath()
protected void invalidatePath()
public void write(DOMOutput out)
throws java.io.IOException
write in interface DOMStorablewrite in class AbstractAttributedCompositeFigurejava.io.IOExceptionprotected void writePoints(DOMOutput out)
protected void writeAttributes(DOMOutput out)
throws java.io.IOException
writeAttributes in class AbstractAttributedCompositeFigurejava.io.IOException
public void read(DOMInput in)
throws java.io.IOException
read in interface DOMStorableread in class AbstractAttributedCompositeFigurejava.io.IOException
protected void readPoints(DOMInput in)
throws java.io.IOException
java.io.IOException
protected void readAttributes(DOMInput in)
throws java.io.IOException
readAttributes in class AbstractAttributedCompositeFigurejava.io.IOExceptionpublic void basicTransform(java.awt.geom.AffineTransform tx)
AbstractCompositeFigure
basicTransform in interface FigurebasicTransform in class AbstractCompositeFiguretx - The transformation.public boolean isEmpty()
SVGFigure
isEmpty in interface SVGFigurepublic java.util.LinkedList<Handle> createHandles(int detailLevel)
Figure
createHandles in interface FigurecreateHandles in class AbstractCompositeFiguredetailLevel - The detail level of the handles. Usually this is 0 for
bounding box handles and 1 for point handles.
Handlepublic java.util.Collection<javax.swing.Action> getActions(java.awt.geom.Point2D.Double p)
AbstractFigureThe collection may contain null entries. These entries are used interpreted as separators in the popup menu.
getActions in interface FiguregetActions in class AbstractFigure
|
Copyright 1996-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||