keba
Class KEBA
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--javax.swing.JFrame
|
+--keba.KEBA
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.lang.Runnable, java.io.Serializable, javax.swing.WindowConstants
- public class KEBA
- extends javax.swing.JFrame
- implements java.lang.Runnable
- 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, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, icon, ICONIFIED, mbManagement, menuBar, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Window |
inputContext, OPENED, ownedWindowList, state, warningString, windowListener |
Fields inherited from class java.awt.Container |
component, containerListener, layoutMgr, listeningBoundsChildren, listeningChildren, ncomponents |
Fields inherited from class java.awt.Component |
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, 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, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, 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 |
KEBA(int radius,
int width,
int height)
|
Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, 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, isResizable, postProcessKeyEvent, remove, removeFromFrameList, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle |
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, pack, postEvent, postWindowEvent, preProcessKeyEvent, processEvent, removeOwnedWindow, removeWindowListener, resetGC, setCursor, setFocusOwner, 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, 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, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
t
public static long t
phenomena
public static java.util.Vector phenomena
phenomena2
public static java.util.Vector phenomena2
delay
long delay
period
long period
trans
long trans
sim
java.lang.Thread sim
rnd
public static java.util.Random rnd
lastID
public static long lastID
pause
boolean pause
verbose
public static boolean verbose
repeat
boolean repeat
rndCreatePh
float rndCreatePh
filename
java.lang.String filename
phenFile
java.lang.String phenFile
stats
public static java.util.Vector stats
ostream
public static StatStream ostream
envRadius
public static int envRadius
TYPES_OF_ANIMAT
public static final int TYPES_OF_ANIMAT
TYPES_OF_PHENOMENA
public static final int TYPES_OF_PHENOMENA
ANIMAT_RULE
public static final int ANIMAT_RULE
ANIMAT_MAES
public static final int ANIMAT_MAES
ANIMAT_KEBA
public static final int ANIMAT_KEBA
ANIMAT_NN
public static final int ANIMAT_NN
ANIMAT_BRAIT
public static final int ANIMAT_BRAIT
FOOD
public static final int FOOD
ROCK
public static final int ROCK
RAIN
public static final int RAIN
LIGHTNING
public static final int LIGHTNING
SPOT_RED
public static final int SPOT_RED
SPOT_GREEN
public static final int SPOT_GREEN
SPOT_BLUE
public static final int SPOT_BLUE
SPOT_YELLOW
public static final int SPOT_YELLOW
SPOT_WHITE
public static final int SPOT_WHITE
SPOT_BLACK
public static final int SPOT_BLACK
SPOT_RND
public static final int SPOT_RND
WHEN_ANIMAT
public static final int WHEN_ANIMAT
WHEN_FOOD
public static final int WHEN_FOOD
WHEN_ROCK
public static final int WHEN_ROCK
WHEN_RAIN
public static final int WHEN_RAIN
WHEN_LIGHTNING
public static final int WHEN_LIGHTNING
WHEN_SPOT_RED
public static final int WHEN_SPOT_RED
WHEN_SPOT_GREEN
public static final int WHEN_SPOT_GREEN
WHEN_SPOT_BLUE
public static final int WHEN_SPOT_BLUE
WHEN_SPOT_YELLOW
public static final int WHEN_SPOT_YELLOW
WHEN_SPOT_WHITE
public static final int WHEN_SPOT_WHITE
WHEN_SPOT_BLACK
public static final int WHEN_SPOT_BLACK
WHEN_SPOT_RND
public static final int WHEN_SPOT_RND
RESET
public static final int RESET
SAVE
public static final int SAVE
virtualU
javax.media.j3d.VirtualUniverse virtualU
scene
public static javax.media.j3d.BranchGroup scene
viewTrans
javax.media.j3d.TransformGroup viewTrans
bounds
public static javax.media.j3d.BoundingSphere bounds
contentPane
javax.swing.JPanel contentPane
output
public static java.awt.TextArea output
statusBar
public static javax.swing.JLabel statusBar
menuBar1
javax.swing.JMenuBar menuBar1
menuFile
javax.swing.JMenu menuFile
menuFileNew
javax.swing.JMenuItem menuFileNew
menuFileSave
javax.swing.JMenuItem menuFileSave
menuFileSaveAs
javax.swing.JMenuItem menuFileSaveAs
menuFileLoad
javax.swing.JMenuItem menuFileLoad
menuFileExit
javax.swing.JMenuItem menuFileExit
menuHelp
javax.swing.JMenu menuHelp
menuHelpAbout
javax.swing.JMenuItem menuHelpAbout
toolBar
javax.swing.JToolBar toolBar
bLoad
javax.swing.JButton bLoad
bSave
javax.swing.JButton bSave
bHelp
javax.swing.JButton bHelp
image1
javax.swing.ImageIcon image1
image2
javax.swing.ImageIcon image2
image3
javax.swing.ImageIcon image3
borderLayout1
java.awt.BorderLayout borderLayout1
panelControls
javax.swing.JPanel panelControls
bClear
javax.swing.JButton bClear
bStartStop
javax.swing.JButton bStartStop
bVerbose
javax.swing.JToggleButton bVerbose
viewCB
javax.swing.JComboBox viewCB
flowLayout1
java.awt.FlowLayout flowLayout1
phenomenaCB
javax.swing.JComboBox phenomenaCB
zTF
javax.swing.JTextField zTF
xTF
javax.swing.JTextField xTF
bCreatePhenomena
javax.swing.JButton bCreatePhenomena
xL
javax.swing.JLabel xL
zL
javax.swing.JLabel zL
radiusL
javax.swing.JLabel radiusL
radiusTF
javax.swing.JTextField radiusTF
delayL
javax.swing.JLabel delayL
delayTF
javax.swing.JTextField delayTF
delayB
javax.swing.JButton delayB
randomPhRB
javax.swing.JRadioButton randomPhRB
phenomenaPanel
javax.swing.JPanel phenomenaPanel
border1
javax.swing.border.Border border1
titledBorder1
javax.swing.border.TitledBorder titledBorder1
flowLayout2
java.awt.FlowLayout flowLayout2
bDeletePhenomena
javax.swing.JButton bDeletePhenomena
ascDelRB
javax.swing.JRadioButton ascDelRB
bStep
javax.swing.JButton bStep
repeatRB
javax.swing.JRadioButton repeatRB
repeatTF
javax.swing.JTextField repeatTF
rndCreatePhS
javax.swing.JSlider rndCreatePhS
rndCreatePhL
javax.swing.JLabel rndCreatePhL
KEBA
public KEBA(int radius,
int width,
int height)
initVariables
void initVariables()
initGUI
void initGUI()
createSceneGraph
public javax.media.j3d.BranchGroup createSceneGraph()
assignID
public static long assignID()
phType
public static java.lang.String phType(int type)
addPhenomenon
public static void addPhenomenon(Phenomenon ph,
boolean manual)
removePhenomenon
public static void removePhenomenon(Phenomenon ph,
boolean manual)
getPhenomenon
public static Phenomenon getPhenomenon(long id)
removeAnimat
public static void removeAnimat(Animat a)
removeAllPhen
public void removeAllPhen(boolean manual)
showAllPhen
public void showAllPhen()
createPhRnd
public void createPhRnd()
transform
public static void transform(Phenomenon ph)
closest
public static float[] closest(Phenomenon ph,
int type)
maxpond
public static float[] maxpond(Phenomenon ph,
int type)
cleanAnimats
public void cleanAnimats(int mode)
restoreAnimats
public void restoreAnimats()
savePhenomena
public void savePhenomena()
loadPhenomena
public void loadPhenomena()
repeatsim
public void repeatsim()
iniStatFile
public static void iniStatFile(java.lang.String filename,
long id)
closeStatFile
public static void closeStatFile(long id)
doStats
public static void doStats(java.lang.String str,
long id)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
stop
public void stop()
step
public void step()
main
public static void main(java.lang.String[] argv)
fileNew_actionPerformed
public void fileNew_actionPerformed(java.awt.event.ActionEvent e)
fileSave_actionPerformed
public void fileSave_actionPerformed(java.awt.event.ActionEvent e)
fileSaveAs_actionPerformed
public void fileSaveAs_actionPerformed(java.awt.event.ActionEvent e)
fileLoad_actionPerformed
public void fileLoad_actionPerformed(java.awt.event.ActionEvent e)
fileExit_actionPerformed
public void fileExit_actionPerformed(java.awt.event.ActionEvent e)
helpAbout_actionPerformed
public void helpAbout_actionPerformed(java.awt.event.ActionEvent e)
bLoad_actionPerformed
void bLoad_actionPerformed(java.awt.event.ActionEvent e)
bSave_actionPerformed
void bSave_actionPerformed(java.awt.event.ActionEvent e)
bHelp_actionPerformed
void bHelp_actionPerformed(java.awt.event.ActionEvent e)
processWindowEvent
protected void processWindowEvent(java.awt.event.WindowEvent e)
- Overrides:
processWindowEvent
in class javax.swing.JFrame
bClear_actionPerformed
void bClear_actionPerformed(java.awt.event.ActionEvent e)
bStartStop_actionPerformed
void bStartStop_actionPerformed(java.awt.event.ActionEvent e)
bVerbose_actionPerformed
void bVerbose_actionPerformed(java.awt.event.ActionEvent e)
viewCB_actionPerformed
void viewCB_actionPerformed(java.awt.event.ActionEvent e)
delayB_actionPerformed
void delayB_actionPerformed(java.awt.event.ActionEvent e)
bCreatePhenomena_actionPerformed
void bCreatePhenomena_actionPerformed(java.awt.event.ActionEvent e)
bDeletePhenomena_actionPerformed
void bDeletePhenomena_actionPerformed(java.awt.event.ActionEvent e)
bStep_actionPerformed
void bStep_actionPerformed(java.awt.event.ActionEvent e)
repeatRB_actionPerformed
void repeatRB_actionPerformed(java.awt.event.ActionEvent e)
rndCreatePhS_ev
void rndCreatePhS_ev(java.awt.event.MouseEvent e)
rndCreatePhS_ev
void rndCreatePhS_ev(java.awt.event.KeyEvent e)
rndCreatePhS_ev
void rndCreatePhS_ev()