com.yworks.yfiles.server.graphml.flexio.data.flexmarkup
Class ShinyPlateNodeStyle

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

public class ShinyPlateNodeStyle
extends java.lang.Object
implements INodeStyle, ISharedInstanceProvider

A yFiles FLEX client shiny plate node style data object.


Constructor Summary
ShinyPlateNodeStyle()
          Creates a new instance using the default settings.
ShinyPlateNodeStyle(IFill fill, IStroke stroke, double radius, Insets insets, boolean dropShadow)
          Creates a new instance using the given parameters.
 
Method Summary
 IFill getFill()
          Gets the background fill.
 Insets getInsets()
          Gets the insets.
 double getRadius()
          Gets the corner radius.
 java.util.Collection getSharedInstances()
          Returns an Collection for objects that shall be shared.
 IStroke getStroke()
          Gets the border stroke.
 boolean isDropShadow()
          Whether to draw a drop shadow.
 void setDropShadow(boolean dropShadow)
          Whether to draw a drop shadow.
 void setFill(IFill fill)
          Sets the background fill.
 void setInsets(Insets insets)
          Sets the insets.
 void setRadius(double radius)
          Sets the corner radius.
 void setStroke(IStroke stroke)
          Sets the border stroke.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShinyPlateNodeStyle

public ShinyPlateNodeStyle(IFill fill,
                           IStroke stroke,
                           double radius,
                           Insets insets,
                           boolean dropShadow)
Creates a new instance using the given parameters.

Parameters:
fill - The background fill.
stroke - The border stroke.
radius - The corner radius.
insets - The style's insets.
dropShadow - Whether to draw a drop shadow.

ShinyPlateNodeStyle

public ShinyPlateNodeStyle()
Creates a new instance using the default settings.

Default: Orange background, no border, radius 5, Insets 5,5,5,5, drop shadow enabled.

Method Detail

getFill

public IFill getFill()
Gets the background fill.

Returns:
The background fill.

setFill

public void setFill(IFill fill)
Sets the background fill.

Parameters:
fill - The background fill to set.

getStroke

public IStroke getStroke()
Gets the border stroke.

Returns:
The border stroke.

setStroke

public void setStroke(IStroke stroke)
Sets the border stroke.

Parameters:
stroke - The border stroke to set.

getRadius

public double getRadius()
Gets the corner radius.

Returns:
The corner radius.

setRadius

public void setRadius(double radius)
Sets the corner radius.

Parameters:
radius - The corner radius to set.

getInsets

public Insets getInsets()
Gets the insets.

Returns:
The insets.

setInsets

public void setInsets(Insets insets)
Sets the insets.

Parameters:
insets - The insets to set.

isDropShadow

public boolean isDropShadow()
Whether to draw a drop shadow.

Returns:
true if a drop shadow should be drawn.

setDropShadow

public void setDropShadow(boolean dropShadow)
Whether to draw a drop shadow.

Default: true.

Parameters:
dropShadow - If set to true a drop shadow will be drawn.

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