Class TheHive
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--javax.swing.JFrame
|
+--TheHive
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants
- public class TheHive
- extends javax.swing.JFrame
Title: TheHive
Description: TheHive is the GUI for swarmarchitecture groups programm
to build a architecture with social insects.
- Author:
- Dimitri Missoh & Daniel Schlosser
- See Also:
- Serialized Form
Inner classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Inner classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
Inner classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock |
Fields inherited from class javax.swing.JFrame |
accessibleContext, defaultCloseOperation, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
base, CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, frameSerializedDataVersion, HAND_CURSOR, icon, ICONIFIED, mbManagement, menuBar, MOVE_CURSOR, N_RESIZE_CURSOR, nameCounter, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, serialVersionUID, state, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR, weakThis |
Fields inherited from class java.awt.Window |
active, dbg, focusMgr, inputContext, inputContextLock, OPENED, ownedWindowList, warningString, windowListener, windowSerializedDataVersion |
Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads |
Fields inherited from class java.awt.Component |
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary |
private |
TheHive()
Construct a GUI using a ModellViewer |
Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, createRootPaneException, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.awt.Frame |
, addNotify, addToFrameList, constructComponentName, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, initIDs, isResizable, postProcessKeyEvent, readObject, remove, removeFromFrameList, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle, writeObject |
Methods inherited from class java.awt.Window |
addOwnedWindow, addWindowListener, adjustListeningChildren, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, dispose, eventEnabled, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postWindowEvent, preProcessKeyEvent, processEvent, removeOwnedWindow, removeWindowListener, resetGC, setCursor, setFocusOwner, setWarningString, show, toBack, toFront, transferFocus |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, numListening, paint, paintComponents, paintHeavyweightComponents, postsOldMouseEvents, preferredSize, print, printComponents, printHeavyweightComponents, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, removeAll, removeContainerListener, setFont, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
xRotation
double xRotation
yRotation
double yRotation
zRotation
double zRotation
xTranslation
int xTranslation
yTranslation
int yTranslation
zTranslation
int zTranslation
zoom
double zoom
fitness
double fitness
standartRundenzahl
int standartRundenzahl
aktuelleRundenzahl
int aktuelleRundenzahl
automaticFitness
boolean automaticFitness
interactivMode
boolean interactivMode
building
boolean building
roundsToRunWihthoutUser
int roundsToRunWihthoutUser
theSim
Simulator theSim
reviewD
JReviewDialog reviewD
markViewD
MarkViewDialog markViewD
aboutD
JAboutD aboutD
viewport
ModellViewer viewport
helpD
Hilfe helpD
fileChooserD
FileChooser fileChooserD
cv
javax.media.j3d.Canvas3D cv
angleOfTransSet
boolean angleOfTransSet
einstellungen
Einstellungen einstellungen
eAllgemeinD
JEAllgemeinD eAllgemeinD
eGenAlgD
JEGenAlgD eGenAlgD
eSimulatorD
JESimulatorD eSimulatorD
myTimer
TheHive.Timer myTimer
saveFileDialog
java.awt.FileDialog saveFileDialog
openFileDialog
java.awt.FileDialog openFileDialog
HiveInfoB
javax.swing.JButton HiveInfoB
JPanel2
javax.swing.JPanel JPanel2
JPanel1
javax.swing.JPanel JPanel1
JPanel3
javax.swing.JPanel JPanel3
JLabel1
javax.swing.JLabel JLabel1
JPanel5
javax.swing.JPanel JPanel5
JLabel2
javax.swing.JLabel JLabel2
XRotationTF
javax.swing.JTextField XRotationTF
XRotationSlider
javax.swing.JSlider XRotationSlider
JPanel6
javax.swing.JPanel JPanel6
JLabel6
javax.swing.JLabel JLabel6
YRotationTF
javax.swing.JTextField YRotationTF
YRotationSlider
javax.swing.JSlider YRotationSlider
JPanel7
javax.swing.JPanel JPanel7
JLabel3
javax.swing.JLabel JLabel3
ZRotationTF
javax.swing.JTextField ZRotationTF
ZRotationSlider
javax.swing.JSlider ZRotationSlider
JLabel4
javax.swing.JLabel JLabel4
JPanel4
javax.swing.JPanel JPanel4
ZoomTF
javax.swing.JTextField ZoomTF
JLabel5
javax.swing.JLabel JLabel5
JLabel7
javax.swing.JLabel JLabel7
JPanel8
javax.swing.JPanel JPanel8
JLabel8
javax.swing.JLabel JLabel8
XTranslationTF
javax.swing.JTextField XTranslationTF
XTranslationSlider
javax.swing.JSlider XTranslationSlider
JPanel9
javax.swing.JPanel JPanel9
JLabel9
javax.swing.JLabel JLabel9
YTranslationTF
javax.swing.JTextField YTranslationTF
YTranslationSlider
javax.swing.JSlider YTranslationSlider
MarkViewB
javax.swing.JButton MarkViewB
JLabel10
javax.swing.JLabel JLabel10
StartSubTreadB
javax.swing.JButton StartSubTreadB
interactivTF
javax.swing.JTextField interactivTF
StopSubTreadB
javax.swing.JButton StopSubTreadB
InteraktionB
javax.swing.JButton InteraktionB
JLabel11
javax.swing.JLabel JLabel11
JLabel12
javax.swing.JLabel JLabel12
JPanel10
javax.swing.JPanel JPanel10
JLabel13
javax.swing.JLabel JLabel13
FitnessTF
javax.swing.JTextField FitnessTF
NextB
javax.swing.JButton NextB
JMenuBar2
javax.swing.JMenuBar JMenuBar2
JMenu1
javax.swing.JMenu JMenu1
JMenuItemNeu
javax.swing.JMenuItem JMenuItemNeu
JMenuItemTotalReset
javax.swing.JMenuItem JMenuItemTotalReset
JMenuItemLoad
javax.swing.JMenuItem JMenuItemLoad
JMenuItemStore
javax.swing.JMenuItem JMenuItemStore
JMenuItemStoreAs
javax.swing.JMenuItem JMenuItemStoreAs
JMenuItemExit
javax.swing.JMenuItem JMenuItemExit
JMenu2
javax.swing.JMenu JMenu2
JMenuItemAllgemein
javax.swing.JMenuItem JMenuItemAllgemein
JMenuItemSimulator
javax.swing.JMenuItem JMenuItemSimulator
JMenuItemGenA
javax.swing.JMenuItem JMenuItemGenA
JMenuItemSaveOptions
javax.swing.JMenuItem JMenuItemSaveOptions
JMenu4
javax.swing.JMenu JMenu4
JMenuItemReview
javax.swing.JMenuItem JMenuItemReview
JMenu5
javax.swing.JMenu JMenu5
JMenuItemHelp
javax.swing.JMenuItem JMenuItemHelp
JMenuItemAbout
javax.swing.JMenuItem JMenuItemAbout
JPanel11
javax.swing.JPanel JPanel11
JLabel14
javax.swing.JLabel JLabel14
ZTranslationTF
javax.swing.JTextField ZTranslationTF
ZTranslationSlider
javax.swing.JSlider ZTranslationSlider
HiveTF
javax.swing.JTextField HiveTF
infoD
JInfoDialog infoD
TheHive
private TheHive()
- Construct a GUI using a ModellViewer
main
public static void main(java.lang.String[] args)
- The entry point for this application.
Sets the Look and Feel to the System Look and Feel.
Creates a new The Hive and makes it visible.
setupNewView
private void setupNewView()
- Routine sets up a new view, by clearing the 3D view and reseting all dialoges
stepNRoundsBack
void stepNRoundsBack(int n)
- makes the view step n rounds back
- Parameters:
n
- the number of rounds to step back
stepNRoundsForward
void stepNRoundsForward(int n)
- makes the view step n rounds forward
- Parameters:
n
- the number of rounds to step forward
stepToGenesis
void stepToGenesis()
- The view will step back to the first round of the simulation
stepToEnd
void stepToEnd()
- The view will step foward to the last round of the simulation
JMenuItemNeu_actionPerformed
void JMenuItemNeu_actionPerformed(java.awt.event.ActionEvent event)
JMenuItemTotalReset_actionPerformed
void JMenuItemTotalReset_actionPerformed(java.awt.event.ActionEvent event)
JMenuItemLoad_actionPerformed
void JMenuItemLoad_actionPerformed(java.awt.event.ActionEvent event)
JMenuItemStore_actionPerformed
void JMenuItemStore_actionPerformed(java.awt.event.ActionEvent event)
JMenuItemStoreAs_actionPerformed
void JMenuItemStoreAs_actionPerformed(java.awt.event.ActionEvent event)
JMenuItemExit_actionPerformed
void JMenuItemExit_actionPerformed(java.awt.event.ActionEvent event)
exitApplication
void exitApplication()
JMenuItemGenA_actionPerformed
void JMenuItemGenA_actionPerformed(java.awt.event.ActionEvent event)
JMenuItemAllgemein_actionPerformed
void JMenuItemAllgemein_actionPerformed(java.awt.event.ActionEvent event)
JMenuItemSimulator_actionPerformed
void JMenuItemSimulator_actionPerformed(java.awt.event.ActionEvent event)
JMenuItemSaveOptions_actionPerformed
void JMenuItemSaveOptions_actionPerformed(java.awt.event.ActionEvent event)
JMenuItemAbout_actionPerformed
void JMenuItemAbout_actionPerformed(java.awt.event.ActionEvent event)
JMenuItemHelp_actionPerformed
void JMenuItemHelp_actionPerformed(java.awt.event.ActionEvent event)
TheHive_windowClosing
void TheHive_windowClosing(java.awt.event.WindowEvent event)
TheHive_windowClosing_Interaction1
void TheHive_windowClosing_Interaction1(java.awt.event.WindowEvent event)
HiveInfoB_actionPerformed
void HiveInfoB_actionPerformed(java.awt.event.ActionEvent event)
JMenuItemReview_actionPerformed
void JMenuItemReview_actionPerformed(java.awt.event.ActionEvent event)
XRotationTF_actionPerformed
void XRotationTF_actionPerformed(java.awt.event.ActionEvent event)
XRotationSlider_stateChanged
void XRotationSlider_stateChanged(javax.swing.event.ChangeEvent event)
YRotationTF_actionPerformed
void YRotationTF_actionPerformed(java.awt.event.ActionEvent event)
YRotationSlider_stateChanged
void YRotationSlider_stateChanged(javax.swing.event.ChangeEvent event)
ZRotationTF_actionPerformed
void ZRotationTF_actionPerformed(java.awt.event.ActionEvent event)
ZRotationSlider_stateChanged
void ZRotationSlider_stateChanged(javax.swing.event.ChangeEvent event)
ZoomTF_actionPerformed
void ZoomTF_actionPerformed(java.awt.event.ActionEvent event)
setZoomState
public void setZoomState(double d)
XTranslationTF_actionPerformed
void XTranslationTF_actionPerformed(java.awt.event.ActionEvent event)
XTranslationSlider_stateChanged
void XTranslationSlider_stateChanged(javax.swing.event.ChangeEvent event)
YTranslationTF_actionPerformed
void YTranslationTF_actionPerformed(java.awt.event.ActionEvent event)
YTranslationSlider_stateChanged
void YTranslationSlider_stateChanged(javax.swing.event.ChangeEvent event)
ZTranslationTF_actionPerformed
void ZTranslationTF_actionPerformed(java.awt.event.ActionEvent event)
ZTranslationSlider_stateChanged
void ZTranslationSlider_stateChanged(javax.swing.event.ChangeEvent event)
FitnessTF_actionPerformed
void FitnessTF_actionPerformed(java.awt.event.ActionEvent event)
NextB_actionPerformed
void NextB_actionPerformed(java.awt.event.ActionEvent event)
tick
public void tick()
MarkViewB_actionPerformed
private void MarkViewB_actionPerformed(java.awt.event.ActionEvent event)
setTranslationState
public void setTranslationState(int x,
int y,
int z)
setRotationValueViewOffline
public void setRotationValueViewOffline()
setRotationValueViewOnline
public void setRotationValueViewOnline()
setStandartRundenZahl
public void setStandartRundenZahl(int n)
setAutomaticFitness
public void setAutomaticFitness(boolean b)
setRoundsWithoutUser
public void setRoundsWithoutUser(int r)
setInteractionMode
public void setInteractionMode(boolean b)