|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.remix.Arena<I>
I - type of elements to be handlepublic class Arena<I>
An Arena is a simplified way of handling graphical elements for Java project
at the University Paris-East. The Arena handle the rendering of a collection
of items of type I which should be provided with an
ItemManager. The Arena reacts to mouse events by calling
MouseHandler methods with some useful parameters such as a
List of items of type I which are in the range of the mouse
action.
| Method Summary | |
|---|---|
javax.swing.JComponent |
createComponent(int width,
int height,
MouseHandler<I> mouseHandler,
KeyHandler keyHandler)
Method which create the graphical component to add to a JFrame in
order to render the application. |
void |
refresh()
Cleans the Arena and redraws all the items of the Collection in the
order of iteration of this last |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void refresh()
Collection in the
order of iteration of this last
public javax.swing.JComponent createComponent(int width,
int height,
MouseHandler<I> mouseHandler,
KeyHandler keyHandler)
JFrame in
order to render the application.
width - width in pixels of the interfaceheight - height in pixels of the interfacemouseHandler - the MouseHandler which will be called by the Arena in case of mouse events
such as mouse click, drag & drop or mouse wheel move
JComponent to add to a JFrame
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||