|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.graphics.GridLevel
public class GridLevel
A subgridding level of a GridSystem.
| Constructor Summary | |
|---|---|
GridLevel()
Create a new, empty GridLevel. |
|
| Method Summary | |
|---|---|
int |
cellNumberFor(java.lang.String namePart)
Returns the cell number for the given "name part" for this level. |
int |
charToNumeric(char carrie)
|
Coord2D |
convertCoordinate(int gridCoord)
Converts a grid level coordinate (a single integer) into an x and y grid level coordinate (two integers). |
int |
convertCoordinate(int column,
int row)
Converts x and y grid level coordinates (two integers) into a single grid level coordinate. |
int |
getColumns()
Number of columns in this subdivision. |
int |
getIndex()
Integer (probably redundant) index of this level; 0 is the first subdivision; 1 is a subdivision of 0; etc. |
int |
getMultiplier()
Integer to multiply a cell's name by. |
java.util.Map |
getNameMapping()
|
java.lang.String |
getPrefix()
A string to stick before this level's cell name (often a dash or something similar). |
java.util.Map |
getReverseNameMapping()
|
int |
getRows()
Number of rows in this subdivision. |
int |
getStart()
When numbering cells, begin with this number. |
boolean |
isLowerLeft()
|
boolean |
isNumeric()
If true, use numbers to represent coordinates at this level. |
java.lang.String |
namePartFor(int gridCoord)
Returns part of a textual grid name associated with the given gridCoord at this level. |
char |
numericToChar(int number)
|
void |
setColumns(int newColumns)
|
void |
setIndex(int newIndex)
|
void |
setLowerLeft(boolean tizit)
|
void |
setMultiplier(int newMultiplier)
|
void |
setNameMapping(java.util.Map newMapping)
Here's where you can define a mapping of calculated name->arbitrary name for those really strangely organized grid levels. |
void |
setNumeric(boolean numericOrNot)
|
void |
setPrefix(java.lang.String newPrefix)
|
void |
setRows(int newRows)
|
void |
setStart(int newStart)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GridLevel()
| Method Detail |
|---|
public Coord2D convertCoordinate(int gridCoord)
public int convertCoordinate(int column,
int row)
public java.lang.String namePartFor(int gridCoord)
public int cellNumberFor(java.lang.String namePart)
public int charToNumeric(char carrie)
public char numericToChar(int number)
public int getIndex()
public void setIndex(int newIndex)
public int getStart()
public void setStart(int newStart)
public int getColumns()
public void setColumns(int newColumns)
public int getRows()
public void setRows(int newRows)
public java.lang.String getPrefix()
public void setPrefix(java.lang.String newPrefix)
public boolean isNumeric()
public void setNumeric(boolean numericOrNot)
public int getMultiplier()
public void setMultiplier(int newMultiplier)
public void setNameMapping(java.util.Map newMapping)
public java.util.Map getNameMapping()
public java.util.Map getReverseNameMapping()
public boolean isLowerLeft()
public void setLowerLeft(boolean tizit)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||