Package ca.spatial.reportwriter
Class MapLayoutReport.Scalebar
java.lang.Object
ca.spatial.reportwriter.MapLayoutReport.MapElement
ca.spatial.reportwriter.MapLayoutReport.Scalebar
- Enclosing class:
- MapLayoutReport
The scalebar element will a scalebar for the given mapper.
This routine depends on the correct map units being set in the mapper.
-
Method Summary
Modifier and TypeMethodDescriptionmajor(int major)
The major divisions of the scale barminor(int minor)
The minor divisions of the scale barshowRatio(boolean scale)
Show the numeric ratio of the map scaleA title for the scale barunits(int scaleunits)
Set the units to use in calculating and displaying the scale.Methods inherited from class ca.spatial.reportwriter.MapLayoutReport.MapElement
background, bookmark, contentHeight, contentWidth, getBackground, getHeight, getWidth, hidden, inset, margin, neatline, p, r, simplistHeight, simplistWidth, subtype, top, visible, zoom
-
Method Details
-
title
A title for the scale bar- Parameters:
title
- the title to show on the scale bar
-
major
The major divisions of the scale bar- Parameters:
major
- the number of major divisions to show
-
minor
The minor divisions of the scale bar- Parameters:
minor
- the number of minor divisions to show
-
showRatio
Show the numeric ratio of the map scale- Parameters:
scale
- true if the ratio should be shown
-
units
Set the units to use in calculating and displaying the scale. The units may be one of MapLayoutReport.KM, MapLayoutReport.MILES. The default value is MapLayoutReport.KM- Parameters:
scaleunits
- the units used for calculating scale
-