Class JPanelLights_WM
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Window
-
- java.awt.Dialog
-
- javax.swing.JDialog
-
- gov.nih.mipav.view.renderer.WildMagic.Interface.JInterfaceBase
-
- gov.nih.mipav.view.renderer.WildMagic.Interface.JPanelLights_WM
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.io.Serializable
,java.util.EventListener
,javax.accessibility.Accessible
,javax.swing.event.ChangeListener
,javax.swing.event.ListSelectionListener
,javax.swing.RootPaneContainer
,javax.swing.WindowConstants
public class JPanelLights_WM extends JInterfaceBase implements javax.swing.event.ChangeListener, javax.swing.event.ListSelectionListener
Dialog to turn slices bounding box of surface renderer on and off, and to change the color of the frame. This dialog also control the X, Y, Z slices movements.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nih.mipav.view.renderer.WildMagic.Interface.JInterfaceBase
JInterfaceBase.CancelListener, JInterfaceBase.DrawingPanel, JInterfaceBase.OkColorListener
-
Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
-
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
-
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JRadioButton
ambientRadio
Radio button for different light type.private javax.swing.JButton
colorButton
Color button, checkBox On/Off.private javax.swing.JLabel
colorLabel
Color label.private javax.swing.JPanel
controlPanel
Control panel.private javax.swing.Box
controlPanelBox
Control panel box that hold the control panel.private javax.swing.JRadioButton
directionalRadio
Directional light radio botton.private javax.swing.JPanel
drawPanel
Scroll panel reference.private javax.swing.JSlider
intensitySlider
Intensity slider.private int
iSelect
index of currently selected one.private javax.swing.JLabel
labelIntensity
Light intensity label.private javax.swing.JLabel
labelIntensityBegin
Light intensity label begin.private javax.swing.JLabel
labelIntensityEnd
Light intensity label end.private javax.swing.JLabel
labelIntensityMid
Light intensity label middle.static int
LIGHT_INDEX_AMBIENT
Ambient light index.static int
LIGHT_INDEX_MAX
Max number of light.static int
LIGHT_INDEX_MODEL_X0Y0Z0
light for corner X0Y0Z0.static int
LIGHT_INDEX_MODEL_X0Y0Z1
light for corner X0Y0Z1.static int
LIGHT_INDEX_MODEL_X0Y1Z0
light for corner X0Y1Z0.static int
LIGHT_INDEX_MODEL_X0Y1Z1
light for corner X0Y1Z1.static int
LIGHT_INDEX_MODEL_X1Y0Z0
light for corner X1Y0Z0.static int
LIGHT_INDEX_MODEL_X1Y0Z1
light for corner X1Y0Z1.static int
LIGHT_INDEX_MODEL_X1Y1Z0
light for corner X1Y1Z0.static int
LIGHT_INDEX_MODEL_X1Y1Z1
light for corner X1Y1Z1.static int
LIGHT_INDEX_STATIC
Static light index.private javax.swing.JList
list
List of lights.private int[]
m_aiLightScale
Light scale factor array.private WildMagic.LibGraphics.Rendering.Light[]
m_akLights
The structure for the light bulbs.private javax.swing.JLabel
m_kLabelPosX
Label for slider X position.private javax.swing.JLabel
m_kLabelPosY
Label for slider Y position.private javax.swing.JLabel
m_kLabelPosZ
Label for slider Z position.private javax.swing.JLabel
m_kLabelTrgX
Label for X light target position.private javax.swing.JLabel
m_kLabelTrgY
Label for Y light target position.private javax.swing.JLabel
m_kLabelTrgZ
Label for Z light target position.private javax.swing.JSlider
m_kSliderPosX
Light x position slider.private javax.swing.JSlider
m_kSliderPosY
Light y position slider.private javax.swing.JSlider
m_kSliderPosZ
Light z position slider.private javax.swing.JSlider
m_kSliderTrgX
Light x target position slider.private javax.swing.JSlider
m_kSliderTrgY
Light y target position slider.private javax.swing.JSlider
m_kSliderTrgZ
Light z target position slider.private javax.swing.JTextField
m_kTextPosX
X position text field.private javax.swing.JTextField
m_kTextPosY
Y position text field.private javax.swing.JTextField
m_kTextPosZ
Z position text field.private javax.swing.JTextField
m_kTextTrgX
X target position text field.private javax.swing.JTextField
m_kTextTrgY
Y target position text field.private javax.swing.JTextField
m_kTextTrgZ
Z target position text field.private float
maxBox
x, y, z box size.private javax.swing.JCheckBox
onOffCheckBox
Light turn on/off check box.private javax.swing.JLabel
onOffLabel
Light turn on/off label.private javax.swing.JRadioButton
pointRadio
Point light radio button.private javax.swing.JScrollPane
scroller
Scroll pane.private javax.swing.JPanel
scrollPanel
Scroll the control panel when the frame changes size.private static long
serialVersionUID
Use serialVersionUID for interoperability.private javax.swing.JRadioButton
spotRadio
Spot light radio button.private javax.swing.JTextField
textIntensity
Light intensity textfield.private float
xBox
x, y, z box size.private float
yBox
x, y, z box size.private float
zBox
x, y, z box size.-
Fields inherited from class gov.nih.mipav.view.renderer.WildMagic.Interface.JInterfaceBase
cancelButton, colorChooser, m_kVolumeViewer, mainPanel, OKButton, rayBasedRenderWM
-
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
-
-
Constructor Summary
Constructors Constructor Description JPanelLights_WM(VolumeTriPlanarInterface kVolumeViewer)
Constructor.JPanelLights_WM(VolumeTriPlanarRender rayBasedRenderWM)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent event)
Changes color of slices box frame and button if color button was pressed; turns bounding box on and off if checkbox was pressed; and closes dialog if "Close" button was pressed.private void
addControlPanel(javax.swing.JPanel panelControl, java.awt.Component c, java.awt.GridBagConstraints gbc, int x, int y, int w, int h)
Helper method that adds components to the control panel for the grid bag layout.private void
buildControlPanel()
Build the light control panel.private void
buildListPanel()
Build the light list panel.WildMagic.LibGraphics.Rendering.Light[]
copyAllLights()
private javax.swing.JLabel
createLabel(java.lang.String title, boolean bEnable)
Creates a label in the proper font and color.void
disposeLocal()
Clear memory and garbage collection.void
enableLight(int iSelect, boolean bOn)
Enable the selected light.protected void
finalize()
WildMagic.LibGraphics.Rendering.Light[]
getAllLights()
Returns all general lights.WildMagic.LibGraphics.Rendering.Light
getLight(int iIndex)
The the general light with the given index.int
getNumLights()
Get the number of lights.int
getSelected()
private void
init(ModelImage image)
java.lang.String
makeString(float number, int decPts)
Makes a string of a floating point number with a specific number of decimal points.void
refreshControlPanel()
Refresh the light control panel.void
refreshLighting()
Repaints the parent frame with the correct lighting.void
resizePanel(int panelWidth, int frameHeight)
Resizing the control panel with ViewJFrameVolumeView's frame width and height.void
setAllLights(WildMagic.LibGraphics.Rendering.Light[] akLights)
void
setButtonColor(javax.swing.JButton _button, java.awt.Color _color)
Set the color of the button.void
setSelectedIndex(int index)
Sets the light to selected.void
stateChanged(javax.swing.event.ChangeEvent e)
Slider move event handler.void
valueChanged(javax.swing.event.ListSelectionEvent kEvent)
Sets values of sliders and intensities appropriately based on which light was chosen in the list.-
Methods inherited from class gov.nih.mipav.view.renderer.WildMagic.Interface.JInterfaceBase
buildCancelButton, buildOKButton, buildTitledBorder, getMainPanel, updateColorButton
-
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
-
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
-
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, 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, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
LIGHT_INDEX_STATIC
public static final int LIGHT_INDEX_STATIC
Static light index.- See Also:
- Constant Field Values
-
LIGHT_INDEX_AMBIENT
public static final int LIGHT_INDEX_AMBIENT
Ambient light index.- See Also:
- Constant Field Values
-
LIGHT_INDEX_MODEL_X0Y0Z0
public static final int LIGHT_INDEX_MODEL_X0Y0Z0
light for corner X0Y0Z0.- See Also:
- Constant Field Values
-
LIGHT_INDEX_MODEL_X1Y0Z0
public static final int LIGHT_INDEX_MODEL_X1Y0Z0
light for corner X1Y0Z0.- See Also:
- Constant Field Values
-
LIGHT_INDEX_MODEL_X0Y1Z0
public static final int LIGHT_INDEX_MODEL_X0Y1Z0
light for corner X0Y1Z0.- See Also:
- Constant Field Values
-
LIGHT_INDEX_MODEL_X1Y1Z0
public static final int LIGHT_INDEX_MODEL_X1Y1Z0
light for corner X1Y1Z0.- See Also:
- Constant Field Values
-
LIGHT_INDEX_MODEL_X0Y0Z1
public static final int LIGHT_INDEX_MODEL_X0Y0Z1
light for corner X0Y0Z1.- See Also:
- Constant Field Values
-
LIGHT_INDEX_MODEL_X1Y0Z1
public static final int LIGHT_INDEX_MODEL_X1Y0Z1
light for corner X1Y0Z1.- See Also:
- Constant Field Values
-
LIGHT_INDEX_MODEL_X0Y1Z1
public static final int LIGHT_INDEX_MODEL_X0Y1Z1
light for corner X0Y1Z1.- See Also:
- Constant Field Values
-
LIGHT_INDEX_MODEL_X1Y1Z1
public static final int LIGHT_INDEX_MODEL_X1Y1Z1
light for corner X1Y1Z1.- See Also:
- Constant Field Values
-
LIGHT_INDEX_MAX
public static final int LIGHT_INDEX_MAX
Max number of light.- See Also:
- Constant Field Values
-
serialVersionUID
private static final long serialVersionUID
Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
ambientRadio
private javax.swing.JRadioButton ambientRadio
Radio button for different light type.
-
colorButton
private javax.swing.JButton colorButton
Color button, checkBox On/Off.
-
colorLabel
private javax.swing.JLabel colorLabel
Color label.
-
controlPanel
private javax.swing.JPanel controlPanel
Control panel.
-
controlPanelBox
private javax.swing.Box controlPanelBox
Control panel box that hold the control panel.
-
directionalRadio
private javax.swing.JRadioButton directionalRadio
Directional light radio botton.
-
drawPanel
private javax.swing.JPanel drawPanel
Scroll panel reference.
-
intensitySlider
private javax.swing.JSlider intensitySlider
Intensity slider.
-
iSelect
private int iSelect
index of currently selected one.
-
labelIntensity
private javax.swing.JLabel labelIntensity
Light intensity label.
-
labelIntensityBegin
private javax.swing.JLabel labelIntensityBegin
Light intensity label begin.
-
labelIntensityEnd
private javax.swing.JLabel labelIntensityEnd
Light intensity label end.
-
labelIntensityMid
private javax.swing.JLabel labelIntensityMid
Light intensity label middle.
-
list
private javax.swing.JList list
List of lights.
-
m_aiLightScale
private int[] m_aiLightScale
Light scale factor array.
-
m_akLights
private WildMagic.LibGraphics.Rendering.Light[] m_akLights
The structure for the light bulbs.
-
m_kLabelPosX
private javax.swing.JLabel m_kLabelPosX
Label for slider X position.
-
m_kLabelPosY
private javax.swing.JLabel m_kLabelPosY
Label for slider Y position.
-
m_kLabelPosZ
private javax.swing.JLabel m_kLabelPosZ
Label for slider Z position.
-
m_kLabelTrgX
private javax.swing.JLabel m_kLabelTrgX
Label for X light target position.
-
m_kLabelTrgY
private javax.swing.JLabel m_kLabelTrgY
Label for Y light target position.
-
m_kLabelTrgZ
private javax.swing.JLabel m_kLabelTrgZ
Label for Z light target position.
-
m_kSliderPosX
private javax.swing.JSlider m_kSliderPosX
Light x position slider.
-
m_kSliderPosY
private javax.swing.JSlider m_kSliderPosY
Light y position slider.
-
m_kSliderPosZ
private javax.swing.JSlider m_kSliderPosZ
Light z position slider.
-
m_kSliderTrgX
private javax.swing.JSlider m_kSliderTrgX
Light x target position slider.
-
m_kSliderTrgY
private javax.swing.JSlider m_kSliderTrgY
Light y target position slider.
-
m_kSliderTrgZ
private javax.swing.JSlider m_kSliderTrgZ
Light z target position slider.
-
m_kTextPosX
private javax.swing.JTextField m_kTextPosX
X position text field.
-
m_kTextPosY
private javax.swing.JTextField m_kTextPosY
Y position text field.
-
m_kTextPosZ
private javax.swing.JTextField m_kTextPosZ
Z position text field.
-
m_kTextTrgX
private javax.swing.JTextField m_kTextTrgX
X target position text field.
-
m_kTextTrgY
private javax.swing.JTextField m_kTextTrgY
Y target position text field.
-
m_kTextTrgZ
private javax.swing.JTextField m_kTextTrgZ
Z target position text field.
-
onOffCheckBox
private javax.swing.JCheckBox onOffCheckBox
Light turn on/off check box.
-
onOffLabel
private javax.swing.JLabel onOffLabel
Light turn on/off label.
-
pointRadio
private javax.swing.JRadioButton pointRadio
Point light radio button.
-
scroller
private javax.swing.JScrollPane scroller
Scroll pane.
-
scrollPanel
private javax.swing.JPanel scrollPanel
Scroll the control panel when the frame changes size.
-
spotRadio
private javax.swing.JRadioButton spotRadio
Spot light radio button.
-
textIntensity
private javax.swing.JTextField textIntensity
Light intensity textfield.
-
xBox
private float xBox
x, y, z box size.
-
yBox
private float yBox
x, y, z box size.
-
zBox
private float zBox
x, y, z box size.
-
maxBox
private float maxBox
x, y, z box size.
-
-
Constructor Detail
-
JPanelLights_WM
public JPanelLights_WM(VolumeTriPlanarRender rayBasedRenderWM)
-
JPanelLights_WM
public JPanelLights_WM(VolumeTriPlanarInterface kVolumeViewer)
Constructor.- Parameters:
kVolumeViewer
- parent frame.
-
-
Method Detail
-
init
private void init(ModelImage image)
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
Changes color of slices box frame and button if color button was pressed; turns bounding box on and off if checkbox was pressed; and closes dialog if "Close" button was pressed.- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Parameters:
event
- Event that triggered function.
-
disposeLocal
public void disposeLocal()
Clear memory and garbage collection.
-
enableLight
public void enableLight(int iSelect, boolean bOn)
Enable the selected light.- Parameters:
iSelect
- the light to enable.bOn
- turns light on/off.
-
getAllLights
public WildMagic.LibGraphics.Rendering.Light[] getAllLights()
Returns all general lights.- Returns:
- GeneralLight[] general light model.
-
copyAllLights
public WildMagic.LibGraphics.Rendering.Light[] copyAllLights()
-
setAllLights
public void setAllLights(WildMagic.LibGraphics.Rendering.Light[] akLights)
-
getSelected
public int getSelected()
-
getLight
public WildMagic.LibGraphics.Rendering.Light getLight(int iIndex)
The the general light with the given index.- Parameters:
iIndex
- light index- Returns:
- GeneralLight general light model.
-
getNumLights
public int getNumLights()
Get the number of lights.- Returns:
- int max light number
-
makeString
public java.lang.String makeString(float number, int decPts)
Makes a string of a floating point number with a specific number of decimal points.- Parameters:
number
- Number to be converted to a string.decPts
- The number of decimal points.- Returns:
- String representation of the number.
-
refreshControlPanel
public void refreshControlPanel()
Refresh the light control panel.
-
refreshLighting
public void refreshLighting()
Repaints the parent frame with the correct lighting.
-
resizePanel
public void resizePanel(int panelWidth, int frameHeight)
Resizing the control panel with ViewJFrameVolumeView's frame width and height.- Parameters:
panelWidth
- widthframeHeight
- height
-
setButtonColor
public void setButtonColor(javax.swing.JButton _button, java.awt.Color _color)
Description copied from class:JInterfaceBase
Set the color of the button. Derived classes may also perform other functions.- Overrides:
setButtonColor
in classJInterfaceBase
- Parameters:
_button
- button._color
- color.
-
setSelectedIndex
public void setSelectedIndex(int index)
Sets the light to selected.- Parameters:
index
- Index of light
-
stateChanged
public void stateChanged(javax.swing.event.ChangeEvent e)
Slider move event handler.- Specified by:
stateChanged
in interfacejavax.swing.event.ChangeListener
- Parameters:
e
- Slider move events
-
valueChanged
public void valueChanged(javax.swing.event.ListSelectionEvent kEvent)
Sets values of sliders and intensities appropriately based on which light was chosen in the list.- Specified by:
valueChanged
in interfacejavax.swing.event.ListSelectionListener
- Parameters:
kEvent
- Event that triggered this function.
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
addControlPanel
private void addControlPanel(javax.swing.JPanel panelControl, java.awt.Component c, java.awt.GridBagConstraints gbc, int x, int y, int w, int h)
Helper method that adds components to the control panel for the grid bag layout.- Parameters:
panelControl
- control panel reference.c
- Component added to the control panel.gbc
- GridBagConstraints of added component.x
- Gridx locationy
- Gridy locationw
- Gridwidthh
- Gridheight
-
buildControlPanel
private void buildControlPanel()
Build the light control panel.
-
buildListPanel
private void buildListPanel()
Build the light list panel.
-
createLabel
private javax.swing.JLabel createLabel(java.lang.String title, boolean bEnable)
Creates a label in the proper font and color.- Parameters:
title
- The title of the label.bEnable
- True if label is to be enabled.- Returns:
- The new label.
-
-