jhplot.shapes
Class Line
java.lang.Object
jhplot.shapes.HShape
jhplot.shapes.Line
- All Implemented Interfaces:
- Serializable
public class Line
- extends HShape
Draw a line in the user or NDC coordinate system
- Author:
- S.Chekanov
- See Also:
- Serialized Form
|
Constructor Summary |
Line(double X1,
double Y1,
double X2,
double Y2)
Make a line using black (default) color and default stroke |
Line(double X1,
double Y1,
double X2,
double Y2,
Stroke strock,
Color color)
Main constructor fot a line |
|
Method Summary |
void |
doc()
Show online documentation. |
String |
toString()
Show it as a string |
| Methods inherited from class jhplot.shapes.HShape |
contains, getColor, getFill, getPosition, getPositionCoordinate, getScaledPosition, getSettings, getStroke, getTransparency, getWhoAm, setColor, setDashed, setDotted, setFill, setPosCoord, setPositionCoordinate, setStroke, setTransparency, setWhoAm, updateSettings |
Line
public Line(double X1,
double Y1,
double X2,
double Y2,
Stroke strock,
Color color)
- Main constructor fot a line
- Parameters:
X1 - X start positionY1 - Y start positionX2 - X end positionY2 - Y end positionstrock - Stroke to draw itcolor - Color
Line
public Line(double X1,
double Y1,
double X2,
double Y2)
- Make a line using black (default) color and default stroke
- Parameters:
X1 - X start positionY1 - Y start positionX2 - X end positionY2 - Y end position
toString
public String toString()
- Show it as a string
- Overrides:
toString in class Object
- Returns:
- a string representation of this label, the text.
doc
public void doc()
- Show online documentation.
jHPlot 3.1. Java environment for scientific computation and data analysis. © S.Chekanov