public class KeepersList
extends java.lang.Object
Constructor and Description |
---|
KeepersList()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
activateSplineCurveKeeper(int i)
Activates the i-th
SplineCurveKeeper form the internal list. |
boolean |
activateSplineCurveKeeper(SplineCurveKeeper keeper)
If the
SplineCurveKeeper passed as a parameter is in the
list, it becomes activated and the method returns true . |
void |
addAndActivateKeeper(SplineCurveKeeper keeper)
Adds a
SplineCurveKeeper at the end of the list, and sets it
to selected. |
void |
deactivateActiveSplineCurveKeeper()
Deactivates the active
SplineCurveKeeper if any. |
boolean |
deactivateSplineCurveKeeper(SplineCurveKeeper keeper)
If the
SplineCurveKeeper passed as a parameter is in the
list, it becomes deactivated and the method returns true . |
SplineCurveKeeper |
getActiveSplineCurveKeeper()
Returns the active
SplineCurveKeeper . |
int |
getNumKeepers()
Returns the number of
SplineCurveKeeper in the internal
list. |
boolean |
isActiveSplineCurveKeeper(SplineCurveKeeper keeper)
Returns
true if the SplineCurveKeeper passed as
a parameters if the active one. |
boolean |
isEmpty()
Returns
true is the list contains no elements. |
void |
removeActiveSplineCurveKeeper()
Removes the active
SplineCurveKeeper from the list and sets
to active the next one in the list. |
void |
removeAllSplineCurveKeepers()
Removes all of the elements from the list, and removes the
SplineCurveKeeper from the associated images. |
void |
setSplineCurveEditMode(SplineCurveEditMode editingMode)
Sets the
SplineCurveEditMode to all elements of
SplineCurveKeeper contained in the list. |
public boolean activateSplineCurveKeeper(SplineCurveKeeper keeper)
SplineCurveKeeper
passed as a parameter is in the
list, it becomes activated and the method returns true
. If
the element is not in the list, the method returns false
.public boolean activateSplineCurveKeeper(int i)
SplineCurveKeeper
form the internal list.
If the list have less than i-th elements, the method returns
false
, otherwise it returns true
.public void addAndActivateKeeper(SplineCurveKeeper keeper)
SplineCurveKeeper
at the end of the list, and sets it
to selected.public void deactivateActiveSplineCurveKeeper()
SplineCurveKeeper
if any.public boolean deactivateSplineCurveKeeper(SplineCurveKeeper keeper)
SplineCurveKeeper
passed as a parameter is in the
list, it becomes deactivated and the method returns true
. If
the element is not in the list, the method returns false
.public SplineCurveKeeper getActiveSplineCurveKeeper()
SplineCurveKeeper
.public int getNumKeepers()
SplineCurveKeeper
in the internal
list.public boolean isActiveSplineCurveKeeper(SplineCurveKeeper keeper)
true
if the SplineCurveKeeper
passed as
a parameters if the active one.public boolean isEmpty()
true
is the list contains no elements.public void removeActiveSplineCurveKeeper()
SplineCurveKeeper
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 removeAllSplineCurveKeepers()
SplineCurveKeeper
from the associated images.public void setSplineCurveEditMode(SplineCurveEditMode editingMode)
SplineCurveEditMode
to all elements of
SplineCurveKeeper
contained in the list.