fi.hut.tml.xsmiles.gui.components.focusmanager
Class FocusPoint

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended byfi.hut.tml.xsmiles.gui.components.focusmanager.FocusPoint
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class FocusPoint
extends java.util.Vector

This is a simple class to define Focus Points

Author:
Pablo Cesar, Mikko Honkala
See Also:
Serialized Form

Field Summary
 java.awt.Component component
           
 VisualElementImpl element
           
 java.awt.Rectangle rect
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
FocusPoint()
           
FocusPoint(int x, int y, int width, int height)
           
FocusPoint(int x, int y, int width, int height, java.awt.Component comp)
           
FocusPoint(java.awt.Point p, java.awt.Dimension dim)
           
FocusPoint(java.awt.Point p, java.awt.Dimension dim, java.awt.Component comp)
           
FocusPoint(java.awt.Rectangle[] listRects)
           
FocusPoint(java.awt.Rectangle[] listRects, java.awt.Component comp)
           
FocusPoint(java.awt.Rectangle[] listRects, VisualElementImpl e)
           
 
Method Summary
 void addComponent(java.awt.Component component)
           
 void addRectangle(java.awt.Rectangle rectangle)
           
 void addRectangles(java.awt.Rectangle[] rectangles)
           
 void addVisualElement(VisualElementImpl e)
           
 java.awt.Component getComponent()
           
 int getNumRectangles()
           
 java.awt.Rectangle getRectangleAt(int i)
           
 java.awt.Rectangle[] getRectangles()
           
 VisualElementImpl getVisualElement()
           
 void move(java.awt.Point value)
           
 void removeRectangle(java.awt.Rectangle rectangle)
           
 void removeRectangleAt(int index)
           
 java.lang.String toString()
           
 void translate(java.awt.Point value)
           
 
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, 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
 

Field Detail

component

public java.awt.Component component

rect

public java.awt.Rectangle rect

element

public VisualElementImpl element
Constructor Detail

FocusPoint

public FocusPoint()

FocusPoint

public FocusPoint(java.awt.Point p,
                  java.awt.Dimension dim)

FocusPoint

public FocusPoint(int x,
                  int y,
                  int width,
                  int height)

FocusPoint

public FocusPoint(java.awt.Rectangle[] listRects)

FocusPoint

public FocusPoint(java.awt.Point p,
                  java.awt.Dimension dim,
                  java.awt.Component comp)

FocusPoint

public FocusPoint(int x,
                  int y,
                  int width,
                  int height,
                  java.awt.Component comp)

FocusPoint

public FocusPoint(java.awt.Rectangle[] listRects,
                  java.awt.Component comp)

FocusPoint

public FocusPoint(java.awt.Rectangle[] listRects,
                  VisualElementImpl e)
Method Detail

getVisualElement

public VisualElementImpl getVisualElement()

addVisualElement

public void addVisualElement(VisualElementImpl e)

getComponent

public java.awt.Component getComponent()

addComponent

public void addComponent(java.awt.Component component)

addRectangle

public void addRectangle(java.awt.Rectangle rectangle)

addRectangles

public void addRectangles(java.awt.Rectangle[] rectangles)

removeRectangle

public void removeRectangle(java.awt.Rectangle rectangle)

removeRectangleAt

public void removeRectangleAt(int index)

getRectangles

public java.awt.Rectangle[] getRectangles()

getRectangleAt

public java.awt.Rectangle getRectangleAt(int i)

getNumRectangles

public int getNumRectangles()

translate

public void translate(java.awt.Point value)

move

public void move(java.awt.Point value)

toString

public java.lang.String toString()


X-Smiles 1.2