Package org.opensourcephysics.tools
Class DataToolTab.DataToolPlotter.LimitLine
java.lang.Object
java.awt.geom.Line2D
java.awt.geom.Line2D.Double
org.opensourcephysics.tools.DataToolTab.DataToolPlotter.LimitLine
- All Implemented Interfaces:
Shape
,Serializable
,Cloneable
,Drawable
,Interactive
,Measurable
,Selectable
- Enclosing class:
- DataToolTab.DataToolPlotter
An inner class that draws a vertical limit line for areas.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.geom.Line2D
Line2D.Double, Line2D.Float
-
Field Summary
Fields inherited from class java.awt.geom.Line2D.Double
x1, x2, y1, y2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(DrawingPanel panel, Graphics g) Draws a representation of an object in a drawing panel.findInteractive
(DrawingPanel panel, int xpix, int ypix) double
getX()
double
getXMax()
Gets the maximum x needed to draw this object.double
getXMin()
Gets the minimum x needed to draw this object.double
getY()
double
getYMax()
Gets the maximum y needed to draw this object.double
getYMin()
Gets the minimum y needed to draw this object.boolean
boolean
Determines if information is available to set min/max values.boolean
void
refreshX()
refreshes the value of x based on current pointIndex.void
setEnabled
(boolean enable) void
setSelected
(boolean selectable) void
setX
(double x) void
setXY
(double x, double y) void
setY
(double y) void
Methods inherited from class java.awt.geom.Line2D.Double
getBounds2D, getP1, getP2, getX1, getX2, getY1, getY2, setLine
Methods inherited from class java.awt.geom.Line2D
clone, contains, contains, contains, contains, getBounds, getPathIterator, getPathIterator, intersects, intersects, intersectsLine, intersectsLine, linesIntersect, ptLineDist, ptLineDist, ptLineDist, ptLineDistSq, ptLineDistSq, ptLineDistSq, ptSegDist, ptSegDist, ptSegDist, ptSegDistSq, ptSegDistSq, ptSegDistSq, relativeCCW, relativeCCW, relativeCCW, setLine, setLine
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensourcephysics.display.Interactive
isInteractive
-
Constructor Details
-
LimitLine
protected LimitLine()
-
-
Method Details
-
draw
Description copied from interface:Drawable
Draws a representation of an object in a drawing panel. -
findInteractive
- Specified by:
findInteractive
in interfaceInteractive
-
getPreferredCursor
- Specified by:
getPreferredCursor
in interfaceSelectable
-
setXY
public void setXY(double x, double y) - Specified by:
setXY
in interfaceInteractive
-
setX
public void setX(double x) - Specified by:
setX
in interfaceInteractive
-
isMeasured
public boolean isMeasured()Description copied from interface:Measurable
Determines if information is available to set min/max values. Objects that store data should return false if data is null.- Specified by:
isMeasured
in interfaceMeasurable
- Returns:
- true if min/max values are valid
-
getXMin
public double getXMin()Description copied from interface:Measurable
Gets the minimum x needed to draw this object.- Specified by:
getXMin
in interfaceMeasurable
- Returns:
- minimum
-
getXMax
public double getXMax()Description copied from interface:Measurable
Gets the maximum x needed to draw this object.- Specified by:
getXMax
in interfaceMeasurable
- Returns:
- maximum
-
getYMin
public double getYMin()Description copied from interface:Measurable
Gets the minimum y needed to draw this object.- Specified by:
getYMin
in interfaceMeasurable
- Returns:
- minimum
-
getYMax
public double getYMax()Description copied from interface:Measurable
Gets the maximum y needed to draw this object.- Specified by:
getYMax
in interfaceMeasurable
- Returns:
- minimum
-
refreshX
public void refreshX()refreshes the value of x based on current pointIndex. -
setY
public void setY(double y) - Specified by:
setY
in interfaceInteractive
-
getX
public double getX()- Specified by:
getX
in interfaceInteractive
-
getY
public double getY()- Specified by:
getY
in interfaceInteractive
-
setSelected
public void setSelected(boolean selectable) - Specified by:
setSelected
in interfaceSelectable
-
isSelected
public boolean isSelected()- Specified by:
isSelected
in interfaceSelectable
-
toggleSelected
public void toggleSelected()- Specified by:
toggleSelected
in interfaceSelectable
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceInteractive
-
setEnabled
public void setEnabled(boolean enable) - Specified by:
setEnabled
in interfaceInteractive
-