| Package | com.yworks.canvas.drawing |
| Interface | public interface IPaintContext extends ILookup |
| Implementors | DefaultPaintContext |
See also
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
![]() | lookup(type:Class):Object
Returns an instance that implements the given type or null. | ILookup | |
toViewCoordinates(worldP:IMutablePoint):void
Converts the given set of world coordinates to a coordinate pair that can
be used to paint within the viewTransform. | IPaintContext | ||
| canvasComponent | property |
canvasComponent:CanvasComponent [read-only] The canvas component that the painting is performed to.
public function get canvasComponent():CanvasComponent| transform | property |
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
public function get transform():Matrix| viewTransform | property |
viewTransform:Matrix [read-only] A transform that can be applied to the graphics context in order to paint in the view coordinate system.
public function get viewTransform():Matrix| worldTransform | property |
worldTransform:Matrix [read-only] The transform that can be applied to the graphics context in order to paint into the world coordinate system.
public function get worldTransform():Matrix| 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.
|