public class ScalebarAttribute.ScalebarAttributeValues
extends java.lang.Object
ScalebarAttribute.| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
align
The horizontal alignment of the scalebar inside the scalebar graphic (default: left).
|
java.lang.String |
backgroundColor
The background color for the scalebar graphic (default: rgba(255, 255, 255, 0)).
|
java.lang.String |
barBgColor
The color used to draw the alternating blocks for style "bar" and "bar_sub" (default: white).
|
java.lang.Integer |
barSize
The thickness of the bar or the height of the tick marks on the line (in pixel).
|
java.lang.String |
color
The color used to draw the bar and lines (default: black).
|
java.lang.String |
font
The font used for the labels (default: Helvetica).
|
java.lang.String |
fontColor
The font color of the labels (default: black).
|
java.lang.Integer |
fontSize
The font size (in pt) of the labels (default: 12).
|
boolean |
geodetic
Use geodetic measurement calculations for the scalebar.
|
java.lang.Integer |
intervals
The number of intervals (default: 3).
|
java.lang.Integer |
labelDistance
The distance between scalebar and labels (in pixel).
|
java.lang.Integer |
lineWidth
The thickness of the lines or the bar border (in pixel).
|
java.lang.Boolean |
lockUnits
Force that the given unit is used (default: false).
|
java.lang.String |
orientation
The scalebar orientation.
|
java.lang.Integer |
padding
The padding around the scalebar (in pixel).
|
java.lang.Boolean |
renderAsSvg
Indicates if the scalebar graphic is rendered as SVG
(will default to
Configuration.defaultStyle). |
java.lang.Boolean |
subIntervals
Should sub-intervals be shown? Default: false
|
java.lang.String |
type
The scalebar type.
|
java.lang.String |
unit
The unit to use.
|
java.lang.String |
verticalAlign
The vertical alignment of the scalebar inside the scalebar graphic (default: bottom).
|
| Constructor and Description |
|---|
ScalebarAttribute.ScalebarAttributeValues(java.awt.Dimension size)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HorizontalAlign |
getAlign() |
java.awt.Color |
getBackgroundColor() |
java.awt.Color |
getBarBgColor() |
java.awt.Color |
getColor() |
java.awt.Color |
getFontColor() |
Orientation |
getOrientation() |
java.awt.Dimension |
getSize() |
Type |
getType() |
DistanceUnit |
getUnit() |
VerticalAlign |
getVerticalAlign() |
void |
postConstruct()
Initialize default values and validate that the config is correct.
|
public java.lang.String type
Available types:
public java.lang.String unit
The unit can be any of:
If the value is too big or too small, the module will switch to one of the unit in parenthesis (the same unit is used for every interval). If this behaviour is not desired, the `lockUnits` parameter will force the declared unit (or map unit if no unit is declared) to be used for the scalebar.
public boolean geodetic
public java.lang.Boolean lockUnits
public java.lang.Integer intervals
public java.lang.Boolean subIntervals
The main intervals are divided into additional sub-intervals to provide visual guidance. The number of sub-intervals depends on the length of an interval.
public java.lang.Integer barSize
public java.lang.Integer lineWidth
public java.lang.Integer labelDistance
public java.lang.Integer padding
public java.lang.String font
public java.lang.Integer fontSize
public java.lang.String fontColor
public java.lang.String color
public java.lang.String barBgColor
public java.lang.String backgroundColor
public java.lang.String orientation
Available options:
public java.lang.String align
public java.lang.String verticalAlign
public java.lang.Boolean renderAsSvg
Configuration.defaultStyle).public ScalebarAttribute.ScalebarAttributeValues(java.awt.Dimension size)
size - The size of the scalebar graphic in the Jasper report (in pixels).public final void postConstruct()
public final java.awt.Dimension getSize()
public final java.awt.Color getColor()
public final java.awt.Color getFontColor()
public final java.awt.Color getBarBgColor()
public final java.awt.Color getBackgroundColor()
public final Type getType()
public final DistanceUnit getUnit()
public final Orientation getOrientation()
public final HorizontalAlign getAlign()
public final VerticalAlign getVerticalAlign()