DixShtix

com.dixshtix.awt11
Class DraggableRoundRectangle

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

public class DraggableRoundRectangle
extends DraggableRectangle


Field Summary
(package private)  int rX
           
(package private)  int rY
           
 
Fields inherited from class com.dixshtix.awt11.DraggableRectangle
deltaX, deltaY, myBounds, myPaint, myX, myY
 
Constructor Summary
DraggableRoundRectangle(java.awt.Rectangle s, int roundX, int roundY, 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)
           
static boolean RRcontains(java.awt.Rectangle r, int x, int y, int rX, int rY)
           
 
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
 

Field Detail

rX

int rX

rY

int rY
Constructor Detail

DraggableRoundRectangle

public DraggableRoundRectangle(java.awt.Rectangle s,
                               int roundX,
                               int roundY,
                               java.awt.Color p,
                               int x,
                               int y)
Method Detail

RRcontains

public static boolean RRcontains(java.awt.Rectangle r,
                                 int x,
                                 int y,
                                 int rX,
                                 int rY)

contains

public boolean contains(int x,
                        int y)
Overrides:
contains in class DraggableRectangle

draw

public void draw(java.awt.Graphics g)
Overrides:
draw in class DraggableRectangle

drawAsOutline

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

DixShtix