JLogView_.datastructs.shapes
Class LGBox
java.lang.Object
JLogView_.datastructs.LGShape
JLogView_.datastructs.shapes.LGBox
public class LGBox
- extends LGShape
LGBox is a descendant of LGShape. It represents a box (rectangle) shape.
- See Also:
LGShape
Constructor Summary |
LGBox(float startX,
float startY,
float endX,
float endY)
This is the constructor of LGBox. |
Method Summary |
protected void |
drawShape(java.awt.Graphics gr,
int x1,
int y1,
int x2,
int y2)
This method draws the box itself. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LGBox
public LGBox(float startX,
float startY,
float endX,
float endY)
- This is the constructor of LGBox.
- Parameters:
startX
- the x graph coordinate of one corner of the boxstartY
- the y graph coordinate of one corner of the boxendX
- the x graph coordinate of the other corner of the boxendY
- the y graph coordinate of the other corner of the box
drawShape
protected void drawShape(java.awt.Graphics gr,
int x1,
int y1,
int x2,
int y2)
- This method draws the box itself. It is overriding the definition in LGShape
In this case the two pair of coordinates represents the two opposite corners
of the box.
- Specified by:
drawShape
in class LGShape
- Parameters:
gr
- a Graphics object, the graphic context to draw onx1
- the x coordinate in pixels of the first cornery1
- the y coordinate in pixels of the first cornerx2
- the x coordinate in pixels of the second cornery2
- the y coordinate in pixels of the second corner- See Also:
Graphics