Package prezoom.model.GObject
Class GLine
- java.lang.Object
-
- prezoom.model.GObject.GObject
-
- prezoom.model.GObject.GLine
-
- All Implemented Interfaces:
Serializable
public class GLine extends GObject
The line objects- Author:
- Zhijie Lan
create date: 2020/11/14
- See Also:
- Serialized Form
-
-
Method Summary
Modifier and Type Method Description voiddraw(Graphics2D g)generate the shape to drawbooleaninShape(double mx, double my)override the function sinceLine2D.contains(double, double)always return false Whether the given position is in this object-
Methods inherited from class prezoom.model.GObject.GObject
drawing, getAttributeManager, getCurrentAttributes, getResizePoints
-
-
-
-
Constructor Detail
-
GLine
public GLine(double x, double y, double x2, double y2, Color col, int lineWidth)
-
-
Method Detail
-
draw
public void draw(Graphics2D g)
generate the shape to draw
-
inShape
public boolean inShape(double mx, double my)override the function sinceLine2D.contains(double, double)always return false Whether the given position is in this object
-
-