Package globus.glmap
Class GLMapScaleRuler
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapDrawObject
globus.glmap.GLMapScaleRuler
Draws scale ruler on screen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setBottomText
(String text) Sets text that will be displayed under scale ruler.void
setPlacement
(int placement, int paddingX, int paddingY, double maxWidth) Set style of scale ruler.Methods inherited from class globus.glmap.GLMapDrawObject
getDrawOrder, isHidden, setHidden
Methods inherited from class globus.glmap.GLNativeObject
dispose
-
Constructor Details
-
GLMapScaleRuler
public GLMapScaleRuler(int drawOrder) Default constructor- Parameters:
drawOrder
- draw order of object
-
-
Method Details
-
setPlacement
public void setPlacement(int placement, int paddingX, int paddingY, double maxWidth) Set style of scale ruler.mapView.setScaleRulerStyle(GLUnitSystem.International, GLMapPlacement.BottomCenter, new MapPoint(10, 10), 200);
- Parameters:
placement
- alignment of textpaddingX
- x padding of scale ruler in pointspaddingY
- y padding of scale ruler in pointsmaxWidth
- width of scale hit in points
-
setBottomText
Sets text that will be displayed under scale ruler.- Parameters:
text
- text to display
-