public class ViewerPanel
extends javax.swing.JPanel
Modifier and Type | Field and Description |
---|---|
static java.awt.Font |
FONT_BIG |
static java.awt.Font |
FONT_DEFAULT |
static java.awt.Font |
FONT_MIDDLE |
static java.awt.Font |
FONT_SMALL |
static java.awt.Color |
HEADER_BG_COLOR |
static java.awt.Color |
INFO_HEADER_BG_COLOR |
static java.awt.Color |
INFO_HEADER_FG_COLOR |
static java.awt.Color |
INFO_OLD_FG_COLOR |
static java.awt.Color |
INFO_TEXT_BG_COLOR |
static java.awt.Color |
INFO_TEXT_FG_COLOR |
static long |
REPAINT_DELAY |
static java.awt.Color |
STATUS_BG_COLOR |
static java.awt.Color |
STATUS_MSG_COLOR |
static int |
TimeFlowMode_CONTINIUM |
static int |
TimeFlowMode_STEP_FLOW |
static int |
TimeFlowMode_STEP_SINGLE |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
ViewerPanel(java.net.URL cmdFile,
java.net.URL simulationIconDir,
java.applet.AppletContext appletContext,
java.util.Locale locale)
starts viewer application
|
ViewerPanel(java.net.URL cmdFile,
java.net.URL simulationIconDir,
java.net.URL snapshotDir,
java.applet.AppletContext appletContext,
java.util.Locale locale)
starts viewer application
|
Modifier and Type | Method and Description |
---|---|
static InfoPane |
getInfoPane()
InfoPane is a window to show data of an entity
|
LanguageSupport |
getLanguage() |
static java.io.PrintWriter |
getLogWriter()
get's the logWriter
|
Model |
getModel() |
double |
getSimulationSpeed()
get simulation-speed-value stored in viewer application
|
SimulationThread |
getSimulationThread() |
long |
getSimulationTime()
get actual simulation-time
|
SimulationTime |
getSimulationTimeInstance()
get simulation-time-instance created in fileReset()
|
double |
getSimulationZoom()
get simulation-zoom-value
|
java.awt.Point |
getSimulationZoomCenter() |
int |
getTimeFlowMode()
set time-flow-mode, possible values can you find in constant declarations
|
void |
lastCall()
sorgt dafuer, dass nach der ModelGrafic Neu- Initialisierung der ZoomCenterPoint
in der Mitte des selektierten View angezeigt wird.
|
void |
setCoordinatePoint(java.awt.Point p)
set coordinate point to show in status line
|
void |
setDefaultPath(java.lang.String defaultCmdPath,
java.lang.String defaultIconPath)
set default path for Data->open aund Data->icon menue.
|
void |
setDefaultPath(java.lang.String defaultCmdPath,
java.lang.String defaultIconPath,
java.lang.String defaultSnapShotPath)
set default path for Data->open aund Data->icon menue.
|
void |
setModelName(java.lang.String name)
set model-name and repaint it
|
void |
setSimulationSpeed(double speed)
set simulation-speed-value end update gui
|
void |
setSimulationSpeedGUI(double speed)
update of speedField and speedSlider in gui
|
void |
setSimulationZoom(double zoom)
set simulation-zoom-value without update of zoomField and zoomSlider
|
void |
setSimulationZoomCenter(java.awt.Point p) |
void |
setSimulationZoomGUI(double zoom)
update of zoomField and zoomSlider in gui
|
void |
setStatusMessage(java.lang.String message)
set status-message and repaint it
|
void |
setTimeFlowMode(int timeFlowMode)
set time-flow-mode, possible values can you find in constant declarations
|
void |
updateSimulationTime(boolean valid)
repaint SimulationTime
|
void |
updateSimulationTimeBounds(boolean valid)
repaint SimulationTimeBounds
|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.awt.Font FONT_BIG
public static final java.awt.Font FONT_MIDDLE
public static final java.awt.Font FONT_SMALL
public static final java.awt.Font FONT_DEFAULT
public static final long REPAINT_DELAY
public static final java.awt.Color HEADER_BG_COLOR
public static final java.awt.Color STATUS_BG_COLOR
public static final java.awt.Color STATUS_MSG_COLOR
public static final java.awt.Color INFO_HEADER_FG_COLOR
public static final java.awt.Color INFO_HEADER_BG_COLOR
public static final java.awt.Color INFO_TEXT_FG_COLOR
public static final java.awt.Color INFO_TEXT_BG_COLOR
public static final java.awt.Color INFO_OLD_FG_COLOR
public static final int TimeFlowMode_CONTINIUM
public static final int TimeFlowMode_STEP_FLOW
public static final int TimeFlowMode_STEP_SINGLE
public ViewerPanel(java.net.URL cmdFile, java.net.URL simulationIconDir, java.applet.AppletContext appletContext, java.util.Locale locale)
cmdFile
- URL of cmds-file thats opens automaticly, null otherwisesimulationIconPathURL
- URL of simulation icon directoryappletContext
- null, when this panel is part of a JFramelocale
- locale of this panelpublic ViewerPanel(java.net.URL cmdFile, java.net.URL simulationIconDir, java.net.URL snapshotDir, java.applet.AppletContext appletContext, java.util.Locale locale)
cmdFile
- URL of cmds-file thats opens automaticly, null otherwisesimulationIconPathURL
- URL of simulation icon directorysnapshot
- URL of snapshot directoryappletContext
- null, when this panel is part of a JFramelocale
- locale of this panelpublic static InfoPane getInfoPane()
public static java.io.PrintWriter getLogWriter()
public void setDefaultPath(java.lang.String defaultCmdPath, java.lang.String defaultIconPath, java.lang.String defaultSnapShotPath)
defaultCmdPath
- with this path starts Data->open menuedefaultIconPath
- with this path starts Data->icon menuedefaultSnapShotPath
- with this path starts Data->snapshot menuepublic void setDefaultPath(java.lang.String defaultCmdPath, java.lang.String defaultIconPath)
defaultCmdPath
- with this path starts Data->open menuedefaultIconPath
- with this path starts Data->icon menue and Data->snapshot menuepublic void lastCall()
public LanguageSupport getLanguage()
public Model getModel()
public void setModelName(java.lang.String name)
name
- public void setStatusMessage(java.lang.String message)
message
- public void setCoordinatePoint(java.awt.Point p)
p
- public void updateSimulationTimeBounds(boolean valid)
valid
- when true use data from SimulationTime, else ""public void updateSimulationTime(boolean valid)
valid
- when true use data from SimulationTime, else ""public SimulationTime getSimulationTimeInstance()
public long getSimulationTime()
public void setSimulationSpeedGUI(double speed)
speed
- public double getSimulationSpeed()
public void setSimulationSpeed(double speed)
speed
- public void setSimulationZoomGUI(double zoom)
zoom
- public double getSimulationZoom()
public void setSimulationZoom(double zoom) throws ModelGraficException
zoom
- ModelGraficException
public java.awt.Point getSimulationZoomCenter()
public void setSimulationZoomCenter(java.awt.Point p)
public void setTimeFlowMode(int timeFlowMode)
timeFlowMode
- public int getTimeFlowMode()
public SimulationThread getSimulationThread()