com.yworks.yfiles.server.tiles.support
Class StateLabelProviderPainter
java.lang.Object
y.view.hierarchy.GroupNodePainter
com.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.
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 |
StateLabelProviderPainter
public StateLabelProviderPainter()
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