(private) new xrx.shape.RenderStylable(drawing)
A class implementing dynamic rendering of shapes.
Parameters:
Name | Type | Description |
---|---|---|
drawing |
xrx.drawing.Drawing | The parent drawing canvas. |
Extends
Members
-
(private) xrx.shape.RenderStylable#fill_ :Object
-
Object describing the fill style.
Type:
- Object
- Inherited From:
- Source:
-
(private) xrx.shape.RenderStylable#fillChanged_ :Object
-
Object describing whether the fill style did change since the last drawing.
Type:
- Object
-
(private) xrx.shape.RenderStylable#hasDom_ :boolean
-
Whether this shape has a DOM representation.
Type:
- boolean
-
xrx.shape.RenderStylable#shapeGroup_ :xrx.shape.ShapeGroup
-
The shape group, if the shape belongs to a group.
Type:
-
(private) xrx.shape.RenderStylable#stroke_ :Object
-
Object describing the stroke style.
Type:
- Object
- Inherited From:
- Source:
-
(private) xrx.shape.RenderStylable#strokeChanged_ :Object
-
Object describing whether the stroke style did change since the last drawing.
Type:
- Object
-
xrx.shape.RenderStylable#zoomFactor_ :number
-
The current zoom factor to realize constant line width and constant size of dragging elements.
Type:
- number
Methods
-
xrx.shape.RenderStylable#disposeInternal()
-
Disposes this rendering style object.
-
(private) xrx.shape.RenderStylable#finishDrawing_()
-
xrx.shape.RenderStylable#getEngineElement() → {xrx.engine.Element}
-
Returns the underlying engine element.
Returns:
The engine element.- Type
- xrx.engine.Element
-
xrx.shape.RenderStylable#getFillColor() → {string}
-
Returns the fill color of this shape.
- Inherited From:
- Source:
Returns:
The fill color.- Type
- string
-
xrx.shape.RenderStylable#getFillOpacity() → {number}
-
Returns the fill opacity of this shape.
- Inherited From:
- Source:
Returns:
The fill opacity.- Type
- number
-
(private) xrx.shape.RenderStylable#getRenderingFillColor()
-
(private) xrx.shape.RenderStylable#getRenderingFillOpacity()
-
(private) xrx.shape.RenderStylable#getRenderingStrokeColor()
-
xrx.shape.RenderStylable#getRenderingStrokeWidth() → {number}
-
Returns the stroke width of this shape.
Returns:
The stroke width.- Type
- number
-
(private) xrx.shape.RenderStylable#getShapeGroup() → {xrx.shape.ShapeGroup}
-
Returns the current shape group.
Returns:
The shape group.- Type
- xrx.shape.ShapeGroup
-
xrx.shape.RenderStylable#getStrokeColor() → {string}
-
Returns the stroke color of this shape.
- Inherited From:
- Source:
Returns:
The stroke color.- Type
- string
-
xrx.shape.RenderStylable#getStrokeWidth() → {number}
-
Returns the stroke width of this shape.
- Inherited From:
- Source:
Returns:
The stroke width.- Type
- number
-
(private) xrx.shape.RenderStylable#setFillColor()
-
(private) xrx.shape.RenderStylable#setFillOpacity()
-
(private) xrx.shape.RenderStylable#setShapeGroup(shapeGroup)
-
Sets this shape to be part of a shape group.
Parameters:
Name Type Description shapeGroup
xrx.shape.ShapeGroup The shape group. -
(private) xrx.shape.RenderStylable#setStrokeColor()
-
(private) xrx.shape.RenderStylable#setStrokeWidth()
-
(private) xrx.shape.RenderStylable#setStyle()
-
(private) xrx.shape.RenderStylable#setZoomFactor()
-
(private) xrx.shape.RenderStylable#startDrawing_()