Class CellImpl

java.lang.Object
org.gvsig.layout.mapbox.model.CellImpl
All Implemented Interfaces:
Cloneable, Cell, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent

public class CellImpl extends Object implements Cell
Author:
fdiaz
  • Field Details

  • Constructor Details

    • CellImpl

      public CellImpl()
    • CellImpl

      public CellImpl(double x, double y, double width, double height)
  • Method Details

    • clone

      public Cell clone() throws CloneNotSupportedException
      Specified by:
      clone in interface Cell
      Specified by:
      clone in interface org.gvsig.tools.lang.Cloneable
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • getX

      public double getX()
      Specified by:
      getX in interface Cell
    • setX

      public void setX(double x)
      Specified by:
      setX in interface Cell
    • getY

      public double getY()
      Specified by:
      getY in interface Cell
    • setY

      public void setY(double y)
      Specified by:
      setY in interface Cell
    • getWidth

      public double getWidth()
      Specified by:
      getWidth in interface Cell
    • setWidth

      public void setWidth(double width)
      Specified by:
      setWidth in interface Cell
    • getHeight

      public double getHeight()
      Specified by:
      getHeight in interface Cell
    • setHeight

      public void setHeight(double height)
      Specified by:
      setHeight in interface Cell
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • contains

      public boolean contains(double x, double y)
      Specified by:
      contains in interface Cell
    • isContained

      public boolean isContained(Rectangle2D rect)
      Specified by:
      isContained in interface Cell
    • intersects

      public boolean intersects(Rectangle2D rect)
      Specified by:
      intersects in interface Cell
    • join

      public void join(Cell c)
      Specified by:
      join in interface Cell
    • getRectangle

      public Rectangle2D getRectangle()
      Specified by:
      getRectangle in interface Cell
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • registerPersistent

      public static void registerPersistent()
    • 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
    • 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