DixShtix

com.dixshtix.awt11
Class DraggablePolygon

java.lang.Object
  |
  +--com.dixshtix.awt11.DraggableRectangle
        |
        +--com.dixshtix.awt11.DraggablePolygon
All Implemented Interfaces:
Drag11able

public class DraggablePolygon
extends DraggableRectangle
implements Drag11able


Field Summary
private  java.awt.Polygon myShape
           
 
Fields inherited from class com.dixshtix.awt11.DraggableRectangle
deltaX, deltaY, myBounds, myPaint, myX, myY
 
Constructor Summary
DraggablePolygon(java.awt.Polygon s, java.awt.Color p, int x, int y)
           
 
Method Summary
 boolean contains(int x, int y)
           
 void draw(java.awt.Graphics g)
           
 void drawAsOutline(java.awt.Graphics g, java.awt.Point position)
           
 
Methods inherited from class com.dixshtix.awt11.DraggableRectangle
computeBounds, getBounds, getPosition, setPosition
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface com.dixshtix.awt11.Drag11able
computeBounds, getBounds, getPosition, setPosition
 

Field Detail

myShape

private java.awt.Polygon myShape
Constructor Detail

DraggablePolygon

public DraggablePolygon(java.awt.Polygon s,
                        java.awt.Color p,
                        int x,
                        int y)
Method Detail

contains

public boolean contains(int x,
                        int y)
Specified by:
contains in interface Drag11able
Overrides:
contains in class DraggableRectangle

draw

public void draw(java.awt.Graphics g)
Specified by:
draw in interface Drag11able
Overrides:
draw in class DraggableRectangle

drawAsOutline

public void drawAsOutline(java.awt.Graphics g,
                          java.awt.Point position)
Specified by:
drawAsOutline in interface Drag11able
Overrides:
drawAsOutline in class DraggableRectangle

DixShtix