OverviewSingleDeprecatedPropertiesEventsXSL Parameters

jsx3.vector

class Shape

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

Direct Known Subclasses:

jsx3.vector.LineGroup, jsx3.vector.RectangleGroup

class Shape
extends jsx3.vector.BaseShape
A vector shape element. The path field can contain an EPS-like path defining a complex vector shape.

Method Summary
String
Returns the path field.
jsx3.vector.Shape
pathArcTo(cx : int, cy : int, rx : int, ry : int, x1 : int, y1 : int, x2 : int, y2 : int, bCW : boolean)
Adds an arc segment on this shape.
jsx3.vector.Shape
Appends a close segment to this shape.
jsx3.vector.Shape
pathLineTo(x : int, y : int, bRel : boolean)
Appends a line segment to {x, y}.
jsx3.vector.Shape
pathMoveTo(x : int, y : int, bRel : boolean)
Appends a path segment that moves the shape to {x, y} without drawing a line segment.
void
setPath(path : String)
Sets the path field.
Methods Inherited From jsx3.vector.BaseShape
getFill, getStroke, setFill, 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
Method Detail

getPath

String getPath()
Returns the path field. Note that the value returned by this method depends on the vector implementation. VML (Internet Explorer) and SVG (Firefox, Safari) specify different path syntaxes.

Returns:

path  

pathArcTo

jsx3.vector.Shape pathArcTo(cx : int, cy : int, rx : int, ry : int, x1 : int, y1 : int, x2 : int, y2 : int, bCW : boolean)
Adds an arc segment on this shape.

Parameters:

cxthe center x coordinate.
cythe center y coordinate.
rxthe x radius.
rythe y radius.
x1the starting point x coordinate.
y1the starting point y coordinate.
x2the ending point x coordinate.
y2the ending point y coordinate.
bCW

Returns:

this object.  

pathClose

jsx3.vector.Shape pathClose()
Appends a close segment to this shape.

Returns:

this object.  

pathLineTo

jsx3.vector.Shape pathLineTo(x : int, y : int, bRel : boolean)
Appends a line segment to {x, y}.

Parameters:

x
y
bRelif true, x and y are the offsets from the current position of the path. Otherwise they are the absolute coordinates.

Returns:

this object.  

pathMoveTo

jsx3.vector.Shape pathMoveTo(x : int, y : int, bRel : boolean)
Appends a path segment that moves the shape to {x, y} without drawing a line segment.

Parameters:

x
y
bRelif true, x and y are the offsets from the current position of the path. Otherwise they are the absolute coordinates.

Returns:

this object.  

setPath

void setPath(path : String)
Sets the path field. Note that the argument accepted by this method depends on the vector implementation. VML (Internet Explorer) and SVG (Firefox, Safari) specify different path syntaxes. pathMoveTo, The methods pathLineTo, pathArcTo, and pathClose are implementation-independent and should be used instead.

Parameters:

paththe new value for path