Package prezoom.model.GObject
Class GImage
- java.lang.Object
-
- prezoom.model.GObject.GObject
-
- prezoom.model.GObject.GImage
-
- All Implemented Interfaces:
Serializable
public class GImage extends GObject
The Image Object- Author:
- Zhijie Lan
create date: 2020/11/27
- See Also:
- Serialized Form
-
-
Method Summary
Modifier and Type Method Description voiddraw(Graphics2D g)draw the image to the canvas.-
Methods inherited from class prezoom.model.GObject.GObject
drawing, getAttributeManager, getCurrentAttributes, getResizePoints, inShape
-
-
-
-
Field Detail
-
image
private final ImageIcon image
the Image to be shown
-
-
Constructor Detail
-
GImage
public GImage(BufferedImage image, Double x, Double y, Double width, Double height)
-
-
Method Detail
-
draw
public void draw(Graphics2D g)
draw the image to the canvas. When the Image is invisible, draw a rectangle with dash lines to represent invisible images
-
-