|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eml.MMAX2.annotation.scheme.MMAX2AnnotationScheme
public class MMAX2AnnotationScheme
Constructor Summary | |
---|---|
MMAX2AnnotationScheme(java.lang.String schemefilename)
|
Method Summary | |
---|---|
void |
addValueIDToAttributeIDMapping(java.lang.String valueID,
java.lang.String attributeID)
|
void |
annotationHintToBack()
|
void |
annotationHintToFront()
|
void |
destroyDependentComponents()
|
java.util.ArrayList |
getAllAttributeNames()
|
java.util.ArrayList |
getAllDistinctDisplayAttributeNames_()
This method returns an ArrayList of all distinct DisplayAttributeNames (cased!), irrespective of their SchemeLevels. |
MMAX2Attribute |
getAttributeByID(java.lang.String id)
(API) Returns the MMAX2Attribute object with ID attributeID, as defined in annotation scheme file. |
java.lang.String[] |
getAttributeNamesByType(int type)
|
java.util.ArrayList |
getAttributeNamesForValues(java.lang.String valueList,
java.lang.String optionalAttributeName)
This method returns a list of attribute names for which *all* the values in valueList are defined, or empty list. |
MMAX2AttributePanel |
getAttributePanel()
|
java.util.ArrayList |
getAttributes()
|
MMAX2Attribute[] |
getAttributes(Markable markable)
This method returns an array of MMAX2Attribute objects reflecting the attributes of Markable markable. |
MMAX2Attribute[] |
getAttributesByName(java.lang.String nameRegExp)
(API) Returns an array of all MMAX2Attribute objects of whose name matches the RegExp attributeNameRegExp. |
MMAX2Attribute[] |
getAttributesByNameAndType(java.lang.String name,
int type)
(API) Returns an array of all MMAX2Attribute objects of type attributeType whose name matches the RegExp attributeNameRegExp. |
MMAX2Attribute[] |
getAttributesByNameAndType(java.lang.String name,
int type1,
int type2)
(API) Returns an array of all MMAX2Attribute objects of type attributeType1 or attributeType2 whose name matches the RegExp attributeNameRegExp. |
MMAX2Attribute[] |
getAttributesByType(int type)
(API) Returns an array of all MMAX2Attribute objects of type attributeType. |
MMAX2Attribute[] |
getAttributesByType(int type1,
int type2)
(API) Returns an array of all MMAX2Attribute objects of either type attributeType1 or attributeType2. |
int |
getAttributeTypeByAttributeName(java.lang.String attribute)
|
MMAX2AttributePanel |
getCurrentAttributePanel()
|
java.util.ArrayList |
getIndependentAttributes(boolean enable)
This method produces an ArrayList of those MMAX2Attributes in annotation scheme order that do not depend on any other attribute. |
java.util.ArrayList |
getInitialAttributes()
This method is used to create the list of attributes to be applied to new markables. |
java.lang.String |
getSchemeFileName()
|
int |
getSize()
|
MMAX2Attribute |
getUniqueAttributeByName(java.lang.String nameRegExp)
(API) Returns the MMAX2Attribute object whose name matches the RegExp attributeNameRegExp. |
MMAX2Attribute |
getUniqueAttributeByNameAndType(java.lang.String name,
int type)
(API) Returns the MMAX2Attribute object of type attributeType whose name matches the RegExp attributeNameRegExp. |
MMAX2Attribute |
getUniqueAttributeByNameAndType(java.lang.String name,
int type1,
int type2)
(API) Returns a MMAX2Attribute object of type attributeType1 or attributeType2 whose name matches the RegExp attributeNameRegExp. |
MMAX2Attribute |
getUniqueAttributeByType(int type)
(API) Returns the MMAX2Attribute object of type attributeType. |
MMAX2Attribute |
getUniqueAttributeByType(int type1,
int type2)
(API) Returns the MMAX2Attribute object of either type attributeType1 or attributeType2. |
void |
hideAnnotationHint()
|
boolean |
isDefined(java.lang.String attributename)
|
void |
mapSelections(MMAX2Attribute[] removedLevels,
MMAX2Attribute[] requestedLevels)
This method transfers those selections in removedLevels that are valid for requestedLevels to the latter. |
static java.lang.String |
readHTMLFromFile(java.lang.String file)
|
void |
reset()
This method resets the AttributeWindow to the initial state as defined in this AnnotationScheme |
void |
resetAllAttributes()
|
void |
setAttributePanelContainer(MMAX2AttributePanelContainer _container)
|
void |
setEnabled(boolean status)
|
void |
setMMAX2(MMAX2 _mmax2)
|
void |
showAnnotationHint(java.lang.String hint,
boolean _lock,
java.lang.String _att)
|
void |
valueChanged(MMAX2Attribute callingAttribute,
MMAX2Attribute topCallingAttribute,
MMAX2Attribute[] oldRemovedAttributes,
int position,
java.util.ArrayList requestedAttributesAsList)
This method is called from the mmaxattribute callingAttribute when the user changed some value on it by clicking a button or changing the selection in a listbox. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MMAX2AnnotationScheme(java.lang.String schemefilename)
Method Detail |
---|
public static java.lang.String readHTMLFromFile(java.lang.String file)
public final void setAttributePanelContainer(MMAX2AttributePanelContainer _container)
public java.lang.String getSchemeFileName()
public final void showAnnotationHint(java.lang.String hint, boolean _lock, java.lang.String _att)
public final void hideAnnotationHint()
public final void annotationHintToFront()
public final void annotationHintToBack()
public MMAX2Attribute[] getAttributesByType(int type)
AnnotationSchemeAPI
MMAX2Attribute
objects of type attributeType.
getAttributesByType
in interface AnnotationSchemeAPI
type
- The type of the MMAX2Attribute
objects to return, as specified in the annotation scheme file, one of the values defined in AttributeAPI
.
MMAX2Attribute
objects of type attributeType, or empty array.public MMAX2Attribute getUniqueAttributeByType(int type)
AnnotationSchemeAPI
MMAX2Attribute
object of type attributeType.
getUniqueAttributeByType
in interface AnnotationSchemeAPI
type
- The type of the MMAX2Attribute
object to return, as specified in the annotation scheme file, one of the values defined in AttributeAPI
.
MMAX2Attribute
objects of type attributeType, or null.public MMAX2Attribute[] getAttributesByType(int type1, int type2)
AnnotationSchemeAPI
MMAX2Attribute
objects of either type attributeType1 or attributeType2.
getAttributesByType
in interface AnnotationSchemeAPI
type1
- The type of the MMAX2Attribute
objects to return, as specified in the annotation scheme file, one of the values defined in AttributeAPI
.type2
- The type of the MMAX2Attribute
objects to return, as specified in the annotation scheme file, one of the values defined in AttributeAPI
.
MMAX2Attribute
objects of type attributeType1 and attributeType2, or empty array.public MMAX2Attribute getUniqueAttributeByType(int type1, int type2)
AnnotationSchemeAPI
MMAX2Attribute
object of either type attributeType1 or attributeType2.
getUniqueAttributeByType
in interface AnnotationSchemeAPI
type1
- The type of the MMAX2Attribute
object to return, as specified in the annotation scheme file, one of the values defined in AttributeAPI
.type2
- The type of the MMAX2Attribute
object to return, as specified in the annotation scheme file, one of the values defined in AttributeAPI
.
MMAX2Attribute
object of type attributeType1 or attributeType2, or empty array.public MMAX2Attribute[] getAttributesByName(java.lang.String nameRegExp)
AnnotationSchemeAPI
MMAX2Attribute
objects of whose name matches the RegExp attributeNameRegExp.
getAttributesByName
in interface AnnotationSchemeAPI
nameRegExp
- A regular expression to match the name(s) of the MMAX2Attribute
object(s) to return, as specified in the annotation scheme file.
MMAX2Attribute
objects whose names match the RegExp attributeName, or empty array.public MMAX2Attribute getUniqueAttributeByName(java.lang.String nameRegExp)
AnnotationSchemeAPI
MMAX2Attribute
object whose name matches the RegExp attributeNameRegExp.
getUniqueAttributeByName
in interface AnnotationSchemeAPI
nameRegExp
- A regular expression to match the name(s) of the MMAX2Attribute
object(s) to return, as specified in the annotation scheme file.
MMAX2Attribute
objects whose names match the RegExp attributeName, or empty array.public MMAX2Attribute[] getAttributesByNameAndType(java.lang.String name, int type)
AnnotationSchemeAPI
MMAX2Attribute
objects of type attributeType whose name matches the RegExp attributeNameRegExp.
getAttributesByNameAndType
in interface AnnotationSchemeAPI
name
- A regular expression to match the name(s) of the MMAX2Attribute
object(s) to return, as specified in the annotation scheme file.type
- The type of the MMAX2Attribute
objects to return, as specified in the annotation scheme file, one of the values defined in AttributeAPI
.
MMAX2Attribute
objects of type attributeType whose name match attributeNameRegExp, or empty array.public MMAX2Attribute getUniqueAttributeByNameAndType(java.lang.String name, int type)
AnnotationSchemeAPI
MMAX2Attribute
object of type attributeType whose name matches the RegExp attributeNameRegExp.
getUniqueAttributeByNameAndType
in interface AnnotationSchemeAPI
name
- A regular expression to match the name of the MMAX2Attribute
object to return, as specified in the annotation scheme file.type
- The type of the MMAX2Attribute
object to return, as specified in the annotation scheme file, one of the values defined in AttributeAPI
.
MMAX2Attribute
object of type attributeType whose name match attributeNameRegExp, or empty array.public MMAX2Attribute[] getAttributesByNameAndType(java.lang.String name, int type1, int type2)
AnnotationSchemeAPI
MMAX2Attribute
objects of type attributeType1 or attributeType2 whose name matches the RegExp attributeNameRegExp.
getAttributesByNameAndType
in interface AnnotationSchemeAPI
name
- A regular expression to match the name(s) of the MMAX2Attribute
object(s) to return, as specified in the annotation scheme file.type1
- The type of the MMAX2Attribute
objects to return, as specified in the annotation scheme file, one of the values defined in AttributeAPI
.type2
- The type of the MMAX2Attribute
objects to return, as specified in the annotation scheme file, one of the values defined in AttributeAPI
.
MMAX2Attribute
objects of type attributeType1 or attributeType2 whose name match attributeNameRegExp, or empty array.public MMAX2Attribute getUniqueAttributeByNameAndType(java.lang.String name, int type1, int type2)
AnnotationSchemeAPI
MMAX2Attribute
object of type attributeType1 or attributeType2 whose name matches the RegExp attributeNameRegExp.
getUniqueAttributeByNameAndType
in interface AnnotationSchemeAPI
name
- A regular expression to match the name of the MMAX2Attribute
object to return, as specified in the annotation scheme file.type1
- The type of the MMAX2Attribute
object to return, as specified in the annotation scheme file, one of the values defined in AttributeAPI
.type2
- The type of the MMAX2Attribute
object to return, as specified in the annotation scheme file, one of the values defined in AttributeAPI
.
MMAX2Attribute
objects of type attributeType1 or attributeType2 whose name match attributeNameRegExp, or empty array.public final void setMMAX2(MMAX2 _mmax2)
public final java.util.ArrayList getIndependentAttributes(boolean enable)
public MMAX2AttributePanel getAttributePanel()
public void valueChanged(MMAX2Attribute callingAttribute, MMAX2Attribute topCallingAttribute, MMAX2Attribute[] oldRemovedAttributes, int position, java.util.ArrayList requestedAttributesAsList)
public void mapSelections(MMAX2Attribute[] removedLevels, MMAX2Attribute[] requestedLevels)
public void addValueIDToAttributeIDMapping(java.lang.String valueID, java.lang.String attributeID)
public void resetAllAttributes()
public void reset()
public void setEnabled(boolean status)
public java.util.ArrayList getInitialAttributes()
public MMAX2Attribute[] getAttributes(Markable markable)
public boolean isDefined(java.lang.String attributename)
public int getAttributeTypeByAttributeName(java.lang.String attribute)
public java.util.ArrayList getAllAttributeNames()
public java.util.ArrayList getAllDistinctDisplayAttributeNames_()
public final MMAX2AttributePanel getCurrentAttributePanel()
public final int getSize()
public final java.util.ArrayList getAttributes()
public final MMAX2Attribute getAttributeByID(java.lang.String id)
AnnotationSchemeAPI
MMAX2Attribute
object with ID attributeID, as defined in annotation scheme file.
getAttributeByID
in interface AnnotationSchemeAPI
id
- The ID of the MMAX2Attribute
object to return.
MMAX2Attribute
object with ID attributeID, or null.public final java.lang.String[] getAttributeNamesByType(int type)
public final java.util.ArrayList getAttributeNamesForValues(java.lang.String valueList, java.lang.String optionalAttributeName)
public final void destroyDependentComponents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |