public final class ArrowShapeVisualProperty extends AbstractVisualProperty<ArrowShape>
ArrowShape
values.
This implementation provides basic default shapes. Rendering
Engines can provide others.Module: presentation-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>presentation-api</artifactId> </dependency>
Modifier and Type | Field and Description |
---|---|
static ArrowShape |
ARROW
Pointy triangle shaped arrow
|
static ArrowShape |
ARROW_SHORT
Shorter pointy triangle shaped arrow
|
static ArrowShape |
CIRCLE
Circle shaped arrow
|
static ArrowShape |
CROSS_DELTA
Triangle shaped arrow with a cross hatch
|
static ArrowShape |
CROSS_OPEN_DELTA
Unfilled triangle shaped arrow with a cross hatch
|
static ArrowShape |
DELTA
Triangle shaped arrow
|
static ArrowShape |
DELTA_SHORT_1
Shorter triangle shaped arrow
|
static ArrowShape |
DELTA_SHORT_2
Even shorter triangle shaped arrow
|
static ArrowShape |
DIAMOND
Diamond shaped arrow
|
static ArrowShape |
DIAMOND_SHORT_1
Sorter diamond shaped arrow
|
static ArrowShape |
DIAMOND_SHORT_2
Even shorter diamond shaped arrow
|
static ArrowShape |
HALF_BOTTOM
Bottom Half of a triangle shaped arrow
|
static ArrowShape |
HALF_CIRCLE
Half-Circle shaped arrow
|
static ArrowShape |
HALF_TOP
Top Half of a triangle shaped arrow
|
static ArrowShape |
NONE
No arrow
|
static ArrowShape |
OPEN_CIRCLE
Unfilled Circle shaped arrow
|
static ArrowShape |
OPEN_DELTA
Unfilled triangle shaped arrow
|
static ArrowShape |
OPEN_DIAMOND
Unfilled Diamond shaped arrow
|
static ArrowShape |
OPEN_HALF_CIRCLE
Unfilled Half-Circle shaped arrow
|
static ArrowShape |
OPEN_SQUARE
Unfilled square shaped arrow
|
static ArrowShape |
SQUARE
Square shaped arrow
|
static ArrowShape |
T
T shaped arrow
|
shouldIgnoreDefault
Constructor and Description |
---|
ArrowShapeVisualProperty(ArrowShape defaultValue,
String id,
String displayName,
Class<? extends CyIdentifiable> modelDataType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isDefaultShape(ArrowShape shape) |
ArrowShape |
parseSerializableString(String value)
Returns an object of type T given a string serialized from the getSerializableString(T value)
method.
|
String |
toSerializableString(ArrowShape value)
Returns a string of the specified value suitable for serializing to XML
other text output.
|
getDefault, getDisplayName, getIdString, getRange, getTargetDataType, shouldIgnoreDefault, toString
public static final ArrowShape NONE
public static final ArrowShape DIAMOND
public static final ArrowShape OPEN_DIAMOND
public static final ArrowShape DELTA
public static final ArrowShape OPEN_DELTA
public static final ArrowShape CROSS_DELTA
public static final ArrowShape CROSS_OPEN_DELTA
public static final ArrowShape ARROW
public static final ArrowShape T
public static final ArrowShape CIRCLE
public static final ArrowShape OPEN_CIRCLE
public static final ArrowShape HALF_CIRCLE
public static final ArrowShape OPEN_HALF_CIRCLE
public static final ArrowShape SQUARE
public static final ArrowShape OPEN_SQUARE
public static final ArrowShape HALF_TOP
public static final ArrowShape HALF_BOTTOM
public static final ArrowShape DELTA_SHORT_1
public static final ArrowShape DELTA_SHORT_2
public static final ArrowShape ARROW_SHORT
public static final ArrowShape DIAMOND_SHORT_1
public static final ArrowShape DIAMOND_SHORT_2
public ArrowShapeVisualProperty(ArrowShape defaultValue, String id, String displayName, Class<? extends CyIdentifiable> modelDataType)
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.public String toSerializableString(ArrowShape value)
VisualProperty
value
- the specified value.public ArrowShape parseSerializableString(String value)
VisualProperty
value
- a string serialized from the getSerializableString(T value) method.public static boolean isDefaultShape(ArrowShape shape)
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.