jET
1.0alpha4


org.jet.tracks
Class AbstractTrackProp

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
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants
Direct Known Subclasses:
ArcTrackProp, CustomSwitchProp, StraightTrackProp

public abstract class AbstractTrackProp
extends PropertiesDialog

An abstract track properties dialog box.

See Also:
Serialized Form

Nested Class Summary
protected  class AbstractTrackProp.AbstractTextAction
          Inner class for updating values in other text components.
protected  class AbstractTrackProp.Colorizer
          Colorizes target formatted text field when its values exceed number formatter ranges.
 
Nested classes inherited from class org.jet.PropertiesDialog
PropertiesDialog.ControlsMap, PropertiesDialog.DialogControl
 
Field Summary
protected  javax.swing.JTabbedPane tabbed
          Tabbed pane that is present on every track properties dialog.
 
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
protected AbstractTrackProp(java.awt.Frame owner)
          Constructs track properties dialog.
protected AbstractTrackProp(java.awt.Frame owner, java.lang.String title)
          Constructs track properties dialog.
 
Method Summary
protected  javax.swing.JFormattedTextField createAttrition()
          Creates text field for track attrition.
protected  javax.swing.JComboBox createEnviroment()
          Creates combo box with enviroment.
protected  javax.swing.JTextField createFriction()
          Creates text field for track friction.
protected  javax.swing.JTextField createIncline()
          Creates text field for track incline.
protected  javax.swing.JFormattedTextField createLength()
          Creates text field for length.
protected  javax.swing.JTextField createName()
          Creates text field for track name.
protected  javax.swing.JTextField[] createPoint_1()
          Creates three text fields for point 1 of track.
protected  javax.swing.JTextField[] createPoint_2()
          Creates three text fields for point 2 of track.
protected  javax.swing.JFormattedTextField createQuality()
          Creates text field for track quality.
protected  javax.swing.JTextField createRadius()
          Creates text field for arc radius with some document listeners.
protected  javax.swing.JFormattedTextField createRoll_1()
          Creates text field for roll at point 1.
protected  javax.swing.JFormattedTextField createRoll_2()
          Creates text field for roll at point 2 of track.
protected  javax.swing.JComboBox createSecondTexture()
          Creates combo box for second texture.
protected  javax.swing.JTextField createTap()
          Creates text field for track tap.
protected  javax.swing.JTextField createTexHeight()
          Creates text field for texture height.
protected  javax.swing.JTextField createTexLength()
          Creates text field for texture length.
protected  javax.swing.JTextField createTexSlope()
          Creates text field for texture slope.
protected  javax.swing.JComboBox createTexture()
          Creates combo box for track main texture.
protected  javax.swing.JTextField createTexWidth()
          Creates text field for texture width.
protected  javax.swing.JTextField[] createVector_1()
          Creates three text fields for vector 1 of track.
protected  javax.swing.JTextField[] createVector_2()
          Creates three text fields for vector 2 of track.
protected  javax.swing.JTextField createWidth()
          Creates text field for track width.
 
Methods inherited from class org.jet.PropertiesDialog
createContents, createPane, 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
 

Field Detail

tabbed

protected javax.swing.JTabbedPane tabbed
Tabbed pane that is present on every track properties dialog.

Constructor Detail

AbstractTrackProp

protected AbstractTrackProp(java.awt.Frame owner,
                            java.lang.String title)
Constructs track properties dialog.

Parameters:
owner - An owner window of the dialog box.
title - Title of the dialog box.

AbstractTrackProp

protected AbstractTrackProp(java.awt.Frame owner)
Constructs track properties dialog.

Parameters:
owner - An owner window of the dialog box.
Method Detail

createName

protected javax.swing.JTextField createName()
Creates text field for track name.


createLength

protected javax.swing.JFormattedTextField createLength()
Creates text field for length.


createWidth

protected javax.swing.JTextField createWidth()
Creates text field for track width.


createFriction

protected javax.swing.JTextField createFriction()
Creates text field for track friction.


createTap

protected javax.swing.JTextField createTap()
Creates text field for track tap.


createQuality

protected javax.swing.JFormattedTextField createQuality()
Creates text field for track quality.


createAttrition

protected javax.swing.JFormattedTextField createAttrition()
Creates text field for track attrition.


createEnviroment

protected javax.swing.JComboBox createEnviroment()
Creates combo box with enviroment.


createTexture

protected javax.swing.JComboBox createTexture()
Creates combo box for track main texture.


createTexLength

protected javax.swing.JTextField createTexLength()
Creates text field for texture length.


createSecondTexture

protected javax.swing.JComboBox createSecondTexture()
Creates combo box for second texture.


createTexHeight

protected javax.swing.JTextField createTexHeight()
Creates text field for texture height.


createTexWidth

protected javax.swing.JTextField createTexWidth()
Creates text field for texture width.


createTexSlope

protected javax.swing.JTextField createTexSlope()
Creates text field for texture slope.


createPoint_1

protected javax.swing.JTextField[] createPoint_1()
Creates three text fields for point 1 of track.


createRoll_1

protected javax.swing.JFormattedTextField createRoll_1()
Creates text field for roll at point 1.


createVector_1

protected javax.swing.JTextField[] createVector_1()
Creates three text fields for vector 1 of track.


createVector_2

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


createPoint_2

protected javax.swing.JTextField[] createPoint_2()
Creates three text fields for point 2 of track.


createRoll_2

protected javax.swing.JFormattedTextField createRoll_2()
Creates text field for roll at point 2 of track.
Initial value 0 mm
Minimum value -0.150 mm
Maximum value 0.150 mm


createIncline

protected javax.swing.JTextField createIncline()
Creates text field for track incline.


createRadius

protected javax.swing.JTextField createRadius()
Creates text field for arc radius with some document listeners.
Initial value 300 m
Minimum value 0 m
Maximum value not defined


jET
1.0alpha4