edu.jhu.tmaj.client.image.draw
Class OvalDrawable

java.lang.Object
  extended by edu.jhu.tmaj.client.image.draw.AbstractDrawable
      extended by edu.jhu.tmaj.client.image.draw.RectangleDrawable
          extended by edu.jhu.tmaj.client.image.draw.OvalDrawable
All Implemented Interfaces:
Drawable, java.io.Serializable

public final class OvalDrawable
extends RectangleDrawable
implements Drawable, java.io.Serializable

An oval

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.jhu.tmaj.client.image.draw.RectangleDrawable
height, width, x, y
 
Fields inherited from class edu.jhu.tmaj.client.image.draw.AbstractDrawable
BLACK_SQUARE_SIZE, drawableLabel, isCompleted, MARGIN, userID
 
Constructor Summary
OvalDrawable(DrawableLabel d)
           
 
Method Summary
 void draw(java.awt.Graphics g)
          Sets the color and draws the black squares aroudn the Drawable
 InsertSQL getInsertSQL(int scoredImageID)
          Returns a SQL statement to update an existing shape in the database.
 boolean shouldPointActivate(int xPos, int yPos)
          Returns true if the x and y are close enough to the border of the shape to "Select" the shape
 java.lang.String toString()
           
 
Methods inherited from class edu.jhu.tmaj.client.image.draw.RectangleDrawable
callSuperDotDraw, createFromShapeRecord, getBlackSquares, getDrawableRectangle, getInsertSQL, getUpdateSQL, handleMouseDragged, handleMousePressed, isValid, move
 
Methods inherited from class edu.jhu.tmaj.client.image.draw.AbstractDrawable
allowMoving, changeNormalStatusToModified, createNewShapeOnMousePress, drawBlackSquare, drawBlackSquares, getColor, getDrawingX, getDrawingY, getNormalX, getNormalY, getShapeID, getStatus, getUserID, handleKeyPressed, handleMouseReleased, isCompleted, isHighlighted, repaintDrawableLabel, setDrawableLabel, setIsCompleted, setIsHighlighted, setShapeID, setStatus, setUserID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.jhu.tmaj.client.image.draw.Drawable
createFromShapeRecord, createNewShapeOnMousePress, getShapeID, getStatus, getUpdateSQL, handleKeyPressed, handleMouseDragged, handleMousePressed, handleMouseReleased, isCompleted, isHighlighted, isValid, setIsCompleted, setIsHighlighted, setShapeID, setStatus, setUserID
 

Constructor Detail

OvalDrawable

public OvalDrawable(DrawableLabel d)
Method Detail

draw

public void draw(java.awt.Graphics g)
Description copied from class: AbstractDrawable
Sets the color and draws the black squares aroudn the Drawable

Specified by:
draw in interface Drawable
Overrides:
draw in class RectangleDrawable

shouldPointActivate

public boolean shouldPointActivate(int xPos,
                                   int yPos)
Description copied from interface: Drawable
Returns true if the x and y are close enough to the border of the shape to "Select" the shape

Specified by:
shouldPointActivate in interface Drawable
Overrides:
shouldPointActivate in class RectangleDrawable

getInsertSQL

public InsertSQL getInsertSQL(int scoredImageID)
Description copied from class: AbstractDrawable
Returns a SQL statement to update an existing shape in the database.

Specified by:
getInsertSQL in interface Drawable
Overrides:
getInsertSQL in class RectangleDrawable

toString

public java.lang.String toString()
Overrides:
toString in class RectangleDrawable