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 float
final float
final TextLayout
float
getRotatedHeight
(float angle) static float
getRotatedHeight
(Dimension dimension, float angle) float
getRotatedWidth
(float angle) static float
getRotatedWidth
(Dimension dimension, float angle) final float
getWidth()
-
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
-