frams_client_3d
Class Options

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byframs_client_3d.Options
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class Options
extends javax.swing.JPanel

Left options panel class.

Author:
MoMaT
See Also:
Serialized Form

Nested Class Summary
private  class Options.OptionsTreeRenderer
          Class for managing creatures tree tooltips.
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  boolean connected
           
private  javax.swing.JButton jButton
           
private  javax.swing.JButton jButton1
           
private  javax.swing.JButton jButton2
           
private  javax.swing.JButton jButton3
           
private  javax.swing.JCheckBox jCheckBox
           
private  javax.swing.JLabel jLabel
           
private  javax.swing.JLabel jLabel1
           
private  javax.swing.JLabel jLabel2
           
private  javax.swing.JLabel jLabel3
           
private  javax.swing.JScrollPane jScrollPane
           
private  javax.swing.JTextField jTextField
           
private  javax.swing.JTextField jTextField1
           
private  javax.swing.JTree jTree
           
private  boolean log
           
private  boolean show
           
private  boolean started
           
private  boolean stopped
           
private  boolean tree
           
private  javax.swing.tree.DefaultTreeModel treeModel
           
 
Fields inherited from class javax.swing.JPanel
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Options()
          This is the default constructor
 
Method Summary
 void addTreeNode(javax.swing.tree.DefaultMutableTreeNode node, int index)
          Add a node to the tree.
 void addTreeNode(javax.swing.tree.DefaultMutableTreeNode node, int group, int index)
          Add a node to the tree.
 java.util.ArrayList getAllCreatures()
          Returns list of all creatures in the tree.
 java.lang.String getIp()
          Server IP address getter
private  javax.swing.JButton getJButton()
          This method initializes jButton
private  javax.swing.JButton getJButton1()
          This method initializes jButton1
private  javax.swing.JButton getJButton2()
          This method initializes jButton2
private  javax.swing.JButton getJButton3()
          This method initializes jButton3
private  javax.swing.JCheckBox getJCheckBox()
          This method initializes jCheckBox
private  javax.swing.JLabel getJLabel()
          This method initializes jLabel
private  javax.swing.JLabel getJLabel1()
          This method initializes jLabel1
private  javax.swing.JLabel getJLabel2()
          This method initializes jLabel2
private  javax.swing.JLabel getJLabel3()
          This method initializes jLabel3
private  javax.swing.JScrollPane getJScrollPane()
          This method initializes jScrollPane
private  javax.swing.JTextField getJTextField()
          This method initializes jTextField
private  javax.swing.JTextField getJTextField1()
          This method initializes jTextField1
private  javax.swing.JTree getJTree()
          This method initializes jTree
 int getPort()
          Server port getter
 java.util.ArrayList getSelection()
          Returns list of creatures selected form the tree.
private  void initialize()
          This method initializes this
 boolean isConnected()
          Connected property getter
 boolean isLog()
          Log property getter.
 boolean isShow()
          Show selected property getter.
 boolean isStarted()
          Started property getter
 boolean isStopped()
          Stopped property getter
 boolean isTree()
          Tree property getter.
 void removeTreeNode(int index)
          Remove a node from the tree.
 void removeTreeNode(int group, int index)
          Remove a node from the tree.
 void setConnected(boolean b)
          Connected property setter
 void setLog(boolean b)
          Log setter.
 void setShow(boolean b)
          Show selected setter.
 void setStarted(boolean b)
          Started property setter.
 void setStopped(boolean b)
          Stopped property setter.
 void setTree(boolean b)
          Tree property setter.
 void setTree(javax.swing.tree.DefaultTreeModel treeModel)
          Set the tree model.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

connected

private boolean connected

started

private boolean started

stopped

private boolean stopped

log

private boolean log

tree

private boolean tree

show

private boolean show

treeModel

private javax.swing.tree.DefaultTreeModel treeModel

jLabel

private javax.swing.JLabel jLabel

jTextField

private javax.swing.JTextField jTextField

jLabel1

private javax.swing.JLabel jLabel1

jTextField1

private javax.swing.JTextField jTextField1

jButton

private javax.swing.JButton jButton

jScrollPane

private javax.swing.JScrollPane jScrollPane

jTree

private javax.swing.JTree jTree

jButton1

private javax.swing.JButton jButton1

jButton2

private javax.swing.JButton jButton2

