|
||||||||||
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.ShortTag
rebuild.graphics.tiff.tags.ResolutionUnitTag
public final class ResolutionUnitTag
The unit of measurement for XResolution and YResolution.
Field Summary | |
---|---|
static short |
CENTIMETER
Centimeter |
static short |
INCH
Inch |
static short |
NONE
No absolute unit of measurement. |
Fields inherited from class rebuild.graphics.tiff.Tag |
---|
count, data, dataType, value |
Constructor Summary | |
---|---|
ResolutionUnitTag()
Create a new ResolutionUnit tag. |
|
ResolutionUnitTag(short type)
Create a new ResolutionUnit tag. |
Method Summary | |
---|---|
short |
getResolutionUnit()
Get the resolution unit used. |
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()
Get if this Tag 's current value is the default value. |
void |
setCount(int count)
There is always only 1 element. |
void |
setValue(int type)
Set the type of resolution unit to use. |
Methods inherited from class rebuild.graphics.tiff.tags.ShortTag |
---|
extraData, getShort, setDataType, setExtraData, setShort, setupForBigTIFF, writeData |
Methods inherited from class rebuild.graphics.tiff.Tag |
---|
equals, getBigCount, getBigValue, getCount, getDataType, getExtraData, getIfExtraDataExists, getTagType, getValue, hashCode, setCount, setValue, toString, write, write, write, write, writeBig |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short NONE
public static final short INCH
public static final short CENTIMETER
Constructor Detail |
---|
public ResolutionUnitTag()
public ResolutionUnitTag(short type)
type
- The type of resolution unit.Method Detail |
---|
public static short getTagTypeValue()
Tag
's type.
Tag
's type.public void setCount(int count)
setCount
in class ShortTag
count
- The number of Writer.SHORT
contained in the tag. If the number is bigger than the current count then it will add 0 Writer.SHORT
, else it will remove the Writer.SHORT
.setCount
public void setValue(int type)
setValue
in class Tag
type
- The resolution unit to use.getValue
public short getResolutionUnit()
public boolean hasDefault()
Tag
can have a default value, often defined by a parameter-less constructor.
hasDefault
in class ShortTag
true
if the Tag
has a default value, false
if otherwise. Default is false
.public boolean isDefault()
Tag
's current value is the default value. This is ignored if Tag#hasDefault()
returns false
.
isDefault
in class ShortTag
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 |