rebuild.graphics.tiff.tags
Class XResolutionTag

java.lang.Object
  extended by rebuild.graphics.tiff.Tag
      extended by rebuild.graphics.tiff.tags.RationalTag
          extended by rebuild.graphics.tiff.tags.XResolutionTag

public final class XResolutionTag
extends RationalTag

The number of pixels per ResolutionUnitTag in the ImageWidthTag direction.

Since:
BBX 1.0.1

Field Summary
 
Fields inherited from class rebuild.graphics.tiff.Tag
count, data, dataType, value
 
Constructor Summary
XResolutionTag(int num, int den)
          Create a new XResolutionTag.
 
Method Summary
 int getDenominator()
          Get the denominator.
 int getNumerator()
          Get the numerator.
static short getTagTypeValue()
          Get the Tag's type.
 void setCount(int count)
          There is always only 1 element.
 void setDenominator(int den)
          Set the denominator.
 void setNumerator(int num)
          Set the numerator.
 void setValue(int value)
          Unused
 
Methods inherited from class rebuild.graphics.tiff.tags.RationalTag
extraData, getDenominator, getNumerator, hasDefault, isDefault, setDataType, setDenominator, setExtraData, setNumerator, 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
 

Constructor Detail

XResolutionTag

public XResolutionTag(int num,
                      int den)
Create a new XResolutionTag.

Parameters:
num - The numerator, usually the image width but this may not work properly.
den - The denominator, usually the image unit (inch, cm, undefined) but this may not work properly.
Method Detail

getTagTypeValue

public static short getTagTypeValue()
Get the Tag's type.

Returns:
The Tag's type.

getNumerator

public int getNumerator()
Get the numerator.

Returns:
The numerator, usually the image width but this may not be true.

getDenominator

public int getDenominator()
Get the denominator.

Returns:
The denominator, usually the image unit (inch, cm, undefined) but this may not be true.

setNumerator

public void setNumerator(int num)
Set the numerator.

Parameters:
num - The numerator, usually the image width but this may not work properly.

setDenominator

public void setDenominator(int den)
Set the denominator.

Parameters:
den - The denominator, usually the image unit (inch, cm, undefined) but this may not work properly.

setCount

public void setCount(int count)
There is always only 1 element.

Overrides:
setCount in class RationalTag
Parameters:
count - The number of Writer.RATIONAL contained in the tag. If the number is bigger than the current count then it will add 0/1 Writer.RATIONAL, else it will remove the Writer.RATIONAL.
See Also:
setCount

setValue

public void setValue(int value)
Unused

Overrides:
setValue in class Tag
Parameters:
value - The value that the tag should contains.
See Also:
setValue