|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--draw2d.Line
Defined in Line.js
Version: 0.9.14
Author: Andreas Herz
| Field Summary | |
Object |
zOrder
|
<static> Object |
ZOrderBaseIndex
|
| Constructor Summary | |
draw2d.Line
()
|
|
| Method Summary | |
void
|
attachMoveListener( <draw2d.Figure> figure)
|
boolean
|
containsPoint( <int> px, <int> py)
Checks if the hands over coordinate on the line. |
void
|
detachMoveListener( <draw2d.Figure> figure)
|
float
|
getAngle()
Returns the angle of the line in degree |
draw2d.Color The paint color of the line.
|
getColor()
Return the current paint color. |
draw2d.Menu
|
getContextMenu()
|
draw2d.Point
|
getEndPoint()
|
int
|
getEndX()
|
int
|
getEndY()
|
int
|
getLength()
Returns the length of the line. |
draw2d.Point
|
getStartPoint()
|
int
|
getStartX()
|
int
|
getStartY()
|
Workflow
|
getWorkflow()
|
int
|
getZOrder()
|
boolean
|
isDeleteable()
Return false if you avoid that the user can delete your figure. |
boolean
|
isResizeable()
You can't drag&drop the resize handles if the line not resizeable. |
boolean
|
isSelectable()
Return true if the user can select the line. |
void
|
onDoubleClick()
Callback method for the double click event of user interaction. |
void
|
setAlpha( <float> percent)
Set the alpha blending of this figure. |
void
|
setColor( <draw2d.Color> color)
Set the color of the line. |
boolean
|
setDeleteable(flag)
Return false if you avoid that the user can delete your figure. |
void
|
setEndPoint(<int> x, <int> y)
Set the end point of the line. |
void
|
setLineWidth( <int> w)
Set the line width. |
void
|
setSelectable( <boolean> flag)
You can change the selectable behaviour of this object. |
void
|
setStartPoint( <int> x, <int> y)
Set the start point of the line. |
void
|
setZOrder( <int> index)
|
<static> void
|
setZOrderBaseIndex( <int> index)
Set the common z-index of the window element. |
| Field Detail |
Object zOrder
<static> Object ZOrderBaseIndex
| Constructor Detail |
draw2d.Line()
| Method Detail |
void attachMoveListener( <draw2d.Figure> figure)
figure - The figure to monitor any movements
boolean containsPoint( <int> px, <int> py)
px - the x coordinate of the test point
py - the y coordinate of the test point
void detachMoveListener( <draw2d.Figure> figure)
figure - The figure to to remove the movement monitor
float getAngle()
270°
|
|
|
|
180° -------------------------+------------------------> +X
| 0°
|
|
|
V +Y
90°
draw2d.Color The paint color of the line. getColor()
draw2d.Menu getContextMenu()
draw2d.Point getEndPoint()
int getEndX()
int getEndY()
int getLength()
draw2d.Point getStartPoint()
int getStartX()
int getStartY()
Workflow getWorkflow()
int getZOrder()
boolean isDeleteable()
boolean isResizeable()
boolean isSelectable()
void onDoubleClick()
void setAlpha( <float> percent)
percent - Value between 0-1.
void setColor( <draw2d.Color> color)
color - The new color of the line.
boolean setDeleteable(flag)
void setEndPoint(<int> x, <int> y)
x - the x coordinate of the end point
y - the y coordinate of the end point
void setLineWidth( <int> w)
w - The new line width of the figure.
void setSelectable( <boolean> flag)
flag - The selectable flag.
void setStartPoint( <int> x, <int> y)
x - the x coordinate of the start point
y - the y coordinate of the start 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 line objects.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||