|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.gui.DocumentEditor.TypeData
Holds the GUI metadata for a given annotation type. An annotation type is uniquely identified by the name of its AnnotationSet and the name of the type. For the default annotation set of a document (which has no name) the "<Default>" value is used. The GUI metadata contains, amongst other things, the style used for highlighting the annotations of this type. These styles are cascading styles (there is a relation of inheritance between them) so the annotation type style inherits the characteristics from the style associated with the annotation set it belongs to. For eficiency reasons there are some intermediary styles between a parent and a child style that used for changing the display in one operation.
Field Summary | |
private Style |
actualStyle
The style actually used to affect the text. |
private Set |
annotations
|
private Style |
middleStyle
Used internally for attribute inheritance tricks. |
private DefaultMutableTreeNode |
node
The node that represents this set/type in the types tree |
private DocumentEditor.Range |
range
|
private String |
set
|
private Style |
style
The style used for annotations of this type |
private String |
type
|
private boolean |
visible
|
Constructor Summary | |
DocumentEditor.TypeData(String set,
String type,
boolean visible)
|
Method Summary | |
private AttributeSet |
getActualStyle()
|
Set |
getAnnotations()
|
AttributeSet |
getAttributes()
|
DefaultMutableTreeNode |
getNode()
|
String |
getSet()
|
String |
getTitle()
|
String |
getType()
|
boolean |
getVisible()
|
void |
setAnnotations(Set as)
|
void |
setAttributes(AttributeSet newAttributes)
|
void |
setNode(DefaultMutableTreeNode node)
|
void |
setSet(String set)
|
void |
setVisible(boolean isVisible)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private String set
private String type
private boolean visible
private Style style
private Style middleStyle
private Style actualStyle
private Set annotations
private DocumentEditor.Range range
private DefaultMutableTreeNode node
Constructor Detail |
public DocumentEditor.TypeData(String set, String type, boolean visible)
Method Detail |
public String getSet()
public void setSet(String set)
public String getType()
public String getTitle()
public boolean getVisible()
public void setVisible(boolean isVisible)
public AttributeSet getAttributes()
private AttributeSet getActualStyle()
public void setAttributes(AttributeSet newAttributes)
public void setAnnotations(Set as)
public Set getAnnotations()
public void setNode(DefaultMutableTreeNode node)
public DefaultMutableTreeNode getNode()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |