com.supermap.data.mapGrid
Class MapGridParam
- java.lang.Object
-
- com.supermap.data.mapGrid.MapGridParam
-
public class MapGridParam extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description MapGridParam()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetBottom()Get the min YRectangle2DgetBounds()Get map grid boundariesjava.lang.DoublegetCellHeight()Gets the cell Heightjava.lang.DoublegetCellLength()Gets the cell Lengthjava.lang.DoublegetCellWidth()Gets the cell widthintgetColumnLineCount()Gets the number of grid columnsMapGridShapegetGridShape()MapGridTypegetGridType()Get Grid TypeTextStylegetLabelStyle()Get Label StyledoublegetLeft()Get the min XdoublegetRight()Get the max XintgetRowLineCount()Gets the number of grid rowsintgetSmoothness()Get smooth coefficientdoublegetTop()Get the max Yjava.lang.BooleanisShowGrid()java.lang.BooleanisShowMajorDivision()IS Displays the main dividing line?voidsetBounds(Rectangle2D bounds)Set map grid boundariesvoidsetCellHeight(java.lang.Double cellHeight)Sets the cell HeightvoidsetCellWidth(java.lang.Double cellWidth)Sets the cell widthvoidsetColumnLineCount(int columnLineCount)Sets the number of grid columnsvoidsetGridShape(MapGridShape gridShape)voidsetGridType(MapGridType gridType)Set Grid TypevoidsetLabelStyle(TextStyle labelStyle)Set Label StylevoidsetRowLineCount(int rowLineCount)Sets the number of grid rowsvoidsetShowGrid(java.lang.Boolean showGrid)voidsetShowMajorDivision(java.lang.Boolean showMajorDivision)Set Displays the main dividing linevoidsetSmoothness(int smoothness)Set smooth coefficient
-
-
-
Method Detail
-
getBounds
public Rectangle2D getBounds()
Get map grid boundaries- Returns:
- Map grid boundaries
-
setBounds
public void setBounds(Rectangle2D bounds)
Set map grid boundaries- Parameters:
bounds- Map grid boundaries
-
getLeft
public double getLeft()
Get the min X- Returns:
- minimum X
-
getTop
public double getTop()
Get the max Y- Returns:
- max Y
-
getRight
public double getRight()
Get the max X- Returns:
- max X
-
getBottom
public double getBottom()
Get the min Y- Returns:
- min Y
-
getCellWidth
public java.lang.Double getCellWidth()
Gets the cell width- Returns:
- cell width
-
setCellWidth
public void setCellWidth(java.lang.Double cellWidth)
Sets the cell width- Parameters:
cellWidth- cell width
-
getCellLength
public java.lang.Double getCellLength()
Gets the cell Length- Returns:
- cell Length
-
getCellHeight
public java.lang.Double getCellHeight()
Gets the cell Height- Returns:
- cell Height
-
setCellHeight
public void setCellHeight(java.lang.Double cellHeight)
Sets the cell Height- Parameters:
cellHeight- cell Height
-
getRowLineCount
public int getRowLineCount()
Gets the number of grid rows- Returns:
- the number of grid rows
-
setRowLineCount
public void setRowLineCount(int rowLineCount)
Sets the number of grid rows- Parameters:
rowLineCount- the number of grid rows
-
getColumnLineCount
public int getColumnLineCount()
Gets the number of grid columns- Returns:
- the number of grid columns
-
setColumnLineCount
public void setColumnLineCount(int columnLineCount)
Sets the number of grid columns- Parameters:
columnLineCount- the number of grid columns
-
getGridType
public MapGridType getGridType()
Get Grid Type- Returns:
- Grid Type
-
setGridType
public void setGridType(MapGridType gridType)
Set Grid Type- Parameters:
gridType- Grid Type
-
getSmoothness
public int getSmoothness()
Get smooth coefficient- Returns:
- smooth coefficient
-
setSmoothness
public void setSmoothness(int smoothness)
Set smooth coefficient- Parameters:
smoothness- smooth coefficient
-
isShowGrid
public java.lang.Boolean isShowGrid()
-
setShowGrid
public void setShowGrid(java.lang.Boolean showGrid)
-
isShowMajorDivision
public java.lang.Boolean isShowMajorDivision()
IS Displays the main dividing line?- Returns:
-
setShowMajorDivision
public void setShowMajorDivision(java.lang.Boolean showMajorDivision)
Set Displays the main dividing line- Parameters:
showMajorDivision-
-
getLabelStyle
public TextStyle getLabelStyle()
Get Label Style- Returns:
- Label Style
-
setLabelStyle
public void setLabelStyle(TextStyle labelStyle)
Set Label Style- Parameters:
labelStyle- Label Style
-
getGridShape
public MapGridShape getGridShape()
-
setGridShape
public void setGridShape(MapGridShape gridShape)
-
-