Package org.opensourcephysics.tools
Class DataToolTab.DataToolPlotter.PlotCoordinateStringBuilder
java.lang.Object
org.opensourcephysics.display.axes.CoordinateStringBuilder
org.opensourcephysics.display.axes.CartesianCoordinateStringBuilder
org.opensourcephysics.tools.DataToolTab.DataToolPlotter.PlotCoordinateStringBuilder
- Enclosing class:
- DataToolTab.DataToolPlotter
protected class DataToolTab.DataToolPlotter.PlotCoordinateStringBuilder
extends CartesianCoordinateStringBuilder
An inner CoordinateStringBuilder class that uses datatable formats.
-
Field Summary
Fields inherited from class org.opensourcephysics.display.axes.CoordinateStringBuilder
decimalFormat, scientificFormat, xLabel, yLabel -
Method Summary
Modifier and TypeMethodDescriptiongetCoordinateString(DrawingPanel panel, MouseEvent e) Converts a the pixel coordinates in a mouse event into world coordinates and return these coordinates in a string.getFormattedValue(Object value, String colName) Gets a value formatted for a given table column.Methods inherited from class org.opensourcephysics.display.axes.CartesianCoordinateStringBuilder
setCoordinateLabelsMethods inherited from class org.opensourcephysics.display.axes.CoordinateStringBuilder
createCartesian, createPolar, createPolar
-
Method Details
-
getCoordinateString
Description copied from class:CartesianCoordinateStringBuilderConverts a the pixel coordinates in a mouse event into world coordinates and return these coordinates in a string.- Overrides:
getCoordinateStringin classCartesianCoordinateStringBuildere- the mouse event- Returns:
- the coordinate string
-
getFormattedValue
Gets a value formatted for a given table column.- Parameters:
value- the valuecolNamae- the column name- Returns:
- the value formatted as it would be displayed in the table
-