deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.graphics.displayelements
Interface Label

All Known Implementing Classes:
HorizontalLabel, RotatedLabel

public interface Label

This is a label with style information and screen coordinates, ready to be rendered to a view.

Version:
$Revision: 18195 $ $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Markus Schneider

Method Summary
 int getMaxX()
          Returns the rightmost x-coordinate of the label's bounding box.
 int getMaxY()
          Returns the lowermost y-coordinate of the label's bounding box.
 int getMinX()
          Returns the leftmost x-coordinate of the label's bounding box.
 int getMinY()
          Returns the uppermost x-coordinate of the label's bounding box.
 int getX()
          Returns the x-coordinate of the label.
 int getY()
          Returns the y-coordinate of the label.
 boolean intersects(Label that)
          Determines if the label intersects with another label.
 void paint(Graphics2D g)
          Renders the label (including halo and other style information) to the submitted Graphics2D context.
 void paintBoundaries(Graphics2D g)
          Renders the label's boundaries to the submitted Graphics2D context.
 

Method Detail

paint

void paint(Graphics2D g)
Renders the label (including halo and other style information) to the submitted Graphics2D context.

Parameters:
g - Graphics2D context to be used

paintBoundaries

void paintBoundaries(Graphics2D g)
Renders the label's boundaries to the submitted Graphics2D context. Immensely useful for testing.

Parameters:
g - Graphics2D context to be used

intersects

boolean intersects(Label that)
Determines if the label intersects with another label.

Parameters:
that - label to test
Returns:
true if the labels intersect

getX

int getX()
Returns the x-coordinate of the label.

Returns:
the x-coordinate of the label.

getY

int getY()
Returns the y-coordinate of the label.

Returns:
the y-coordinate of the label.

getMaxX

int getMaxX()
Returns the rightmost x-coordinate of the label's bounding box.

Returns:
the rightmost x-coordinate of the label's bounding box.

getMaxY

int getMaxY()
Returns the lowermost y-coordinate of the label's bounding box.

Returns:
the lowermost y-coordinate of the label's bounding box.

getMinX

int getMinX()
Returns the leftmost x-coordinate of the label's bounding box.

Returns:
the leftmost x-coordinate of the label's bounding box.

getMinY

int getMinY()
Returns the uppermost x-coordinate of the label's bounding box.

Returns:
the uppermost x-coordinate of the label's bounding box.

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org