jET
1.0alpha4


org.jet.tracks
Class CustomSwitchProp

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--javax.swing.JDialog
                                |
                                +--org.jet.JetDialog
                                      |
                                      +--org.jet.PropertiesDialog
                                            |
                                            +--org.jet.tracks.AbstractTrackProp
                                                  |
                                                  +--org.jet.tracks.CustomSwitchProp
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class CustomSwitchProp
extends AbstractTrackProp

Custom switch dialog.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.jet.tracks.AbstractTrackProp
AbstractTrackProp.AbstractTextAction, AbstractTrackProp.Colorizer
 
Nested classes inherited from class org.jet.PropertiesDialog
PropertiesDialog.ControlsMap, PropertiesDialog.DialogControl
 
Field Summary
 
Fields inherited from class org.jet.tracks.AbstractTrackProp
tabbed
 
Fields inherited from class org.jet.PropertiesDialog
caButton, controls, gbConstraints, okButton
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CustomSwitchProp(javax.swing.JFrame frame)
          Shows up custom switch properties dialog.
 
Method Summary
protected  javax.swing.JPanel createPane()
          Creates user content of dialog.
protected  javax.swing.JTextField[] createPoint_3()
          Creates three text fields for point 3 of switch.
protected  javax.swing.JFormattedTextField createReversibleAngle()
          Create angle for reversible track of the switch.
protected  javax.swing.JFormattedTextField createReversibleRadius()
          Create radius for reversible track of the switch.
protected  javax.swing.JFormattedTextField createRoll_3()
          Creates text field for roll at point 3.
protected  javax.swing.JFormattedTextField createStraightAngle()
          Create angle for straight track of the switch.
protected  javax.swing.JFormattedTextField createStraightRadius()
          Create radius for straight track of the switch.
protected  javax.swing.JFormattedTextField createSwitchedRoll()
          Creates text field for roll at point 1 for reversible track of the switch.
protected  javax.swing.JTextField[] createSwitchedVector()
          Creates three text fields for vector 2 of reversible track.
protected  javax.swing.JTextField[] createVector_3()
          Creates three text fields for vector 3 of the switch.
 
Methods inherited from class org.jet.tracks.AbstractTrackProp
createAttrition, createEnviroment, createFriction, createIncline, createLength, createName, createPoint_1, createPoint_2, createQuality, createRadius, createRoll_1, createRoll_2, createSecondTexture, createTap, createTexHeight, createTexLength, createTexSlope, createTexture, createTexWidth, createVector_1, createVector_2, createWidth
 
Methods inherited from class org.jet.PropertiesDialog
createContents, layoutControl, normalize, showUp
 
Methods inherited from class org.jet.JetDialog
centerDialog
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, 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, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomSwitchProp

public CustomSwitchProp(javax.swing.JFrame frame)
Shows up custom switch properties dialog.

Method Detail

createPane

protected javax.swing.JPanel createPane()
Description copied from class: PropertiesDialog
Creates user content of dialog.

Subclasses must implements this method to build and layout their controls. Returned panel is laying out over OK and Cancel buttons of dialog box.

Specified by:
createPane in class PropertiesDialog
Returns:
Panel containing all user components.

createStraightRadius

protected javax.swing.JFormattedTextField createStraightRadius()
Create radius for straight track of the switch.


createStraightAngle

protected javax.swing.JFormattedTextField createStraightAngle()
Create angle for straight track of the switch.


createReversibleRadius

protected javax.swing.JFormattedTextField createReversibleRadius()
Create radius for reversible track of the switch.


createReversibleAngle

protected javax.swing.JFormattedTextField createReversibleAngle()
Create angle for reversible track of the switch.


createRoll_3

protected javax.swing.JFormattedTextField createRoll_3()
Creates text field for roll at point 3.


createSwitchedRoll

protected javax.swing.JFormattedTextField createSwitchedRoll()
Creates text field for roll at point 1 for reversible track of the switch.


createPoint_3

protected javax.swing.JTextField[] createPoint_3()
Creates three text fields for point 3 of switch.


createVector_3

protected javax.swing.JTextField[] createVector_3()
Creates three text fields for vector 3 of the switch.


createSwitchedVector

protected javax.swing.JTextField[] createSwitchedVector()
Creates three text fields for vector 2 of reversible track.


jET
1.0alpha4