|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrebuild.graphics.tiff.Tag
rebuild.graphics.tiff.tags.ImageLengthTag
public final class ImageLengthTag
The number of rows of pixels in the image.
Field Summary |
---|
Fields inherited from class rebuild.graphics.tiff.Tag |
---|
count, data, dataType, value |
Constructor Summary | |
---|---|
ImageLengthTag(int height)
Create a new ImageLengthTag . |
Method Summary | |
---|---|
protected boolean |
extraData(boolean big)
No extra data, always returns false. |
int |
getLength()
Get the length defined in this tag. |
static short |
getTagTypeValue()
Get the Tag 's type. |
boolean |
hasDefault()
Get if this Tag can have a default value, often defined by a parameter-less constructor. |
boolean |
isDefault()
Unused. |
void |
setCount(int count)
There is always only 1 element. |
void |
setDataType(short dataType)
Data type is determined by the value. |
protected void |
setupForBigTIFF(boolean set)
Setup the tag for writing in a BigTIFF. |
void |
setValue(int height)
Set the left-justified height that the tag contains. |
void |
writeData(Writer wr)
Unused. |
Methods inherited from class rebuild.graphics.tiff.Tag |
---|
equals, getBigCount, getBigValue, getCount, getDataType, getExtraData, getIfExtraDataExists, getTagType, getValue, hashCode, setCount, setExtraData, setValue, toString, write, write, write, write, writeBig |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImageLengthTag(int height)
ImageLengthTag
.
height
- The height of the image.Method Detail |
---|
public static short getTagTypeValue()
Tag
's type.
Tag
's type.public void setValue(int height)
setValue
in class Tag
height
- The height that the tag should contains.getValue
public int getLength()
public void setDataType(short dataType)
setDataType
in class Tag
dataType
- The data type to set.setDataType
public void setCount(int count)
setCount
in class Tag
count
- The number of values contained in the tag.setCount
public void writeData(Writer wr) throws java.io.IOException
writeData
in class Tag
wr
- The writer used to write the extra data.
java.io.IOException
- If any IO exception occurs.protected boolean extraData(boolean big)
extraData
in class Tag
big
- true
if the tag is being written to a BigTIFF, false
if otherwise.
protected void setupForBigTIFF(boolean set)
setupForBigTIFF
in class Tag
set
- true
if the tag should be preped for BigTIFF, false
if otherwise.public boolean hasDefault()
Tag
can have a default value, often defined by a parameter-less constructor.
hasDefault
in class Tag
true
if the Tag
has a default value, false
if otherwise. Default is false
.public boolean isDefault()
isDefault
in class Tag
true
if the Tag
's value is the default value, false
if otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |