|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel de.desy.acop.displayers.chart.ScalePanel
public class ScalePanel
ScalePanel
is a visual bean which allows selection and configuration
of certain chart scaling properties. This bean is independent of any chart
and only supplies the certain components for setting properties. Upon the change
of any of the properties a PropertyChangeEvent
is fired which notifies
all registered listeners.
Nested Class Summary |
---|
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 | |
---|---|
static java.lang.String |
CLEAR_CMD
|
static java.lang.String |
DEFAULT_SCALE_CMD
|
static java.lang.String |
PANE_DOWN_ACTION
|
static java.lang.String |
PANE_UP_ACTION
|
static java.lang.String |
ZOOM_IN_ACTION
|
static java.lang.String |
ZOOM_OUT_ACTION
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, 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 | |
---|---|
ScalePanel()
Constructs a new ScalePanel. |
Method Summary | |
---|---|
void |
addActionListener(java.awt.event.ActionListener l)
Adds the action listener which is notified when pane up or down is pressed. |
AcopGraphStyleEnum[] |
getAvailableStyles()
Returns the styles which are available for selection. |
double |
getDefaultMax()
Returns the default maximum value. |
double |
getDefaultMin()
Returns the default minimum value. |
double |
getForcedDxFraction()
Returns the forced dx fraction. |
double |
getMax()
Returns the maximum value. |
double |
getMin()
Returns the minimum value. |
boolean |
getRelativeScaleMode()
Returns the relative scale mode. |
AcopGraphStyleEnum |
getStyle()
Return the style selected in the combo. |
boolean |
isAutoScale()
Returns the auto scale property value. |
boolean |
isExtraDigits()
Returns true if this panel shows extra digits. |
boolean |
isLogCritical()
Returns true if log critical warning is shown. |
void |
removeActionListener(java.awt.event.ActionListener l)
Removes the action listener. |
void |
setAutoScale(boolean auto)
Sets the auto scale property. |
void |
setAvailableStyles(AcopGraphStyleEnum[] styles)
Sets the styles which are available for selection. |
void |
setDefaultMax(double defaultMax)
Sets the default maximum value. |
void |
setDefaultMin(double defaultMin)
Sets the default minimum value. |
void |
setEnabled(boolean e)
|
void |
setExtraDigits(boolean extraDigits)
Sets the flag whether extra digits are shown on this panel or not. |
void |
setForcedDxFraction(double forced)
Sets the forced dx. |
void |
setLogCritical(boolean logCritical)
Shows/hides label showing a warning that data is logarithmically critical. |
void |
setMax(double max)
Sets maximum value. |
void |
setMax(double max,
boolean notify)
Sets the maximum value and notifies the listeners of property change if requested. |
void |
setMin(double min)
Sets the minimum. |
void |
setMin(double min,
boolean notify)
Sets the minimum value and notifies the listeners of property change if requested. |
void |
setMinMaxEnabled(boolean enabled)
Enables/disables the input panel for minimum and maximum. |
void |
setRelativeScaleMode(boolean relative)
Sets the relative scale mode. |
void |
setStyle(AcopGraphStyleEnum style)
Sets selected style. |
void |
setStyleComboRenderer(javax.swing.ListCellRenderer renderer)
Sets the style combo renderer. |
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, 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 |
---|
public static final java.lang.String CLEAR_CMD
public static final java.lang.String DEFAULT_SCALE_CMD
public static final java.lang.String PANE_DOWN_ACTION
public static final java.lang.String PANE_UP_ACTION
public static final java.lang.String ZOOM_IN_ACTION
public static final java.lang.String ZOOM_OUT_ACTION
Constructor Detail |
---|
public ScalePanel()
Method Detail |
---|
public void setExtraDigits(boolean extraDigits)
extraDigits
- true if high precision should be usedpublic boolean isExtraDigits()
public void addActionListener(java.awt.event.ActionListener l)
l
- the listener to addpublic void removeActionListener(java.awt.event.ActionListener l)
l
- the listener to removepublic void setEnabled(boolean e)
setEnabled
in class javax.swing.JComponent
public boolean isAutoScale()
public void setAutoScale(boolean auto)
auto
- new auto scale valuepublic void setRelativeScaleMode(boolean relative)
relative
- public void setMinMaxEnabled(boolean enabled)
enabled
- public boolean getRelativeScaleMode()
public boolean isLogCritical()
public void setLogCritical(boolean logCritical)
logCritical
- public double getMax()
public void setMax(double max)
max
- new maximum valuepublic void setMax(double max, boolean notify)
max
- new maximum valuenotify
- should listeners be notifiedpublic double getMin()
public void setMin(double min)
min
- ne wminimum valuepublic void setMin(double min, boolean notify)
min
- new minimum valuenotify
- should listeners be notifiedpublic double getDefaultMax()
public void setDefaultMax(double defaultMax)
defaultMax
- new default maximumpublic double getDefaultMin()
public void setDefaultMin(double defaultMin)
defaultMin
- new default minimumpublic AcopGraphStyleEnum getStyle()
public void setStyle(AcopGraphStyleEnum style)
style
- new stylepublic void setAvailableStyles(AcopGraphStyleEnum[] styles)
styles
- public AcopGraphStyleEnum[] getAvailableStyles()
public void setStyleComboRenderer(javax.swing.ListCellRenderer renderer)
AcopGraphStyleEnum
.
renderer
- the renderer to used in combopublic void setForcedDxFraction(double forced)
forced
- new dx fractionpublic double getForcedDxFraction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |