Package org.gvsig.layout.mapbox.model
Class MapBoxModel
java.lang.Object
org.gvsig.layout.mapbox.model.MapBoxModel
- All Implemented Interfaces:
Cloneable,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent,org.gvsig.tools.util.IsEmpty
public class MapBoxModel
extends Object
implements org.gvsig.tools.util.IsEmpty, org.gvsig.tools.persistence.Persistent, org.gvsig.tools.lang.Cloneable
- Author:
- fdiaz
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionMapBoxModel(Dimension2D dimension, int columns, int rows) MapBoxModel(Dimension2D dimension, List<Cell> cells) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidAdds a column to the right of the cell column passed as a parametervoidAdds a row below the row to which the cell passed as a parameter belongsclone()voidvoidgetCell(double x, double y) getCells()getRelativePosition(Point2D p, double tolerance) voidinsertColumn(Cell cell) Insert a column to the left of the cell column passed as a parametervoidbooleanisEmpty()voidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidmoveHorizontalLine(double y0, double y1) voidmoveVerticalLine(double x0, double x1) static voidvoidvoidremoveCells(List<Cell> theCells) voidremoveColumn(Cell cell) voidvoidresize(Dimension2D dimension) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsort()voidsplitCellHorizontally(Cell theCell) voidsplitCellsHorizontally(List<Cell> theCells) voidsplitCellsVertically(List<Cell> theCells) voidsplitCellVertically(Cell theCell)
-
Field Details
-
PERSISTENCE_DEFINITION_NAME
- See Also:
-
POSITION_OUT_OF_MAPBOX
public static final int POSITION_OUT_OF_MAPBOX- See Also:
-
POSITION_IN_CELL
public static final int POSITION_IN_CELL- See Also:
-
POSITION_AT_TOP_OF_CELL
public static final int POSITION_AT_TOP_OF_CELL- See Also:
-
POSITION_AT_BOTOM_OF_CELL
public static final int POSITION_AT_BOTOM_OF_CELL- See Also:
-
POSITION_ON_LEFT_EDGE_OF_CELL
public static final int POSITION_ON_LEFT_EDGE_OF_CELL- See Also:
-
POSITION_ON_RIGHT_EDGE_OF_CELL
public static final int POSITION_ON_RIGHT_EDGE_OF_CELL- See Also:
-
-
Constructor Details
-
MapBoxModel
public MapBoxModel() -
MapBoxModel
-
MapBoxModel
-
-
Method Details
-
getCell
-
getCells
-
getCells
-
add
-
insertRow
-
insertColumn
Insert a column to the left of the cell column passed as a parameter- Parameters:
cell-
-
addRow
Adds a row below the row to which the cell passed as a parameter belongs- Parameters:
cell-
-
addColumn
Adds a column to the right of the cell column passed as a parameter- Parameters:
cell-
-
dump
-
sort
public void sort() -
join
-
combine
-
splitCellHorizontally
-
splitCellsHorizontally
-
splitCellVertically
-
splitCellsVertically
-
removeCells
-
removeCells
-
removeColumn
-
removeRow
-
resize
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceorg.gvsig.tools.util.IsEmpty
-
getRelativePosition
-
moveVerticalLine
public void moveVerticalLine(double x0, double x1) -
moveHorizontalLine
public void moveHorizontalLine(double y0, double y1) -
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
registerPersistent
public static void registerPersistent() -
loadFromState
public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
loadFromStatein interfaceorg.gvsig.tools.persistence.Persistent- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
saveToState
public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
saveToStatein interfaceorg.gvsig.tools.persistence.Persistent- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-