|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.ui.graphicGraph.stylesheet.StyleSheet.NameSpace
public class StyleSheet.NameSpace
A name space is a tuple (default rule, id rule set, class rule set).
The name space defines a default rule for a kind of elements, a set of rules for this kind of elements with a given identifier, and a set or rules for this kind of elements with a given class.
Field Summary | |
---|---|
HashMap<String,Rule> |
byClass
The set of rules for this kind of elements with a given class. |
HashMap<String,Rule> |
byId
The set of rules for this kind of elements with a given identifier. |
Rule |
defaultRule
The default rule for this kind of elements. |
Selector.Type |
type
The kind of elements in this name space. |
Constructor Summary | |
---|---|
StyleSheet.NameSpace(Selector.Type type)
|
Method Summary | |
---|---|
int |
getClassRulesCount()
Number of specific (class) rules. |
Selector.Type |
getGraphElementType()
The kind of elements this name space applies rules to. |
int |
getIdRulesCount()
Number of specific (id) rules. |
String |
toString()
|
String |
toString(int level)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Selector.Type type
public Rule defaultRule
public HashMap<String,Rule> byId
public HashMap<String,Rule> byClass
Constructor Detail |
---|
public StyleSheet.NameSpace(Selector.Type type)
Method Detail |
---|
public Selector.Type getGraphElementType()
public int getIdRulesCount()
public int getClassRulesCount()
public String toString()
toString
in class Object
public String toString(int level)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |