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 double
getBottom()
Get the min YRectangle2D
getBounds()
Get map grid boundariesjava.lang.Double
getCellHeight()
Gets the cell Heightjava.lang.Double
getCellLength()
Gets the cell Lengthjava.lang.Double
getCellWidth()
Gets the cell widthint
getColumnLineCount()
Gets the number of grid columnsMapGridShape
getGridShape()
MapGridType
getGridType()
Get Grid TypeTextStyle
getLabelStyle()
Get Label Styledouble
getLeft()
Get the min Xdouble
getRight()
Get the max Xint
getRowLineCount()
Gets the number of grid rowsint
getSmoothness()
Get smooth coefficientdouble
getTop()
Get the max Yjava.lang.Boolean
isShowGrid()
java.lang.Boolean
isShowMajorDivision()
IS Displays the main dividing line?void
setBounds(Rectangle2D bounds)
Set map grid boundariesvoid
setCellHeight(java.lang.Double cellHeight)
Sets the cell Heightvoid
setCellWidth(java.lang.Double cellWidth)
Sets the cell widthvoid
setColumnLineCount(int columnLineCount)
Sets the number of grid columnsvoid
setGridShape(MapGridShape gridShape)
void
setGridType(MapGridType gridType)
Set Grid Typevoid
setLabelStyle(TextStyle labelStyle)
Set Label Stylevoid
setRowLineCount(int rowLineCount)
Sets the number of grid rowsvoid
setShowGrid(java.lang.Boolean showGrid)
void
setShowMajorDivision(java.lang.Boolean showMajorDivision)
Set Displays the main dividing linevoid
setSmoothness(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)
-
-