Class Rule
java.lang.Object
org.graphstream.ui.graphicGraph.stylesheet.Rule
public class Rule extends Object
Style application rule.
A rule is made of a selector and values. The selector identifies the element(s) this rule applies to, and the values are styles to apply to the matched elements.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaddGroup(String groupId)Specify that this rule participates in the given style group.HashSet<String>getGroups()The group this rule participate in, maybe null if the rule does not participate in any group.StylegetStyle()This rule style.booleanmatchId(String identifier)True if this rule selector match the given identifier.voidremoveGroup(String groupId)Remove this rule from the style group.voidsetStyle(Style style)Change the style.StringtoString()StringtoString(int level)
-
Field Details
-
Constructor Details
-
Method Details
-
getStyle
This rule style.- Returns:
- The rule style.
-
getGroups
The group this rule participate in, maybe null if the rule does not participate in any group.- Returns:
- The group set or null.
-
matchId
True if this rule selector match the given identifier.- Parameters:
identifier- The identifier to test for the match.- Returns:
- True if matching.
-
setStyle
Change the style.- Parameters:
style- A style specification.
-
addGroup
Specify that this rule participates in the given style group.- Parameters:
groupId- The group unique identifier.
-
removeGroup
Remove this rule from the style group.- Parameters:
groupId- The group unique identifier.
-
toString
-
toString
-