-
- All Implemented Interfaces:
public interface LayoutControllerManages layout like configurations for the given view
-
-
Method Summary
Modifier and Type Method Description abstract UnitsetVerticalOffset(Double offset)Set the layout's vertical offset abstract UnitsetHorizontalOffset(Double offset)Set the layout's horizontal offset abstract UnitsetOffsets(Double horizontalOffset, Double verticalOffset)Set the layout's offsets abstract LongaddObstructedRegion(Integer x, Integer y, Integer width, Integer height)Create a new obstructed region abstract LongaddObstructedRegion(Rect rect)Create a new obstructed region abstract BooleanremoveObstructedRegion(Long id)Remove a specific obstructed region abstract BooleanremoveAllObstructedRegions()Remove all obstructed regions abstract UnitsetMapScaleBarMargin(Double horizontalMargin, Double verticalMargin)set Scale bar margin please noted that the start point of the scale bar is the bottom right corner, and all the margins are based on the start point -
-
Method Detail
-
setVerticalOffset
abstract Unit setVerticalOffset(Double offset)
Set the layout's vertical offset
- Parameters:
offset- the offset value
-
setHorizontalOffset
abstract Unit setHorizontalOffset(Double offset)
Set the layout's horizontal offset
- Parameters:
offset- the offset value
-
setOffsets
abstract Unit setOffsets(Double horizontalOffset, Double verticalOffset)
Set the layout's offsets
- Parameters:
horizontalOffset- the horizontal offset valueverticalOffset- the vertical offset value
-
addObstructedRegion
abstract Long addObstructedRegion(Integer x, Integer y, Integer width, Integer height)
Create a new obstructed region
- Parameters:
x- horizontal position of the obstructed regiony- vertical position of the obstructed regionwidth- width of the obstructed regionheight- height of the obstructed region
-
addObstructedRegion
abstract Long addObstructedRegion(Rect rect)
Create a new obstructed region
- Parameters:
rect- Rect object which defines the obstructed region
-
removeObstructedRegion
abstract Boolean removeObstructedRegion(Long id)
Remove a specific obstructed region
- Parameters:
id- the id of an already created obstructed region
-
removeAllObstructedRegions
abstract Boolean removeAllObstructedRegions()
Remove all obstructed regions
-
setMapScaleBarMargin
abstract Unit setMapScaleBarMargin(Double horizontalMargin, Double verticalMargin)
set Scale bar margin please noted that the start point of the scale bar is the bottom right corner, and all the margins are based on the start point
- Parameters:
horizontalMargin- horizontal marginverticalMargin- vertical margin
-
-
-
-