|
WT Toolkit 0.3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--wtObject
|
+--wtVectorWidget
A vector graphics object. This is the base class of all vector graphics objects.
Defined in wt_vector.js
| Constructor Summary | |
wtVectorWidget(<wtCanvas|wtVectorGroup> parentWidget, <String> tagName)
Constructs a vector graphics object. |
|
| Method Summary | |
wtColor
|
getFillColor()
Tells the widget's fill color. |
Number
|
getFillOpacity()
Tells the widget's current fill opacity. |
wtColor;
|
getStrokeColor()
Tells the widget's stroke color. |
Number
|
getStrokeOpacity()
Tells the widget's current stroke opacity. |
Number
|
getStrokeWidth()
Tells the widget's stroke width. |
Boolean
|
isVisible()
Tells whether the widget is visible or not. |
void
|
removeSelf()
Destroys the widget. |
void
|
setColor(fillColor, strokeColor)
Sets the widget's fill and stroke color. |
void
|
setFillColor(<wtColor|String> color)
Sets the widget's fill color. |
void
|
setFillOpacity(<Number> alpha)
Sets the widget's fill opacity. |
void
|
setOpacity(<Number> alpha)
Sets the widget's opacity. |
void
|
setStrokeColor(<wtColor|String> color)
Sets the widget's stroke color. |
void
|
setStrokeOpacity(<Number> alpha)
Sets the widget's stroke opacity. |
void
|
setStrokeWidth(<Number> strokeWidth)
Sets the widget's stroke width. |
void
|
setVisible(<Boolean> yes)
Sets the widget's visibility. |
| Methods inherited from class wtObject |
startProxy, endProxy, toString, connect, disconnect, emit, setSlot, removeSlot, setSignal, removeSignal, get, set, addDependency, clearLapsedListeners
|
| Constructor Detail |
wtVectorWidget(<wtCanvas|wtVectorGroup> parentWidget, <String> tagName)
parentWidget - The parent container.
tagName - The XML tag name for this widget.
| Method Detail |
wtColor getFillColor()
Number getFillOpacity()
wtColor; getStrokeColor()
Number getStrokeOpacity()
Number getStrokeWidth()
Boolean isVisible()
void removeSelf()
void setColor(fillColor, strokeColor)
color - The new color. If a String is given here, it will be converted to wtColor automatically by wtColor's constructor.
void setFillColor(<wtColor|String> color)
color - The fill color. If a String is given here, it will be converted to wtColor automatically by wtColor's constructor.
void setFillOpacity(<Number> alpha)
alpha - The widget's fill opacity, in the range [0.0, 1.0].
void setOpacity(<Number> alpha)
alpha - The widget's opacity, in the range [0.0, 1.0].
void setStrokeColor(<wtColor|String> color)
color - The stroke color. If a String is given here, it will be converted to wtColor automatically by wtColor's constructor.
void setStrokeOpacity(<Number> alpha)
alpha - The widget's stroke opacity, in the range [0.0, 1.0].
void setStrokeWidth(<Number> strokeWidth)
strokeWidth - Desired stroke width in number of pixels.
void setVisible(<Boolean> yes)
yes - Whether the widget should be visible or not.
|
WT Toolkit 0.3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||