OverviewSingleDeprecated

jsx3.vector

class Line

Object
->jsx3.lang.Object
  ->jsx3.html.Tag
    ->jsx3.html.BlockTag
      ->jsx3.vector.Tag
        ->jsx3.vector.Shape
          ->jsx3.vector.Line

class Line
extends jsx3.vector.Shape
Paints a vector line defined by two end points.

Constructor Summary
void
init(left : int, top : int, x1 : int, y1 : int, x2 : int, y2 : int)
The instance initializer.
Method Summary
int
Returns the x1 field.
int
Returns the x2 field.
int
Returns the y1 field.
int
Returns the y2 field.
void
setPoints(x1 : int, y1 : int, x2 : int, y2 : int)
Sets all the coordinates at once.
void
setX1(x1 : int)
Sets the x1 field.
void
setX2(x2 : int)
Sets the x2 field.
void
setY1(y1 : int)
Sets the y1 field.
void
setY2(y2 : int)
Sets the y2 field.
Methods Inherited From jsx3.vector.Shape
getFill, getPath, getStroke, pathArcTo, pathClose, pathLineTo, pathMoveTo, setFill, setPath, setStroke
Methods Inherited From jsx3.vector.Tag
getRotation, getToolTip, setRotation, setToolTip
Methods Inherited From jsx3.html.BlockTag
getBackgroundColor, getDimensions, getHeight, getLeft, getMargin, getMarginDimensions, getPadding, getPaddingDimensions, getPosition, getTop, getWidth, getZIndex, setBackgroundColor, setDimensions, setHeight, setLeft, setMargin, setPadding, setPosition, setTop, setWidth, setZIndex
Methods Inherited From jsx3.html.Tag
appendChild, getChildren, getClassName, getFirstChildOfType, getId, getParent, getProperty, getStyle, getTagNS, getTagName, onAppendChild, onRemoveChild, paint, paintDom, paintUpdate, release, removeChild, removeChildren, removeProperty, removeStyle, replaceChild, setClassName, setExtraStyles, setId, setProperty, setStyle, toString
Methods Inherited From jsx3.lang.Object
clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf
Constructor Detail

init

void init(left : int, top : int, x1 : int, y1 : int, x2 : int, y2 : int)
The instance initializer.

Parameters:

leftleft position (in pixels) of the object relative to its parent container
toptop position (in pixels) of the object relative to its parent container
x1the x coordinate of the starting point
y1the y coordinate of the starting point
x2the x coordinate of the ending point
y2the y coordinate of the ending point
Method Detail

getX1

int getX1()
Returns the x1 field.

Returns:

x1  

getX2

int getX2()
Returns the x2 field.

Returns:

x2  

getY1

int getY1()
Returns the y1 field.

Returns:

y1  

getY2

int getY2()
Returns the y2 field.

Returns:

y2  

setPoints

void setPoints(x1 : int, y1 : int, x2 : int, y2 : int)
Sets all the coordinates at once.

Parameters:

x1the x coordinate of the starting point
y1the y coordinate of the starting point
x2the x coordinate of the ending point
y2the y coordinate of the ending point

setX1

void setX1(x1 : int)
Sets the x1 field.

Parameters:

x1the new value for x1

setX2

void setX2(x2 : int)
Sets the x2 field.

Parameters:

x2the new value for x2

setY1

void setY1(y1 : int)
Sets the y1 field.

Parameters:

y1the new value for y1

setY2

void setY2(y2 : int)
Sets the y2 field.

Parameters:

y2the new value for y2