org.arakhne.neteditor.fig.figure.node
N - is the type of the model node supported by this figure.A - is the type of the model anchor supported by this figure.public class SquareNodeFigure<N extends Node<?,? super N,? super A,?>,A extends Anchor<?,? super N,? super A,?>> extends RectangleNodeFigure<N,A>
| Modifier and Type | Class and Description |
|---|---|
protected class |
SquareNodeFigure.SPainter |
DEFAULT_ACTIVE_COLOR, DEFAULT_BACKGROUND_SELECTION_COLOR, DEFAULT_DAMAGING_EXTENTS, DEFAULT_DRAW_SHADOW, DEFAULT_FILL_COLOR, DEFAULT_FOREGROUND_SELECTION_COLOR, DEFAULT_LINE_COLOR, DEFAULT_LOCKING_FILL_COLOR, DEFAULT_LOCKING_OUTLINE_COLOR, DEFAULT_MAXIMAL_SIZE, DEFAULT_MINIMAL_SIZE, DEFAULT_MINIMAL_SUBFIGURE_SIZE, DEFAULT_SHADOW_PROJECTION_DISTANCE_X, DEFAULT_SHADOW_PROJECTION_DISTANCE_Y, FLATTENING_PRECISIONPROPERTY_ANCHORDESCRIPTION, PROPERTY_ANCHORX, PROPERTY_ANCHORY, PROPERTY_ANGLE, PROPERTY_ARCSIZE, PROPERTY_CLOSED, PROPERTY_CONTROLPOINTS, PROPERTY_DRAWINGMETHOD, PROPERTY_DX, PROPERTY_DY, PROPERTY_ENDSYMBOL, PROPERTY_FILENAME, PROPERTY_FILLED, PROPERTY_FILLINGCOLOR, PROPERTY_FRAMED, PROPERTY_HEIGHT, PROPERTY_ICON, PROPERTY_IMAGE, PROPERTY_INVERT, PROPERTY_ISAUTOLOCKASSOCIATEDFIGURES, PROPERTY_ISLOCKED, PROPERTY_ISSELECTABLE, PROPERTY_LENGTH, PROPERTY_LINECOLOR, PROPERTY_LOCKINGFILLINGCOLOR, PROPERTY_LOCKINGOUTLINECOLOR, PROPERTY_MAXHEIGHT, PROPERTY_MAXWIDTH, PROPERTY_MINHEIGHT, PROPERTY_MINWIDTH, PROPERTY_MODELOBJECT, PROPERTY_PDFFILE, PROPERTY_PDFPAGE, PROPERTY_RADIUS, PROPERTY_RESIZEDIRECTIONS, PROPERTY_STARTSYMBOL, PROPERTY_TEXT, PROPERTY_TYPE, PROPERTY_VIEWUUID, PROPERTY_WIDTH, PROPERTY_X, PROPERTY_YPROPERTY_ANCHORLOCATION, PROPERTY_LOCATION, PROPERTY_NAME, PROPERTY_UUID| Constructor and Description |
|---|
SquareNodeFigure(UUID viewUUID,
float x,
float y)
Construct a new figure.
|
SquareNodeFigure(UUID viewUUID,
float x,
float y,
float size)
Construct a new figure.
|
| Modifier and Type | Method and Description |
|---|---|
protected NodeShadowPainter |
createShadowPainter()
Invoked by
AbstractFigure.getShadowPainter() when
an instance of shadow painter must be create. |
void |
setBounds(float x,
float y,
float width,
float height)
Change the position and the dimension of this Fig.
|
void |
setHeight(float height)
Set the height of this Fig.
|
void |
setMaximalDimension(float width,
float height)
Set the maximal dimension of the figure.
|
void |
setMinimalDimension(float width,
float height)
Set the minimal dimension of the figure .
|
void |
setWidth(float width)
Set the width of this Fig.
|
fitToContent, paintNodecontains, getAnchorFigures, getAnchorOn, getEdgeFigures, getEdges, getPreferredBoundsForAnchor, getShadowPainter, getSubFigures, onBoundsUpdated, onPositionUpdated, onSizeUpdated, paint, paintAnchors, updateAssociatedGeometry, updateFromModeladdViewComponentBindingListener, addViewComponentModelChangeListener, createFigureFor, fireModelChange, getModelObject, removeViewComponentBindingListener, removeViewComponentModelChangeListener, setModelObject, setName, setViewUUID, toString, unbindFigureavoidCollision, getFillColor, getLineColor, getLockFillColor, getLockOutlineColor, getProperties, getResizeDirections, getUIEditableProperties, isAssociatedFiguresAutoLocked, isLockable, isLocked, isMovable, isResizable, isSelectable, releaseShadowPainter, setAssociatedFiguresAutoLocked, setFillColor, setLineColor, setLocked, setLockFillColor, setLockOutlineColor, setProperties, setResizeAllDirections, setResizeDirections, setSelectableaddAssociatedFigureIntoView, addListener, addViewComponentChangeListener, addViewComponentPropertyChangeListener, addViewComponentRepaintListener, cleanUp, compareTo, computeBounds, contains, firePropertyChange, getAssociatedFigureInView, getAssociatedFiguresInView, getBackgroundColor, getBackgroundSelectionColor, getBounds, getClip, getForegroundSelectionColor, getHeight, getIcon, getListeners, getLocation, getMaximalDimension, getMaximalHeight, getMaximalWidth, getMetamodelSpecification, getMinimalDimension, getMinimalHeight, getMinimalWidth, getName, getShadowColor, getSize, getUUID, getViewUUID, getWidth, getX, getY, intersects, propGetColor, propGetImage, removeAssociatedFigureFromView, removeListener, removeViewComponentChangeListener, removeViewComponentPropertyChangeListener, removeViewComponentRepaintListener, repaint, setBounds, setIcon, setLocation, setMaximalDimension, setMaximalHeight, setMaximalWidth, setMinimalDimension, setMinimalHeight, setMinimalWidth, setSize, setUUID, setViewComponentContainer, translatepropGet, propGetBoolean, propGetByte, propGetDouble, propGetFloat, propGetInt, propGetLong, propGetString, propGetURLclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLockFillColor, getLockOutlineColor, getResizeDirections, getUIEditableProperties, isAssociatedFiguresAutoLocked, isLockable, isLocked, isMovable, isResizable, setAssociatedFiguresAutoLocked, setFillColor, setLineColor, setLocked, setLockFillColor, setLockOutlineColor, setResizeAllDirections, setResizeDirectionsaddAssociatedFigureIntoView, addViewComponentChangeListener, addViewComponentPropertyChangeListener, addViewComponentRepaintListener, cleanUp, contains, getAssociatedFigureInView, getAssociatedFiguresInView, getBackgroundColor, getBackgroundSelectionColor, getBounds, getClip, getFillColor, getForegroundSelectionColor, getHeight, getIcon, getLineColor, getLocation, getMaximalDimension, getMaximalHeight, getMaximalWidth, getMetamodelSpecification, getMinimalDimension, getMinimalHeight, getMinimalWidth, getName, getShadowColor, getSize, getUUID, getViewUUID, getWidth, getX, getY, intersects, removeAssociatedFigureFromView, removeViewComponentChangeListener, removeViewComponentPropertyChangeListener, removeViewComponentRepaintListener, repaint, setBounds, setIcon, setLocation, setMaximalDimension, setMaximalHeight, setMaximalWidth, setMinimalDimension, setMinimalHeight, setMinimalWidth, setName, setSize, setUUID, setViewComponentContainer, setViewUUID, translatecompareTogetProperties, setPropertiesisSelectable, setSelectablegetNamepublic SquareNodeFigure(UUID viewUUID, float x, float y)
viewUUID - is the UUID of the view that is enclosing this figure.x - horizontal postition of the upper-left corner of this FigNode.y - vertical postition of the upper-left corner of this FigNode.public SquareNodeFigure(UUID viewUUID, float x, float y, float size)
The specified width and height are set inconditionally.
The minimal width becomes the min between the specified size and
the ViewComponentConstants.DEFAULT_MINIMAL_SIZE.
The minimal height becomes the min between the specified size and
the ViewComponentConstants.DEFAULT_MINIMAL_SIZE.
The maximal width becomes the max between the specified size and
the ViewComponentConstants.DEFAULT_MAXIMAL_SIZE.
The maximal height becomes the max between the specified size and
the ViewComponentConstants.DEFAULT_MAXIMAL_SIZE.
viewUUID - is the UUID of the view that is enclosing this figure.x - horizontal postition of the upper-left corner of this FigNode.y - vertical postition of the upper-left corner of this FigNode.size - is the size of the borders of the figure.protected NodeShadowPainter createShadowPainter()
AbstractFigure.getShadowPainter() when
an instance of shadow painter must be create.createShadowPainter in class NodeFigure<N extends Node<?,? super N,? super A,?>,A extends Anchor<?,? super N,? super A,?>>public void setMinimalDimension(float width,
float height)
setMinimalDimension in interface ViewComponentsetMinimalDimension in class AbstractViewComponentwidth - is the minimal widthheight - is the minimal heightpublic void setMaximalDimension(float width,
float height)
setMaximalDimension in interface ViewComponentsetMaximalDimension in class AbstractFigurewidth - is the maximal widthheight - is the maximal heightpublic void setWidth(float width)
setWidth in interface ViewComponentsetWidth in class AbstractViewComponentwidth - width.public void setHeight(float height)
setHeight in interface ViewComponentsetHeight in class AbstractViewComponentheight - height.public void setBounds(float x,
float y,
float width,
float height)
setBounds in interface ViewComponentsetBounds in class AbstractViewComponentx - horizontal position of this Fig.y - vertical position of this Fig.width - width of this Fig.height - height of this Fig.Copyright © 2001-2013 NetEditor Developers. 
NetEditor API Documentation by NetEditor Developers is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Based on a work at www.arakhne.org/neteditor