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 TypeMethodDescriptionvoiddraw(DrawingPanel panel, Graphics g) Draws a representation of an object in a drawing panel.findInteractive(DrawingPanel panel, int xpix, int ypix) doublegetX()doublegetXMax()Gets the maximum x needed to draw this object.doublegetXMin()Gets the minimum x needed to draw this object.doublegetY()doublegetYMax()Gets the maximum y needed to draw this object.doublegetYMin()Gets the minimum y needed to draw this object.booleanbooleanDetermines if information is available to set min/max values.booleanvoidrefreshX()refreshes the value of x based on current pointIndex.voidsetEnabled(boolean enable) voidsetSelected(boolean selectable) voidsetX(double x) voidsetXY(double x, double y) voidsetY(double y) voidMethods inherited from class java.awt.geom.Line2D.Double
getBounds2D, getP1, getP2, getX1, getX2, getY1, getY2, setLineMethods 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, setLineMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensourcephysics.display.Interactive
isInteractive
-
Constructor Details
-
LimitLine
protected LimitLine()
-
-
Method Details
-
draw
Description copied from interface:DrawableDraws a representation of an object in a drawing panel. -
findInteractive
- Specified by:
findInteractivein interfaceInteractive
-
getPreferredCursor
- Specified by:
getPreferredCursorin interfaceSelectable
-
setXY
public void setXY(double x, double y) - Specified by:
setXYin interfaceInteractive
-
setX
public void setX(double x) - Specified by:
setXin interfaceInteractive
-
isMeasured
public boolean isMeasured()Description copied from interface:MeasurableDetermines if information is available to set min/max values. Objects that store data should return false if data is null.- Specified by:
isMeasuredin interfaceMeasurable- Returns:
- true if min/max values are valid
-
getXMin
public double getXMin()Description copied from interface:MeasurableGets the minimum x needed to draw this object.- Specified by:
getXMinin interfaceMeasurable- Returns:
- minimum
-
getXMax
public double getXMax()Description copied from interface:MeasurableGets the maximum x needed to draw this object.- Specified by:
getXMaxin interfaceMeasurable- Returns:
- maximum
-
getYMin
public double getYMin()Description copied from interface:MeasurableGets the minimum y needed to draw this object.- Specified by:
getYMinin interfaceMeasurable- Returns:
- minimum
-
getYMax
public double getYMax()Description copied from interface:MeasurableGets the maximum y needed to draw this object.- Specified by:
getYMaxin interfaceMeasurable- Returns:
- minimum
-
refreshX
public void refreshX()refreshes the value of x based on current pointIndex. -
setY
public void setY(double y) - Specified by:
setYin interfaceInteractive
-
getX
public double getX()- Specified by:
getXin interfaceInteractive
-
getY
public double getY()- Specified by:
getYin interfaceInteractive
-
setSelected
public void setSelected(boolean selectable) - Specified by:
setSelectedin interfaceSelectable
-
isSelected
public boolean isSelected()- Specified by:
isSelectedin interfaceSelectable
-
toggleSelected
public void toggleSelected()- Specified by:
toggleSelectedin interfaceSelectable
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceInteractive
-
setEnabled
public void setEnabled(boolean enable) - Specified by:
setEnabledin interfaceInteractive
-