|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.lyra.Interface.Options.InterfacePanel
public class InterfacePanel
The user interface has the ability to have unique colours and themes applied to it. While themes are Java based and will be selected from whatever the Java Runtime Engine supports, the selection of colours and icons are application specific.
Nested Class Summary | |
---|---|
private class |
InterfacePanel.Interact
The code separation from the user interface. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
private javax.swing.JButton |
buttonHighlightColor
|
private javax.swing.JButton |
buttonHighlightFont
|
private javax.swing.JButton |
buttonPrimaryColor
|
private javax.swing.JButton |
buttonPrimaryFont
|
private javax.swing.JButton |
buttonSecondaryColor
|
private javax.swing.JCheckBox |
checkAlbum
|
private javax.swing.JCheckBox |
checkArtist
|
private javax.swing.JCheckBox |
checkCustom
|
private javax.swing.JCheckBox |
checkGenre
|
private javax.swing.JCheckBox |
checkPlaylists
|
private javax.swing.JCheckBox |
checkSmooth
|
private javax.swing.JCheckBox |
checkTray
|
private javax.swing.ButtonGroup |
ColorGroup
|
private javax.swing.JComboBox |
comboBlock
|
private javax.swing.JComboBox |
comboTheme
|
private java.util.Map<java.lang.String,java.lang.String> |
Global
|
private javax.swing.JPanel |
groupColors
|
private javax.swing.JPanel |
groupDisplay
|
private javax.swing.JPanel |
groupTheme
|
private InterfacePanel.Interact |
Interface
|
private javax.swing.JLabel |
labelAlbum
|
private javax.swing.JLabel |
labelArtist
|
private javax.swing.JLabel |
labelBlock
|
private javax.swing.JLabel |
labelBlue
|
private javax.swing.JLabel |
labelGenre
|
private javax.swing.JLabel |
labelGreen
|
private javax.swing.JLabel |
labelHighlightColor
|
private javax.swing.JLabel |
labelHighlightFont
|
private javax.swing.JLabel |
labelIcons
|
private javax.swing.JLabel |
labelManage
|
private javax.swing.JLabel |
labelOrange
|
private javax.swing.JLabel |
labelPlaylists
|
private javax.swing.JLabel |
labelPrimaryColor
|
private javax.swing.JLabel |
labelPrimaryFont
|
private javax.swing.JLabel |
labelSecondaryColor
|
private javax.swing.JLabel |
labelSmooth
|
private javax.swing.JLabel |
labelTheme
|
private javax.swing.JLabel |
labelTray
|
private java.util.Map<java.lang.String,java.lang.String> |
Lang
|
private Ledger |
Logger
|
private javax.swing.JPanel |
panelOptions
|
private javax.swing.JPanel |
panelOptionsBlue
|
private javax.swing.JPanel |
panelOptionsGreen
|
private javax.swing.JPanel |
panelOptionsOrange
|
private java.awt.Component |
Parent
|
private javax.swing.JRadioButton |
radioBlue
|
private javax.swing.JRadioButton |
radioGreen
|
private javax.swing.JRadioButton |
radioOrange
|
private static long |
serialVersionUID
|
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.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 | |
---|---|
InterfacePanel(Ledger logger,
java.util.Map<java.lang.String,java.lang.String> lang,
java.util.Map<java.lang.String,java.lang.String> global,
java.awt.Component parent)
Primary application constructor which is passed all of the necessary elements in order to display settings and handle interaction. |
Method Summary | |
---|---|
private javax.swing.JButton |
getButtonHighlightColor()
This method initialises buttonHighlightColor. |
private javax.swing.JButton |
getButtonHighlightFont()
This method initialises buttonHighlightFont. |
private javax.swing.JButton |
getButtonPrimaryColor()
This method initialises buttonPrimaryColor. |
private javax.swing.JButton |
getButtonPrimaryFont()
This method initialises buttonPrimaryFont. |
private javax.swing.JButton |
getButtonSecondaryColor()
This method initialises buttonSecondaryColor. |
private javax.swing.JCheckBox |
getCheckAlbum()
This method initialises checkAlbum. |
private javax.swing.JCheckBox |
getCheckArtist()
This method initialises checkArtist. |
private javax.swing.JCheckBox |
getCheckCustom()
This method initialises checkManage. |
private javax.swing.JCheckBox |
getCheckGenre()
This method initialises checkGenre. |
private javax.swing.JCheckBox |
getCheckPlaylists()
This method initialises checkPlaylists. |
private javax.swing.JCheckBox |
getCheckSmooth()
This method initialises checkManage. |
private javax.swing.JCheckBox |
getCheckTray()
This method initialises checkManage. |
private javax.swing.JComboBox |
getComboBlock()
This method initialises comboBlock. |
private javax.swing.JComboBox |
getComboTheme()
This method initialises comboTheme. |
private javax.swing.JPanel |
getGroupColors()
This method initialises groupColours. |
private javax.swing.JPanel |
getGroupDisplay()
This method initialises groupDisplay. |
private javax.swing.JPanel |
getGroupTheme()
This method initialises groupTheme. |
private javax.swing.JLabel |
getLabelAlbum()
This method initialises labelAlbum. |
private javax.swing.JLabel |
getLabelArtist()
This method initialises labelArtist. |
private javax.swing.JLabel |
getLabelBlock()
This method initialises labelBlock. |
private javax.swing.JLabel |
getLabelBlue()
This method initialises labelBlue. |
private javax.swing.JLabel |
getLabelGenre()
This method initialises labelGenre. |
private javax.swing.JLabel |
getLabelGreen()
This method initialises labelGreen. |
private javax.swing.JLabel |
getLabelHighlightColor()
This method initialises labelHighlightColor. |
private javax.swing.JLabel |
getLabelHighlightFont()
This method initialises labelHighlightFont. |
private javax.swing.JLabel |
getLabelIcons()
This method initialises labelIcons. |
private javax.swing.JLabel |
getLabelManage()
This method initialises labelManage. |
private javax.swing.JLabel |
getLabelOrange()
This method initialises labelOrange. |
private javax.swing.JLabel |
getLabelPlaylists()
This method initialises labelPlaylists. |
private javax.swing.JLabel |
getLabelPrimaryColor()
This method initialises labelPrimaryColor. |
private javax.swing.JLabel |
getLabelPrimaryFont()
This method initialises labelPrimaryFont. |
private javax.swing.JLabel |
getLabelSecondaryColor()
This method initialises labelSecondaryColor. |
private javax.swing.JLabel |
getLabelSmooth()
This method initialises labelSmooth. |
private javax.swing.JLabel |
getLabelTheme()
This method initialises labelTheme. |
private javax.swing.JLabel |
getLabelTray()
This method initialises labelTray. |
private javax.swing.JPanel |
getPanelOptions()
This method initialises panelOptions. |
private javax.swing.JPanel |
getPanelOptionsBlue()
This method initialises panelOptionsBlue. |
private javax.swing.JPanel |
getPanelOptionsGreen()
This method initialises panelOptionsGreen. |
private javax.swing.JPanel |
getPanelOptionsOrange()
This method initialises panelOptionsOrange. |
private javax.swing.JPanel |
getPanelRow(javax.swing.JLabel label,
javax.swing.JComponent widget)
This method initialises a JPanel component providing row elements. |
private javax.swing.JRadioButton |
getRadioBlue()
This method initialises radioBlue. |
private javax.swing.JRadioButton |
getRadioGreen()
This method initialises radioGreen. |
private javax.swing.JRadioButton |
getRadioOrange()
This method initialises radioOrange. |
java.util.Map<java.lang.String,java.lang.String> |
getState()
Returns a map containing all of the necessary elements controlled in this panel. |
private void |
initFrame()
This method initialises this. |
void |
setState()
Establishes the defaults for the elements displayed within the panel. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, 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, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, 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 |
---|
private static final long serialVersionUID
private javax.swing.JPanel groupTheme
private javax.swing.JLabel labelTheme
private javax.swing.JComboBox comboTheme
private javax.swing.JLabel labelBlock
private javax.swing.JComboBox comboBlock
private javax.swing.JLabel labelSmooth
private javax.swing.JCheckBox checkSmooth
private javax.swing.JLabel labelTray
private javax.swing.JCheckBox checkTray
private javax.swing.JLabel labelIcons
private javax.swing.JPanel panelOptions
private javax.swing.JPanel panelOptionsBlue
private javax.swing.JRadioButton radioBlue
private javax.swing.JLabel labelBlue
private javax.swing.JPanel panelOptionsGreen
private javax.swing.JRadioButton radioGreen
private javax.swing.JLabel labelGreen
private javax.swing.JPanel panelOptionsOrange
private javax.swing.JRadioButton radioOrange
private javax.swing.JLabel labelOrange
private javax.swing.JPanel groupDisplay
private javax.swing.JLabel labelPlaylists
private javax.swing.JCheckBox checkPlaylists
private javax.swing.JLabel labelArtist
private javax.swing.JCheckBox checkArtist
private javax.swing.JLabel labelAlbum
private javax.swing.JCheckBox checkAlbum
private javax.swing.JLabel labelGenre
private javax.swing.JCheckBox checkGenre
private javax.swing.JLabel labelManage
private javax.swing.JCheckBox checkCustom
private javax.swing.JPanel groupColors
private javax.swing.JLabel labelPrimaryFont
private javax.swing.JButton buttonPrimaryFont
private javax.swing.JLabel labelPrimaryColor
private javax.swing.JButton buttonPrimaryColor
private javax.swing.JLabel labelSecondaryColor
private javax.swing.JButton buttonSecondaryColor
private javax.swing.JLabel labelHighlightColor
private javax.swing.JButton buttonHighlightColor
private javax.swing.JLabel labelHighlightFont
private javax.swing.JButton buttonHighlightFont
private java.util.Map<java.lang.String,java.lang.String> Lang
private java.util.Map<java.lang.String,java.lang.String> Global
private Ledger Logger
private java.awt.Component Parent
private InterfacePanel.Interact Interface
private javax.swing.ButtonGroup ColorGroup
Constructor Detail |
---|
public InterfacePanel(Ledger logger, java.util.Map<java.lang.String,java.lang.String> lang, java.util.Map<java.lang.String,java.lang.String> global, java.awt.Component parent)
logger
- Ledger instances for debugging and information.lang
- Language map for independent language elements.global
- Global settings and configuration options.parent
- Component in which this JPanel is a part of.Method Detail |
---|
private void initFrame()
private javax.swing.JPanel getGroupTheme()
private javax.swing.JPanel getGroupDisplay()
private javax.swing.JPanel getGroupColors()
private javax.swing.JLabel getLabelTheme()
private javax.swing.JLabel getLabelBlock()
private javax.swing.JLabel getLabelSmooth()
private javax.swing.JLabel getLabelTray()
private javax.swing.JLabel getLabelIcons()
private javax.swing.JLabel getLabelPlaylists()
private javax.swing.JLabel getLabelArtist()
private javax.swing.JLabel getLabelAlbum()
private javax.swing.JLabel getLabelGenre()
private javax.swing.JLabel getLabelManage()
private javax.swing.JLabel getLabelPrimaryFont()
private javax.swing.JLabel getLabelPrimaryColor()
private javax.swing.JLabel getLabelSecondaryColor()
private javax.swing.JLabel getLabelHighlightColor()
private javax.swing.JLabel getLabelHighlightFont()
private javax.swing.JComboBox getComboTheme()
private javax.swing.JComboBox getComboBlock()
private javax.swing.JCheckBox getCheckPlaylists()
private javax.swing.JCheckBox getCheckArtist()
private javax.swing.JCheckBox getCheckAlbum()
private javax.swing.JCheckBox getCheckGenre()
private javax.swing.JCheckBox getCheckCustom()
private javax.swing.JCheckBox getCheckSmooth()
private javax.swing.JCheckBox getCheckTray()
private javax.swing.JButton getButtonPrimaryFont()
private javax.swing.JButton getButtonPrimaryColor()
private javax.swing.JButton getButtonSecondaryColor()
private javax.swing.JButton getButtonHighlightColor()
private javax.swing.JButton getButtonHighlightFont()
private javax.swing.JPanel getPanelOptions()
private javax.swing.JPanel getPanelOptionsBlue()
private javax.swing.JLabel getLabelBlue()
private javax.swing.JPanel getPanelOptionsGreen()
private javax.swing.JLabel getLabelGreen()
private javax.swing.JPanel getPanelOptionsOrange()
private javax.swing.JLabel getLabelOrange()
private javax.swing.JRadioButton getRadioBlue()
private javax.swing.JRadioButton getRadioGreen()
private javax.swing.JRadioButton getRadioOrange()
private javax.swing.JPanel getPanelRow(javax.swing.JLabel label, javax.swing.JComponent widget)
label
- JLabel instance which will be resized.widget
- JComponent instance which will be added as-is.
public java.util.Map<java.lang.String,java.lang.String> getState()
public void setState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |