ucar.unidata.ui
Interface Drawable


public interface Drawable

These are the objects that the DrawingPanel manipulates.

Version:
$Id: Drawable.java,v 1.9 2007/07/06 20:45:30 jeffmc Exp $
Author:
John Caron
See Also:
DrawingPanel

Method Summary
 void draw(Graphics2D g, Point2D location)
          draw offset from the specified location
 Rectangle getBounds()
          get the bounding box
 String getName()
          get the name
 boolean isActive()
          return true if Active
 boolean isSelected()
          return true if selected
 void setPosition(int x, int y)
          set the offset position
 void setSelected(boolean select)
          set whether selected
 void setSize(int width, int height)
          set the bounding box
 

Method Detail

draw

void draw(Graphics2D g,
          Point2D location)
draw offset from the specified location

Parameters:
g -
location -

getBounds

Rectangle getBounds()
get the bounding box

Returns:
_more_

getName

String getName()
get the name

Returns:
_more_

isSelected

boolean isSelected()
return true if selected

Returns:
_more_

isActive

boolean isActive()
return true if Active

Returns:
_more_

setPosition

void setPosition(int x,
                 int y)
set the offset position

Parameters:
x -
y -

setSelected

void setSelected(boolean select)
set whether selected

Parameters:
select -

setSize

void setSize(int width,
             int height)
set the bounding box

Parameters:
width -
height -