Packagecom.yworks.graph.drawing
Classpublic class CollapsibleNodeStyleDecoratorRenderer
InheritanceCollapsibleNodeStyleDecoratorRenderer Inheritance AbstractNodeStyleRenderer Inheritance AbstractStyleRenderer Inheritance Object



Public Properties
 PropertyDefined By
 Inheriteditem : IModelItem
[read-only] Gets the currently configured item.
AbstractStyleRenderer
 Inheritedlayout : IRectangle
[read-only] Returns the INode.layout of the node this renderer is currently configured for.
AbstractNodeStyleRenderer
 Inheritedstyle : IVisualStyle
[read-only] Gets the currently configured style.
AbstractStyleRenderer
 InheritedstyleDescriptor : ICanvasObjectDescriptor
[read-only] Gets the ICanvasObjectDescriptor to use for new installations.
AbstractStyleRenderer
Public Methods
 MethodDefined By
  
CollapsibleNodeStyleDecoratorRenderer
  
[override]
CollapsibleNodeStyleDecoratorRenderer
 Inherited
Configures the style and item parameters, calls configure and returns this.
AbstractStyleRenderer
 Inherited
Configures the style and item parameters, does not call configure and returns this.
AbstractStyleRenderer
 Inherited
Configures the style and item parameters, calls configure and returns this.
AbstractStyleRenderer
  
getIntersection(innerX:Number, innerY:Number, outerX:Number, outerY:Number, intersectionPoint:IPointSetter):Boolean
[override]
CollapsibleNodeStyleDecoratorRenderer
 Inherited
Configures the style and item parameters, calls configure and returns this.
AbstractStyleRenderer
  
[override]
CollapsibleNodeStyleDecoratorRenderer
 Inherited
Configures the style and item parameters, calls configure and returns this.
AbstractStyleRenderer
 Inherited
Configures the style and item parameters, calls configure and returns this.
AbstractNodeStyleRenderer
 Inherited
install(canvas:CanvasComponent, group:ICanvasObjectGroup, modelItem:IModelItem):Array
Installs the model in the canvas at the given group using the styleDescriptor.
AbstractStyleRenderer
  
isHit(x:Number, y:Number, ctx:ICanvasContext):Boolean
[override]
CollapsibleNodeStyleDecoratorRenderer
  
[override]
CollapsibleNodeStyleDecoratorRenderer
  
isInside(x:Number, y:Number):Boolean
[override]
CollapsibleNodeStyleDecoratorRenderer
 Inherited
Calls configure and tests the item using the style for a visible intersection with the clip bounds.
AbstractStyleRenderer
  
lookup(type:Class):Object
[override]
CollapsibleNodeStyleDecoratorRenderer
  
[override]
CollapsibleNodeStyleDecoratorRenderer
Protected Methods
 MethodDefined By
 Inherited
configure():void
[override] This is an empty implementation of the AbstractStyleRenderer.configure method.
AbstractNodeStyleRenderer
 Inherited
[override] Factory method for the StyleDescriptor property.
AbstractNodeStyleRenderer
  
Yields the ICollapsibleNodeStyleDecorator#buttonLocationParameter for the current style
CollapsibleNodeStyleDecoratorRenderer
  
getIcon(ctx:Object):IIcon
Callback method that yields the IIcon to use.
CollapsibleNodeStyleDecoratorRenderer
  
Yields the ICollapsibleNodeStyleDecorator#wrapped property for the current style
CollapsibleNodeStyleDecoratorRenderer
 Inherited
setItem(item:IModelItem):void
Called by the various descriptor getters to initialize the item.
AbstractStyleRenderer
 Inherited
Called by the various descriptor getters to initialize the style.
AbstractStyleRenderer
Constructor Detail
CollapsibleNodeStyleDecoratorRenderer()Constructor
public function CollapsibleNodeStyleDecoratorRenderer()



Method Detail
calculateBounds()method
override public function calculateBounds(scratch:IMutableRectangle, ctx:ICanvasContext):IRectangle

Parameters

scratch:IMutableRectangle
 
ctx:ICanvasContext

Returns
IRectangle
getButtonLocationParameter()method 
protected function getButtonLocationParameter():ILabelModelParameter

Yields the ICollapsibleNodeStyleDecorator#buttonLocationParameter for the current style

Returns
ILabelModelParameter

See also

getIcon()method 
protected function getIcon(ctx:Object):IIcon

Callback method that yields the IIcon to use.

Parameters

ctx:Object — The context.

Returns
IIcon — The icon to use.
getIntersection()method 
override public function getIntersection(innerX:Number, innerY:Number, outerX:Number, outerY:Number, intersectionPoint:IPointSetter):Boolean

Parameters

innerX:Number
 
innerY:Number
 
outerX:Number
 
outerY:Number
 
intersectionPoint:IPointSetter

Returns
Boolean
getOutline()method 
override public function getOutline():GeneralPath

Returns
GeneralPath
getWrappedStyle()method 
protected function getWrappedStyle():INodeStyle

Yields the ICollapsibleNodeStyleDecorator#wrapped property for the current style

Returns
INodeStyle

See also

isHit()method 
override public function isHit(x:Number, y:Number, ctx:ICanvasContext):Boolean

Parameters

x:Number
 
y:Number
 
ctx:ICanvasContext

Returns
Boolean
isInBox()method 
override public function isInBox(box:IRectangle, ctx:ICanvasContext):Boolean

Parameters

box:IRectangle
 
ctx:ICanvasContext

Returns
Boolean
isInside()method 
override public function isInside(x:Number, y:Number):Boolean

Parameters

x:Number
 
y:Number

Returns
Boolean
lookup()method 
override public function lookup(type:Class):Object

Parameters

type:Class

Returns
Object
paint()method 
override public function paint(g:YGraphics, ctx:IPaintContext):void

Parameters

g:YGraphics
 
ctx:IPaintContext