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_VARFields inherited from class org.opensourcephysics.display.axes.CartesianType1
htFormats, xLine, yLineFields 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 JPopupMenuGets a popup menu with horizontal axis variables.protected JPopupMenuGets a popup menu with vertical axis variables.protected booleanReports whether this provides a popup menu for setting the horizontal axis variable.protected booleanReports 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, toggleSelectedMethods 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, setYLogMethods inherited from class org.opensourcephysics.display.axes.AbstractAxes
getInteriorBackground, isVisible, resetPanelGutters, setDefaultGutters, setInteriorBackground, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensourcephysics.display.axes.DrawableAxes
getInteriorBackground, setInteriorBackground, setVisibleMethods 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:CartesianInteractiveReports whether this provides a popup menu for setting the horizontal axis variable.- Overrides:
hasHorzVariablesPopupin classCartesianInteractive- Returns:
- true if this has a popup menu with horizontal axis variables
-
getHorzVariablesPopup
Description copied from class:CartesianInteractiveGets 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:
getHorzVariablesPopupin classCartesianInteractive- Returns:
- the popup menu
-
hasVertVariablesPopup
protected boolean hasVertVariablesPopup()Description copied from class:CartesianInteractiveReports whether this provides a popup menu for setting the vertical axis variable.- Overrides:
hasVertVariablesPopupin classCartesianInteractive- Returns:
- true if this has a popup menu with vertical axis variables
-
getVertVariablesPopup
Description copied from class:CartesianInteractiveGets 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:
getVertVariablesPopupin classCartesianInteractive- Returns:
- the popup menu
-