public class GradationCurveControl extends JPanel
changed 22.09.03
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected ChangeEvent |
changeEvent
Only one
ChangeEvent is needed per instance since the event's only (read-only)
state is the source property. |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
GradationCurveControl()
Construct a gradation curve control.
|
GradationCurveControl(GradationCurve curve)
Construct a control which works on the given curve
|
GradationCurveControl(PageView pageView)
Construct a control which associates itself with the gradation curve of given viewer instance
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener l)
Adds a ChangeListener to the curve control.
|
protected void |
fireStateChanged()
Send a ChangeEvent, whose source is this control, to each listener.
|
GradationCurve |
getCurve()
Returns the curve.
|
PageView |
getPageView()
Returns the viewer associated to this gradation panel
|
Dimension |
getPreferredSize() |
AbstractDocumentCommand.Scope |
getScope()
Returns the scope of the gradation curve.
|
boolean |
isAdjustInProgress()
Returns whether gradation curve is in adjusting process
|
boolean |
isShowPointDetails() |
void |
paintComponent(Graphics g) |
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener from the curve control.
|
int |
selectPoint(Point sp)
Select the control point at or near the given point.
|
void |
setBorder(Border border) |
void |
setCurve(GradationCurve curve)
Sets the curve.
|
void |
setPageView(PageView pageView)
Associate the viewer to the gradation panel
|
void |
setScope(AbstractDocumentCommand.Scope scope)
Changes the scope of the gradation curve.
|
void |
setShowPointDetails(boolean showPoints) |
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, 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, 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, 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
protected transient ChangeEvent changeEvent
ChangeEvent
is needed per instance since the event's only (read-only)
state is the source property. The source of events generated here is always "this". The event
is lazily created the first time that an event notification is fired.fireStateChanged()
@CallOnEDT public GradationCurveControl()
setPageView(PageView)
IllegalStateException
- if the calling thread is not the Event Dispatch
Thread
@CallOnEDT public GradationCurveControl(GradationCurve curve)
curve
- the curveIllegalStateException
- if the calling thread is not the Event Dispatch
Thread
@CallOnEDT public GradationCurveControl(PageView pageView)
pageView
- the viewer instance@CallableOffEDT public void addChangeListener(ChangeListener l)
l
- the ChangeListener to addfireStateChanged()
,
removeChangeListener(javax.swing.event.ChangeListener)
protected void fireStateChanged()
@CallOnEDT public GradationCurve getCurve()
@CallOnEDT public Dimension getPreferredSize()
getPreferredSize
in class JComponent
Component.getPreferredSize()
@CallOnEDT public AbstractDocumentCommand.Scope getScope()
AbstractDocumentCommand.Scope.DOCUMENT
#setScope(Scope)
,
AbstractDocumentCommand.Scope
@CallOnEDT public boolean isAdjustInProgress()
@CallOnEDT public void paintComponent(Graphics g)
paintComponent
in class JComponent
@CallableOffEDT public void removeChangeListener(ChangeListener l)
l
- the ChangeListener to removefireStateChanged()
,
addChangeListener(javax.swing.event.ChangeListener)
@CallOnEDT public int selectPoint(Point sp)
sp
- the mouse point-1
if no point is selectedIllegalStateException
- if the calling thread is not the Event Dispatch
Thread
@CallOnEDT public void setBorder(Border border)
setBorder
in class JComponent
IllegalStateException
- if the calling thread is not the Event Dispatch
Thread
JComponent.setBorder(Border)
@CallOnEDT public void setCurve(GradationCurve curve)
curve
- The curve to setIllegalStateException
- if the calling thread is not the Event Dispatch
Thread
@CallOnEDT public void setScope(AbstractDocumentCommand.Scope scope)
AbstractDocumentCommand.Scope.DOCUMENT
.scope
- the scope, possible values in AbstractDocumentCommand.Scope
.IllegalStateException
- if the calling thread is not the Event Dispatch
Thread
getScope()
@CallOnEDT public PageView getPageView()
@CallOnEDT public void setPageView(PageView pageView)
pageView
- the viewer to associateIllegalStateException
- if the calling thread is not the Event Dispatch
Thread
@CallOnEDT public void setShowPointDetails(boolean showPoints)
@CallOnEDT public boolean isShowPointDetails()
Copyright © 2024 levigo holding gmbh. All rights reserved.