Packagecom.yworks.graph.drawing
Classpublic class ShapeNodeShape
InheritanceShapeNodeShape Inheritance Object

Defines some often used shapes that can be used together with IShapeNodeStyle or JavaShapeNodeStyle instances. Note that some constants are redundant, i.e. will cause the same shape to be painted. This is because yFiles FLEX supports both all yFiles Java and all yFiles.NET shapes. It is recommended to use the constants that start with an uppercase letter. These constants are native to yFiles FLEX and yFiles.NET. Use the lowercase constants only if you want to maximize compatibility with yFiles Java, e.g. if you use Java realizers for manipulating shape nodes or if the shape is used by a JavaShapeNodeStyle.

All-uppercase constants exist only for compatibility with older versions of yFiles FLEX. The all-uppercase constants are mapped to yFiles Java constants.

Note that the actual serialization/deserialization of these constants depends on the concrete serializer/deserializer that is used.



Public Methods
 MethodDefined By
  
getShapeNodeShapeName(shapeNodeShape:uint):String
[static] Gets the serialization String corresponding to the given id integer value of a shape.
ShapeNodeShape
  
getShapeNodeShapeValue(shapeNodeShapeName:String):uint
[static] Gets the integer value which corresponds to the serialization String of a shape.
ShapeNodeShape
Public Constants
 ConstantDefined By
  diamond : uint = 20
[static] Shape type constant.
ShapeNodeShape
  DIAMOND : uint = 20
[static] Deprecated.
ShapeNodeShape
  ellipse : uint = 16
[static] Shape type constant.
ShapeNodeShape
  Ellipse : uint = 2
[static] Shape type constant.
ShapeNodeShape
  ELLIPSE : uint = 16
[static] Deprecated.
ShapeNodeShape
  FatArrow : uint = 12
[static] An arrow like shape that points to the right This shape is serialized as "FatArrow" and will be correctly parsed by yFiles.NET
ShapeNodeShape
  FatArrow2 : uint = 13
[static] An arrow like shape that points to the left This shape is serialized as "FatArrow2" and will be correctly parsed by yFiles.NET
ShapeNodeShape
  hexagon : uint = 18
[static] Shape type constant.
ShapeNodeShape
  HEXAGON : uint = 18
[static] Deprecated.
ShapeNodeShape
  octagon : uint = 19
[static] Shape type constant.
ShapeNodeShape
  OCTAGON : uint = 19
[static] Deprecated.
ShapeNodeShape
  parallelogram : uint = 17
[static] Shape type constant.
ShapeNodeShape
  PARALLELOGRAM : uint = 17
[static] Deprecated.
ShapeNodeShape
  RECT_3D : uint = 24
[static] Deprecated.
ShapeNodeShape
  rectangle : uint = 14
[static] Shape type constant.
ShapeNodeShape
  Rectangle : uint = 0
[static] Shape type constant.
ShapeNodeShape
  RECTANGLE : uint = 14
[static] Deprecated.
ShapeNodeShape
  rectangle3d : uint = 24
[static] Shape type constant.
ShapeNodeShape
  ROUND_RECT : uint = 15
[static] Deprecated.
ShapeNodeShape
  roundrectangle : uint = 15
[static] Shape type constant.
ShapeNodeShape
  RoundRectangle : uint = 1
[static] Shape type constant.
ShapeNodeShape
  ShearedRectangle : uint = 5
[static] A rectangle that is sheared in the horizontal direction to the right This shape is serialized as "ShearedRectangle" and will be correctly parsed by yFiles.NET
ShapeNodeShape
  ShearedRectangle2 : uint = 6
[static] A rectangle that is sheared in the horizontal direction to the left This shape is serialized as "ShearedRectangle2" and will be correctly parsed by yFiles.NET
ShapeNodeShape
  Star5 : uint = 9
[static] A 5-star shape This shape is serialized as "Star5" and will be correctly parsed by yFiles.NET
ShapeNodeShape
  Star6 : uint = 10
[static] A 6-star shape This shape is serialized as "Star6" and will be correctly parsed by yFiles.NET
ShapeNodeShape
  Star8 : uint = 11
[static] A 8-star shape This shape is serialized as "Star8" and will be correctly parsed by yFiles.NET
ShapeNodeShape
  Trapez : uint = 8
[static] Specifies a trapezoidal shape, whose lower line is half as long as it's upper line.
ShapeNodeShape
  Trapez2 : uint = 7
[static] Specifies a trapezoidal shape, whose upper line is half as long as it's lower line.
ShapeNodeShape
  trapezoid : uint = 22
[static] Shape type constant.
ShapeNodeShape
  TRAPEZOID : uint = 22
[static] Deprecated.
ShapeNodeShape
  trapezoid2 : uint = 23
[static] Specifies a trapezoidal shape, whose upper line is half as long as it's lower line.
ShapeNodeShape
  TRAPEZOID_2 : uint = 23
[static] Deprecated.
ShapeNodeShape
  triangle : uint = 21
[static] Shape type constant.
ShapeNodeShape
  Triangle : uint = 3
[static] A triangular shape that points to the top This shape is serialized as "Triangle" and will be correctly parsed by yFiles.NET
ShapeNodeShape
  TRIANGLE : uint = 21
[static] Deprecated.
ShapeNodeShape
  Triangle2 : uint = 4
[static] A triangular shape that points to the top This shape is serialized as "Triangle2" and will be correctly parsed by yFiles.NET
ShapeNodeShape
Method Detail
getShapeNodeShapeName()method
public static function getShapeNodeShapeName(shapeNodeShape:uint):String

Gets the serialization String corresponding to the given id integer value of a shape.

Parameters

shapeNodeShape:uint — The integer id value as defined in this class's constants.

Returns
String — The serialization String.
getShapeNodeShapeValue()method 
public static function getShapeNodeShapeValue(shapeNodeShapeName:String):uint

Gets the integer value which corresponds to the serialization String of a shape.

Parameters

shapeNodeShapeName:String — The serialization String to query the integer value for

Returns
uint — the integer id value
Constant Detail
diamondConstant
public static const diamond:uint = 20

Shape type constant. Specifies a diamond shape, i.e, a shape with four corners and diagonally sloped sides.

This shape is serialized as "diamond" and will be correctly parsed by yFiles Java.

DIAMONDConstant 
public static const DIAMOND:uint = 20

Deprecated. Use diamond instead.

See also

diamond
ellipseConstant 
public static const ellipse:uint = 16

Shape type constant. Specifies an oval (ellipsoid) shape.

This shape is serialized as "ellipse" and will be correctly parsed by yFiles Java.

EllipseConstant 
public static const Ellipse:uint = 2

Shape type constant. Specifies an oval (ellipsoid) shape.

This shape is serialized as "Ellipse" and will be correctly parsed by yFiles.NET

ELLIPSEConstant 
public static const ELLIPSE:uint = 16

Deprecated. Use ellipse instead.

See also

ellipse
FatArrowConstant 
public static const FatArrow:uint = 12

An arrow like shape that points to the right

This shape is serialized as "FatArrow" and will be correctly parsed by yFiles.NET

FatArrow2Constant 
public static const FatArrow2:uint = 13

An arrow like shape that points to the left

This shape is serialized as "FatArrow2" and will be correctly parsed by yFiles.NET

hexagonConstant 
public static const hexagon:uint = 18

Shape type constant. Specifies a hexagonal shape, i.e, a shape with six corners.

This shape is serialized as "hexagon" and will be correctly parsed by yFiles Java.

HEXAGONConstant 
public static const HEXAGON:uint = 18

Deprecated. Use hexagon instead.

See also

hexagon
octagonConstant 
public static const octagon:uint = 19

Shape type constant. Specifies an octagonal shape, i.e, a shape with eight corners.

This shape is serialized as "octagon" and will be correctly parsed by yFiles Java.

OCTAGONConstant 
public static const OCTAGON:uint = 19

Deprecated. Use octagon instead.

See also

octagon
parallelogramConstant 
public static const parallelogram:uint = 17

Shape type constant. Specifies a rhomboidal shape, whose upper right corner is further to the right than it's lower right corner.

This shape is serialized as "parallelogram" and will be correctly parsed by yFiles Java.

PARALLELOGRAMConstant 
public static const PARALLELOGRAM:uint = 17

Deprecated. Use parallelogram instead.

See also

parallelogram
RECT_3DConstant 
public static const RECT_3D:uint = 24

Deprecated. Use rectangle3d instead.

See also

rectangle3d
rectangleConstant 
public static const rectangle:uint = 14

Shape type constant. Specifies a rectangular shape.

This shape is serialized as "rectangle" and will be correctly parsed by yFiles Java.

RectangleConstant 
public static const Rectangle:uint = 0

Shape type constant. Specifies a rectangular shape.

This shape is serialized as "Rectangle" and will be correctly parsed by yFiles.NET

RECTANGLEConstant 
public static const RECTANGLE:uint = 14

Deprecated. Use rectangle3d instead.

See also

rectangle
rectangle3dConstant 
public static const rectangle3d:uint = 24

Shape type constant. Specifies a rectangular shape with 3D-ish looks.

This shape is serialized as "rectangle3d" and will be correctly parsed by yFiles Java.

ROUND_RECTConstant 
public static const ROUND_RECT:uint = 15

Deprecated. Use roundrectangle instead.

See also

roundrectangle
roundrectangleConstant 
public static const roundrectangle:uint = 15

Shape type constant. Specifies a rectangular shape whose corners are rounded.

This shape is serialized as "roundrectangle" and will be correctly parsed by yFiles Java.

RoundRectangleConstant 
public static const RoundRectangle:uint = 1

Shape type constant. Specifies a rectangular shape whose corners are rounded.

This shape is serialized as "RoundRectangle" and will be correctly parsed by yFiles.NET

ShearedRectangleConstant 
public static const ShearedRectangle:uint = 5

A rectangle that is sheared in the horizontal direction to the right

This shape is serialized as "ShearedRectangle" and will be correctly parsed by yFiles.NET

ShearedRectangle2Constant 
public static const ShearedRectangle2:uint = 6

A rectangle that is sheared in the horizontal direction to the left

This shape is serialized as "ShearedRectangle2" and will be correctly parsed by yFiles.NET

Star5Constant 
public static const Star5:uint = 9

A 5-star shape

This shape is serialized as "Star5" and will be correctly parsed by yFiles.NET

Star6Constant 
public static const Star6:uint = 10

A 6-star shape

This shape is serialized as "Star6" and will be correctly parsed by yFiles.NET

Star8Constant 
public static const Star8:uint = 11

A 8-star shape

This shape is serialized as "Star8" and will be correctly parsed by yFiles.NET

TrapezConstant 
public static const Trapez:uint = 8

Specifies a trapezoidal shape, whose lower line is half as long as it's upper line.

This shape is serialized as "Trapez" and will be correctly parsed by yFiles.NET

Trapez2Constant 
public static const Trapez2:uint = 7

Specifies a trapezoidal shape, whose upper line is half as long as it's lower line.

This shape is serialized as "Trapez2" and will be correctly parsed by yFiles.NET

trapezoidConstant 
public static const trapezoid:uint = 22

Shape type constant. Specifies a trapezoidal shape, whose lower line is half as long as it's upper line.

This shape is serialized as "trapezoid" and will be correctly parsed by yFiles Java.

TRAPEZOIDConstant 
public static const TRAPEZOID:uint = 22

Deprecated. Use trapezoid instead.

See also

trapezoid
TRAPEZOID_2Constant 
public static const TRAPEZOID_2:uint = 23

Deprecated. Use trapezoid2 instead.

See also

trapezoid2
trapezoid2Constant 
public static const trapezoid2:uint = 23

Specifies a trapezoidal shape, whose upper line is half as long as it's lower line.

This shape is serialized as "trapezoid2" and will be correctly parsed by yFiles Java.

triangleConstant 
public static const triangle:uint = 21

Shape type constant. Specifies a triangular shape, i.e, a shape with three corners.

This shape is serialized as "triangle" and will be correctly parsed by yFiles Java.

TriangleConstant 
public static const Triangle:uint = 3

A triangular shape that points to the top

This shape is serialized as "Triangle" and will be correctly parsed by yFiles.NET

TRIANGLEConstant 
public static const TRIANGLE:uint = 21

Deprecated. Use triangle instead.

See also

triangle
Triangle2Constant 
public static const Triangle2:uint = 4

A triangular shape that points to the top

This shape is serialized as "Triangle2" and will be correctly parsed by yFiles.NET