Package prezoom.model.GObject
Class GText
- java.lang.Object
-
- prezoom.model.GObject.GObject
-
- prezoom.model.GObject.GText
-
- All Implemented Interfaces:
Serializable
public class GText extends GObject
- Author:
- Zhijie Lan
create date: 2020/11/22
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private booleanisSelectedwhether the objects is selectedJTextAreatextAreathe JTextArea to type in text
-
Method Summary
Modifier and Type Method Description voiddraw(Graphics2D g)draw a rectangle with dash lines to represent the actual area of the JTextAreabooleaninShape(double mx, double my)whether selected by the mouseprivate voidupdateTextArea()update information for JTextArea componentvoidupdateTextString()update the text content of the JTextArea-
Methods inherited from class prezoom.model.GObject.GObject
drawing, getAttributeManager, getCurrentAttributes, getResizePoints
-
-
-
-
Field Detail
-
textArea
public JTextArea textArea
the JTextArea to type in text
-
isSelected
private boolean isSelected
whether the objects is selected
-
-
Method Detail
-
draw
public void draw(Graphics2D g)
draw a rectangle with dash lines to represent the actual area of the JTextArea
-
inShape
public boolean inShape(double mx, double my)whether selected by the mouse
-
updateTextArea
private void updateTextArea()
update information for JTextArea component
-
updateTextString
public void updateTextString()
update the text content of the JTextArea
-
-