Class SimulationWindow
java.lang.Object
microsim.gui.shell.SimulationWindow
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.- Author:
- Michele Sonnessa
-
Constructor Summary
ConstructorsConstructorDescriptionSimulationWindow(String model, String key, Container window) Create a new window container with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturn the dimension of the managed window.Return the default bounds for the windowgetKey()Return the key of the SimWindow objectgetModel()The owner model idReturn the the SimWindow containervoidsetDefaultPosition(Rectangle rectangle) Set the default dimensionsvoidAttach a window to the SimWindow containertoString()
-
Constructor Details
-
SimulationWindow
-
-
Method Details
-
getBounds
Return the dimension of the managed window. If the window is not yet created the method returns the default bounds.- Returns:
- The window dimensions if present or the default ones if not.
-
getKey
-
getModel
-
setWindow
Attach a window to the SimWindow container- Parameters:
container- A container window object
-
getWindow
Return the the SimWindow container -
getDefaultPosition
Return the default bounds for the window- Returns:
- The default position of the window
-
setDefaultPosition
Set the default dimensions- Parameters:
rectangle- The new default bounds of the window
-
toString
-