OverviewSingleDeprecated

jsx3.vector

class Shape

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

Direct Known Subclasses:

jsx3.vector.Line, jsx3.vector.LineGroup, jsx3.vector.Oval, jsx3.vector.Polygon, jsx3.vector.Rectangle, jsx3.vector.RectangleGroup, jsx3.vector.TextLine

class Shape
extends jsx3.vector.Tag
Represents a vector shape element.

The vector shape is the principal vector tag. The path field can contain an EPS-like path the defines a complex vector shape.

Constructor Summary
void
init(strTagName : String, left : int, top : int, width : int, height : int)
The instance initializer.
Method Summary
void
Returns the fill of this shape.
String
Returns the path field.
void
Returns the stroke of this shape.
jsx3.vector.Shape
pathArcTo(cx : int, cy : int, rx : int, ry : int, x1 : int, y1 : int, x2 : int, y2 : int, bCW : boolean)
jsx3.vector.Shape
jsx3.vector.Shape
pathLineTo(x : int, y : int, bRel : boolean)
jsx3.vector.Shape
pathMoveTo(x : int, y : int, bRel : boolean)
void
Sets the fill of this shape, other fills may be present as children of this instance.
void
setPath(path : String)
Sets the path field.
void
Sets the stroke of this shape, other strokes may be present as children of this instance.
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(strTagName : String, left : int, top : int, width : int, height : int)
The instance initializer.

Parameters:

strTagName
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

getFill

void getFill()
Returns the fill of this shape.

getPath

String getPath()
Returns the path field.

Returns:

path  

getStroke

void getStroke()
Returns the stroke of this shape.

pathArcTo

jsx3.vector.Shape pathArcTo(cx : int, cy : int, rx : int, ry : int, x1 : int, y1 : int, x2 : int, y2 : int, bCW : boolean)

Parameters:

cx
cy
rx
ry
x1
y1
x2
y2
bCW

Returns:

this object.  

pathClose

jsx3.vector.Shape pathClose()

Returns:

this object.  

pathLineTo

jsx3.vector.Shape pathLineTo(x : int, y : int, bRel : boolean)

Parameters:

x
y
bRel

Returns:

this object.  

pathMoveTo

jsx3.vector.Shape pathMoveTo(x : int, y : int, bRel : boolean)

Parameters:

x
y
bRel

Returns:

this object.  

setFill

void setFill(fill : jsx3.vector.Fill)
Sets the fill of this shape, other fills may be present as children of this instance.

Parameters:

fillthe fill value.

setPath

void setPath(path : String)
Sets the path field.

Parameters:

paththe new value for path

setStroke

void setStroke(stroke : jsx3.vector.Stroke)
Sets the stroke of this shape, other strokes may be present as children of this instance.

Parameters:

strokethe stroke value.