JHotDraw 7.0.6

org.jhotdraw.samples.svg.figures
Class SVGRect

java.lang.Object
  extended by org.jhotdraw.draw.AbstractFigure
      extended by org.jhotdraw.draw.AttributedFigure
          extended by org.jhotdraw.draw.RoundRectangleFigure
              extended by org.jhotdraw.samples.svg.figures.SVGRect
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Figure, SVGFigure, DOMStorable

public class SVGRect
extends RoundRectangleFigure
implements SVGFigure

SVGRect.

FIXME - Add support for transforms.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jhotdraw.draw.AbstractFigure
changingDepth, decorator, listenerList
 
Constructor Summary
SVGRect()
          Creates a new instance.
 
Method Summary
 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)
           
 void write(DOMOutput out)
           
protected  void writeAttributes(DOMOutput out)
           
 
Methods inherited from class org.jhotdraw.draw.RoundRectangleFigure
basicSetBounds, basicTransform, chop, clone, contains, createHandles, drawFill, drawStroke, findCompatibleConnector, findConnector, getArcHeight, getArcWidth, getBounds, getFigureDrawBounds, getRestoreData, restoreTo, setArc
 
Methods inherited from class org.jhotdraw.draw.AttributedFigure
applyAttributesTo, basicSetAttribute, drawConnectors, drawFigure, drawText, getAttribute, getAttributeKey, getAttributes, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, removeAttribute, setAttribute, setAttributeEnabled, setAttributes
 
Methods inherited from class org.jhotdraw.draw.AbstractFigure
addFigureListener, addNotify, addUndoableEditListener, basicClone, canConnect, changed, draw, drawDecorator, findFigureInside, fireAreaInvalidated, fireAreaInvalidated, fireAttributeChanged, fireFigureAdded, fireFigureChanged, fireFigureChanged, fireFigureChanged, fireFigureRemoved, fireFigureRequestRemove, fireUndoableEditHappened, getActions, getChangingDepth, getCourtingConnection, getCursor, getDecomposition, getDecorator, getDrawBounds, getDrawing, getEndPoint, getFontRenderContext, getLayer, getLock, getPreferredSize, getStartPoint, getTool, getTooltip, handleDrop, handleMouseClick, includes, invalidate, isChanging, isConnectorsVisible, isDrawDecoratorFirst, isInteractive, isVisible, remap, remap, removeFigureListener, removeNotify, removeUndoableEditListener, requestRemove, setBounds, setBounds, setConnectorsVisible, setDecorator, setDrawDecoratorFirst, setInteractive, setVisible, toString, transform, updateDecoratorBounds, validate, willChange
 
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, addUndoableEditListener, basicSetAttribute, basicSetBounds, basicTransform, canConnect, changed, clone, contains, createHandles, draw, findCompatibleConnector, findConnector, findFigureInside, getActions, getAttribute, getAttributes, getBounds, getCursor, getDecomposition, getDecorator, getDrawBounds, getEndPoint, getLayer, getPreferredSize, getRestoreData, getStartPoint, getTool, getTooltip, handleDrop, handleMouseClick, includes, invalidate, isConnectorsVisible, isInteractive, isVisible, remap, removeFigureListener, removeNotify, removeUndoableEditListener, requestRemove, restoreTo, setAttribute, setConnectorsVisible, setDecorator, setVisible, willChange
 

Constructor Detail

SVGRect

public SVGRect()
Creates a new instance.

Method Detail

read

public void read(DOMInput in)
          throws java.io.IOException
Specified by:
read in interface DOMStorable
Overrides:
read in class RoundRectangleFigure
Throws:
java.io.IOException

readAttributes

protected void readAttributes(DOMInput in)
                       throws java.io.IOException
Overrides:
readAttributes in class AttributedFigure
Throws:
java.io.IOException

write

public void write(DOMOutput out)
           throws java.io.IOException
Specified by:
write in interface DOMStorable
Overrides:
write in class RoundRectangleFigure
Throws:
java.io.IOException

writeAttributes

protected void writeAttributes(DOMOutput out)
                        throws java.io.IOException
Overrides:
writeAttributes in class AttributedFigure
Throws:
java.io.IOException

isEmpty

public boolean isEmpty()
Description copied from interface: SVGFigure
Returns true, if this figure is empty for one of the following reasons:

Specified by:
isEmpty in interface SVGFigure

Copyright 1996-2006 © JHotDraw.org