|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjas.engine.gui.SimWindow
public class SimWindow
SimWindow keeps preferred dimensions of a simulation windows.
Title: JAS
Description: Java Agent-based Simulation library
Copyright (C) 2002 Michele Sonnessa
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
| Constructor Summary | |
|---|---|
SimWindow(java.lang.String model,
java.lang.String key,
java.awt.Container window)
Create a new window container with the given parameters. |
|
| Method Summary | |
|---|---|
java.awt.Rectangle |
getBounds()
Return the dimension of the managed window. |
java.awt.Rectangle |
getDefaultPosition()
Return the default bounds for the window |
java.lang.String |
getKey()
Return the key of the SimWindow object |
java.lang.String |
getModel()
The owner model id |
void |
setDefaultPosition(java.awt.Rectangle rectangle)
Set the default dimensions |
void |
setWindow(java.awt.Container container)
Attach a window to the SimWindow container |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimWindow(java.lang.String model,
java.lang.String key,
java.awt.Container window)
model - The id of the model ownerkey - The key used to store the element in the HashMapwindow - The window to be managed| Method Detail |
|---|
public java.awt.Rectangle getBounds()
public java.awt.Rectangle getDefaultPosition()
public java.lang.String getKey()
public java.lang.String getModel()
public void setDefaultPosition(java.awt.Rectangle rectangle)
rectangle - The new default bounds of the windowpublic void setWindow(java.awt.Container container)
container - A container window objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||