public abstract class AbstractPropertiesPanel extends javax.swing.JPanel implements ISettingsListener, java.awt.event.ActionListener, java.awt.event.ComponentListener
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
AbstractPropertiesPanel() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Applies a reset of the Mandelbrot set effect to the default setting respectively detects
which parameter should be shown now in the properties panel.
|
protected void |
actionPerformedForChildren(java.awt.event.ActionEvent e) |
void |
addPropertiesPanelListener(IPropertiesPanelListener pListener)
Adds a listener object that listens to changes in this properties panel.
|
void |
applyNewSettings(Settings pSettings)
If the settings for the gui application have been changed, the changed settings are sent
and the properties panel can adapt accordingly.
|
protected void |
applyNewSettingsForChildren(Settings pSettings) |
void |
componentHidden(java.awt.event.ComponentEvent e)
Not used at the moment.
|
void |
componentMoved(java.awt.event.ComponentEvent e)
Not used at the moment.
|
void |
componentResized(java.awt.event.ComponentEvent e)
Resizes the color gradient panel when the size of this panel has been changed.
|
protected void |
componentResizedForChildren(java.awt.event.ComponentEvent e,
javax.swing.JPanel currentPropertyPanel) |
void |
componentShown(java.awt.event.ComponentEvent e)
Not used at the moment.
|
protected void |
fireApplyChanges(EffectParameters pEffectParameters)
Informs all registered listeners that a change in the properties panel has been made.
|
abstract EffectParameters |
getEffectParameters()
Returns the image effect parameters that the settings of the properties panel represent.
|
java.lang.String |
getFileName()
Returns the file name of the source image file, if possible.
|
protected int |
getPropertiesSelectionWidth()
Returns the width of the properties combo box.
|
protected abstract java.util.Vector<java.lang.String> |
getPropertyKeys() |
protected abstract java.util.Vector<javax.swing.JPanel> |
getPropertyPanels() |
protected void |
initLayout() |
protected void |
propertyPanelChanged(javax.swing.JPanel currentPropertyPanel) |
void |
removeAllPropertiesPanelListener()
Removes all listeners from this properties panel.
|
void |
removePropertiesPanelListener(IPropertiesPanelListener pListener)
Removes a listener object that should no longer listen to changes in this properties panel.
|
abstract void |
setEffectParameters(EffectParameters pEffectParameters)
Sets the parameters for the image effect that should be modified in this panel.
|
static void |
switchComboBoxItemLabels(javax.swing.JComboBox<java.lang.String> pComboBox,
LanguageProperties pLanguageProperties,
java.util.Vector<java.lang.String> pPropertyKeys) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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
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, transferFocusDownCycle, validate, validateTree
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, 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, transferFocusBackward, transferFocusUpCycle
public abstract void setEffectParameters(EffectParameters pEffectParameters)
pEffectParameters
- The parameters that define the settings of the image effect.public abstract EffectParameters getEffectParameters()
public java.lang.String getFileName()
protected abstract java.util.Vector<javax.swing.JPanel> getPropertyPanels()
protected abstract java.util.Vector<java.lang.String> getPropertyKeys()
public final void applyNewSettings(Settings pSettings)
applyNewSettings
in interface ISettingsListener
pSettings
- The modified settings of the gui application.public void addPropertiesPanelListener(IPropertiesPanelListener pListener)
pListener
- The listener that listens to changes in this properties panel.public void removePropertiesPanelListener(IPropertiesPanelListener pListener)
pListener
- The listener that should no longer listen to changes in this properties panel.public void removeAllPropertiesPanelListener()
protected void fireApplyChanges(EffectParameters pEffectParameters)
pEffectParameters
- The image effect parameters that should be passed on to the listeners.public final void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- The action event triggering this method.public final void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
e
- The event triggering this method.public final void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
e
- The event triggering this method.public final void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
e
- The event triggering this method.public final void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
e
- The event triggering this method.protected void initLayout()
protected int getPropertiesSelectionWidth()
protected void actionPerformedForChildren(java.awt.event.ActionEvent e)
protected void applyNewSettingsForChildren(Settings pSettings)
protected void componentResizedForChildren(java.awt.event.ComponentEvent e, javax.swing.JPanel currentPropertyPanel)
protected void propertyPanelChanged(javax.swing.JPanel currentPropertyPanel)
public static void switchComboBoxItemLabels(javax.swing.JComboBox<java.lang.String> pComboBox, LanguageProperties pLanguageProperties, java.util.Vector<java.lang.String> pPropertyKeys)