public abstract class AbstractPropertiesPanel extends javax.swing.JPanel implements ISettingsListener
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 |
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 |
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 int |
getSelectedPropertiesIndex()
Returns the selected index of the properties combo box.
|
protected javax.swing.JComboBox |
initPropertiesComboBox(java.awt.event.ActionListener pActionListener)
Creates a combo box for a properties panel that should hold all the different properties that can be selected.
|
protected void |
populatePropertiesSelection(LanguageProperties pLanguageProperties,
java.util.Vector<java.lang.String> pPropertyKeys)
Fills the combo box with the property labels defined by the language properties and the given keys.
|
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.
|
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()
public 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.protected javax.swing.JComboBox initPropertiesComboBox(java.awt.event.ActionListener pActionListener)
pActionListener
- An action listener that listens to the changes the selected value of the properties combo box. Usually this is the actual properties panel to show the current properties.protected int getSelectedPropertiesIndex()
protected void populatePropertiesSelection(LanguageProperties pLanguageProperties, java.util.Vector<java.lang.String> pPropertyKeys)
pLanguageProperties
- The language properties that hold the language specific labels.pPropertyKeys
- A list of strings that are the keys for the property labels.protected int getPropertiesSelectionWidth()