Class ArrowShapeVisualProperty
- java.lang.Object
-
- org.cytoscape.view.model.AbstractVisualProperty<ArrowShape>
-
- org.cytoscape.view.presentation.property.ArrowShapeVisualProperty
-
- All Implemented Interfaces:
VisualProperty<ArrowShape>
public final class ArrowShapeVisualProperty extends AbstractVisualProperty<ArrowShape>
Visual Property forArrowShapevalues. This implementation provides basic default shapes. Rendering Engines can provide others.Module:
presentation-apiTo use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>presentation-api</artifactId> </dependency>
Cytoscape Backwards Compatibility (Final Class): This class is final and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
-
-
Field Summary
Fields Modifier and Type Field Description static ArrowShapeARROWPointy triangle shaped arrowstatic ArrowShapeARROW_SHORTShorter pointy triangle shaped arrowstatic ArrowShapeCIRCLECircle shaped arrowstatic ArrowShapeCROSS_DELTATriangle shaped arrow with a cross hatchstatic ArrowShapeCROSS_OPEN_DELTAUnfilled triangle shaped arrow with a cross hatchstatic ArrowShapeDELTATriangle shaped arrowstatic ArrowShapeDELTA_SHORT_1Shorter triangle shaped arrowstatic ArrowShapeDELTA_SHORT_2Even shorter triangle shaped arrowstatic ArrowShapeDIAMONDDiamond shaped arrowstatic ArrowShapeDIAMOND_SHORT_1Sorter diamond shaped arrowstatic ArrowShapeDIAMOND_SHORT_2Even shorter diamond shaped arrowstatic ArrowShapeHALF_BOTTOMBottom Half of a triangle shaped arrowstatic ArrowShapeHALF_CIRCLEHalf-Circle shaped arrowstatic ArrowShapeHALF_TOPTop Half of a triangle shaped arrowstatic ArrowShapeNONENo arrowstatic ArrowShapeOPEN_CIRCLEUnfilled Circle shaped arrowstatic ArrowShapeOPEN_DELTAUnfilled triangle shaped arrowstatic ArrowShapeOPEN_DIAMONDUnfilled Diamond shaped arrowstatic ArrowShapeOPEN_HALF_CIRCLEUnfilled Half-Circle shaped arrowstatic ArrowShapeOPEN_SQUAREUnfilled square shaped arrowstatic ArrowShapeSQUARESquare shaped arrowstatic ArrowShapeTT shaped arrow-
Fields inherited from class org.cytoscape.view.model.AbstractVisualProperty
shouldIgnoreDefault
-
-
Constructor Summary
Constructors Constructor Description ArrowShapeVisualProperty(ArrowShape defaultValue, String id, String displayName, Class<? extends CyIdentifiable> modelDataType)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisDefaultShape(ArrowShape shape)ArrowShapeparseSerializableString(String value)Returns an object of type T given a string serialized from the getSerializableString(T value) method.StringtoSerializableString(ArrowShape value)Returns a string of the specified value suitable for serializing to XML other text output.-
Methods inherited from class org.cytoscape.view.model.AbstractVisualProperty
getDefault, getDisplayName, getIdString, getRange, getTargetDataType, shouldIgnoreDefault, toString
-
-
-
-
Field Detail
-
NONE
public static final ArrowShape NONE
No arrow
-
DIAMOND
public static final ArrowShape DIAMOND
Diamond shaped arrow
-
OPEN_DIAMOND
public static final ArrowShape OPEN_DIAMOND
Unfilled Diamond shaped arrow
-
DELTA
public static final ArrowShape DELTA
Triangle shaped arrow
-
OPEN_DELTA
public static final ArrowShape OPEN_DELTA
Unfilled triangle shaped arrow
-
CROSS_DELTA
public static final ArrowShape CROSS_DELTA
Triangle shaped arrow with a cross hatch
-
CROSS_OPEN_DELTA
public static final ArrowShape CROSS_OPEN_DELTA
Unfilled triangle shaped arrow with a cross hatch
-
ARROW
public static final ArrowShape ARROW
Pointy triangle shaped arrow
-
T
public static final ArrowShape T
T shaped arrow
-
CIRCLE
public static final ArrowShape CIRCLE
Circle shaped arrow
-
OPEN_CIRCLE
public static final ArrowShape OPEN_CIRCLE
Unfilled Circle shaped arrow
-
HALF_CIRCLE
public static final ArrowShape HALF_CIRCLE
Half-Circle shaped arrow
-
OPEN_HALF_CIRCLE
public static final ArrowShape OPEN_HALF_CIRCLE
Unfilled Half-Circle shaped arrow
-
SQUARE
public static final ArrowShape SQUARE
Square shaped arrow
-
OPEN_SQUARE
public static final ArrowShape OPEN_SQUARE
Unfilled square shaped arrow
-
HALF_TOP
public static final ArrowShape HALF_TOP
Top Half of a triangle shaped arrow
-
HALF_BOTTOM
public static final ArrowShape HALF_BOTTOM
Bottom Half of a triangle shaped arrow
-
DELTA_SHORT_1
public static final ArrowShape DELTA_SHORT_1
Shorter triangle shaped arrow
-
DELTA_SHORT_2
public static final ArrowShape DELTA_SHORT_2
Even shorter triangle shaped arrow
-
ARROW_SHORT
public static final ArrowShape ARROW_SHORT
Shorter pointy triangle shaped arrow
-
DIAMOND_SHORT_1
public static final ArrowShape DIAMOND_SHORT_1
Sorter diamond shaped arrow
-
DIAMOND_SHORT_2
public static final ArrowShape DIAMOND_SHORT_2
Even shorter diamond shaped arrow
-
-
Constructor Detail
-
ArrowShapeVisualProperty
public ArrowShapeVisualProperty(ArrowShape defaultValue, String id, String displayName, Class<? extends CyIdentifiable> modelDataType)
Constructor.- Parameters:
defaultValue- The default arrow shape.id- A machine readable string identifying this visual property used for XML serialization.displayName- A human readable string used for displays and user interfaces.modelDataType- The model data type associated with this visual property, e.g. CyNode, CyEdge, or CyNetwork.
-
-
Method Detail
-
toSerializableString
public String toSerializableString(ArrowShape value)
Description copied from interface:VisualPropertyReturns a string of the specified value suitable for serializing to XML other text output.- Parameters:
value- the specified value.- Returns:
- a string of the specified value suitable for serializing to XML other text output.
-
parseSerializableString
public ArrowShape parseSerializableString(String value)
Description copied from interface:VisualPropertyReturns an object of type T given a string serialized from the getSerializableString(T value) method.- Parameters:
value- a string serialized from the getSerializableString(T value) method.- Returns:
- an object of type T given a string serialized from the getSerializableString(T value) method.
-
isDefaultShape
public static boolean isDefaultShape(ArrowShape shape)
-
-