com.yworks.yfiles.server.graphml.flexio.data
Class PanelNodeStyle

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.PanelNodeStyle
All Implemented Interfaces:
INodeStyle, InsetsProvider, ISharedInstanceProvider

public class PanelNodeStyle
extends java.lang.Object
implements INodeStyle, InsetsProvider, ISharedInstanceProvider

A yFiles FLEX client panel node style data object.


Constructor Summary
PanelNodeStyle()
          Creates a new instance using default insets (5,5,5,5), a black background and a gray label insets color.
PanelNodeStyle(Insets insets, java.awt.Color color, java.awt.Color labelInsetsColor)
          Creates a new instance using the given parameters.
 
Method Summary
 java.awt.Color getColor()
          The background color.
 Insets getInsets()
          The style's insets.
 java.awt.Color getLabelInsetsColor()
          The color for the label insets.
 Insets getProvidedInsets()
          Gets the insets provided by the implementor.
 java.util.Collection getSharedInstances()
          Returns an Collection for objects that shall be shared.
 void setColor(java.awt.Color color)
          The background color.
 void setInsets(Insets insets)
          The style's insets.
 void setLabelInsetsColor(java.awt.Color labelInsetsColor)
          The color for the label insets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PanelNodeStyle

public PanelNodeStyle(Insets insets,
                      java.awt.Color color,
                      java.awt.Color labelInsetsColor)
Creates a new instance using the given parameters.

Parameters:
insets - The style's insets
color - The background color
labelInsetsColor - The color of the label insets.

PanelNodeStyle

public PanelNodeStyle()
Creates a new instance using default insets (5,5,5,5), a black background and a gray label insets color.

Method Detail

getInsets

public Insets getInsets()
The style's insets.

The default insets are (5,5,5,5).


setInsets

public void setInsets(Insets insets)
The style's insets.

The default insets are (5,5,5,5).


getColor

public java.awt.Color getColor()
The background color.


setColor

public void setColor(java.awt.Color color)
The background color.


getLabelInsetsColor

public java.awt.Color getLabelInsetsColor()
The color for the label insets.


setLabelInsetsColor

public void setLabelInsetsColor(java.awt.Color labelInsetsColor)
The color for the label insets.


getProvidedInsets

public Insets getProvidedInsets()
Gets the insets provided by the implementor.

The returned insets are identical with the style's insets.

Specified by:
getProvidedInsets in interface InsetsProvider
Returns:
The insets provided by this instance.

getSharedInstances

public java.util.Collection getSharedInstances()
Description copied from interface: ISharedInstanceProvider
Returns an Collection for objects that shall be shared.

Specified by:
getSharedInstances in interface ISharedInstanceProvider
Returns:


Copyright © 2000-2013 yWorks GmbH. All rights reserved