bookExamples.ch26Graphics.draw2d.shapes
Class SquareShape2
java.lang.Object
   bookExamples.ch26Graphics.draw2d.shapes.DJShape
bookExamples.ch26Graphics.draw2d.shapes.DJShape
       bookExamples.ch26Graphics.draw2d.shapes.SquareShape2
bookExamples.ch26Graphics.draw2d.shapes.SquareShape2
- All Implemented Interfaces: 
- Drawable
- public class SquareShape2 
- extends DJShape
 
 
| Constructor Summary | 
| SquareShape2(int _x1,
             int _y1,
             int _x2,
             int _y2)
 | 
 
 
| Methods inherited from class bookExamples.ch26Graphics.draw2d.shapes.DJShape | 
| addPropertyChangeListener, drawLine, erase, getAffineTransform, getBackground, getCenterPoint, getDistance, getForeground, getForegroundColor, getPcs, getRunAffinePanel, getSize, getX2, getY2, isSelected, removePropertyChangeListener, restoreState, setAffineTransform, setBackground, setForeground, setForegroundColor, setLocation, setPcs, setSelected, setSize, setX1, setX2, setY1, setY2 | 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SquareShape2
public SquareShape2(int _x1,
                    int _y1,
                    int _x2,
                    int _y2)
getInstance
public DJShape getInstance(int x1,
                           int y1,
                           int x2,
                           int y2)
- 
- Specified by:
- getInstancein class- DJShape
 
- 
 
getX1
public int getX1()
- 
- Overrides:
- getX1in class- DJShape
 
- 
 
getY1
public int getY1()
- 
- Overrides:
- getY1in class- DJShape
 
- 
 
getW
public int getW()
- 
 
getH
public int getH()
- 
 
getCenter
public java.awt.Point getCenter()
- 
- Specified by:
- getCenterin class- DJShape
 
- 
 
draw
public void draw(java.awt.Graphics g)
-