Class FillImage
java.lang.Object
com.independentsoft.office.odf.styles.FillImage
Represents a link to a bitmap resource.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new fill image.FillImage(InternalXMLStreamReader reader)Instantiates a new fill image.Instantiates a new fill image.Instantiates a new fill image.FillImage(String fileName, InputStream inputStream)Instantiates a new fill image. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Default value for this attribute is onLoad.byte[]Gets an array of bytes of the image.Gets the name of the fill image.Gets the file name for the image.Gets the filter name for the image.Gets the height of a linked image.Gets the input stream.Gets the image.getName()Gets the name.getShow()Default value for this attribute is embed.getType()Always has the value simple.getWidth()Gets the width of a linked image.voidLoad.voidLoad.voidload(String fileName, InputStream inputStream)Load.voidsave(OutputStream outputStream)Save.voidSave.voidSave.voidsetActuate(String actuate)Default value for this attribute is onLoad.voidsetBuffer(byte[] buffer)Sets an array of bytes of the image.voidsetDisplayName(String displayName)Sets the name of the fill image.voidsetFileName(String fileName)Sets the file name for the image.voidSets the filter name for the image.voidSets the height of a linked image.voidsetLocation(String location)Sets the image.voidSets the name.voidDefault value for this attribute is embed.voidAlways has the value simple.voidSets the width of a linked image.toString()Converts the value of the current FillImage object to its equivalent string representation.
-
Constructor Details
-
FillImage
public FillImage()Instantiates a new fill image. -
FillImage
Instantiates a new fill image.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
FillImage
Instantiates a new fill image.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
FillImage
Instantiates a new fill image.- Parameters:
fileName- the file nameinputStream- the input stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
FillImage
Instantiates a new fill image.- Parameters:
fileName- the file namebuffer- the buffer
-
-
Method Details
-
load
Load.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
load
Load.- Parameters:
fileName- the file nameinputStream- the input stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
load
Load.- Parameters:
fileName- the file namebuffer- the buffer
-
save
Save.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
save
Save.- Parameters:
filePath- the file pathoverwrite- the overwrite- Throws:
IOException- Signals that an I/O exception has occurred.
-
save
Save.- Parameters:
outputStream- the output stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
getInputStream
Gets the input stream.- Returns:
- the input stream
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current FillImage object to its equivalent string representation. -
getName
Gets the name.- Returns:
- the name
-
setName
Sets the name.- Parameters:
name- the new name
-
getDisplayName
Gets the name of the fill image.- Returns:
- the display name
-
setDisplayName
Sets the name of the fill image.- Parameters:
displayName- the new display name
-
getLocation
Gets the image.- Returns:
- the location
-
setLocation
Sets the image.- Parameters:
location- the new location
-
getType
Always has the value simple.- Returns:
- the type
-
setType
Always has the value simple.- Parameters:
type- the new type
-
getShow
Default value for this attribute is embed.- Returns:
- the show
-
setShow
Default value for this attribute is embed.- Parameters:
show- the new show
-
getActuate
Default value for this attribute is onLoad.- Returns:
- the actuate
-
setActuate
Default value for this attribute is onLoad.- Parameters:
actuate- the new actuate
-
getWidth
Gets the width of a linked image.- Returns:
- the width
-
setWidth
Sets the width of a linked image.- Parameters:
width- the new width
-
getHeight
Gets the height of a linked image.- Returns:
- the height
-
setHeight
Sets the height of a linked image.- Parameters:
height- the new height
-
getFilter
Gets the filter name for the image.- Returns:
- the filter
-
setFilter
Sets the filter name for the image.- Parameters:
filter- the new filter
-
getFileName
Gets the file name for the image.- Returns:
- the file name
-
setFileName
Sets the file name for the image.- Parameters:
fileName- the new file name
-
getBuffer
public byte[] getBuffer()Gets an array of bytes of the image.- Returns:
- the buffer
-
setBuffer
public void setBuffer(byte[] buffer)Sets an array of bytes of the image.- Parameters:
buffer- the new buffer
-