|
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.AttributedFigure
org.jhotdraw.samples.svg.figures.SVGImage
public class SVGImage
SVGImage.
FIXME - Implement me
| Field Summary |
|---|
| Fields inherited from class org.jhotdraw.draw.AbstractFigure |
|---|
changingDepth, decorator, listenerList |
| Constructor Summary | |
|---|---|
SVGImage()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
basicSetBounds(java.awt.geom.Point2D.Double start,
java.awt.geom.Point2D.Double end)
Sets the logical bounds of the figure and of its decorator figure. |
void |
basicTransform(java.awt.geom.AffineTransform ty)
Moves the figure. |
SVGImage |
clone()
Returns a clone of the figure. |
boolean |
contains(java.awt.geom.Point2D.Double p)
Checks if a point is contained by the figure. |
protected void |
drawFill(java.awt.Graphics2D g)
This method is called by method draw() to draw the fill area of the figure. |
protected void |
drawStroke(java.awt.Graphics2D g)
This method is called by method draw() to draw the text of the figure . |
java.awt.geom.Rectangle2D.Double |
getBounds()
Returns the logical bounds of the figure as a Rectangle. |
java.lang.Object |
getRestoreData()
Gets data which can be used to restore the shape of the figure after a basicTransform has been applied to it. |
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 |
restoreTo(java.lang.Object restoreData)
Restores the shape of the figure to a previously stored state. |
| Methods inherited from class org.jhotdraw.draw.AttributedFigure |
|---|
applyAttributesTo, basicSetAttribute, drawConnectors, drawFigure, drawText, getAttribute, getAttributeKey, getAttributes, getFigureDrawBounds, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, read, readAttributes, removeAttribute, setAttribute, setAttributeEnabled, setAttributes, write, writeAttributes |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jhotdraw.xml.DOMStorable |
|---|
read, write |
| Constructor Detail |
|---|
public SVGImage()
| Method Detail |
|---|
protected void drawFill(java.awt.Graphics2D g)
AttributedFigure
drawFill in class AttributedFigureprotected void drawStroke(java.awt.Graphics2D g)
AttributedFigure
drawStroke in class AttributedFigurepublic void basicTransform(java.awt.geom.AffineTransform ty)
AbstractFigureThis is a basic operation for which no events are fired.
basicTransform in interface FigurebasicTransform in class AbstractFigurety - The transformation.
public void basicSetBounds(java.awt.geom.Point2D.Double start,
java.awt.geom.Point2D.Double end)
FigureThis is used by Tool's which create a new Figure and by Tool's which connect a Figure to another Figure.
This is a basic operation which does not fire events.
basicSetBounds in interface Figurestart - the start point of the boundsend - the end point of the boundsFigure.getBounds()public java.awt.geom.Rectangle2D.Double getBounds()
Figure
getBounds in interface Figurepublic java.lang.Object getRestoreData()
Figure
getRestoreData in interface FigureFigure.basicTransform(AffineTransform)public void restoreTo(java.lang.Object restoreData)
Figure
restoreTo in interface Figurepublic boolean contains(java.awt.geom.Point2D.Double p)
FigureThis is used for hit testing by Tool's.
contains in interface Figurepublic SVGImage clone()
Figure
clone in interface Figureclone in class AttributedFigurepublic boolean isEmpty()
SVGFigure
isEmpty in interface SVGFigure
|
Copyright 1996-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||