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

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

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

A yFiles FLEX client shape node style data object


Field Summary
static java.lang.String Diamond
          A diamond
static java.lang.String Ellipse
          Shape type constant.
static java.lang.String FatArrow
          An arrow like shape that points to the right
static java.lang.String FatArrow2
          An arrow like shape that points to the left
static java.lang.String Hexagon
          A hexagon
static java.lang.String Octagon
          An octagon
static java.lang.String Parallelogram
          A parallelogram
static java.lang.String Rectangle
          Shape type constant.
static java.lang.String Rectangle3D
          A rectangular shape with a 3D-ish look
static java.lang.String RoundRectangle
          Shape type constant.
static java.lang.String ShearedRectangle
          A rectangle that is sheared in the horizontal direction to the right
static java.lang.String ShearedRectangle2
          A rectangle that is sheared in the horizontal direction to the left
static java.lang.String Star5
          A 5-star shape
static java.lang.String Star6
          A 6-star shape
static java.lang.String Star8
          A 8-star shape
static java.lang.String Trapez
          Specifies a trapezoidal shape, whose lower line is half as long as it's upper line.
static java.lang.String Trapez2
          Specifies a trapezoidal shape, whose upper line is half as long as it's lower line.
static java.lang.String Trapezoid
          A trapezoid with its base on the top
static java.lang.String Trapezoid2
          A trapezoid with its base on the bottom
static java.lang.String Triangle
          A triangular shape that points to the top
static java.lang.String Triangle2
          A triangular shape that points to the top
 
Constructor Summary
ShapeNodeStyle()
          Creates a new instance using a default shape, stroke and fill.
ShapeNodeStyle(java.lang.String shapeNodeShape, IStroke stroke, IFill fill)
          Creates a new ShapeNodeStyle using the provided parameters.
 
Method Summary
 IFill getFill()
          The fill for this style.
 java.lang.String getShapeNodeShape()
          The node shape.
 java.util.Collection getSharedInstances()
          Returns an Collection for objects that shall be shared.
 IStroke getStroke()
          The stroke for this style.
 void setFill(IFill fill)
          The fill for this style.
 void setShapeNodeShape(java.lang.String shapeNodeShape)
          The node shape.
 void setStroke(IStroke stroke)
          The stroke for this style.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Rectangle

public static final java.lang.String Rectangle
Shape type constant. Specifies a rectangular shape.

See Also:
Constant Field Values

RoundRectangle

public static final java.lang.String RoundRectangle
Shape type constant. Specifies a rectangular shape whose corners are rounded.

See Also:
Constant Field Values

Ellipse

public static final java.lang.String Ellipse
Shape type constant. Specifies an oval (ellipsoid) shape.

See Also:
Constant Field Values

Triangle

public static final java.lang.String Triangle
A triangular shape that points to the top

See Also:
Constant Field Values

Triangle2

public static final java.lang.String Triangle2
A triangular shape that points to the top

See Also:
Constant Field Values

ShearedRectangle

public static final java.lang.String ShearedRectangle
A rectangle that is sheared in the horizontal direction to the right

See Also:
Constant Field Values

ShearedRectangle2

public static final java.lang.String ShearedRectangle2
A rectangle that is sheared in the horizontal direction to the left

See Also:
Constant Field Values

Trapez2

public static final java.lang.String Trapez2
Specifies a trapezoidal shape, whose upper line is half as long as it's lower line.

See Also:
Constant Field Values

Trapez

public static final java.lang.String Trapez
Specifies a trapezoidal shape, whose lower line is half as long as it's upper line.

See Also:
Constant Field Values

Star5

public static final java.lang.String Star5
A 5-star shape

See Also:
Constant Field Values

Star6

public static final java.lang.String Star6
A 6-star shape

See Also:
Constant Field Values

Star8

public static final java.lang.String Star8
A 8-star shape

See Also:
Constant Field Values

FatArrow

public static final java.lang.String FatArrow
An arrow like shape that points to the right

See Also:
Constant Field Values

FatArrow2

public static final java.lang.String FatArrow2
An arrow like shape that points to the left

See Also:
Constant Field Values

Rectangle3D

public static final java.lang.String Rectangle3D
A rectangular shape with a 3D-ish look

See Also:
Constant Field Values

Parallelogram

public static final java.lang.String Parallelogram
A parallelogram

See Also:
Constant Field Values

Hexagon

public static final java.lang.String Hexagon
A hexagon

See Also:
Constant Field Values

Octagon

public static final java.lang.String Octagon
An octagon

See Also:
Constant Field Values

Diamond

public static final java.lang.String Diamond
A diamond

See Also:
Constant Field Values

Trapezoid

public static final java.lang.String Trapezoid
A trapezoid with its base on the top

See Also:
Constant Field Values

Trapezoid2

public static final java.lang.String Trapezoid2
A trapezoid with its base on the bottom

See Also:
Constant Field Values
Constructor Detail

ShapeNodeStyle

public ShapeNodeStyle(java.lang.String shapeNodeShape,
                      IStroke stroke,
                      IFill fill)
Creates a new ShapeNodeStyle using the provided parameters.

Parameters:
shapeNodeShape - The node shape.
stroke - The stroke for this style.
fill - The node fill.

ShapeNodeStyle

public ShapeNodeStyle()
Creates a new instance using a default shape, stroke and fill.

Method Detail

getShapeNodeShape

public java.lang.String getShapeNodeShape()
The node shape.

The shape should be set to one of the constants defined in this class


setShapeNodeShape

public void setShapeNodeShape(java.lang.String shapeNodeShape)
The node shape.

The shape should be set to one of the constants defined in this class

Parameters:
shapeNodeShape -

getStroke

public IStroke getStroke()
The stroke for this style.


setStroke

public void setStroke(IStroke stroke)
The stroke for this style.


getFill

public IFill getFill()
The fill for this style.


setFill

public void setFill(IFill fill)
The fill for this style.


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