Package cnuphys.splot.plot
Class PlotLine
java.lang.Object
cnuphys.splot.plot.PlotLine
- Direct Known Subclasses:
- HorizontalLine,- VerticalLine
Just a straight line to be drawn on the plot, e.g. a y = 0 line
- Author:
- heddle
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected PlotCanvasprotected static Styledprotected Styledprotected Pointprotected Pointprotected Point2D.Double
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
_defaultStyle
- 
_canvas
- 
_style
- 
p0
- 
p1
- 
wp
 
- 
- 
Constructor Details- 
PlotLine
 
- 
- 
Method Details- 
setStyleSet the line drawing style- Parameters:
- style- the new style
 
- 
getStyleGet the line style- Returns:
- the line style
 
- 
drawDraw the line- Parameters:
- g- the graphis context
 
- 
getX0public abstract double getX0()
- 
getX1public abstract double getX1()
- 
getY0public abstract double getY0()
- 
getY1public abstract double getY1()
 
-