Class draw2d.Line

Object
   |
   +--draw2d.Line
Direct Known Subclasses:
draw2d.Connection

class 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

zOrder

Object zOrder

ZOrderBaseIndex

<static> Object ZOrderBaseIndex

Constructor Detail

draw2d.Line

draw2d.Line()

Method Detail

attachMoveListener

void attachMoveListener( <draw2d.Figure> figure)

containsPoint

boolean containsPoint( <int> px, <int> py)

detachMoveListener

void detachMoveListener( <draw2d.Figure> figure)

getAngle

float getAngle()

getColor

draw2d.Color The paint color of the line. getColor()

getContextMenu

draw2d.Menu getContextMenu()

getEndPoint

draw2d.Point getEndPoint()

getEndX

int getEndX()

getEndY

int getEndY()

getLength

int getLength()

getStartPoint

draw2d.Point getStartPoint()

getStartX

int getStartX()

getStartY

int getStartY()

getWorkflow

Workflow getWorkflow()

getZOrder

int getZOrder()

isDeleteable

boolean isDeleteable()

isResizeable

boolean isResizeable()

isSelectable

boolean isSelectable()

onDoubleClick

void onDoubleClick()

setAlpha

void setAlpha( <float> percent)

setColor

void setColor( <draw2d.Color> color)

setDeleteable

boolean setDeleteable(flag)

setEndPoint

void setEndPoint(<int> x, <int> y)

setLineWidth

void setLineWidth( <int> w)

setSelectable

void setSelectable( <boolean> flag)

setStartPoint

void setStartPoint( <int> x, <int> y)

setZOrder

void setZOrder( <int> index)

setZOrderBaseIndex

<static> void setZOrderBaseIndex( <int> index)


Documentation generated by JSDoc on Thu Feb 7 23:45:47 2008