bookExamples.ch26Graphics.draw2d.shapes
Class ImageShape

java.lang.Object
  extended by bookExamples.ch26Graphics.draw2d.shapes.DJShape
      extended by bookExamples.ch26Graphics.draw2d.shapes.ImageShape
All Implemented Interfaces:
Drawable

public class ImageShape
extends DJShape


Field Summary
 
Fields inherited from class bookExamples.ch26Graphics.draw2d.shapes.DJShape
affineTransform
 
Constructor Summary
ImageShape(int x1, int y1, int x2, int y2)
           
ImageShape(int x1, int y1, int x2, int y2, java.awt.Image img)
           
 
Method Summary
 void draw(java.awt.Graphics g)
           
 java.awt.Point getCenter()
           
 java.awt.Image getImage()
           
 DJShape getInstance(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, getX1, getX2, getY1, 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
 

Constructor Detail

ImageShape

public ImageShape(int x1,
                  int y1,
                  int x2,
                  int y2,
                  java.awt.Image img)

ImageShape

public ImageShape(int x1,
                  int y1,
                  int x2,
                  int y2)
Method Detail

draw

public void draw(java.awt.Graphics g)

getCenter

public java.awt.Point getCenter()
Specified by:
getCenter in class DJShape

getInstance

public DJShape getInstance(int x1,
                           int y1,
                           int x2,
                           int y2)
Specified by:
getInstance in class DJShape

getImage

public java.awt.Image getImage()