public class MandelbrotSetPropertiesPanel extends AbstractPropertiesPanel implements ISlimSliderPanelListener, IColorGradientPanelListener, java.awt.event.ActionListener, ISizingPanelListener, 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 |
---|
MandelbrotSetPropertiesPanel(MandelbrotSetPanel pMandelbrotSetPanel)
Creates a
MandelbrotSetPropertiesPanel object with the parameters that are set to a given MandelbrotSetPanel . |
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.
|
void |
applyChanges(SlimSliderPanel pSliderPanel,
int iValue)
If the iteration depth has been adapted
in the corresponding slider panel, it is
communicated with this method, the effect parameters are adapted and the listeners are notified.
|
void |
applyNewSettings(Settings pSettings)
Applies the changes of the settings to the application.
|
void |
applySizingChanges(SizingPanel pSizingPanel)
Applies the settings of the specified
SizingPanel to the effect. |
void |
colorGradientChanged(ColorGradientPanel pColorGradientPanel)
If the color gradient has been modified in the specified
ColorGradientPanel , it is
communicated with this method, the effect parameters are adapted and the listeners are notified. |
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.
|
void |
componentShown(java.awt.event.ComponentEvent e)
Not used at the moment.
|
EffectParameters |
getEffectParameters()
Returns the
MandelbrotSetParameters object representing the effect parameters of this panel. |
void |
setEffectParameters(EffectParameters pParameters)
Sets the effect parameters that should be represented by this
MandelbrotSetPropertiesPanel object. |
addPropertiesPanelListener, fireApplyChanges, getFileName, getPropertiesSelectionWidth, getSelectedPropertiesIndex, initPropertiesComboBox, populatePropertiesSelection, removeAllPropertiesPanelListener, removePropertiesPanelListener
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 MandelbrotSetPropertiesPanel(MandelbrotSetPanel pMandelbrotSetPanel)
MandelbrotSetPropertiesPanel
object with the parameters that are set to a given MandelbrotSetPanel
.pMandelbrotSetPanel
- The MandelbrotSetPanel
object from which the effect properties are taken.public EffectParameters getEffectParameters()
MandelbrotSetParameters
object representing the effect parameters of this panel.getEffectParameters
in class AbstractPropertiesPanel
MandelbrotSetParameters
object representing the effect parameters of this panel.public void setEffectParameters(EffectParameters pParameters)
MandelbrotSetPropertiesPanel
object.
The set operation is only successful if a MandelbrotSetParameters
object has been specified.setEffectParameters
in class AbstractPropertiesPanel
pParameters
- The MandelbrotSetParameters
object representing the effect parameters
that should be represented by this MandelbrotSetPropertiesPanel
object.public void applyChanges(SlimSliderPanel pSliderPanel, int iValue)
applyChanges
in interface ISlimSliderPanelListener
pSliderPanel
- The SlimSliderPanel
object that has been modified.iValue
- The value of the slider panel that has been modified.public void colorGradientChanged(ColorGradientPanel pColorGradientPanel)
ColorGradientPanel
, it is
communicated with this method, the effect parameters are adapted and the listeners are notified.colorGradientChanged
in interface IColorGradientPanelListener
pColorGradientPanel
- The ColorGradientPanel
object that has been modified.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- The action event triggering this method.public void applySizingChanges(SizingPanel pSizingPanel)
SizingPanel
to the effect.applySizingChanges
in interface ISizingPanelListener
pSizingPanel
- The SizingPanel
from which the size properties are taken.public void applyNewSettings(Settings pSettings)
applyNewSettings
in interface ISettingsListener
applyNewSettings
in class AbstractPropertiesPanel
pSettings
- The new Settings
object that is used to retrieve all labels.public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
e
- The event triggering this method.public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
e
- The event triggering this method.public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
e
- The event triggering this method.public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
e
- The event triggering this method.