com.yworks.yfiles.server.tiles.support
Class StateLabelProviderPainter

java.lang.Object
  extended byy.view.hierarchy.GroupNodePainter
      extended bycom.yworks.yfiles.server.tiles.support.StateLabelProviderPainter
All Implemented Interfaces:
GenericGroupNodeStateLabelProvider, GenericNodeRealizer.ContainsTest, GenericNodeRealizer.GenericMouseInputEditorProvider, GenericNodeRealizer.Initializer, GenericNodeRealizer.Painter

public class StateLabelProviderPainter
extends GroupNodePainter
implements GenericGroupNodeStateLabelProvider

This GroupNodePainter extends the default GroupNodePainter by making available its state label, thus implementing the GenericGroupNodeStateLabelProvider interface. When GroupNodeRealizers are used in yFiles AJAX application, the client-side expand/collapse functionality will only be available if the GenericNodeRealizer.Painter implementation implements the GenericGroupNodeStateLabelProvider interface. Otherwise, the bounds of the state label icon are not available on the client.


Nested Class Summary
 
Nested classes inherited from class y.view.hierarchy.GroupNodePainter
GroupNodePainter.GroupStateEditor, GroupNodePainter.GroupStateStyle
 
Field Summary
 
Fields inherited from class y.view.hierarchy.GroupNodePainter
GROUP_STATE_STYLE_ID
 
Constructor Summary
StateLabelProviderPainter()
           
 
Method Summary
 NodeLabel getStateLabel(NodeRealizer context)
          Returns the state label of this realizer.
 
Methods inherited from class y.view.hierarchy.GroupNodePainter
contains, findMouseInputEditor, getClosedGroupIcon, getGroupStateOpacity, getHierarchyManager, getInnerGraphInsets, getOpenGroupIcon, getPainterDelegate, initialize, isGroupDepthFillColorEnabled, isInnerGraphDisplayEnabled, paint, paintGroupState, paintInnerGraph, paintSloppy, setClosedGroupIcon, setGroupDepthFillColorEnabled, setInnerGraphDisplayEnabled, setOpenGroupIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateLabelProviderPainter

public StateLabelProviderPainter()
Method Detail

getStateLabel

public NodeLabel getStateLabel(NodeRealizer context)
Returns the state label of this realizer.

Specified by:
getStateLabel in interface GenericGroupNodeStateLabelProvider
Parameters:
context - the node realizer that this painter is associated with.
Returns:
the state label for the current state.


Copyright © 2006-2013 yWorks GmbH. All rights reserved