OverviewSingleDeprecated

jsx3.vector

class Rectangle

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

class Rectangle
extends jsx3.vector.Shape
Paints a vector rectangle.

Constructor Summary
void
init(left : int, top : int, width : int, height : int)
The instance initializer.
Method Summary
void
clipTo(l1 : int, t1 : int, w1 : int, h1 : int)
Clips this rectangle to the bounds of {l1, t1, w1, h1}.
void
Clips this rectangle to the bounds of obj.
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

clipTo

void clipTo(l1 : int, t1 : int, w1 : int, h1 : int)
Clips this rectangle to the bounds of {l1, t1, w1, h1}.

Parameters:

l1
t1
w1
h1

clipToBox

void clipToBox(obj : jsx3.gui.Block | jsx3.html.BlockTag)
Clips this rectangle to the bounds of obj.

Parameters:

objany object that has getLeft(), etc methods.