Class LineScalebarDrawer
- java.lang.Object
-
- org.mapfish.print.processor.map.scalebar.ScalebarDrawer
-
- org.mapfish.print.processor.map.scalebar.LineScalebarDrawer
-
public class LineScalebarDrawer extends ScalebarDrawer
Draw a simple line with ticks.
-
-
Constructor Summary
Constructors Constructor Description LineScalebarDrawer(java.awt.Graphics2D graphics2d, ScaleBarRenderSettings settings)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
drawBar()
Draws the bar itself.-
Methods inherited from class org.mapfish.print.processor.map.scalebar.ScalebarDrawer
draw, getGraphics2d, getParams, getSettings
-
-
-
-
Constructor Detail
-
LineScalebarDrawer
public LineScalebarDrawer(java.awt.Graphics2D graphics2d, ScaleBarRenderSettings settings)
Constructor.- Parameters:
graphics2d
- The graphics context.settings
- Parameters for rendering the scalebar.
-
-
Method Detail
-
drawBar
protected final void drawBar()
Description copied from class:ScalebarDrawer
Draws the bar itself. The transformation is setup in a manner where the bar should be drawn into the rectangle (0, 0) (intervals*intervalWidth, -barSize).- Specified by:
drawBar
in classScalebarDrawer
-
-