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

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

public final class ArrowDrawable
extends LineDrawable
implements Drawable

An arrow

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.jhu.tmaj.client.image.draw.LineDrawable
x1, x2, y1, y2
 
Fields inherited from class edu.jhu.tmaj.client.image.draw.AbstractDrawable
BLACK_SQUARE_SIZE, drawableLabel, isCompleted, MARGIN, userID
 
Constructor Summary
ArrowDrawable(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.
 
Methods inherited from class edu.jhu.tmaj.client.image.draw.LineDrawable
createFromShapeRecord, getBlackSquares, getInsertSQL, getUpdateSQL, handleMouseDragged, handleMousePressed, isPointNearLine, isValid, move, shouldPointActivate, toString
 
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, shouldPointActivate
 

Constructor Detail

ArrowDrawable

public ArrowDrawable(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 LineDrawable

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 LineDrawable