|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.graphics.displayelements.HorizontalLabel
class HorizontalLabel
This is a horizontal label with style information and screen coordinates, ready to be rendered to the view.
| Constructor Summary | |
|---|---|
HorizontalLabel(String caption,
Font font,
Color color,
LineMetrics metrics,
Feature feature,
Halo halo,
int x,
int y,
int w,
int h,
double[] anchorPoint,
double[] displacement,
double opacity)
|
|
| Method Summary | |
|---|---|
String |
getCaption()
|
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) to the submitted Graphics2D context. |
void |
paintBoundaries(Graphics2D g)
Renders the label's boundaries to the submitted Graphics2D context. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
HorizontalLabel(String caption,
Font font,
Color color,
LineMetrics metrics,
Feature feature,
Halo halo,
int x,
int y,
int w,
int h,
double[] anchorPoint,
double[] displacement,
double opacity)
caption - font - color - metrics - feature - halo - x - y - w - h - anchorPoint - displacement - | Method Detail |
|---|
public String getCaption()
public void paintBoundaries(Graphics2D g)
Label
paintBoundaries in interface Labelg - Graphics2D context to be usedpublic void paint(Graphics2D g)
paint in interface Labelg - Graphics2D context to be usedpublic int getX()
Label
getX in interface Labelpublic int getY()
Label
getY in interface Labelpublic int getMaxX()
Label
getMaxX in interface Labelpublic int getMaxY()
Label
getMaxY in interface Labelpublic int getMinX()
Label
getMinX in interface Labelpublic int getMinY()
Label
getMinY in interface Labelpublic boolean intersects(Label that)
intersects in interface Labelthat - label to test
public String toString()
toString in class Object
|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org