jas2.hist
Class ManagedAxis
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- jas2.plot.PlotComponent
-
- jas2.plot.Axis
-
- jas2.hist.ManagedAxis
-
- All Implemented Interfaces:
- JASHistAxis, HasPopupItems, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Externalizable, java.io.Serializable
public final class ManagedAxis extends Axis implements JASHistAxis, java.io.Externalizable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Field Summary
-
Fields inherited from class jas2.plot.Axis
HORIZONTAL, VERTICAL
-
Fields inherited from class jas2.plot.PlotComponent
BEVEL_IN, BEVEL_OUT, ETCHED, LINE, NONE, OTHER, SHADOW
-
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor and Description ManagedAxis()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleangetAllowSuppressedZero()intgetAxisType()intgetBins()doublegetBinWidth()java.lang.StringgetLabel()EditableLabelgetLabelObject()intgetLabelPosition()doublegetMax()java.lang.ObjectgetMaxObject()doublegetMin()java.lang.ObjectgetMinObject()intgetPosition()booleangetRangeAutomatic()booleangetShowOverflows()booleanisBinned()booleanisFixed()booleanisLogarithmic()booleanisShowing()booleanisVertical()voidmodifyPopupMenu(javax.swing.JPopupMenu menu, java.awt.Component source)Modify the given menu object.voidreadExternal(java.io.ObjectInput in)voidsetAllowSuppressedZero(boolean b)voidsetAxisType(int value)voidsetBinned(boolean value)voidsetBins(int value)voidsetBinWidth(double value)voidsetFixed(boolean value)voidsetLabel(java.lang.String s)sets the label text, creating the label if neededvoidsetLabelObject(EditableLabel p_newLabel)sets the label to be the EditableLabel passed invoidsetLabelPosition(int pos)voidsetLogarithmic(boolean value)voidsetMax(double d)voidsetMaxObject(java.lang.Object value)voidsetMin(double d)voidsetMinObject(java.lang.Object value)voidsetPosition(int value)voidsetRange(double min, double max)voidsetRangeAutomatic(boolean b)voidsetShowing(boolean value)voidsetShowOverflows(boolean value)voidwriteExternal(java.io.ObjectOutput out)-
Methods inherited from class jas2.plot.Axis
getAxisColor, getAxisOrientation, getAxisOriginDotColor, getAxisWidth, getMajorTickMarkColor, getMaxLocation, getMinLocation, getMinorTickMarkColor, getOnLeftSide, getTextColor, getType, setAxisColor, setAxisOriginDotColor, setAxisWidth, setBounds, setFont, setMajorTickMarkColor, setMinorTickMarkColor, setOnLeftSide, setTextColor, setType
-
Methods inherited from class jas2.plot.PlotComponent
getBorderType, isPaintingBackground, paintComponent, setBackground, setBorderType
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jas2.hist.JASHistAxis
getAxisColor, getAxisWidth, getFont, getTextColor, setAxisColor, setAxisWidth, setFont, setTextColor
-
-
-
-
Method Detail
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
isVertical
public boolean isVertical()
- Specified by:
isVerticalin interfaceJASHistAxis
-
isLogarithmic
public boolean isLogarithmic()
- Specified by:
isLogarithmicin interfaceJASHistAxis
-
setLogarithmic
public void setLogarithmic(boolean value)
- Specified by:
setLogarithmicin interfaceJASHistAxis
-
isShowing
public boolean isShowing()
- Specified by:
isShowingin interfaceJASHistAxis- Overrides:
isShowingin classjava.awt.Component
-
setShowing
public void setShowing(boolean value)
- Specified by:
setShowingin interfaceJASHistAxis
-
getLabelObject
public EditableLabel getLabelObject()
- Specified by:
getLabelObjectin interfaceJASHistAxis- Returns:
- the EditableLabel itself, not just the text
- See Also:
getLabel()
-
getLabel
public java.lang.String getLabel()
- Specified by:
getLabelin interfaceJASHistAxis- Returns:
- the label text
- See Also:
getLabelObject()
-
setLabelObject
public void setLabelObject(EditableLabel p_newLabel)
sets the label to be the EditableLabel passed in- Specified by:
setLabelObjectin interfaceJASHistAxis- Parameters:
p_newLabel- the new label
-
setLabel
public void setLabel(java.lang.String s)
sets the label text, creating the label if needed- Specified by:
setLabelin interfaceJASHistAxis- Parameters:
s- the new text of the label
-
getMin
public double getMin()
- Specified by:
getMinin interfaceJASHistAxis
-
setMin
public void setMin(double d)
- Specified by:
setMinin interfaceJASHistAxis
-
getMax
public double getMax()
- Specified by:
getMaxin interfaceJASHistAxis
-
setMax
public void setMax(double d)
- Specified by:
setMaxin interfaceJASHistAxis
-
setRange
public void setRange(double min, double max)- Specified by:
setRangein interfaceJASHistAxis
-
getMinObject
public java.lang.Object getMinObject()
- Specified by:
getMinObjectin interfaceJASHistAxis
-
getMaxObject
public java.lang.Object getMaxObject()
- Specified by:
getMaxObjectin interfaceJASHistAxis
-
setMinObject
public void setMinObject(java.lang.Object value)
- Specified by:
setMinObjectin interfaceJASHistAxis
-
setMaxObject
public void setMaxObject(java.lang.Object value)
- Specified by:
setMaxObjectin interfaceJASHistAxis
-
getRangeAutomatic
public boolean getRangeAutomatic()
- Specified by:
getRangeAutomaticin interfaceJASHistAxis
-
setRangeAutomatic
public void setRangeAutomatic(boolean b)
- Specified by:
setRangeAutomaticin interfaceJASHistAxis
-
getAllowSuppressedZero
public boolean getAllowSuppressedZero()
- Specified by:
getAllowSuppressedZeroin interfaceJASHistAxis
-
setAllowSuppressedZero
public void setAllowSuppressedZero(boolean b)
- Specified by:
setAllowSuppressedZeroin interfaceJASHistAxis
-
isBinned
public boolean isBinned()
- Specified by:
isBinnedin interfaceJASHistAxis
-
setBinned
public void setBinned(boolean value)
-
isFixed
public boolean isFixed()
- Specified by:
isFixedin interfaceJASHistAxis
-
setFixed
public void setFixed(boolean value)
-
getBins
public int getBins()
- Specified by:
getBinsin interfaceJASHistAxis
-
setBins
public void setBins(int value)
- Specified by:
setBinsin interfaceJASHistAxis
-
getBinWidth
public double getBinWidth()
- Specified by:
getBinWidthin interfaceJASHistAxis
-
setBinWidth
public void setBinWidth(double value)
- Specified by:
setBinWidthin interfaceJASHistAxis
-
getShowOverflows
public boolean getShowOverflows()
- Specified by:
getShowOverflowsin interfaceJASHistAxis
-
setShowOverflows
public void setShowOverflows(boolean value)
- Specified by:
setShowOverflowsin interfaceJASHistAxis
-
getLabelPosition
public int getLabelPosition()
- Specified by:
getLabelPositionin interfaceJASHistAxis
-
setLabelPosition
public void setLabelPosition(int pos)
- Specified by:
setLabelPositionin interfaceJASHistAxis
-
getPosition
public int getPosition()
- Specified by:
getPositionin interfaceJASHistAxis
-
setPosition
public void setPosition(int value)
- Specified by:
setPositionin interfaceJASHistAxis
-
getAxisType
public int getAxisType()
- Specified by:
getAxisTypein interfaceJASHistAxis
-
setAxisType
public void setAxisType(int value)
- Specified by:
setAxisTypein interfaceJASHistAxis
-
modifyPopupMenu
public void modifyPopupMenu(javax.swing.JPopupMenu menu, java.awt.Component source)Description copied from interface:HasPopupItemsModify the given menu object.- Specified by:
modifyPopupMenuin interfaceHasPopupItems- Overrides:
modifyPopupMenuin classAxis
-
-
DataMelt 3.0 © DataMelt by jWork.ORG