VRJConfig UI API
v2.0


org.vrjuggler.vrjconfig.commoneditors.placer
Interface PlacerModel

All Known Implementing Classes:
AbstractPlacerModel

public interface PlacerModel

Interface that defines a suitable data model for a Placer.


Method Summary
 void addPlacerModelListener(PlacerModelListener listener)
          Adds a listener that's notified each time this data model changes.
 Dimension getDesktopSize()
          Gets the size of the desktop in this data model.
 Object getElement(int idx)
          Gets the object at the given index.
 Object getElementAt(Point pt)
          Gets the topmost element that contains the given point.
 int getIndexOfElementAt(Point pt)
          Gets the index of the topmost element that contains the given point.
 Point getLocationOf(int idx)
          Gets the location of the upper-left corner of the element at the given index.
 int getSize()
          Gets the number of objects in this data model.
 Dimension getSizeOf(int idx)
          Gets the size of the element at the given index.
 void moveToFront(int idx)
          Moves the object at the selected index to the front.
 void removePlacerModelListener(PlacerModelListener listener)
          Removes a listener that's notified each time this data model changes.
 void setDesktopSize(Dimension desktopSize)
          Sets the size of the desktop in this data model.
 void setLocationOf(int idx, Point pt)
          Sets the location of the upper-left corner of the element at the given index.
 void setSizeOf(int idx, Dimension size)
          Sets the size of the element at the given index.
 

Method Detail

getElement

Object getElement(int idx)
Gets the object at the given index.


getElementAt

Object getElementAt(Point pt)
Gets the topmost element that contains the given point. Returns null if no objects contain the given point.


getIndexOfElementAt

int getIndexOfElementAt(Point pt)
Gets the index of the topmost element that contains the given point. Returns -1 if no objects contain the given point.


getSizeOf

Dimension getSizeOf(int idx)
Gets the size of the element at the given index.


setSizeOf

void setSizeOf(int idx,
               Dimension size)
Sets the size of the element at the given index.


getLocationOf

Point getLocationOf(int idx)
Gets the location of the upper-left corner of the element at the given index.


setLocationOf

void setLocationOf(int idx,
                   Point pt)
Sets the location of the upper-left corner of the element at the given index.


moveToFront

void moveToFront(int idx)
Moves the object at the selected index to the front. In other words, it is moved from its current index to index 0.


getSize

int getSize()
Gets the number of objects in this data model.


getDesktopSize

Dimension getDesktopSize()
Gets the size of the desktop in this data model.


setDesktopSize

void setDesktopSize(Dimension desktopSize)
Sets the size of the desktop in this data model.


addPlacerModelListener

void addPlacerModelListener(PlacerModelListener listener)
Adds a listener that's notified each time this data model changes.


removePlacerModelListener

void removePlacerModelListener(PlacerModelListener listener)
Removes a listener that's notified each time this data model changes.


VRJConfig UI API
v2.0


Copyright © 1998–2005 Iowa State University. All rights reserved.