Class Label
java.lang.Object
org.mapfish.print.processor.map.scalebar.Label
Position, size and content of a label.
-
Constructor Summary
ConstructorsConstructorDescriptionLabel(float graphicOffset, TextLayout labelLayout, Graphics2D graphics2D) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal floatfinal floatfinal TextLayoutfloatgetRotatedHeight(float angle) static floatgetRotatedHeight(Dimension dimension, float angle) floatgetRotatedWidth(float angle) static floatgetRotatedWidth(Dimension dimension, float angle) final floatgetWidth()
-
Constructor Details
-
Label
Constructor.- Parameters:
graphicOffset- Position offset.labelLayout- Layout for the label.graphics2D- Where it is going to be rendered (more accurate size computation
-
-
Method Details
-
getRotatedHeight
- Parameters:
dimension- Unrotated dimensionangle- Angle- Returns:
- The height of the rotated label
-
getRotatedWidth
- Parameters:
dimension- Unrotated dimensionangle- Angle- Returns:
- The width of the rotated label
-
getWidth
public final float getWidth() -
getHeight
public final float getHeight() -
getGraphicOffset
public final float getGraphicOffset() -
getLabelLayout
-
getRotatedWidth
public float getRotatedWidth(float angle) - Parameters:
angle- Angle- Returns:
- The width of the rotated label
-
getRotatedHeight
public float getRotatedHeight(float angle) - Parameters:
angle- Angle- Returns:
- The height of the rotated label
-