|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eml.MMAX2.annotation.markables.MarkableSet
public class MarkableSet
Constructor Summary | |
---|---|
MarkableSet(java.lang.String _attributeValue,
boolean _ordered,
int _lineWidth,
java.awt.Color _color,
int _lineStyle,
MarkableRelation relation)
Creates a new MarkableSet for attributeValue _attributeValue (e.g. |
Method Summary | |
---|---|
void |
addMarkable(Markable _markable)
Adds a Markable to this MarkableSet. |
boolean |
containsMarkable(Markable markable)
(API) Whether this MarkableSet contains the Markable markable. |
boolean |
containsMatchingMarkableFromLevel(java.lang.String markableProducingQuery,
MarkableLevel level)
|
void |
drawSet(java.awt.Graphics2D graphics)
|
java.lang.String |
getAttributeValue()
Returns the value of the MARKABLE_SET-type MarkableRelation that this set belongs to, e.g. |
java.util.ArrayList |
getIDVilainRepresentation()
|
Markable |
getInitialMarkable()
(API) Returns the Markable object that this MarkableSet starts with. |
boolean |
getIsPermanent()
|
int |
getMarkableIndex(Markable _markable)
(API) Returns the position of Markable markable in this MarkableSet. |
MarkableRelation |
getMarkableRelation()
(API) Returns the MarkableRelation object that this MarkableSet is associated with. |
Markable[] |
getOrderedMarkables()
(API) Returns an array of all Markable objects in this MarkableSet. |
java.util.HashSet |
getSetOfStrings()
|
int |
getSize()
|
java.util.ArrayList |
getVilainRepresentation()
|
boolean |
isOpaque()
|
boolean |
matches(int requiredSize,
java.util.ArrayList startsWithMarkables)
|
void |
refresh(java.awt.Graphics2D graphics)
This method is called whenever this set is to be re-rendered. |
void |
removeMarkable(Markable _markable)
|
void |
removeMeFromMarkableRelation()
|
void |
select(java.awt.Graphics2D graphics,
MMAX2Document doc,
Markable currentlySelectedMarkable)
This method is called ONCE when this set is to be rendered initially. |
void |
setFlagLevel(int _level)
|
void |
setIsPermanent(boolean _permanent)
|
void |
setOpaque(boolean status)
|
boolean |
startsWithMarkable(Markable markable)
|
boolean |
startsWithMatchingMarkableFromLevel(java.lang.String markableProducingQuery,
MarkableLevel level)
|
java.lang.String |
toString()
|
void |
unselect(MMAX2Document doc)
This method is called ONCE to remove all selection-dependent rendering from this set. |
void |
updateLinePoints()
|
void |
updateLinePoints(boolean recalcExtent)
This method updates the cached XY-coordinates of the top left corners of each Markable in this MarkableSet. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MarkableSet(java.lang.String _attributeValue, boolean _ordered, int _lineWidth, java.awt.Color _color, int _lineStyle, MarkableRelation relation)
Method Detail |
---|
public final void setIsPermanent(boolean _permanent)
setIsPermanent
in interface Renderable
public final boolean getIsPermanent()
getIsPermanent
in interface Renderable
public final void setOpaque(boolean status)
public final boolean isOpaque()
isOpaque
in interface Renderable
public final java.lang.String getAttributeValue()
public final void removeMarkable(Markable _markable)
public final void addMarkable(Markable _markable)
public final void updateLinePoints()
updateLinePoints
in interface Renderable
public final void updateLinePoints(boolean recalcExtent)
public final void select(java.awt.Graphics2D graphics, MMAX2Document doc, Markable currentlySelectedMarkable)
select
in interface Renderable
public final void refresh(java.awt.Graphics2D graphics)
refresh
in interface Renderable
public final void unselect(MMAX2Document doc)
unselect
in interface Renderable
public final void drawSet(java.awt.Graphics2D graphics)
public final boolean containsMatchingMarkableFromLevel(java.lang.String markableProducingQuery, MarkableLevel level)
public final boolean startsWithMatchingMarkableFromLevel(java.lang.String markableProducingQuery, MarkableLevel level)
public final MarkableRelation getMarkableRelation()
MarkableSetAPI
MarkableRelation
object that this MarkableSet is associated with.
getMarkableRelation
in interface MarkableSetAPI
MarkableRelation
object that this MarkableSet is associated with.public final boolean containsMarkable(Markable markable)
MarkableSetAPI
Markable
markable.
containsMarkable
in interface Renderable
containsMarkable
in interface MarkableSetAPI
markable
- The Markable
object to be tested for membership in this MarkableSet.
public final boolean startsWithMarkable(Markable markable)
public final Markable getInitialMarkable()
MarkableSetAPI
Markable
object that this MarkableSet starts with.
getInitialMarkable
in interface MarkableSetAPI
Markable
object that this MarkableSet begins with. This method is available for ordered sets only!public final Markable[] getOrderedMarkables()
MarkableSetAPI
Markable
objects in this MarkableSet.
getOrderedMarkables
in interface MarkableSetAPI
Markable
objects in this MarkableSet, in discourse order. This method is available for ordered sets only!public final int getMarkableIndex(Markable _markable)
MarkableSetAPI
Markable
markable in this MarkableSet.
getMarkableIndex
in interface MarkableSetAPI
_markable
- The Markable
to be localized in this MarkableSet.
Markable
markable, or -1. This method is available for ordered sets only!public final boolean matches(int requiredSize, java.util.ArrayList startsWithMarkables)
public final java.util.ArrayList getVilainRepresentation()
public final java.util.ArrayList getIDVilainRepresentation()
public final java.util.HashSet getSetOfStrings()
public final int getSize()
public final java.lang.String toString()
toString
in class java.lang.Object
public final void removeMeFromMarkableRelation()
public void setFlagLevel(int _level)
setFlagLevel
in interface Renderable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |