Class DrawLine
java.lang.Object
|
+--DrawObj
|
+--DrawLine
- public class DrawLine
- extends DrawObj
Extends Abstract class DrawObj, used for drawing rectangle
Constructor Summary |
DrawLine(int x,
int y,
int h,
int w,
boolean state,
java.awt.Color col)
call constructor of the parent class DrawObj |
Method Summary |
void |
drawShape(java.awt.Graphics g)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DrawLine
public DrawLine(int x,
int y,
int h,
int w,
boolean state,
java.awt.Color col)
- call constructor of the parent class DrawObj
- Parameters:
x
- and y coordinates, filled or not, color
drawShape
public void drawShape(java.awt.Graphics g)
- Parameters:
Graphics
- class- Returns:
- nothing
- Overrides:
- drawShape in class DrawObj