Package org.apache.sedona.common.raster
Class DeepCopiedRenderedImage
java.lang.Object
org.apache.sedona.common.raster.DeepCopiedRenderedImage
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable,RenderedImage,Serializable
public final class DeepCopiedRenderedImage
extends Object
implements RenderedImage, Serializable, com.esotericsoftware.kryo.KryoSerializable
This class is mostly copied from
SerializableRenderedImage. We've
removed the shallow copy support and fixed a bug of SerializableRenderedImage: When a deep-copied
serializable rendered image object is being disposed, it tries to connect to the remote server.
However, there is no remote server in deep-copy mode, so the dispose() method throws a
java.net.SocketException.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyData(WritableRaster dest) getData()intintintintgetMinX()intgetMinY()intintgetProperty(String name) String[]getTile(int tileX, int tileY) intintintintintgetWidth()voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) static voidregisterKryo(com.esotericsoftware.kryo.Kryo kryo) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
-
Constructor Details
-
DeepCopiedRenderedImage
public DeepCopiedRenderedImage() -
DeepCopiedRenderedImage
-
-
Method Details
-
getColorModel
- Specified by:
getColorModelin interfaceRenderedImage
-
getData
- Specified by:
getDatain interfaceRenderedImage
-
getData
- Specified by:
getDatain interfaceRenderedImage
-
copyData
- Specified by:
copyDatain interfaceRenderedImage
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceRenderedImage
-
getMinTileX
public int getMinTileX()- Specified by:
getMinTileXin interfaceRenderedImage
-
getMinTileY
public int getMinTileY()- Specified by:
getMinTileYin interfaceRenderedImage
-
getMinX
public int getMinX()- Specified by:
getMinXin interfaceRenderedImage
-
getMinY
public int getMinY()- Specified by:
getMinYin interfaceRenderedImage
-
getNumXTiles
public int getNumXTiles()- Specified by:
getNumXTilesin interfaceRenderedImage
-
getNumYTiles
public int getNumYTiles()- Specified by:
getNumYTilesin interfaceRenderedImage
-
getProperty
- Specified by:
getPropertyin interfaceRenderedImage
-
getPropertyNames
- Specified by:
getPropertyNamesin interfaceRenderedImage
-
getSampleModel
- Specified by:
getSampleModelin interfaceRenderedImage
-
getSources
- Specified by:
getSourcesin interfaceRenderedImage
-
getTile
- Specified by:
getTilein interfaceRenderedImage
-
getTileGridXOffset
public int getTileGridXOffset()- Specified by:
getTileGridXOffsetin interfaceRenderedImage
-
getTileGridYOffset
public int getTileGridYOffset()- Specified by:
getTileGridYOffsetin interfaceRenderedImage
-
getTileHeight
public int getTileHeight()- Specified by:
getTileHeightin interfaceRenderedImage
-
getTileWidth
public int getTileWidth()- Specified by:
getTileWidthin interfaceRenderedImage
-
getWidth
public int getWidth()- Specified by:
getWidthin interfaceRenderedImage
-
registerKryo
public static void registerKryo(com.esotericsoftware.kryo.Kryo kryo) -
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
writein interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.esotericsoftware.kryo.KryoSerializable
-