|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--ach.vectorGraphics.ShapeList
ShapeList.java
Copyright (c) 2002-2004 Helge Hackbarth, All Rights Reserved.
A list containg vector graphic objects e.g. used for annotations.
THE AUTHOR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY
OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, OR NON-INFRINGEMENT. THE AUTHOR SHALL NOT BE LIABLE FOR ANY
DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
ShapeList()
Simple Constructor. |
|
ShapeList(ShapeList sl)
Constructs a new ShapeList that is a copy of the specified ShapeList object. |
Method Summary | |
void |
applyBounds(java.awt.Rectangle bounds)
Set a new rectangular affine transformation for all objects in the shapelist. |
void |
applyQuadrantRotation(int rotationIndex)
Apply quadrant rotation (1=90 degree, 2=180 degree, 3=270 degree). |
void |
drawAll(java.awt.Graphics g,
boolean XORallowed)
Draw all objects in the shapelist do a given Graphics. |
void |
drawAllXORmode(java.awt.Graphics g)
Draw all objects in the shapelist do a given Graphics with forced XOR mode |
ach.vectorGraphics.Shape |
findContainingShape(java.awt.Point p)
Find the topmost shape that contains the given point (the point with these coordinates is painted by the shape). |
ach.vectorGraphics.AffineTransform |
getAffineTransform()
Get a copy of the current affine transformation applied to all shapes. |
java.awt.Rectangle |
getBounds()
Get the Rectangle that was used to create the current affine transformation matrix |
ach.vectorGraphics.AffineTransform |
getOrientationTransform()
Get a copy of the affine transformation representing the current view orientation. |
ShapeList |
getTaggedShapes()
Get a ShapeList containing all elements currently tagged |
void |
incModCount()
change modified state by virtually incrementing a modificcation counter |
boolean |
isModified()
Return modified state |
void |
moveRelAll(int dx,
int dy)
Move all elements relative a given number of units using coordinates of the target system. |
void |
removeTaggedShapes()
Remove all shapes which are currently tagged |
void |
resetModifiedState()
Reset modified state to unmodified |
void |
setAffineTransformAll(ach.vectorGraphics.AffineTransform at)
Set a new affine transformation for all objects in the shapelist. |
void |
setOrientationTransform(ach.vectorGraphics.AffineTransform at)
Set a new affine transformation representing the current view orientation. |
void |
setTaggedAll(boolean tagged,
java.awt.Graphics g)
Set all objects of the shapelist "tagged" (marked) or "untagged" |
int |
taggedCount()
Return the number of tagged elements |
Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
Constructor Detail |
public ShapeList()
public ShapeList(ShapeList sl)
Method Detail |
public ach.vectorGraphics.AffineTransform getOrientationTransform()
public void setOrientationTransform(ach.vectorGraphics.AffineTransform at)
at
- is the affine transformation representing the current view orientationpublic ach.vectorGraphics.AffineTransform getAffineTransform()
public void setAffineTransformAll(ach.vectorGraphics.AffineTransform at)
at
- is an affine transformationpublic void applyBounds(java.awt.Rectangle bounds)
bounds
- is a Rectangle used to create a new affine transformation matrixpublic void applyQuadrantRotation(int rotationIndex)
index
- for quadrant rotation (1=90 degree, 2=180 degree, 3=270 degree)public java.awt.Rectangle getBounds()
public void drawAll(java.awt.Graphics g, boolean XORallowed)
g
- is the Graphics context to be used for drawingXORallowed
- set false to override the individual drawing modes (e.g. if printing does not support XOR mode) to paint modepublic void drawAllXORmode(java.awt.Graphics g)
g
- is the Graphics context to be used for drawingpublic ach.vectorGraphics.Shape findContainingShape(java.awt.Point p)
p
- Point to be checked which shape contains itpublic void setTaggedAll(boolean tagged, java.awt.Graphics g)
tagged
- boolean controlling the tag state (true for tagged, false for untagged)g
- is the Graphics context to be used for drawingpublic int taggedCount()
public ShapeList getTaggedShapes()
public void moveRelAll(int dx, int dy)
dx
- number of units (coordinates of the target system) to move horizontallydy
- number of units (coordinates of the target system) to move verticallypublic void removeTaggedShapes()
public boolean isModified()
public void resetModifiedState()
public void incModCount()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |