org.rr0.is.presentation.view.report.applet.draw
Class DrawSelection

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--org.rr0.is.presentation.view.report.applet.draw.DrawSelection

public class DrawSelection
extends Vector

A selection of DrawEvents.

Author:
Jerôme Beau
Version: 7 déc. 2003 19:20:58

Field Summary
 private Rectanglebounds
           

Fields inherited from class java.util.Vector
elementData, elementCount, capacityIncrement

Fields inherited from class java.util.AbstractList
modCount

Constructor Summary
DrawSelection()
           

Method Summary
 voidadd(DrawEvent currentEvent)
          Add to the selection
 voidclear()
          Empties the selection.
 RectanglegetBounds()
           
 intgetHeight()
           
 intgetWidth()
           
 intgetX()
           
 intgetY()
           
 voidremove(DrawEvent currentEvent)
          Remove an element from the collection
 voidscaleHeight(double heightFactor)
           
 voidscaleWidth(double widthFactor)
           
 voidselect(boolean selected)
          (un)select the elements of the selection
 voidsetColor(Color color)
          Set the color of the whole collection.
 voidsetLocation(int newX, int newY)
           
 voidsetTranparency(int alpha)
           
 voidtranslate(int deltaX, int deltaY)
           

Methods inherited from class java.util.Vector
copyInto, trimToSize, ensureCapacity, setSize, capacity, size, isEmpty, elements, contains, indexOf, indexOf, lastIndexOf, lastIndexOf, elementAt, firstElement, lastElement, setElementAt, removeElementAt, insertElementAt, addElement, removeElement, removeAllElements, clone, toArray, toArray, get, set, add, remove, add, remove, containsAll, addAll, removeAll, retainAll, addAll, equals, hashCode, toString, subList, removeRange

Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait, finalize

Field Detail

bounds

private Rectangle bounds
Constructor Detail

DrawSelection

public DrawSelection()
Method Detail

add

public void add(DrawEvent currentEvent)
Add to the selection
Parameters:
currentEvent The DrawEvent to add

clear

public void clear()
Empties the selection.

getBounds

public Rectangle getBounds()

getHeight

public int getHeight()

getWidth

public int getWidth()

getX

public int getX()

getY

public int getY()

remove

public void remove(DrawEvent currentEvent)
Remove an element from the collection
Parameters:
currentEvent The DrawEvent to remove.

scaleHeight

public void scaleHeight(double heightFactor)

scaleWidth

public void scaleWidth(double widthFactor)

select

public void select(boolean selected)
(un)select the elements of the selection
Parameters:
selected

setColor

public void setColor(Color color)
Set the color of the whole collection.
Parameters:
color The Color to set.

setLocation

public void setLocation(int newX, int newY)

setTranparency

public void setTranparency(int alpha)

translate

public void translate(int deltaX, int deltaY)

Association Links

to Class java.awt.Rectangle