|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.mirovsky.trees.CoreferencePattern
public class CoreferencePattern
Title: CoreferencePattern
Description: Class for keeping one pattern of coreferences in trees
Copyright: Copyright (c) 2004
Company: Charles University in Prague, Institute of Formal and Applied Linguistics
Field Summary | |
---|---|
static int |
SHAPE_DASHES_DARC
|
Constructor Summary | |
---|---|
CoreferencePattern()
|
|
CoreferencePattern(ShowMessagesAble p_mess)
Creates an empty pattern |
Method Summary | |
---|---|
void |
addEndNodeIgnoreValue(java.lang.String value)
|
void |
addStartNodeIgnoreValue(java.lang.String value)
|
void |
addValueDependentRule(java.lang.String value,
java.awt.Color color,
int shape)
|
void |
clearEndNodeIgnoreValues()
|
void |
clearStartNodeIgnoreValues()
|
void |
clearValueDependentValues()
|
CoreferencePattern |
getClone()
Returns a deep copy of the coreference pattern |
boolean |
getDisplay()
|
java.lang.String |
getDisplayMode()
|
java.lang.String |
getEndAttrNodeName()
|
javax.swing.DefaultListModel |
getEndNodeIgnoreValues()
|
boolean |
getEndNodeNilArrow()
|
java.awt.Color |
getGeneralColor()
|
int |
getGeneralShape()
|
java.lang.String |
getName()
|
java.lang.String |
getStartAttrNodeName()
|
javax.swing.DefaultListModel |
getStartNodeIgnoreValues()
|
boolean |
getStartNodeNilArrow()
|
java.lang.String |
getValueDependentAttrName()
|
java.awt.Color |
getValueDependentColor(java.lang.String value)
Gives a color to be used with a value of the value dependent attribute. |
int |
getValueDependentShape(java.lang.String value)
Gives a shape to be used with a value of the value dependent attribute. |
javax.swing.DefaultListModel |
getValueDependentValues()
|
boolean |
changeDisplay()
Changes the state of displaying the pattern if editable |
boolean |
isEditable()
Informs whether the coreference pattern allows changing its state |
void |
readPatternFromString(java.lang.String line)
Reads the pattern from String. |
boolean |
setDisplay(boolean display)
|
void |
setDisplayMode(java.lang.String display)
|
void |
setEndAttrNodeName(java.lang.String name)
|
void |
setEndNodeNilArrow(boolean display)
|
void |
setGeneralColor(java.awt.Color color)
|
void |
setGeneralShape(int shape)
|
void |
setName(java.lang.String name)
|
void |
setStartAttrNodeName(java.lang.String name)
|
void |
setStartNodeNilArrow(boolean display)
|
void |
setValueDependentAttrName(java.lang.String name)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SHAPE_DASHES_DARC
Constructor Detail |
---|
public CoreferencePattern()
public CoreferencePattern(ShowMessagesAble p_mess)
Method Detail |
---|
public CoreferencePattern getClone()
public java.lang.String toString()
toString
in class java.lang.Object
public void setName(java.lang.String name)
public java.lang.String getName()
public void setDisplayMode(java.lang.String display)
public java.lang.String getDisplayMode()
public boolean setDisplay(boolean display)
public boolean getDisplay()
public boolean changeDisplay()
public boolean isEditable()
public void setStartNodeNilArrow(boolean display)
public boolean getStartNodeNilArrow()
public void setEndNodeNilArrow(boolean display)
public boolean getEndNodeNilArrow()
public void setStartAttrNodeName(java.lang.String name)
public java.lang.String getStartAttrNodeName()
public void setEndAttrNodeName(java.lang.String name)
public java.lang.String getEndAttrNodeName()
public void addStartNodeIgnoreValue(java.lang.String value)
public void clearStartNodeIgnoreValues()
public javax.swing.DefaultListModel getStartNodeIgnoreValues()
public void addEndNodeIgnoreValue(java.lang.String value)
public void clearEndNodeIgnoreValues()
public javax.swing.DefaultListModel getEndNodeIgnoreValues()
public void setGeneralColor(java.awt.Color color)
public java.awt.Color getGeneralColor()
public void setGeneralShape(int shape)
public int getGeneralShape()
public void setValueDependentAttrName(java.lang.String name)
public java.lang.String getValueDependentAttrName()
public void addValueDependentRule(java.lang.String value, java.awt.Color color, int shape)
public javax.swing.DefaultListModel getValueDependentValues()
public java.awt.Color getValueDependentColor(java.lang.String value)
value
of the value dependent attribute.
If no such rule exists, the general color is given.
value
- String
public int getValueDependentShape(java.lang.String value)
value
of the value dependent attribute.
If no such rule exists, the general shape is given.
value
- String
public void clearValueDependentValues()
public void readPatternFromString(java.lang.String line)
line
- String
Example of the String: "start_attr=coref, end_attr=AID, start_ignore= , start_ignore=null, end_ignore= , end_ignore=null, start_nill_arrow=true, end_nill_arrow=true, general_color=#231812, general_shape=1, value_depend_attr=cortype, value_depend=grammatical;#202020;0, value_depend=textual;#402010;0"
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |