|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplugins.big.bigsnake3d.keeper.KeepersList
public class KeepersList
Class that encapsulates a list of SnakeKeepers.
Constructor Summary | |
---|---|
KeepersList()
Default constructor. |
Method Summary | |
---|---|
boolean |
activateSnakeKeeper(int i)
Activates the i-th SnakeKeeper form the internal list. |
boolean |
activateSnakeKeeper(SnakeKeeper keeper)
If the SnakeKeeper passed as a parameter is in the list, it
becomes activated and the method returns true . |
void |
addAndActivateKeeper(SnakeKeeper keeper)
Adds a SnakeKeeper at the end of the list, and sets it to
selected. |
SnakeKeeper |
getActiveSnakeKeeper()
Returns the active SnakeKeeper . |
int |
getNumKeepers()
Returns the number of SnakeKeeper in the internal list. |
boolean |
isActiveSnakeKeeper(SnakeKeeper keeper)
Returns true if the SnakeKeeper passed as a
parameters if the active one. |
boolean |
isEmpty()
Returns true is the list contains no elements. |
void |
rasterizeActiveSnake()
Sends a message to the active snake that it should be converted to a binary mask. |
void |
removeActiveSnakeKeeper()
Removes the active SnakeKeeper from the list and sets to
active the next one in the list. |
void |
removeAllSnakeKeepers()
Removes all of the elements from the list, and removes the SnakeKeeper from the associated images. |
void |
setActionPlane(ActionPlane actionPlane)
Sets the ActionPlane to all elements of
SnakeKeeper contained in the list. |
void |
setDisplaySettings(DisplaySettings displaySettings)
Sets the DisplaySettings to all elements of
SnakeKeeper contained in the list. |
void |
setSnakeEditMode(SnakeEditMode editingMode)
Sets the SnakeEditMode to all elements of
SnakeKeeper contained in the list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeepersList()
Method Detail |
---|
public SnakeKeeper getActiveSnakeKeeper()
SnakeKeeper
.
public void addAndActivateKeeper(SnakeKeeper keeper)
SnakeKeeper
at the end of the list, and sets it to
selected.
public void rasterizeActiveSnake()
public void removeActiveSnakeKeeper()
SnakeKeeper
from the list and sets to
active the next one in the list. If the removed keeper is the last one in
the list,
public void removeAllSnakeKeepers()
SnakeKeeper
from the associated images.
public boolean activateSnakeKeeper(SnakeKeeper keeper)
SnakeKeeper
passed as a parameter is in the list, it
becomes activated and the method returns true
. If the
element is not in the list, it returns false
.
public boolean activateSnakeKeeper(int i)
SnakeKeeper
form the internal list. If
the list have less than i-th elements, the method returns
false
, otherwise it returns true
.
public boolean isActiveSnakeKeeper(SnakeKeeper keeper)
true
if the SnakeKeeper
passed as a
parameters if the active one.
public void setActionPlane(ActionPlane actionPlane)
ActionPlane
to all elements of
SnakeKeeper
contained in the list.
public void setDisplaySettings(DisplaySettings displaySettings)
DisplaySettings
to all elements of
SnakeKeeper
contained in the list.
public void setSnakeEditMode(SnakeEditMode editingMode)
SnakeEditMode
to all elements of
SnakeKeeper
contained in the list.
public int getNumKeepers()
SnakeKeeper
in the internal list.
public boolean isEmpty()
true
is the list contains no elements.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |