Class: xrx.shape.RenderStylable

xrx.shape. RenderStylable

(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.
Source:

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
Source:

(private) xrx.shape.RenderStylable#hasDom_ :boolean

Whether this shape has a DOM representation.
Type:
  • boolean
Source:

xrx.shape.RenderStylable#shapeGroup_ :xrx.shape.ShapeGroup

The shape group, if the shape belongs to a group.
Type:
Source:

(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
Source:

xrx.shape.RenderStylable#zoomFactor_ :number

The current zoom factor to realize constant line width and constant size of dragging elements.
Type:
  • number
Source:

Methods

xrx.shape.RenderStylable#disposeInternal()

Disposes this rendering style object.
Source:

(private) xrx.shape.RenderStylable#finishDrawing_()

Source:

xrx.shape.RenderStylable#getEngineElement() → {xrx.engine.Element}

Returns the underlying engine element.
Source:
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()

Source:

(private) xrx.shape.RenderStylable#getRenderingFillOpacity()

Source:

(private) xrx.shape.RenderStylable#getRenderingStrokeColor()

Source:

xrx.shape.RenderStylable#getRenderingStrokeWidth() → {number}

Returns the stroke width of this shape.
Source:
Returns:
The stroke width.
Type
number

(private) xrx.shape.RenderStylable#getShapeGroup() → {xrx.shape.ShapeGroup}

Returns the current shape group.
Source:
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()

Source:

(private) xrx.shape.RenderStylable#setFillOpacity()

Source:

(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.
Source:

(private) xrx.shape.RenderStylable#setStrokeColor()

Source:

(private) xrx.shape.RenderStylable#setStrokeWidth()

Source:

(private) xrx.shape.RenderStylable#setStyle()

Source:

(private) xrx.shape.RenderStylable#setZoomFactor()

Source:

(private) xrx.shape.RenderStylable#startDrawing_()

Source: