Package hec.map

Interface LegendItem

All Known Implementing Classes:
AbstractLegendItem, ColorContourLegendItem

public interface LegendItem

Title: Hec Java Development

Description:

Copyright: Copyright (c) 2004

Company: Resource Management Assoc

  • Method Details

    • draw

      void draw(Graphics g, MapScale scl)
      This method is the entry point for drawing. All drawing will be done to the graphics context passed in here as a parameter.
      Parameters:
      g - Graphics
    • setSize

      void setSize(int width, int height)
      Resizes this component so that it has width width and height height.
      Parameters:
      width - the new width of this component in pixels
      height - the new height of this component in pixels
      Since:
      JDK1.1
      See Also:
    • setLocation

      void setLocation(int x, int y)
      Moves this component to a new location. The top-left corner of the new location is specified by point p. Point p is given in the parent's coordinate space.
      Parameters:
      x - the point defining the top-left corner of the new location, given in the coordinate space of this component's parent
      y - the point defining the top-left corner of the new location, given in the coordinate space of this component's parent
      See Also:
    • setBounds

      void setBounds(Rectangle r)
    • getPreferredSize

      Dimension getPreferredSize()
    • getPreferredLocation

      LegendItem.LegendLocation getPreferredLocation()