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 Summary
FieldsModifier and TypeFieldDescriptionprotected PlotCanvas
protected static Styled
protected Styled
protected Point
protected Point
protected Point2D.Double
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
_defaultStyle
-
_canvas
-
_style
-
p0
-
p1
-
wp
-
-
Constructor Details
-
PlotLine
-
-
Method Details
-
setStyle
Set the line drawing style- Parameters:
style
- the new style
-
getStyle
Get the line style- Returns:
- the line style
-
draw
Draw the line- Parameters:
g
- the graphis context
-
getX0
public abstract double getX0() -
getX1
public abstract double getX1() -
getY0
public abstract double getY0() -
getY1
public abstract double getY1()
-