Package org.opensourcephysics.tools
Class DataToolTab.DataToolAxes
java.lang.Object
org.opensourcephysics.display.axes.AbstractAxes
org.opensourcephysics.display.axes.CartesianType1
org.opensourcephysics.display.axes.CartesianInteractive
org.opensourcephysics.tools.DataToolTab.DataToolAxes
- All Implemented Interfaces:
CartesianAxes
,DrawableAxes
,Dimensioned
,Drawable
,Interactive
,Measurable
,Selectable
- Enclosing class:
- DataToolTab
An interactive axes class that returns popup menus for x and y-variables.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensourcephysics.display.axes.CartesianInteractive
CartesianInteractive.ScaleSetter
-
Field Summary
Fields inherited from class org.opensourcephysics.display.axes.CartesianInteractive
HORZ_AXIS, HORZ_AXIS_MAX, HORZ_AXIS_MIN, HORZ_MAX, HORZ_MIN, HORZ_VAR, INSIDE, VERT_AXIS, VERT_AXIS_MAX, VERT_AXIS_MIN, VERT_MAX, VERT_MIN, VERT_VAR
Fields inherited from class org.opensourcephysics.display.axes.CartesianType1
htFormats, xLine, yLine
Fields inherited from class org.opensourcephysics.display.axes.AbstractAxes
defaultBottomGutter, defaultLeftGutter, defaultRightGutter, defaultTopGutter, drawingPanel, gridcolor, interiorColor, labelFont, labelFormat, superscriptFont, titleFont, titleLine, visible
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JPopupMenu
Gets a popup menu with horizontal axis variables.protected JPopupMenu
Gets a popup menu with vertical axis variables.protected boolean
Reports whether this provides a popup menu for setting the horizontal axis variable.protected boolean
Reports whether this provides a popup menu for setting the vertical axis variable.Methods inherited from class org.opensourcephysics.display.axes.CartesianInteractive
addAxisListener, dispose, draw, findInteractive, findRegion, getMouseRegion, getPreferredCursor, getScaleSetter, getX, getXMax, getXMin, getY, getYMax, getYMin, hideScaleSetter, isEnabled, isMeasured, isSelected, refreshDecimalSeparators, resizeFonts, setEnabled, setSelected, setXY, toggleSelected
Methods inherited from class org.opensourcephysics.display.axes.CartesianType1
addXTick, addYTick, drawPlot, getInterior, getTickLength, getTitle, getXLabel, getYLabel, isXLog, isYLog, setLabelFont, setShowMajorXGrid, setShowMajorYGrid, setShowMinorXGrid, setShowMinorYGrid, setTickLength, setTitle, setTitleFont, setX, setXLabel, setXLog, setY, setYLabel, setYLog
Methods inherited from class org.opensourcephysics.display.axes.AbstractAxes
getInteriorBackground, isVisible, resetPanelGutters, setDefaultGutters, setInteriorBackground, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensourcephysics.display.axes.DrawableAxes
getInteriorBackground, setInteriorBackground, setVisible
Methods inherited from interface org.opensourcephysics.display.Interactive
isInteractive, setX, setY
-
Constructor Details
-
DataToolAxes
Constructor.- Parameters:
panel
- a PlottingPanel
-
-
Method Details
-
hasHorzVariablesPopup
protected boolean hasHorzVariablesPopup()Description copied from class:CartesianInteractive
Reports whether this provides a popup menu for setting the horizontal axis variable.- Overrides:
hasHorzVariablesPopup
in classCartesianInteractive
- Returns:
- true if this has a popup menu with horizontal axis variables
-
getHorzVariablesPopup
Description copied from class:CartesianInteractive
Gets a popup menu with horizontal axis variables. This default method returns null; subclasses should override to return a popup with associated action for setting horizontal axis variable.- Overrides:
getHorzVariablesPopup
in classCartesianInteractive
- Returns:
- the popup menu
-
hasVertVariablesPopup
protected boolean hasVertVariablesPopup()Description copied from class:CartesianInteractive
Reports whether this provides a popup menu for setting the vertical axis variable.- Overrides:
hasVertVariablesPopup
in classCartesianInteractive
- Returns:
- true if this has a popup menu with vertical axis variables
-
getVertVariablesPopup
Description copied from class:CartesianInteractive
Gets a popup menu with vertical axis variables. This default method returns null; subclasses should override to return a popup with associated action for setting vertical axis variable.- Overrides:
getVertVariablesPopup
in classCartesianInteractive
- Returns:
- the popup menu
-