Search this API

y.view.hierarchy
Class GroupNodePainter.GroupStateStyle

java.lang.Object
  extended by y.view.hierarchy.GroupNodePainter.GroupStateStyle
Enclosing class:
GroupNodePainter

public static final class GroupNodePainter.GroupStateStyle
extends java.lang.Object

A GroupStateStyle provides opacity information for painting group state icons. Styles have to be registered as GenericNodeRealizer style properties for key GroupNodePainter.GROUP_STATE_STYLE_ID.

Serialization note: Style properties registered for key GroupNodePainter.GROUP_STATE_STYLE_ID are considered transient and will not be serialized.

 
Your browser does not support SVG content.

Constructor Summary
GroupNodePainter.GroupStateStyle()
           
 
Method Summary
 float getOpacity()
          Returns the state icon's desired opacity value.
 void setOpacity(float opacity)
          Specifies the state icon's desired opacity value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupNodePainter.GroupStateStyle

public GroupNodePainter.GroupStateStyle()
Method Detail

getOpacity

public float getOpacity()
Returns the state icon's desired opacity value. A value of 0 means completely transparent, 1 means completely opaque.

Returns:
a value in [0,1].
See Also:
setOpacity(float)

setOpacity

public void setOpacity(float opacity)
Specifies the state icon's desired opacity value. A value of 0 means completely transparent, 1 means completely opaque. Values less than 0 will be treated as 0, values greater than 1 will be treated as 1.

Parameters:
opacity - a value in [0,1].
See Also:
getOpacity()

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.