Class BasicVisualLexicon
- All Implemented Interfaces:
VisualLexicon
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>
-
Field Summary
Modifier and TypeFieldDescriptionstatic VisualProperty<Visualizable>
static EdgeBendVisualProperty
If Edge Bend is defined, edges will be rendered as straight or curved lines.static VisualProperty<String>
The text used for the edge label.static VisualProperty<Paint>
TODO Documentationstatic VisualProperty<Font>
The font used for the edge label.static VisualProperty<Integer>
The size of the font used for the edge label.static VisualProperty<Double>
A value used to rotate the edge label about its center, in degrees.static VisualProperty<Integer>
The opacity of the color of the edge label.static VisualProperty<Double>
TODO Documentationstatic VisualProperty<LineType>
The type of stoke used to render the line (solid, dashed, etc.)static VisualProperty<Paint>
The color of the whole edge (including the stroke and arrows) when it is selected or unselected.static VisualProperty<Boolean>
TODO Documentationstatic VisualProperty<Paint>
The color of the whole edge (stroke and arrows) when selected.static VisualProperty<Paint>
The color of the edge source arrow when selected.static VisualProperty<ArrowShape>
The shape of the arrow on the source node end of the edge.static VisualProperty<Double>
TODO Documentationstatic VisualProperty<Paint>
The color of the edge source arrow when unselected.static VisualProperty<EdgeStacking>
The strategy to use to render edges when there are more than one edge between a pair of nodes.static VisualProperty<Double>
Controls how tightly packed edges are when there are more than one edge between a pair of nodes.static VisualProperty<Paint>
The color of the edge line when selected.static VisualProperty<Paint>
The color of the edge line.static VisualProperty<Paint>
The color of the edge target arrow when selected.static VisualProperty<ArrowShape>
The shape of the arrow on the target node end of the edge.static VisualProperty<Double>
TODO Documentationstatic VisualProperty<Paint>
The color of the edge target arrow when unselected.static VisualProperty<String>
The text of the tooltip that appears when a mouse hovers over the edge.static VisualProperty<Integer>
The opacity of the of the edge.static VisualProperty<Paint>
The color of the whole edge (stroke and arrows) when it is not selected.static VisualProperty<Boolean>
Hides the edge if set to false.static VisualProperty<Double>
The width of the edge line.static VisualProperty<Double>
When rendering edges in 2D, edges with a higher Z-order will be rendered on top of edges with lower Z-order.static VisualProperty<Visualizable>
static VisualProperty<Paint>
The background color of the network view.static VisualProperty<Double>
The X location of network view center.static VisualProperty<Double>
The Y location of network view center.static VisualProperty<Double>
TODO Documentationstatic VisualProperty<Double>
TODO Documentationstatic VisualProperty<Double>
The height of the network view.static VisualProperty<Double>
The zoom level of the network view.static VisualProperty<Double>
The size (width and height) of the network view.static VisualProperty<String>
The title of the network view.static VisualProperty<Double>
The width of the network view.static VisualProperty<Visualizable>
static VisualProperty<LineType>
The type of line used for the border of the node.static VisualProperty<Paint>
The color of the border of the node.static VisualProperty<Integer>
TODO Documentationstatic VisualProperty<Double>
TODO Documentationstatic VisualProperty<Double>
TODO Documentationstatic VisualProperty<Paint>
The color of the node.static VisualProperty<Double>
The height of the node.static VisualProperty<String>
The text used for the node label.static VisualProperty<Paint>
The color of the node label.static VisualProperty<Font>
The font used for the node label.static VisualProperty<Integer>
The size of the font used for the node label.static VisualProperty<ObjectPosition>
The anchor point on the node relative to which the node label will be positioned.static VisualProperty<Double>
A value used to rotate the node label about its center, in degrees.static VisualProperty<Integer>
TODO Documentationstatic VisualProperty<Double>
The maximum width of the node label.static VisualProperty<Boolean>
A boolean value that indicates whether a nested network should be visualized (assuming a nested network is present for the specified node).static VisualProperty<Integer>
static VisualProperty<Paint>
The color of the whole node, including its border, label and selected paint.static VisualProperty<Boolean>
TODO Documentationstatic VisualProperty<Paint>
The color of the node when it is in the selected state.static VisualProperty<NodeShape>
The shape of the node.static VisualProperty<Double>
The size of the node.static VisualProperty<String>
The text of the tooltip that appears when a mouse hovers over the node.static VisualProperty<Integer>
The opacity of the color of the node.static VisualProperty<Boolean>
Hides the node if set to false.static VisualProperty<Double>
The width of the node.static VisualProperty<Double>
X location of the node.static VisualProperty<Double>
Y location of the node.static VisualProperty<Double>
Z location of the node.Fields inherited from class org.cytoscape.view.presentation.property.AbstractVisualLexicon
ANGLE_DOUBLE_RANGE, ARBITRARY_DOUBLE_RANGE, ARBITRARY_STRING_RANGE, MAX_COLOR, MIN_COLOR, NONE_ZERO_POSITIVE_DOUBLE_RANGE, PAINT_RANGE, rootVisualProperty, STRING_SET
-
Constructor Summary
ConstructorDescriptionBasicVisualLexicon(VisualProperty<NullDataType> rootVisualProperty)
Constructor for VisualLexicon. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBendFactory(BendFactory bendFactory, Map<?,?> props)
protected void
protected Class<?>[]
getTypes()
Methods inherited from class org.cytoscape.view.presentation.property.AbstractVisualLexicon
addIdentifierMapping, addVisualProperty, getAllDescendants, getAllVisualProperties, getRootVisualProperty, getSupportedValueRange, getVisualLexiconNode, isSupported, lookup
-
Field Details
-
NETWORK
-
NODE
-
EDGE
-
NODE_PAINT
The color of the whole node, including its border, label and selected paint.Property Type:
Color
Property Range: A non-null color
-
NODE_FILL_COLOR
The color of the node.Property Type:
Color
Property Range: A non-null color
-
NODE_LABEL_COLOR
The color of the node label.Property Type:
Color
Property Range: A non-null color
-
NODE_LABEL
The text used for the node label.Property Type:
String
Property Range: Any string
-
NODE_X_LOCATION
X location of the node. Default value of this will be ignored. The value will be used only when mapping function is defined.Property Type:
Double
Property Range:
Double.NEGATIVE_INFINITY
<= value <=Double.POSITIVE_INFINITY
-
NODE_Y_LOCATION
Y location of the node. Default value of this will be ignored. The value will be used only when mapping function is defined.Property Type:
Double
Property Range:
Double.NEGATIVE_INFINITY
<= value <=Double.POSITIVE_INFINITY
-
NODE_SIZE
The size of the node. Width and height will be equal. This property is mutually exclusive of Node Height and Node Width.Property Type:
Double
Property Range: 0 < value <=
Double.POSITIVE_INFINITY
-
NODE_WIDTH
The width of the node. Width will be independent of height. This property is mutually exclusive of Node Size.Property Type:
Double
Property Range: 0 < value <=
Double.POSITIVE_INFINITY
-
NODE_HEIGHT
The height of the node. Height will be independent of width. This property is mutually exclusive of Node Size.Property Type:
Double
Property Range: 0 < value <=
Double.POSITIVE_INFINITY
-
NODE_VISIBLE
Hides the node if set to false. By default, this value is set to true.Property Type:
Boolean
Property Range: true or false
-
NODE_SELECTED
TODO DocumentationProperty Type:
Boolean
Property Range: true or false
-
NODE_NESTED_NETWORK_IMAGE_VISIBLE
A boolean value that indicates whether a nested network should be visualized (assuming a nested network is present for the specified node).Property Type:
Boolean
Property Range: true or false
-
NODE_LABEL_WIDTH
The maximum width of the node label. If the node label is wider than the specified width, Cytoscape will automatically wrap the label on space characters. Cytoscape will not hyphenate words, meaning that if a single word (i.e. no spaces) is longer than maximum width, the word will be displayed beyond the maximum width.Property Type:
Double
Property Range: 0 < value <=
Double.POSITIVE_INFINITY
-
NODE_LABEL_POSITION
The anchor point on the node relative to which the node label will be positioned. Includes the anchor point of the target, the justification, and an x,y offset.Property Type:
ObjectPosition
Property Range: A non-null ObjectPosition value.
-
NODE_LABEL_ROTATION
A value used to rotate the node label about its center, in degrees.Property Type:
Double
Property Range: -360 <= value <= 360
-
NODE_SELECTED_PAINT
The color of the node when it is in the selected state.Property Type:
Color
Property Range: A non-null color
-
NODE_BORDER_PAINT
The color of the border of the node.Property Type:
Color
Property Range: A non-null color
-
NODE_BORDER_WIDTH
TODO DocumentationProperty Type:
Double
Property Range: 0 <= value <=
Double.POSITIVE_INFINITY
-
NODE_TOOLTIP
The text of the tooltip that appears when a mouse hovers over the node.Property Type:
String
Property Range: Any string
-
NODE_LABEL_FONT_FACE
The font used for the node label.Property Type:
Font
Property Range: Any font available in the local graphics environment
-
NODE_LABEL_FONT_SIZE
The size of the font used for the node label.Property Type:
Integer
Property Range: 1 <= value <=
Integer.MAX_VALUE
-
NODE_TRANSPARENCY
The opacity of the color of the node. Zero means totally transparent, and 255 means totally opaque.Property Type:
Integer
Property Range: 0 <= value <= 255
-
NODE_OPACITY
- See Also:
NODE_TRANSPARENCY
-
NODE_BORDER_TRANSPARENCY
TODO DocumentationProperty Type:
Integer
Property Range: 0 <= value <= 255
-
NODE_LABEL_TRANSPARENCY
TODO DocumentationProperty Type:
Integer
Property Range: 0 <= value <= 255
-
NODE_SHAPE
The shape of the node.Additional Details:
NodeShapeVisualProperty
-
NODE_BORDER_LINE_TYPE
The type of line used for the border of the node.Additional Details:
LineTypeVisualProperty
-
EDGE_PAINT
The color of the whole edge (including the stroke and arrows) when it is selected or unselected.Property Type:
Color
Property Range: A non-null color
-
EDGE_LABEL_COLOR
TODO DocumentationProperty Type:
Color
Property Range: A non-null color
-
EDGE_LABEL
The text used for the edge label.Property Type:
String
Property Range: Any string
-
EDGE_WIDTH
The width of the edge line.Property Type:
Double
Property Range: 0 < value <=
Double.POSITIVE_INFINITY
-
EDGE_VISIBLE
Hides the edge if set to false. By default, this value is set to true.Property Type:
Boolean
Property Range: true or false
-
EDGE_SELECTED
TODO DocumentationProperty Type:
Boolean
Property Range: true or false
-
EDGE_LINE_TYPE
The type of stoke used to render the line (solid, dashed, etc.)Additional Details:
LineTypeVisualProperty
-
EDGE_TOOLTIP
The text of the tooltip that appears when a mouse hovers over the edge.Property Type:
String
Property Range: Any string
-
EDGE_LABEL_FONT_FACE
The font used for the edge label.Property Type:
Font
Property Range: Any font available in the local graphics environment
-
EDGE_LABEL_FONT_SIZE
The size of the font used for the edge label.Property Type:
Integer
Property Range: 1 <= value <=
Integer.MAX_VALUE
-
EDGE_LABEL_TRANSPARENCY
The opacity of the color of the edge label. Zero means totally transparent, and 255 means totally opaque.Property Type:
Integer
Property Range: 0 <= value <= 255
-
EDGE_SELECTED_PAINT
The color of the whole edge (stroke and arrows) when selected.Property Type:
Color
Property Range: A non-null color
-
EDGE_UNSELECTED_PAINT
The color of the whole edge (stroke and arrows) when it is not selected.Property Type:
Color
Property Range: A non-null color
-
EDGE_STROKE_SELECTED_PAINT
The color of the edge line when selected.Property Type:
Color
Property Range: A non-null color
-
EDGE_STROKE_UNSELECTED_PAINT
The color of the edge line.Property Type:
Color
Property Range: A non-null color
-
EDGE_TRANSPARENCY
The opacity of the of the edge. Zero means totally transparent, and 255 means totally opaque.Property Type:
Integer
Property Range: 0 <= value <= 255
-
EDGE_SOURCE_ARROW_SHAPE
The shape of the arrow on the source node end of the edge.Additional Details:
ArrowShapeVisualProperty
-
EDGE_TARGET_ARROW_SHAPE
The shape of the arrow on the target node end of the edge.Additional Details:
ArrowShapeVisualProperty
-
EDGE_SOURCE_ARROW_SIZE
TODO DocumentationProperty Type:
Double
Property Range: 0 < value <=
Double.POSITIVE_INFINITY
-
EDGE_TARGET_ARROW_SIZE
TODO DocumentationProperty Type:
Double
Property Range: 0 < value <=
Double.POSITIVE_INFINITY
-
EDGE_SOURCE_ARROW_SELECTED_PAINT
The color of the edge source arrow when selected.Property Type:
Color
Property Range: A non-null color
-
EDGE_TARGET_ARROW_SELECTED_PAINT
The color of the edge target arrow when selected.Property Type:
Color
Property Range: A non-null color
-
EDGE_SOURCE_ARROW_UNSELECTED_PAINT
The color of the edge source arrow when unselected.Property Type:
Color
Property Range: A non-null color
-
EDGE_TARGET_ARROW_UNSELECTED_PAINT
The color of the edge target arrow when unselected.Property Type:
Color
Property Range: A non-null color
-
EDGE_LABEL_ROTATION
A value used to rotate the edge label about its center, in degrees.Property Type:
Double
Property Range: -360 <= value <= 360
-
EDGE_BEND
If Edge Bend is defined, edges will be rendered as straight or curved lines. If this value is set to true, edges will be drawn as curved lines. -
EDGE_LABEL_WIDTH
TODO DocumentationProperty Type:
Double
Property Range: 0 < value <=
Double.POSITIVE_INFINITY
-
EDGE_STACKING
The strategy to use to render edges when there are more than one edge between a pair of nodes.Additional Details:
EdgeStackingVisualProperty
-
EDGE_STACKING_DENSITY
Controls how tightly packed edges are when there are more than one edge between a pair of nodes. -
EDGE_Z_ORDER
When rendering edges in 2D, edges with a higher Z-order will be rendered on top of edges with lower Z-order. If two edges overlap and have the same Z-order then the order they are rendered in is unpredictable.Property Type:
Double
Property Range:
Double.NEGATIVE_INFINITY
<= value <=Double.POSITIVE_INFINITY
-
NETWORK_SCALE_FACTOR
The zoom level of the network view.Property Type:
Double
Property Range: 0 < value <=
Double.POSITIVE_INFINITY
-
NETWORK_CENTER_X_LOCATION
The X location of network view center.Property Type:
Double
Property Range:
Double.NEGATIVE_INFINITY
<= value <=Double.POSITIVE_INFINITY
-
NETWORK_CENTER_Y_LOCATION
The Y location of network view center.Property Type:
Double
Property Range:
Double.NEGATIVE_INFINITY
<= value <=Double.POSITIVE_INFINITY
-
NETWORK_SIZE
The size (width and height) of the network view.Property Type:
Double
Property Range: 0 < value <=
Double.POSITIVE_INFINITY
-
NETWORK_WIDTH
The width of the network view.Property Type:
Double
Property Range: 0 < value <=
Double.POSITIVE_INFINITY
-
NETWORK_HEIGHT
The height of the network view.Property Type:
Double
Property Range: 0 < value <=
Double.POSITIVE_INFINITY
-
NETWORK_TITLE
The title of the network view.Property Type:
String
Property Range: Any string
-
NETWORK_BACKGROUND_PAINT
The background color of the network view.Property Type:
Color
Property Range: A non-null color
-
NODE_Z_LOCATION
Z location of the node. Default value of this will be ignored. The value will be used only when mapping function is defined.Property Type:
Double
Property Range:
Double.NEGATIVE_INFINITY
<= value <=Double.POSITIVE_INFINITY
-
NODE_DEPTH
TODO DocumentationProperty Type:
Double
Property Range: 0 < value <=
Double.POSITIVE_INFINITY
-
NETWORK_CENTER_Z_LOCATION
TODO DocumentationProperty Type:
Double
Property Range:
Double.NEGATIVE_INFINITY
<= value <=Double.POSITIVE_INFINITY
-
NETWORK_DEPTH
TODO DocumentationProperty Type:
Double
Property Range: 0 < value <=
Double.POSITIVE_INFINITY
-
-
Constructor Details
-
BasicVisualLexicon
Constructor for VisualLexicon. The parameters are required for all lexicons.- Parameters:
rootVisualProperty
- Root of the visual property tree.
-
-
Method Details
-
getTypes
- Specified by:
getTypes
in classAbstractVisualLexicon
-
addBendFactory
-
addVisualProperties
- Specified by:
addVisualProperties
in classAbstractVisualLexicon
-