|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.graphics.displayelements.RotatedLabel
This is a rotated label with style information and screen coordinates, ready to be rendered to the view.
Field Summary | |
private int |
ascent
|
private java.lang.String |
caption
|
private java.awt.Color |
color
|
private int |
descent
|
private Feature |
feature
|
private java.awt.Font |
font
|
private int |
h
|
private Halo |
halo
|
private double |
rotation
|
private int |
w
|
private int[] |
xpoints
|
private int[] |
ypoints
|
Constructor Summary | |
(package private) |
RotatedLabel(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 rotation,
double[] anchorPoint,
double[] displacement)
|
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. |
double |
getRotation()
|
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. |
private void |
paintHalo(java.awt.Graphics2D g,
Halo halo,
int x,
int y)
Renders the label's halo to the submitted Graphics2D context. |
private java.awt.Graphics2D |
setColor(java.awt.Graphics2D g2,
java.awt.Color color,
double opacity)
|
java.lang.String |
toString()
|
private int[] |
transformPoint(int x,
int y,
int tx,
int ty,
double rotation,
double anchorPointX,
double anchorPointY,
int w,
int h,
double displacementX,
double displacementY)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String caption
private int[] xpoints
private int[] ypoints
private double rotation
private int w
private int h
private java.awt.Color color
private java.awt.Font font
private int descent
private int ascent
private Halo halo
private Feature feature
Constructor Detail |
RotatedLabel(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 rotation, double[] anchorPoint, double[] displacement)
Method Detail |
public java.lang.String getCaption()
public double getRotation()
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 usedprivate void paintHalo(java.awt.Graphics2D g, Halo halo, int x, int y) throws FilterEvaluationException
g
- Graphics2D context to be usedhalo
- Halo from the SLDx
- x-coordinate of the labely
- y-coordinate of the label
FilterEvaluationException
- if the evaluation of a
ParameterValueType failspublic 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
private int[] transformPoint(int x, int y, int tx, int ty, double rotation, double anchorPointX, double anchorPointY, int w, int h, double displacementX, double displacementY)
private java.awt.Graphics2D setColor(java.awt.Graphics2D g2, java.awt.Color color, double opacity)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |