|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arctorus.documents.Texture
public final class Texture
Texture used to fill shapes. By default alignment set to the center of a shape and texture mirror turned off.
Constructor Summary | |
---|---|
Texture()
|
Method Summary | |
---|---|
TextureAlignmentType |
getAlignment()
Return texture alignment type. |
byte[] |
getData()
Get copy of image data as byte array. |
java.lang.String |
getFormatName()
Get image format or file extension e.g. |
TextureMirrorType |
getMirrorType()
Return mirror type of a texture. |
float |
getOffsetX()
Return X offset of a texture. |
float |
getOffsetY()
Return Y offset of a texture. |
boolean |
isRotated()
Determines whether the texture rotated with a shape. |
void |
setAlignment(TextureAlignmentType alignment)
Set texture alignment type. |
void |
setData(java.io.InputStream inputStream)
Set image data from input stream. |
void |
setMirrorType(TextureMirrorType mirrorType)
Set mirror type of a texture. |
void |
setOffsetX(float offsetX)
Set X offset of a texture. |
void |
setOffsetY(float offsetY)
Set Y offset of a texture. |
void |
setRotated(boolean isRotate)
Set whether the texture rotated with a shape. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Texture()
Method Detail |
---|
public java.lang.String getFormatName()
public void setData(java.io.InputStream inputStream) throws java.io.IOException, DocumentException
inputStream
- input stream to read image from.
java.io.IOException
DocumentException
- in case image doesn't contain data or has unsupported image type.public byte[] getData()
public TextureAlignmentType getAlignment()
public void setAlignment(TextureAlignmentType alignment)
alignment
- new texture alignment.public TextureMirrorType getMirrorType()
public void setMirrorType(TextureMirrorType mirrorType)
mirrorType
- new mirror type.public float getOffsetX()
public void setOffsetX(float offsetX)
offsetX
- new X offset. Must be in the range [0..1].public float getOffsetY()
public void setOffsetY(float offsetY)
offsetY
- new Y offset. Must be in the range [0..1].public boolean isRotated()
public void setRotated(boolean isRotate)
isRotate
- true to rotate texture with a shape.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |