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

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

public class Arrow
extends java.lang.Object
implements IArrow, ISharedInstanceProvider

A yFiles FLEX arrow data object.


Field Summary
static java.lang.String TYPE_CIRCLE
          A circular arrow
static java.lang.String TYPE_CROSS
          A cross shaped arrow.
static java.lang.String TYPE_CUSTOM
          Custom arrow.
static java.lang.String TYPE_DEFAULT
          Default arrow
static java.lang.String TYPE_DELTA
          A triangular arrow.
static java.lang.String TYPE_DIAMOND
          A diamond shaped arrow
static java.lang.String TYPE_NONE
          No arrow
static java.lang.String TYPE_SHORT
          A short and broad arrow.
static java.lang.String TYPE_SIMPLE
          A simple arrow.
static java.lang.String TYPE_SPEARHEAD
          An arrow shaped like a spearhead
 
Constructor Summary
Arrow()
           
 
Method Summary
 double getCropLength()
          Gets the cropping length associated with this instance.
 IFill getFill()
          Gets the IFill the arrow is filled with.
 double getScale()
          Gets the scale factor.
 java.util.Collection getSharedInstances()
          Returns an Collection for objects that shall be shared.
 IStroke getStroke()
          Gets the IStroke the arrow's outline is drawn with.
 java.lang.String getType()
          The arrow type.
 void setCropLength(double cropLength)
          Sets the cropping length associated with this instance.
 void setFill(IFill fill)
          Sets the IFill the arrow is filled with.
 void setScale(double scale)
          Sets the scale factor.
 void setStroke(IStroke stroke)
          Sets the IStroke the arrow's outline is drawn with.
 void setType(java.lang.String type)
          The arrow type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_CUSTOM

public static final java.lang.String TYPE_CUSTOM
Custom arrow.

See Also:
Constant Field Values

TYPE_NONE

public static final java.lang.String TYPE_NONE
No arrow

See Also:
Constant Field Values

TYPE_DEFAULT

public static final java.lang.String TYPE_DEFAULT
Default arrow

See Also:
Constant Field Values

TYPE_SPEARHEAD

public static final java.lang.String TYPE_SPEARHEAD
An arrow shaped like a spearhead

See Also:
Constant Field Values

TYPE_CIRCLE

public static final java.lang.String TYPE_CIRCLE
A circular arrow

See Also:
Constant Field Values

TYPE_DIAMOND

public static final java.lang.String TYPE_DIAMOND
A diamond shaped arrow

See Also:
Constant Field Values

TYPE_DELTA

public static final java.lang.String TYPE_DELTA
A triangular arrow.

See Also:
Constant Field Values

TYPE_SHORT

public static final java.lang.String TYPE_SHORT
A short and broad arrow.

See Also:
Constant Field Values

TYPE_CROSS

public static final java.lang.String TYPE_CROSS
A cross shaped arrow.

See Also:
Constant Field Values

TYPE_SIMPLE

public static final java.lang.String TYPE_SIMPLE
A simple arrow.

See Also:
Constant Field Values
Constructor Detail

Arrow

public Arrow()
Method Detail

getFill

public IFill getFill()
Gets the IFill the arrow is filled with.


setFill

public void setFill(IFill fill)
Sets the IFill the arrow is filled with.

Parameters:
fill -

getStroke

public IStroke getStroke()
Gets the IStroke the arrow's outline is drawn with.


setStroke

public void setStroke(IStroke stroke)
Sets the IStroke the arrow's outline is drawn with.


getType

public java.lang.String getType()
The arrow type. One of the type constants defined in this class.


setType

public void setType(java.lang.String type)
The arrow type. One of the type constants defined in this class.


setCropLength

public void setCropLength(double cropLength)
Sets the cropping length associated with this instance.

This value is used by the client's IEdgeStyle implementations to let the edge appear to end shortly before it's actual target.


getCropLength

public double getCropLength()
Gets the cropping length associated with this instance.

This value is used by the client's IEdgeStyle implementations to let the edge appear to end shortly before it's actual target.

The default value is 0.0.

Specified by:
getCropLength in interface IArrow

getScale

public double getScale()
Gets the scale factor. The default value is 1.0.


setScale

public void setScale(double scale)
Sets the scale factor.


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