E
- the object elements of this List.java.util.Collection<E>
, java.lang.Iterable<E>
, java.util.List<E>
JaxoObjectList
public interface JaxoList<E extends JaxoObject>
extends java.util.List<E>
Modifier and Type | Method | Description |
---|---|---|
JaxoList<E> |
copyOf() |
Returns a copy of this JaxoList, i.e., a new JaxoList with
copies of equal JaxoObjects at equal positions.
|
java.awt.Rectangle |
getBounds() |
Returns the smallest bounding box that contains all the JaxoObjects
of this JaxoList.
|
java.awt.Rectangle |
getBoundsExcept(java.util.Collection<? extends E> excludes) |
Returns the smallest bounding box that contains all the JaxoObjects
of this JaxoList except the ones contained in 'except'.
|
java.awt.Rectangle |
intersection(java.awt.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(java.util.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(java.util.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(java.awt.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.
|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
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(java.awt.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()
java.awt.Rectangle getBounds()
java.awt.Rectangle getBoundsExcept(java.util.Collection<? extends E> excludes)
excludes
- objects to exclude, may be null.java.awt.Rectangle intersection(java.awt.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(java.util.Collection<? extends E> excludes, JaxoGraphics2D g)
excludes
- The JaxoObjects to exlude.g
- The graphics context to paint to.JaxoObject.paint(JaxoGraphics2D)
void paintClippedExcept(java.util.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)
Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.