|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.graphics.SimulationGraphic
public class SimulationGraphic
General class for graphical presentation of the elements of a molecular simulation.
| Field Summary | |
|---|---|
protected String |
appName
|
protected Controller |
controller
|
static int |
GRAPHIC_ONLY
|
protected ISimulation |
simulation
|
protected ISpace |
space
|
static int |
TABBED_PANE
|
static WindowAdapter |
WINDOW_CLOSER
|
| Constructor Summary | |
|---|---|
SimulationGraphic(ISimulation simulation,
int graphicType,
ISpace space,
Controller controller)
|
|
SimulationGraphic(ISimulation simulation,
int graphicType,
String appName,
int updateInterval,
ISpace space,
Controller controller)
|
|
SimulationGraphic(ISimulation simulation,
int graphicType,
String appName,
ISpace space,
Controller controller)
|
|
SimulationGraphic(ISimulation simulation,
ISpace space,
Controller controller)
|
|
SimulationGraphic(ISimulation simulation,
String appName,
int updateInterval,
ISpace space,
Controller controller)
|
|
SimulationGraphic(ISimulation simulation,
String appName,
ISpace space,
Controller controller)
|
|
| Method Summary | |
|---|---|
void |
add(Device device)
Adds displays graphic to the simulation display pane |
void |
add(Display display)
|
LinkedList<Device> |
deviceList()
|
LinkedList<Display> |
displayList()
|
DeviceTrioControllerButton |
getController()
|
DisplayBox |
getDisplayBox(IBox box)
|
IAction |
getPaintAction(IBox box)
getPaintAction() |
SimulationPanel |
getPanel()
A visual display of the simulation via a JPanel. |
ISimulation |
getSimulation()
|
static void |
main(String[] args)
Demonstrates how this class is implemented. |
JFrame |
makeAndDisplayFrame()
|
static JFrame |
makeAndDisplayFrame(JPanel panel)
|
static JFrame |
makeAndDisplayFrame(JPanel panel,
String title)
|
JFrame |
makeAndDisplayFrame(String title)
|
void |
remove(Device device)
|
void |
remove(Display display)
|
void |
setPaintInterval(IBox box,
int interval)
setPaintInterval() Sets the integrator interval between repaint actions to the value specified for the given Box. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int GRAPHIC_ONLY
public static final int TABBED_PANE
protected final ISimulation simulation
protected final Controller controller
protected final ISpace space
protected final String appName
public static final WindowAdapter WINDOW_CLOSER
| Constructor Detail |
|---|
public SimulationGraphic(ISimulation simulation,
ISpace space,
Controller controller)
public SimulationGraphic(ISimulation simulation,
int graphicType,
ISpace space,
Controller controller)
public SimulationGraphic(ISimulation simulation,
String appName,
ISpace space,
Controller controller)
public SimulationGraphic(ISimulation simulation,
int graphicType,
String appName,
ISpace space,
Controller controller)
public SimulationGraphic(ISimulation simulation,
String appName,
int updateInterval,
ISpace space,
Controller controller)
public SimulationGraphic(ISimulation simulation,
int graphicType,
String appName,
int updateInterval,
ISpace space,
Controller controller)
| Method Detail |
|---|
public ISimulation getSimulation()
getSimulation in interface SimulationContainerpublic final LinkedList<Display> displayList()
public final LinkedList<Device> deviceList()
public SimulationPanel getPanel()
public void setPaintInterval(IBox box,
int interval)
public IAction getPaintAction(IBox box)
public void add(Display display)
public void remove(Display display)
public void add(Device device)
public void remove(Device device)
public DeviceTrioControllerButton getController()
public final JFrame makeAndDisplayFrame()
public final JFrame makeAndDisplayFrame(String title)
public static JFrame makeAndDisplayFrame(JPanel panel,
String title)
public static JFrame makeAndDisplayFrame(JPanel panel)
public DisplayBox getDisplayBox(IBox box)
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||