Package wprover
Class CTMark
- java.lang.Object
-
- wprover.CClass
-
- wprover.CTMark
-
public class CTMark extends CClass
CTMark is a class that represents a mark on a drawing, defined by two lines. It provides methods for drawing the mark, moving it, and saving/loading its state.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(java.awt.Graphics2D g2)Draws the mark using the specified Graphics2D object.voiddraw(java.awt.Graphics2D g2, boolean selected)Draws the mark using the specified Graphics2D object, with an option to select it.voiddrawTTFoot(java.awt.Graphics2D g2, double x, double y, CPoint p1, CPoint p2, boolean select)Draws the TTFoot mark using the specified Graphics2D object.java.lang.StringgetDescription()Returns the description of the mark.voidLoad(java.io.DataInputStream in, DrawProcess dp)Loads the mark from a DataInputStream.voidSave(java.io.DataOutputStream out)Saves the mark to a DataOutputStream.voidSavePS(java.io.FileOutputStream fp, int stype)Saves the mark to a PostScript file.java.lang.StringTypeString()Returns the type string of the mark.-
Methods inherited from class wprover.CClass
copy, get_type, getColor, getColorIndex, getname, getPSLineString, hasNameSet, isdraw, saveSuper, saveSuperColor, setAttr, setAttrAux, setColor, setDash, setInFlashing, setWidth, stopFlash, toString, visible
-
-
-
-
Method Detail
-
TypeString
public java.lang.String TypeString()
Returns the type string of the mark.- Specified by:
TypeStringin classCClass- Returns:
- the type string
-
getDescription
public java.lang.String getDescription()
Returns the description of the mark.- Specified by:
getDescriptionin classCClass- Returns:
- the description
-
draw
public void draw(java.awt.Graphics2D g2)
Draws the mark using the specified Graphics2D object.
-
draw
public void draw(java.awt.Graphics2D g2, boolean selected)Draws the mark using the specified Graphics2D object, with an option to select it.- Parameters:
g2- the Graphics2D objectselected- whether the mark is selected
-
SavePS
public void SavePS(java.io.FileOutputStream fp, int stype) throws java.io.IOExceptionSaves the mark to a PostScript file.
-
drawTTFoot
public void drawTTFoot(java.awt.Graphics2D g2, double x, double y, CPoint p1, CPoint p2, boolean select)Draws the TTFoot mark using the specified Graphics2D object.- Parameters:
g2- the Graphics2D objectx- the x coordinatey- the y coordinatep1- the first pointp2- the second pointselect- whether the mark is selected
-
Save
public void Save(java.io.DataOutputStream out) throws java.io.IOExceptionSaves the mark to a DataOutputStream.
-
Load
public void Load(java.io.DataInputStream in, DrawProcess dp) throws java.io.IOExceptionLoads the mark from a DataInputStream.
-
-