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
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method is the entry point for drawing.void
void
setLocation
(int x, int y) Moves this component to a new location.void
setSize
(int width, int height) Resizes this component so that it has widthwidth
and heightheight
.
-
Method Details
-
draw
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 widthwidth
and heightheight
.- Parameters:
width
- the new width of this component in pixelsheight
- 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 pointp
. Pointp
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 parenty
- the point defining the top-left corner of the new location, given in the coordinate space of this component's parent- See Also:
-
setBounds
-
getPreferredSize
Dimension getPreferredSize() -
getPreferredLocation
LegendItem.LegendLocation getPreferredLocation()
-