Packagecom.yworks.graph.drawing
Interfacepublic interface IIcon
Implementors ImageIcon

A simple icon interface for classes that can paint icons.



Public Properties
 PropertyDefined By
  height : Number
[read-only] The height of the icon.
IIcon
  width : Number
[read-only] The width of the icon.
IIcon
Public Methods
 MethodDefined By
  
paint(g:YGraphics, x:Number, y:Number):void
Paint the icon onto the graphics context at the given position.
IIcon
Property Detail
heightproperty
height:Number  [read-only]

The height of the icon.


Implementation
    public function get height():Number
widthproperty 
width:Number  [read-only]

The width of the icon.


Implementation
    public function get width():Number
Method Detail
paint()method
public function paint(g:YGraphics, x:Number, y:Number):void

Paint the icon onto the graphics context at the given position.

Parameters

g:YGraphics — The graphics to render into.
 
x:Number — The top left x coordinate of the icon.
 
y:Number — The top left y coordinate of the icon.