OverviewSingleDeprecated

jsx3.vector

class LineGroup

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

class LineGroup
extends jsx3.vector.Shape
A more efficient way of painting many vector lines of the same color and thickness.

Constructor Summary
void
init(left : int, top : int, width : int, height : int)
The instance initializer.
Method Summary
void
addLine(x1 : int, y1 : int, x2 : int, y2 : int)
add a line to the group
void
addRelativeLine(x1 : int, y1 : int, dx : int, dy : int)
add a line to the group
void
clear all lines out of the group
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, width : int, height : 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
widthwidth (in pixels) of the object
heightheight (in pixels) of the object
Method Detail

addLine

void addLine(x1 : int, y1 : int, x2 : int, y2 : int)
add a line to the group

Parameters:

x1the x-coordinate of the start point of the line
y1the y-coordinate of the start point of the line
x2the x-coordinate of the end point of the line
y2the y-coordinate of the end point of the line

addRelativeLine

void addRelativeLine(x1 : int, y1 : int, dx : int, dy : int)
add a line to the group

Parameters:

x1the x-coordinate of the start point of the line
y1the y-coordinate of the start point of the line
dxthe horizontal change from the start to the end point of the line
dythe vertical change from the start to the end point of the line

clearLines

void clearLines()
clear all lines out of the group