Package | com.yworks.graph.drawing |
Class | public class EdgeStyleDescriptor |
Inheritance | EdgeStyleDescriptor CanvasObjectDescriptorAdapter Object |
ICanvasObjectDescriptor
implementation
that casts the userObject
to IEdge
and uses it's style
to get implementations for
the various interfaces.
Property | Defined By | ||
---|---|---|---|
instance : EdgeStyleDescriptor [static] [read-only]
The shared instance. | EdgeStyleDescriptor |
Method | Defined By | ||
---|---|---|---|
getBoundsProvider(forUserObject:Object):IBoundsProvider [override]
Returns an implementation of IBoundsProvider that can
determine the visible bounds of the rendering of the user object. | EdgeStyleDescriptor | ||
getDisplayObjectCreator(forUserObject:Object):IDisplayObjectCreator [override]
| EdgeStyleDescriptor | ||
getHitTestable(forUserObject:Object):IHitTestable [override]
Returns an implementation of IHitTestable that can determine whether
the rendering of the user object has been hit at a given coordinate. | EdgeStyleDescriptor | ||
isDirty(obj:ICanvasObject):Boolean [override]
Returns true if the canvas object needs to be repainted. | EdgeStyleDescriptor |
instance | property |
instance:EdgeStyleDescriptor
[read-only] The shared instance.
public static function get instance():EdgeStyleDescriptor
getBoundsProvider | () | method |
override public function getBoundsProvider(forUserObject:Object):IBoundsProvider
Returns an implementation of IBoundsProvider
that can
determine the visible bounds of the rendering of the user object.
This method may always return the same instance. By contract, clients will not cache instances returned, but will always call this method before the methods on the instance will be called. This contract enables the use of the fly-weight design pattern. Implementations of this class can always return the same instance and reconfigure this instance upon each call to this method.
Parameters
forUserObject:Object — The user object to query the bounds for
|
IBoundsProvider — An implementation or null if the bounds are not known, in which
case the bounds are treated as infinite
|
getDisplayObjectCreator | () | method |
override public function getDisplayObjectCreator(forUserObject:Object):IDisplayObjectCreator
Parameters
forUserObject:Object |
IDisplayObjectCreator |
getHitTestable | () | method |
override public function getHitTestable(forUserObject:Object):IHitTestable
Returns an implementation of IHitTestable
that can determine whether
the rendering of the user object has been hit at a given coordinate.
This method may always return the same instance. By contract, clients will not cache instances returned, but will always call this method before the methods on the instance will be called. This contract enables the use of the fly-weight design pattern. Implementations of this class can always return the same instance and reconfigure this instance upon each call to this method.
Parameters
forUserObject:Object — The user object to do the hit testing for
|
IHitTestable — An implementation or null if the rendering cannot be hit tested
|
isDirty | () | method |
override public function isDirty(obj:ICanvasObject):Boolean
Returns true
if the canvas object needs to be repainted.
Parameters
obj:ICanvasObject — The canvas object.
|
Boolean — true if the canvas object needs to be repainted.
|