public interface JaxoList
extends java.util.List
| Modifier and Type | Method and Description |
|---|---|
JaxoList |
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 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 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 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 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(JaxoObject object)
Moves the specified JaxoObject to the last position in this list.
|
boolean |
toFront(JaxoObject object)
Moves the specified JaxoObject to the first position in this list.
|
JaxoList copyOf()
boolean isCopy(JaxoList 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(JaxoObject object)
object - The JaxoObject to move.boolean toFront(JaxoObject object)
object - The JaxoObject to move.boolean removeMarkedObjects()
java.awt.Rectangle getBounds()
java.awt.Rectangle getBoundsExcept(java.util.Collection 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 excludes,
JaxoGraphics2D g)
excludes - The JaxoObjects to exlude.g - The graphics context to paint to.JaxoObject.paint(JaxoGraphics2D)void paintClippedExcept(java.util.Collection 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.