Package org.gvsig.layout.mapbox.model
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
- Author:
- fdiaz
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleancontains(double x, double y) booleandoubledoublegetWidth()doublegetX()doublegetY()inthashCode()booleanintersects(Rectangle2D rect) booleanisContained(Rectangle2D rect) voidvoidloadFromState(org.gvsig.tools.persistence.PersistentState state) static voidvoidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetHeight(double height) voidsetWidth(double width) voidsetX(double x) voidsetY(double y) toString()
-
Field Details
-
PERSISTENCE_DEFINITION_NAME
- See Also:
-
-
Constructor Details
-
CellImpl
public CellImpl() -
CellImpl
public CellImpl(double x, double y, double width, double height)
-
-
Method Details
-
clone
- Specified by:
clonein interfaceCell- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getX
public double getX() -
setX
public void setX(double x) -
getY
public double getY() -
setY
public void setY(double y) -
getWidth
public double getWidth() -
setWidth
public void setWidth(double width) -
getHeight
public double getHeight() -
setHeight
public void setHeight(double height) -
toString
-
contains
public boolean contains(double x, double y) -
isContained
- Specified by:
isContainedin interfaceCell
-
intersects
- Specified by:
intersectsin interfaceCell
-
join
-
getRectangle
- Specified by:
getRectanglein interfaceCell
-
equals
-
hashCode
public int hashCode() -
registerPersistent
public static void registerPersistent() -
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
-
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
-