OverviewSingleDeprecated

jsx3.vector

class RectangleGroup

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

class RectangleGroup
extends jsx3.vector.Shape
A more efficient way of painting many vector rectangles of the same fill and stroke.

Constructor Summary
void
init(left : int, top : int, width : int, height : int)
The instance initializer.
Method Summary
void
addRectangle(x1 : int, y1 : int, x2 : int, y2 : int)
add a rectangle to this group
void
addRelativeRectangle(x1 : int, y1 : int, w : int, h : int)
add a rectangle to this group
void
clear all rectangles 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

addRectangle

void addRectangle(x1 : int, y1 : int, x2 : int, y2 : int)
add a rectangle to this group

Parameters:

x1the x-coordinate of the left edge of the rectangle
y1the y-coordinate of the top edge of the rectangle
x2the x-coordinate of the right edge of the rectangle
y2the y-coordinate of the bottom edge of the rectangle

addRelativeRectangle

void addRelativeRectangle(x1 : int, y1 : int, w : int, h : int)
add a rectangle to this group

Parameters:

x1the x-coordinate of the left edge of the rectangle
y1the y-coordinate of the top edge of the rectangle
wthe width of the rectangle
hthe height of the rectangle

clearRectangles

void clearRectangles()
clear all rectangles out of the group