Package 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:
-
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(Graphics2D g, Point2D location) draw offset from the specified locationget the bounding boxgetName()get the namebooleanisActive()return true if Activebooleanreturn true if selectedvoidsetPosition(int x, int y) set the offset positionvoidsetSelected(boolean select) set whether selectedvoidsetSize(int width, int height) set the bounding box
-
Method Details
-
draw
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-
-