|
MUC Javadocs Version 3.0 January 2, 2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object muc.drawings.DiagonalLine
public class DiagonalLine
A graphical class that displays a diagonal line.
You may draw either the upper left to lower right diagonal or the
upper right to lower left diagonal of a rectangle.
Field Summary | |
---|---|
private java.awt.Color |
color
The Color of this line. |
private int |
down
The vertical position of the rectangle bounding this diagonal line. |
private int |
height
The height of the rectangle bounding this diagonal line. |
private int |
over
The horizontal position of the rectangle bounding this diagonal line. |
private int |
width
The width of the rectangle bounding this diagonal line. |
Constructor Summary | |
---|---|
DiagonalLine(int over,
int down,
int width,
int height,
java.awt.Color color)
Creates a new diagonal line. |
Method Summary | |
---|---|
void |
drawBothWithBoundingRectangle(java.awt.Graphics g)
Draws both diagonals, and draws the bounding rectangle in light gray. |
void |
drawLeftToRight(java.awt.Graphics g)
Draws the diagonal line from upper left to lower right of the bounding rectangle. |
void |
drawRightToLeft(java.awt.Graphics g)
Draws the diagonal line from upper right to lower left of the bounding rectangle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int over
private int down
private int width
private int height
private java.awt.Color color
Constructor Detail |
---|
public DiagonalLine(int over, int down, int width, int height, java.awt.Color color)
over
- The horizontal position of the rectangle bounding this diagonal line.down
- The vertical position of the rectangle bounding this diagonal line.width
- The width of the rectangle bounding this diagonal line.height
- The height of the rectangle bounding this diagonal line.color
- The Color of this line.Method Detail |
---|
public void drawLeftToRight(java.awt.Graphics g)
g
- A Graphics context on which to draw.public void drawRightToLeft(java.awt.Graphics g)
g
- A Graphics context on which to draw.public void drawBothWithBoundingRectangle(java.awt.Graphics g)
g
- A Graphics context on which to draw.
|
MUC Javadocs Version 3.0 January 2, 2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |