Package visualisation
Klasse HybridWindow<DRAW extends DrawArea,TEXT extends TextArea,PARAM extends ParameterArea,ALGORITHM extends Algorithm,LOG extends LogElement,LEGEND extends LegendArea>
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
javax.swing.JApplet
visualisation.HybridWindow<DRAW,TEXT,PARAM,ALGORITHM,LOG,LEGEND>
- Alle implementierten Schnittstellen:
ImageObserver
,MenuContainer
,Serializable
,Accessible
,RootPaneContainer
- Bekannte direkte Unterklassen:
OurHybridWindow
public class HybridWindow<DRAW extends DrawArea,TEXT extends TextArea,PARAM extends ParameterArea,ALGORITHM extends Algorithm,LOG extends LogElement,LEGEND extends LegendArea>
extends JApplet
This is the central class for using packages logging and visualization.
It contains each an area for graphical and textual output of an algorithm step and an area for parameter input.
Use it in an application or as an applet.
If you use it as an applet you will have to extend it by a standard constructor that creates your applet.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibung(Package privat) class
(Package privat) class
(Package privat) class
(Package privat) class
(Package privat) class
(Package privat) class
(Package privat) class
(Package privat) class
(Package privat) class
(Package privat) class
(Package privat) class
Von Klasse geerbte verschachtelte Klassen/Schnittstellen javax.swing.JApplet
JApplet.AccessibleJApplet
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.applet.Applet
Applet.AccessibleApplet
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.awt.Panel
Panel.AccessibleAWTPanel
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.awt.Container
Container.AccessibleAWTContainer
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected ALGORITHM
The presented algorithm.protected JRadioButton
The window's radio button for backward direction at auto stepping.protected HybridWindow<DRAW,
TEXT, PARAM, ALGORITHM, LOG, LEGEND>.AutoBackwardListener Item listener for backward button.protected JToggleButton
The window's toggle button for automatic proceeding.protected HybridWindow<DRAW,
TEXT, PARAM, ALGORITHM, LOG, LEGEND>.AutoButtonListener Item listener for auto button.protected JRadioButton
The window's radio button for forward direction at auto stepping.protected HybridWindow<DRAW,
TEXT, PARAM, ALGORITHM, LOG, LEGEND>.AutoForwardListener Item listener for forward button.protected JSlider
The window's delay slider for automatic proceeding.protected HybridWindow<DRAW,
TEXT, PARAM, ALGORITHM, LOG, LEGEND>.AutoSliderListener Change listener for auto slider.protected final byte
Constant representing state of automatic stepping.protected Timer
Timer for auto stepping.protected DRAW
The window's draw area for graphical output of an algorithm step.protected JButton
The window's first button.protected HybridWindow<DRAW,
TEXT, PARAM, ALGORITHM, LOG, LEGEND>.FirstListener Action listener for first button.protected JButton
The window's last button.protected HybridWindow<DRAW,
TEXT, PARAM, ALGORITHM, LOG, LEGEND>.LastListener Action listener for last button.protected LEGEND
The window's legend area for describing the parameters of an algorithm's graphical output.protected LogElementList
<LOG> Log element list containing the algorithm's single step's log elements.protected JButton
The window's next button.protected HybridWindow<DRAW,
TEXT, PARAM, ALGORITHM, LOG, LEGEND>.NextListener Action listener for next button.protected PARAM
The window's parameter area for parameter input of an algorithm.protected final byte
Constant representing state of parameter input.protected JButton
The window's toggle button for pausing automatic proceeding.protected HybridWindow<DRAW,
TEXT, PARAM, ALGORITHM, LOG, LEGEND>.PauseButtonListener Item listener for pause button.protected JButton
The window's previous button.protected HybridWindow<DRAW,
TEXT, PARAM, ALGORITHM, LOG, LEGEND>.PrevListener Action listener for previous button.protected final byte
Constant representing state of activated algorithm.protected JButton
The window's start button.protected HybridWindow<DRAW,
TEXT, PARAM, ALGORITHM, LOG, LEGEND>.StartListener Action listener for start button.protected byte
Represents the current state of this application.protected JButton
The window's stop button.protected HybridWindow<DRAW,
TEXT, PARAM, ALGORITHM, LOG, LEGEND>.StopListener Action listener for stop button.protected JTabbedPane
The hybrid window's tabbed pane containing the draw area.protected TEXT
The window's text area for textual output of an algorithm step.Von Klasse geerbte Felder javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
Von Klasse geerbte Felder java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Von Schnittstelle geerbte Felder java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Konstruktorübersicht
KonstruktorBeschreibungStandard constructor.HybridWindow
(DRAW drawArea, TEXT textArea, PARAM parameterArea, ALGORITHM algorithm, LogElementList<LOG> logList, LEGEND legendArea) Extended constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal void
addNewComponent
(String title, Component component) Method for adding a new component to the hybrid window's tabbed panefinal void
addNewComponentWithIcon
(String title, Icon icon, Component component) Method for adding a new component to the hybrid window's tabbed paneprotected final byte
getState()
Returns the window's current state.void
init()
Applet's initial phase.protected final void
setState
(int state) Sets the window's state and enables/disables the corresponding components.Von Klasse geerbte Methoden javax.swing.JApplet
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
Von Klasse geerbte Methoden java.applet.Applet
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
Von Klasse geerbte Methoden java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
Von Klasse geerbte Methoden java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Felddetails
-
PARAMETERSTATE
protected final byte PARAMETERSTATEConstant representing state of parameter input.- Siehe auch:
-
RUNSTATE
protected final byte RUNSTATEConstant representing state of activated algorithm.- Siehe auch:
-
AUTOSTATE
protected final byte AUTOSTATEConstant representing state of automatic stepping.- Siehe auch:
-
state
protected byte stateRepresents the current state of this application. -
drawArea
The window's draw area for graphical output of an algorithm step. -
textArea
The window's text area for textual output of an algorithm step. -
parameterArea
The window's parameter area for parameter input of an algorithm. -
algorithm
The presented algorithm. -
logList
Log element list containing the algorithm's single step's log elements. -
legendArea
The window's legend area for describing the parameters of an algorithm's graphical output. -
tabbedPane
The hybrid window's tabbed pane containing the draw area. -
startButton
The window's start button. Triggers algorithm processing. -
stopButton
The window's stop button. Clears the window for a new parametric input. -
nextButton
The window's next button. Proceeds to next log element. -
prevButton
The window's previous button. Proceeds to previous log element. -
lastButton
The window's last button. Proceeds to last log element. -
firstButton
The window's first button. Proceeds to first log element. -
autoButton
The window's toggle button for automatic proceeding. Enables/Disables automatic step processing. -
pauseButton
The window's toggle button for pausing automatic proceeding. -
autoSlider
The window's delay slider for automatic proceeding. Adjusts the interval of auto stepping. -
autoForwardButton
The window's radio button for forward direction at auto stepping. -
autoBackwardButton
The window's radio button for backward direction at auto stepping. -
startListener
protected HybridWindow<DRAW extends DrawArea,TEXT extends TextArea, startListenerPARAM extends ParameterArea, ALGORITHM extends Algorithm, LOG extends LogElement, LEGEND extends LegendArea>.StartListener Action listener for start button. -
stopListener
protected HybridWindow<DRAW extends DrawArea,TEXT extends TextArea, stopListenerPARAM extends ParameterArea, ALGORITHM extends Algorithm, LOG extends LogElement, LEGEND extends LegendArea>.StopListener Action listener for stop button. -
prevListener
protected HybridWindow<DRAW extends DrawArea,TEXT extends TextArea, prevListenerPARAM extends ParameterArea, ALGORITHM extends Algorithm, LOG extends LogElement, LEGEND extends LegendArea>.PrevListener Action listener for previous button. -
nextListener
protected HybridWindow<DRAW extends DrawArea,TEXT extends TextArea, nextListenerPARAM extends ParameterArea, ALGORITHM extends Algorithm, LOG extends LogElement, LEGEND extends LegendArea>.NextListener Action listener for next button. -
firstListener
protected HybridWindow<DRAW extends DrawArea,TEXT extends TextArea, firstListenerPARAM extends ParameterArea, ALGORITHM extends Algorithm, LOG extends LogElement, LEGEND extends LegendArea>.FirstListener Action listener for first button. -
lastListener
protected HybridWindow<DRAW extends DrawArea,TEXT extends TextArea, lastListenerPARAM extends ParameterArea, ALGORITHM extends Algorithm, LOG extends LogElement, LEGEND extends LegendArea>.LastListener Action listener for last button. -
autoButtonListener
protected HybridWindow<DRAW extends DrawArea,TEXT extends TextArea, autoButtonListenerPARAM extends ParameterArea, ALGORITHM extends Algorithm, LOG extends LogElement, LEGEND extends LegendArea>.AutoButtonListener Item listener for auto button. -
autoSliderListener
protected HybridWindow<DRAW extends DrawArea,TEXT extends TextArea, autoSliderListenerPARAM extends ParameterArea, ALGORITHM extends Algorithm, LOG extends LogElement, LEGEND extends LegendArea>.AutoSliderListener Change listener for auto slider. -
autoForwardListener
protected HybridWindow<DRAW extends DrawArea,TEXT extends TextArea, autoForwardListenerPARAM extends ParameterArea, ALGORITHM extends Algorithm, LOG extends LogElement, LEGEND extends LegendArea>.AutoForwardListener Item listener for forward button. -
autoBackwardListener
protected HybridWindow<DRAW extends DrawArea,TEXT extends TextArea, autoBackwardListenerPARAM extends ParameterArea, ALGORITHM extends Algorithm, LOG extends LogElement, LEGEND extends LegendArea>.AutoBackwardListener Item listener for backward button. -
pauseButtonListener
protected HybridWindow<DRAW extends DrawArea,TEXT extends TextArea, pauseButtonListenerPARAM extends ParameterArea, ALGORITHM extends Algorithm, LOG extends LogElement, LEGEND extends LegendArea>.PauseButtonListener Item listener for pause button. -
autoTimer
Timer for auto stepping.
-
-
Konstruktordetails
-
HybridWindow
public HybridWindow()Standard constructor. -
HybridWindow
public HybridWindow(DRAW drawArea, TEXT textArea, PARAM parameterArea, ALGORITHM algorithm, LogElementList<LOG> logList, LEGEND legendArea) Extended constructor. Types of drawArea, textArea, parameterArea, algorithm and logList are determined here.- Parameter:
drawArea
- the window's draw area. It must extend visualization.DrawArea.textArea
- the window's text area. It must extend visualization.TextArea.parameterArea
- the window's parameter area. It must extend visualization.ParameterArea.algorithm
- the window's algorithm. It must extend logging.Algorithm.logList
- the window's log list. Elements must extend logging.LogElement.legendArea
- the window's legend area. Must be a subclass of visualization.LegendArea
-
-
Methodendetails
-
init
public void init()Applet's initial phase. In case of use as an application call it explicitely. Sets up the GUI and the action listeners. -
setState
protected final void setState(int state) Sets the window's state and enables/disables the corresponding components.- Parameter:
state
-
-
getState
protected final byte getState()Returns the window's current state.- Gibt zurück:
- the window's current state
-
addNewComponent
Method for adding a new component to the hybrid window's tabbed pane- Parameter:
title
- the title of the new tabcomponent
- the component to be added to the tabbed pane
-
addNewComponentWithIcon
Method for adding a new component to the hybrid window's tabbed pane- Parameter:
title
- the title of the new tabicon
- the icon to be displayed on the new tabcomponent
- the component to be added to the tabbed pane
-