|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(java.lang.String caption,
java.awt.Font font,
java.awt.Color color,
java.awt.font.LineMetrics metrics,
Feature feature,
Halo halo,
int x,
int y,
int w,
int h,
double[] anchorPoint,
double[] displacement,
double opacity)
|
Method Summary | |
---|---|
java.lang.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(java.awt.Graphics2D g)
Renders the label (including halo) to the submitted Graphics2D context. |
void |
paintBoundaries(java.awt.Graphics2D g)
Renders the label's boundaries to the submitted Graphics2D context. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
HorizontalLabel(java.lang.String caption, java.awt.Font font, java.awt.Color color, java.awt.font.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 java.lang.String getCaption()
public void paintBoundaries(java.awt.Graphics2D g)
Label
paintBoundaries
in interface Label
g
- Graphics2D context to be usedpublic void paint(java.awt.Graphics2D g)
paint
in interface Label
g
- Graphics2D context to be usedpublic int getX()
Label
getX
in interface Label
public int getY()
Label
getY
in interface Label
public int getMaxX()
Label
getMaxX
in interface Label
public int getMaxY()
Label
getMaxY
in interface Label
public int getMinX()
Label
getMinX
in interface Label
public int getMinY()
Label
getMinY
in interface Label
public boolean intersects(Label that)
intersects
in interface Label
that
- label to test
public java.lang.String toString()
toString
in class java.lang.Object
|
deegree 2.5 (2011/06/29 09:44 build-8-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