Package | Description |
---|---|
org.ginsim.core.graph.view.css |
Customise Graph views through CSS-like commands.
|
Modifier and Type | Class and Description |
---|---|
class |
CSSEdgeStyle
EdgeStyle store some graphical attributes of an edge
Attributes :
- lineColor : the line color = any Color
- shape : the style of the edge = straight or curve
- lineEnd : the line end = positive, negative, double or unknown
|
class |
CSSNodeStyle
NodeStyle store some graphical attributes of a node
Attributes :
- background : the color for the background = any Color
- foreground : the color for the text and the border = any Color
- border : the style of the border = simple, raised or strong
- shape : the shape = ellipse or rectangle
|
Modifier and Type | Method and Description |
---|---|
static CSSStyle |
CSSNodeStyle.fromString(String[] lines)
Create a new style from an array of strings
|
static CSSStyle |
CSSEdgeStyle.fromString(String[] lines)
Create a new style from an array of strings
|
CSSStyle |
Selector.getStyle(Object obj)
Get the style for an object using getCategory to determine its category or null if the category doesn't exist or has no category
If possible call getStyleForNode or getStyleForEdge, when you know the type of object
|
CSSStyle |
Selector.getStyle(String category)
Get the style for a category id or null if the category doesn't exist.
|
CSSStyle |
Selector.getStyleForEdge(Object obj)
Get the style for an edge using getCategory to determine its category or null if the category doesn't exist or has no category
|
CSSStyle |
Selector.getStyleForNode(Object obj)
Get the style for a node using getCategory to determine its category or null if the category doesn't exist or has no category
|
protected CSSStyle |
Selector.missingCategory(String category)
Called when the category doesn't exist in the map.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Selector.addCategory(String category,
CSSStyle defaultStyle)
Declare a new category responding to this selector
|
void |
CSSNodeStyle.merge(CSSStyle sa) |
void |
CSSEdgeStyle.merge(CSSStyle st) |
void |
CSSStyle.merge(CSSStyle s)
Merge the defined attributes from the style s
|
protected boolean |
Selector.missingCategory(String category,
CSSStyle style)
Called when the category doesn't exist in the map.
|
boolean |
Selector.setStyle(String category,
CSSStyle style)
Set the style for a category id.
|
Copyright © 2005–2020. All rights reserved.