|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--draw2d.Figure
Defined in Figure.js
Version: 0.8.7
Author: Andreas Herz
| Constructor Summary | |
draw2d.Figure
()
|
|
| Method Summary | |
void
|
attachMoveListener( <draw2d.Figure> figure)
|
void
|
detachMoveListener( <draw2d.Figure> figure)
|
int
|
getAbsoluteX()
|
int
|
getAbsoluteY()
|
draw2d.Dimension
|
getBounds()
|
boolean
|
getCanSnapToHelper()
Returns true if the figure cna snap to any helper like a grid, guide, geometrie or something else. |
draw2d.Menu
|
getContextMenu()
|
int
|
getHeight()
|
String
|
getId()
Return the document unique id of this element. |
int
|
getMinHeight()
This value is relevant for the interactive resize of the figure. |
int
|
getMinWidth()
This value is relevant for the interactive resize of the figure. |
draw2d.CompartmentFigure
|
getParent()
Get the parent of this figure. |
draw2d.Point
|
getPosition()
Returns the position of the figure. |
Map
|
getProperties()
A figure can store user defined attributes. |
String
|
getProperty( key)
A figure can store user defined attributes. |
draw2d.Point
|
getSnapToGridAnchor()
|
int
|
getWidth()
|
Workflow
|
getWorkflow()
|
int
|
getX()
|
int
|
getY()
|
int
|
getZOrder()
|
boolean
|
hasFixedPosition()
Return true if the origin of the Object is the window and not the document. |
boolean
|
isDeleteable()
Return false if you avoid that the user can delete your figure. |
Object
|
isOver( iX , iY)
|
boolean
|
isResizeable()
Returns the true if the figure can be resized. |
boolean
|
isSelectable()
|
boolean
|
isStrechable()
Return true if the object doesn't care about the aspect ratio. |
void
|
onDoubleClick()
Callback method for the double click event of user interaction. |
boolean
|
onDragstart( x, y)
Will be called if the drag and drop action beginns. |
void
|
onKeyDown( <int> keyCode, ctrl)
This method will be called from the framework if the objects is selected and the user press any key. |
void
|
onMouseEnter()
Callback method for the mouse enter event. |
void
|
onMouseLeave()
Callback method for the mouse leave event. |
void
|
setAlpha( <float> percent)
Set the alpha blending of this figure. |
void
|
setBorder( <draw2d.Border> border)
|
void
|
setCanDrag(<boolean> flag)
Switch on/off the drag drop behaviour of this object |
void
|
setCanSnapToHelper(<boolean> flag)
Set the flag if this object can snap to grid or geometry. |
void
|
setDeleteable(<boolean> flag)
Return false if you avoid that the user can delete your figure. |
void
|
setDimension( <int> w, <int> h)
Set the new width and height of the figure. |
void
|
setPosition( <int> xPos , <int> yPos )
Set the position of the object. |
void
|
setProperty( <String> key, <String> value)
A figure can store any type of information. |
void
|
setResizeable( <boolean> flag)
You can change the resizeable behaviour of this object. |
void
|
setSelectable( <boolean> flag)
You can change the selectable behaviour of this object. |
draw2d.Point
|
setSnapToGridAnchor( point)
|
void
|
setZOrder( <int> index)
|
<static> void
|
setZOrderBaseIndex( <int> index)
Set the common z-index of the window element. |
| Constructor Detail |
draw2d.Figure()
| Method Detail |
void attachMoveListener( <draw2d.Figure> figure)
figure - The figure to monitor
void detachMoveListener( <draw2d.Figure> figure)
figure - The figure to remove the monitor
int getAbsoluteX()
int getAbsoluteY()
draw2d.Dimension getBounds()
boolean getCanSnapToHelper()
draw2d.Menu getContextMenu()
int getHeight()
String getId()
int getMinHeight()
int getMinWidth()
draw2d.CompartmentFigure getParent()
draw2d.Point getPosition()
Map getProperties()
String getProperty( key)
draw2d.Point getSnapToGridAnchor()
int getWidth()
Workflow getWorkflow()
int getX()
int getY()
int getZOrder()
boolean hasFixedPosition()
boolean isDeleteable()
Object isOver( iX , iY)
boolean isResizeable()
boolean isSelectable()
boolean isStrechable()
void onDoubleClick()
boolean onDragstart( x, y)
void onKeyDown( <int> keyCode, ctrl)
keyCode - The code of the pressed key
void onMouseEnter()
void onMouseLeave()
void setAlpha( <float> percent)
percent - Value between 0-1.
void setBorder( <draw2d.Border> border)
border - Set the border for this figure
void setCanDrag(<boolean> flag)
flag - The new drag drop indicator
void setCanSnapToHelper(<boolean> flag)
flag - The snap to grid/geometry enable flag.
void setDeleteable(<boolean> flag)
flag - Enable or disable flag for the delete operation
void setDimension( <int> w, <int> h)
w - The new width of the figure
h - The new height of the figure
void setPosition( <int> xPos , <int> yPos )
xPos - The new x coordinate of the figure
yPos - The new y coordinate of the figure
void setProperty( <String> key, <String> value)
key - The key of the property.
value - The value of the property.
void setResizeable( <boolean> flag)
flag - The resizeable flag.
void setSelectable( <boolean> flag)
flag - The selectable flag.
draw2d.Point setSnapToGridAnchor( point)
void setZOrder( <int> index)
index - Set the new z-index of the element
<static> void setZOrderBaseIndex( <int> index)
index - The z-order for all new figure objects.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||