|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.map.Grid
public class Grid
This class allows you to control the display of a grid on a JMap
by setting its type and visibility.
Nested Class Summary | |
---|---|
static class |
Grid.GridType
|
Method Summary | |
---|---|
Color |
getLabelColor(int gridLevel)
Gets the label background color for a given grid level |
boolean |
getLabelVisibility()
Gets the visibility of the labels for all grid levels. |
int |
getLevelCount()
Returns the number of levels in a Grid. |
Color |
getLineColor(int gridLevel)
Gets the line color for a given grid level. |
int |
getLineWidth(int gridLevel)
Gets the line width in pixels for a given grid level. |
Grid.GridType |
getType()
Returns the type of the grid. |
boolean |
getVisibility()
Returns the visibility of the grid |
void |
setLabelColor(int gridLevel,
Color color)
Sets the label background color for a given grid level. |
void |
setLabelVisility(boolean visibility)
Sets the visibility of the labels for all grid levels. |
void |
setLineColor(int gridLevel,
Color color)
Sets the line color for a given grid level. |
void |
setLineWidth(int gridLevel,
int width)
Sets the line width in pixels for a given grid level. |
void |
setType(Grid.GridType gridType)
Sets the type of grid displayed on the map. |
void |
setVisibility(boolean visibility)
Sets the visibility of the grid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setType(Grid.GridType gridType)
Sets the type of grid displayed on the map.
The default grid type is "None".
gridType
- the Grid.GridType
of the gridpublic Grid.GridType getType()
Grid.GridType
public boolean getVisibility()
public void setVisibility(boolean visibility)
visibility
- the visibility to setpublic int getLevelCount()
public void setLabelVisility(boolean visibility)
visibility
- true for visible, false to hidepublic boolean getLabelVisibility()
public void setLineColor(int gridLevel, Color color)
gridLevel
- grid level to set color forcolor
- color to setpublic Color getLineColor(int gridLevel)
gridLevel
- grid level to get color from
public void setLabelColor(int gridLevel, Color color)
gridLevel
- grid level to set color forcolor
- color to setpublic Color getLabelColor(int gridLevel)
gridLevel
- grid level to get color from
public int getLineWidth(int gridLevel)
gridLevel
- level to get line width from
public void setLineWidth(int gridLevel, int width)
gridLevel
- level to set line width forwidth
- width to set in pixels
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |