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 Type
    Method
    Description
    void
    draw(Graphics2D g, Point2D location)
    draw offset from the specified location
    get the bounding box
    get the name
    boolean
    return true if Active
    boolean
    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 Details

    • 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 -