jhplot.shapes
Class Line
- java.lang.Object
-
- jhplot.shapes.HShape
-
- jhplot.shapes.Line
-
- All Implemented Interfaces:
- java.io.Serializable
public class Line extends HShape
Draw a line in the user or NDC coordinate system- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Line(double X1, double Y1, double X2, double Y2)
Make a line using black (default) color and default strokeLine(double X1, double Y1, double X2, double Y2, java.awt.Stroke strock, java.awt.Color color)
Main constructor fot a line
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
doc()
Show online documentation.java.lang.String
toString()
Show it as a string-
Methods inherited from class jhplot.shapes.HShape
contains, getColor, getFill, getPosition, getPositionCoordinate, getRotation, getScaledPosition, getSettings, getStroke, getTransparency, getWhoAm, setColor, setDashed, setDotted, setFill, setPosCoord, setPositionCoordinate, setRotation, setStroke, setTransparency, setWhoAm, updateSettings
-
-
-
-
Constructor Detail
-
Line
public Line(double X1, double Y1, double X2, double Y2, java.awt.Stroke strock, java.awt.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
-
-
DMelt 3.0 © DataMelt by jWork.ORG