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 Details

    • PERSISTENCE_DEFINITION_NAME

      public static final String 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

      public MapBoxModel(Dimension2D dimension, int columns, int rows)
    • MapBoxModel

      public MapBoxModel(Dimension2D dimension, List<Cell> cells)
  • Method Details

    • getCell

      public Cell getCell(double x, double y)
    • getCells

      public List<Cell> getCells()
    • getCells

      public List<Cell> getCells(Rectangle2D r)
    • add

      public void add(Cell c)
    • insertRow

      public void insertRow(Cell cell)
    • insertColumn

      public void insertColumn(Cell cell)
      Insert a column to the left of the cell column passed as a parameter
      Parameters:
      cell -
    • addRow

      public void addRow(Cell cell)
      Adds a row below the row to which the cell passed as a parameter belongs
      Parameters:
      cell -
    • addColumn

      public void addColumn(Cell cell)
      Adds a column to the right of the cell column passed as a parameter
      Parameters:
      cell -
    • dump

      public void dump(List<Cell> theCells)
    • sort

      public void sort()
    • join

      public Cell join(List<Cell> theCells)
    • combine

      public void combine(List<Cell> theCells)
    • splitCellHorizontally

      public void splitCellHorizontally(Cell theCell)
    • splitCellsHorizontally

      public void splitCellsHorizontally(List<Cell> theCells)
    • splitCellVertically

      public void splitCellVertically(Cell theCell)
    • splitCellsVertically

      public void splitCellsVertically(List<Cell> theCells)
    • removeCells

      public void removeCells(List<Cell> theCells)
    • removeCells

      public void removeCells(Rectangle r)
    • removeColumn

      public void removeColumn(Cell cell)
    • removeRow

      public void removeRow(Cell cell)
    • resize

      public void resize(Dimension2D dimension)
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.gvsig.tools.util.IsEmpty
    • getRelativePosition

      public org.apache.commons.lang3.tuple.Pair<Integer,Cell> getRelativePosition(Point2D p, double tolerance)
    • moveVerticalLine

      public void moveVerticalLine(double x0, double x1)
    • moveHorizontalLine

      public void moveHorizontalLine(double y0, double y1)
    • clone

      public Object clone() throws CloneNotSupportedException
      Specified by:
      clone in interface org.gvsig.tools.lang.Cloneable
      Overrides:
      clone in class Object
      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:
      loadFromState in interface org.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:
      saveToState in interface org.gvsig.tools.persistence.Persistent
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException