Package io.keikai.model.impl
Class PictureImpl
- java.lang.Object
-
- io.keikai.model.impl.AbstractPictureAdv
-
- io.keikai.model.impl.PictureImpl
-
- All Implemented Interfaces:
LinkedModelObject
,SPicture
,Serializable
public class PictureImpl extends AbstractPictureAdv
- Since:
- 3.5.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.keikai.model.SPicture
SPicture.Format
-
-
Constructor Summary
Constructors Constructor Description PictureImpl(AbstractSheetAdv sheet, String id, int picDataIndex, ViewAnchor anchor)
This constructor use the existing picData in the .PictureImpl(AbstractSheetAdv sheet, String id, SPicture.Format format, byte[] data, ViewAnchor anchor)
This constructor will create aSPictureData
internally
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkOrphan()
void
destroy()
Destroy / release this model object, for example all the dependency, parent linking.ViewAnchor
getAnchor()
byte[]
getData()
SPicture.Format
getFormat()
String
getId()
SPictureData
getPictureData()
Returns the SPictureDataSSheet
getSheet()
void
setAnchor(ViewAnchor anchor)
-
-
-
Constructor Detail
-
PictureImpl
public PictureImpl(AbstractSheetAdv sheet, String id, SPicture.Format format, byte[] data, ViewAnchor anchor)
This constructor will create aSPictureData
internally
-
PictureImpl
public PictureImpl(AbstractSheetAdv sheet, String id, int picDataIndex, ViewAnchor anchor)
This constructor use the existing picData in the .
-
-
Method Detail
-
getSheet
public SSheet getSheet()
-
getId
public String getId()
-
getFormat
public SPicture.Format getFormat()
-
getAnchor
public ViewAnchor getAnchor()
-
setAnchor
public void setAnchor(ViewAnchor anchor)
-
getData
public byte[] getData()
-
destroy
public void destroy()
Description copied from interface:LinkedModelObject
Destroy / release this model object, for example all the dependency, parent linking. this method has to be called before remove this linking from parent object
-
checkOrphan
public void checkOrphan()
-
getPictureData
public SPictureData getPictureData()
Description copied from interface:SPicture
Returns the SPictureData- Returns:
-
-