jLabel2

private javax.swing.JLabel jLabel2

jButton3

private javax.swing.JButton jButton3

jLabel3

private javax.swing.JLabel jLabel3

jCheckBox

private javax.swing.JCheckBox jCheckBox
Constructor Detail

Options

public Options()
This is the default constructor

Method Detail

initialize

private void initialize()
This method initializes this

Returns:
void

getJLabel

private javax.swing.JLabel getJLabel()
This method initializes jLabel

Returns:
javax.swing.JLabel

getJTextField

private javax.swing.JTextField getJTextField()
This method initializes jTextField

Returns:
javax.swing.JTextField

getJLabel1

private javax.swing.JLabel getJLabel1()
This method initializes jLabel1

Returns:
javax.swing.JLabel

getJTextField1

private javax.swing.JTextField getJTextField1()
This method initializes jTextField1

Returns:
javax.swing.JTextField

getJButton

private javax.swing.JButton getJButton()
This method initializes jButton

Returns:
javax.swing.JButton

getJScrollPane

private javax.swing.JScrollPane getJScrollPane()
This method initializes jScrollPane

Returns:
javax.swing.JScrollPane

getJTree

private javax.swing.JTree getJTree()
This method initializes jTree

Returns:
javax.swing.JTree

setTree

public void setTree(javax.swing.tree.DefaultTreeModel treeModel)
Set the tree model.

Parameters:
treeModel -

getJButton1

private javax.swing.JButton getJButton1()
This method initializes jButton1

Returns:
javax.swing.JButton

getJButton2

private javax.swing.JButton getJButton2()
This method initializes jButton2

Returns:
javax.swing.JButton

getJLabel2

private javax.swing.JLabel getJLabel2()
This method initializes jLabel2

Returns:
javax.swing.JLabel

getJButton3

private javax.swing.JButton getJButton3()
This method initializes jButton3

Returns:
javax.swing.JButton

getJLabel3

private javax.swing.JLabel getJLabel3()
This method initializes jLabel3

Returns:
javax.swing.JLabel

getJCheckBox

private javax.swing.JCheckBox getJCheckBox()
This method initializes jCheckBox

Returns:
javax.swing.JCheckBox

isConnected

public boolean isConnected()
Connected property getter

Returns:
true if connected

isStarted

public boolean isStarted()
Started property getter

Returns:
true if simulation is started

isStopped

public boolean isStopped()
Stopped property getter

Returns:
true if simulation stopped

setConnected

public void setConnected(boolean b)
Connected property setter

Parameters:
b -

setStarted

public void setStarted(boolean b)
Started property setter.

Parameters:
b -

setStopped

public void setStopped(boolean b)
Stopped property setter.

Parameters:
b -

isLog

public boolean isLog()
Log property getter.

Returns:
true if logs are set

setLog

public void setLog(boolean b)
Log setter.

Parameters:
b -

isShow

public boolean isShow()
Show selected property getter.

Returns:
true if show selected is checked

setShow

public void setShow(boolean b)
Show selected setter.

Parameters:
b -

getIp

public java.lang.String getIp()
Server IP address getter

Returns:
String ip

getPort

public int getPort()
Server port getter

Returns:
int port

isTree

public boolean isTree()
Tree property getter.

Returns:
true if tree element is selected

setTree

public void setTree(boolean b)
Tree property setter.

Parameters:
b -

getSelection

public java.util.ArrayList getSelection()
Returns list of creatures selected form the tree.

Returns:
creatures list

getAllCreatures

public java.util.ArrayList getAllCreatures()
Returns list of all creatures in the tree.

Returns:
creatures list

addTreeNode

public void addTreeNode(javax.swing.tree.DefaultMutableTreeNode node,
                        int group,
                        int index)
Add a node to the tree.

Parameters:
node - the added tree node
group - the group of a node
index - the index of a node in the group

addTreeNode

public void addTreeNode(javax.swing.tree.DefaultMutableTreeNode node,
                        int index)
Add a node to the tree.

Parameters:
node - the added tree node
index - the index of a group in the tree

removeTreeNode

public void removeTreeNode(int group,
                           int index)
Remove a node from the tree.

Parameters:
group - the group of a node
index - the index of a node in the group

removeTreeNode

public void removeTreeNode(int index)
Remove a node from the tree.

Parameters:
index - the index of a group in the tree