CH.ifa.draw.figures
Class RoundRectangleFigure
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractFigure
-
- CH.ifa.draw.figures.AttributeFigure
-
- CH.ifa.draw.figures.RoundRectangleFigure
-
public class RoundRectangleFigure extends AttributeFigure
A round rectangle figure.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
-
-
Constructor Summary
Constructors Constructor and Description RoundRectangleFigure()RoundRectangleFigure(java.awt.Point origin, java.awt.Point corner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidbasicDisplayBox(java.awt.Point origin, java.awt.Point corner)Sets the display box of a figure.java.awt.InsetsconnectionInsets()Returns the connection inset.ConnectorconnectorAt(int x, int y)Returns the Figures connector for the specified location.java.awt.RectangledisplayBox()Gets the display box of a figure.voiddrawBackground(java.awt.Graphics g)Draws the background of the figure.voiddrawFrame(java.awt.Graphics g)Draws the frame of the figure.java.awt.PointgetArc()Gets the arc's width and height.java.util.Vectorhandles()Returns the handles of a Figure that can be used to manipulate some of its attributes.voidread(StorableInput dr)Reads the Figure from a StorableInput.voidsetArc(int width, int height)Sets the arc's witdh and height.voidwrite(StorableOutput dw)Stores the Figure to a StorableOutput.-
Methods inherited from class CH.ifa.draw.figures.AttributeFigure
draw, getAttribute, getDefaultAttribute, getFillColor, getFrameColor, setAttribute
-
Methods inherited from class CH.ifa.draw.standard.AbstractFigure
addFigureChangeListener, addToContainer, canConnect, center, changed, clone, connectedTextLocator, connectorVisibility, containsPoint, decompose, displayBox, displayBox, figures, findFigureInside, includes, invalidate, isEmpty, listener, moveBy, release, removeFigureChangeListener, removeFromContainer, size, willChange
-
-
-
-
Constructor Detail
-
RoundRectangleFigure
public RoundRectangleFigure()
-
RoundRectangleFigure
public RoundRectangleFigure(java.awt.Point origin, java.awt.Point corner)
-
-
Method Detail
-
basicDisplayBox
public void basicDisplayBox(java.awt.Point origin, java.awt.Point corner)Description copied from class:AbstractFigureSets the display box of a figure. This is the method that subclassers override. Clients usually call displayBox.- Specified by:
basicDisplayBoxin interfaceFigure- Specified by:
basicDisplayBoxin classAbstractFigure- Parameters:
origin- the new origincorner- the new corner- See Also:
AbstractFigure.displayBox(java.awt.Point, java.awt.Point)
-
setArc
public void setArc(int width, int height)Sets the arc's witdh and height.
-
getArc
public java.awt.Point getArc()
Gets the arc's width and height.
-
handles
public java.util.Vector handles()
Description copied from class:AbstractFigureReturns the handles of a Figure that can be used to manipulate some of its attributes.- Specified by:
handlesin interfaceFigure- Specified by:
handlesin classAbstractFigure- Returns:
- a Vector of handles
- See Also:
Handle
-
displayBox
public java.awt.Rectangle displayBox()
Description copied from class:AbstractFigureGets the display box of a figure.- Specified by:
displayBoxin interfaceFigure- Specified by:
displayBoxin classAbstractFigure- See Also:
Figure.basicDisplayBox(java.awt.Point, java.awt.Point)
-
drawBackground
public void drawBackground(java.awt.Graphics g)
Description copied from class:AttributeFigureDraws the background of the figure.- See Also:
AttributeFigure.draw(java.awt.Graphics)
-
drawFrame
public void drawFrame(java.awt.Graphics g)
Description copied from class:AttributeFigureDraws the frame of the figure.- See Also:
AttributeFigure.draw(java.awt.Graphics)
-
connectionInsets
public java.awt.Insets connectionInsets()
Description copied from class:AbstractFigureReturns the connection inset. The connection inset defines the area where the display box of a figure can't be connected. By default the entire display box can be connected.- Specified by:
connectionInsetsin interfaceFigure- Overrides:
connectionInsetsin classAbstractFigure
-
connectorAt
public Connector connectorAt(int x, int y)
Description copied from class:AbstractFigureReturns the Figures connector for the specified location. By default a ChopBoxConnector is returned.- Specified by:
connectorAtin interfaceFigure- Overrides:
connectorAtin classAbstractFigure- See Also:
ChopBoxConnector
-
write
public void write(StorableOutput dw)
Description copied from class:AttributeFigureStores the Figure to a StorableOutput.- Specified by:
writein interfaceStorable- Overrides:
writein classAttributeFigure
-
read
public void read(StorableInput dr) throws java.io.IOException
Description copied from class:AttributeFigureReads the Figure from a StorableInput.- Specified by:
readin interfaceStorable- Overrides:
readin classAttributeFigure- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG