|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.modifier.Modifier
public abstract class Modifier
Field Summary | |
---|---|
int |
layer
is the strategy used to add this modifier within the existing chain. |
Modifier |
next
The next modifier |
Method Summary | |
---|---|
Modifier |
addModifier(Modifier modifier)
Add a modifier to the end of the modifier chain. |
MCard |
getCard()
Return the card creating or owning this object. |
int |
getNbObjects(java.lang.String objectName,
Test objectTest)
Return occurences number of the given object with the given name. |
int |
paintObject(java.awt.Graphics g,
int startX,
int startY)
Paint all objects of the given MCard component. |
abstract void |
refresh()
Refresh this modifier following the whileCondition. |
void |
removeFromManager()
Remove from the event manager this listener. |
Modifier |
removeObject(java.lang.String objectName,
Test objectTest)
remove from the manager a occurence of object with the specified name |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Modifier next
public int layer
Method Detail |
---|
public int paintObject(java.awt.Graphics g, int startX, int startY)
ObjectModifier
paintObject
in interface ObjectModifier
g
- the graphics used ot paint this object.startX
- the x position where this object can be paint.startY
- the y position where this object can be paint.
public final Modifier addModifier(Modifier modifier)
modifier
- the property modifier to add.
public abstract void refresh()
public int getNbObjects(java.lang.String objectName, Test objectTest)
ObjectModifier
getNbObjects
in interface ObjectModifier
objectName
- the object's name to find within this chain.objectTest
- The test applied on specific modifier to be removed.
public Modifier removeObject(java.lang.String objectName, Test objectTest)
ObjectModifier
removeObject
in interface ObjectModifier
objectName
- the object's name to removeobjectTest
- The test applied on specific modifier to be removed.
public void removeFromManager()
Unregisterable
removeFromManager
in interface Unregisterable
public java.lang.String toString()
toString
in class java.lang.Object
public MCard getCard()
Unregisterable
getCard
in interface Unregisterable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |