Packagecom.yworks.canvas.drawing
Interfacepublic interface IPaintContext extends ILookup
Implementors DefaultPaintContext

Interface that defines the current context information that is available to painting routines.

See also

com.yworks.canvas.drawing.IPaintable


Public Properties
 PropertyDefined By
  canvasComponent : CanvasComponent
[read-only] The canvas component that the painting is performed to.
IPaintContext
  transform : Matrix
[read-only] The transform that is used to convert between the viewTransform and the resulting worldTransform.
IPaintContext
  viewTransform : Matrix
[read-only] A transform that can be applied to the graphics context in order to paint in the view coordinate system.
IPaintContext
  worldTransform : Matrix
[read-only] The transform that can be applied to the graphics context in order to paint into the world coordinate system.
IPaintContext
Public Methods
 MethodDefined By
 Inherited
lookup(type:Class):Object
Returns an instance that implements the given type or null.
ILookup
  
Converts the given set of world coordinates to a coordinate pair that can be used to paint within the viewTransform.
IPaintContext
Property Detail
canvasComponentproperty
canvasComponent:CanvasComponent  [read-only]

The canvas component that the painting is performed to.


Implementation
    public function get canvasComponent():CanvasComponent
transformproperty 
transform:Matrix  [read-only]

The transform that is used to convert between the viewTransform and the resulting worldTransform.

Coordinates transformed using this matrix can be drawn into a graphics context that has the viewTransform applied to appear to be drawn into the world coordinate system.

viewTransform transform = worldTransform


Implementation
    public function get transform():Matrix
viewTransformproperty 
viewTransform:Matrix  [read-only]

A transform that can be applied to the graphics context in order to paint in the view coordinate system.


Implementation
    public function get viewTransform():Matrix
worldTransformproperty 
worldTransform:Matrix  [read-only]

The transform that can be applied to the graphics context in order to paint into the world coordinate system.


Implementation
    public function get worldTransform():Matrix
Method Detail
toViewCoordinates()method
public function toViewCoordinates(worldP:IMutablePoint):void

Converts the given set of world coordinates to a coordinate pair that can be used to paint within the viewTransform.

Parameters

worldP:IMutablePoint — The point in the world coordinate system.