|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- the object elements of this List.public interface JaxoList<E extends JaxoObject>
A List that can only contain JaxoObjects. Adds some methods to the List interface to manipulate JaxoObjects.
Method Summary | |
---|---|
JaxoList<E> |
copyOf()
Returns a copy of this JaxoList, i.e., a new JaxoList with copies of equal JaxoObjects at equal positions. |
Rectangle |
getBounds()
Returns the smallest bounding box that contains all the JaxoObjects of this JaxoList. |
Rectangle |
getBoundsExcept(Collection<? extends E> excludes)
Returns the smallest bounding box that contains all the JaxoObjects of this JaxoList except the ones contained in 'except'. |
Rectangle |
intersection(Rectangle inside)
Intersection of the bounding box of this JaxoList with the given Rectangle. |
boolean |
isCopy(JaxoList<E> list)
Determines if this JaxoList is a copy of the specified one. |
void |
move(int index,
int newIndex)
Move the object at 'index' to 'newIndex', leaving all other elements in order. |
void |
moveAllObjects(int deltaX,
int deltaY)
Displaces all JaxoObjects by the same amount. |
void |
paint(JaxoGraphics2D g)
Call paint(g) on all elements of JaxoObjects. |
void |
paintClipped(JaxoGraphics2D g)
Call paint on all elements of JaxoObjects if they intersect the current clipping area of the given graphics context. |
void |
paintClippedExcept(Collection<? extends E> excludes,
JaxoGraphics2D g)
Call paint on all elements of JaxoObjects that are not contained in 'excludes' and that intersect the current clipping area of the given graphics context. |
void |
paintExcept(Collection<? extends E> excludes,
JaxoGraphics2D g)
Call paint on all elements of JaxoObjects that are not contained in 'excludes'. |
boolean |
removeMarkedObjects()
Removes all marked JaxoObjects from this list. |
void |
setColor(Color c)
Sets the color of all JaxoObjects in this list. |
boolean |
toEnd(E object)
Moves the specified JaxoObject to the last position in this list. |
boolean |
toFront(E object)
Moves the specified JaxoObject to the first position in this list. |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Method Detail |
---|
JaxoList<E> copyOf()
boolean isCopy(JaxoList<E> list)
list
- The JaxoList to compare against.
void moveAllObjects(int deltaX, int deltaY)
deltaX
- The displacement in x directiondeltaY
- The displacement in y directionvoid setColor(Color c)
c
- The color to set.void move(int index, int newIndex)
index
- The index of the object to move.newIndex
- The new index of the object.boolean toEnd(E object)
object
- The JaxoObject to move.
boolean toFront(E object)
object
- The JaxoObject to move.
boolean removeMarkedObjects()
Rectangle getBounds()
Rectangle getBoundsExcept(Collection<? extends E> excludes)
excludes
- objects to exclude, may be null.
Rectangle intersection(Rectangle inside)
inside
- The Rectangle to intersect with.
getBounds()
void paint(JaxoGraphics2D g)
g
- The graphics context to paint to.JaxoObject.paint(JaxoGraphics2D)
void paintClipped(JaxoGraphics2D g)
g
- The graphics context to paint to.JaxoObject.paint(JaxoGraphics2D)
,
Graphics.hitClip(int,int,int,int)
void paintExcept(Collection<? extends E> excludes, JaxoGraphics2D g)
excludes
- The JaxoObjects to exlude.g
- The graphics context to paint to.JaxoObject.paint(JaxoGraphics2D)
void paintClippedExcept(Collection<? extends E> excludes, JaxoGraphics2D g)
excludes
- The JaxoObjects to exlude.g
- The graphics context to paint to.JaxoObject.paint(JaxoGraphics2D)
,
Graphics.hitClip(int,int,int,int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |