Package com.snowbound.common.utils
Class FormatRenderProperties
- java.lang.Object
-
- com.snowbound.common.utils.FormatRenderProperties
-
public class FormatRenderProperties extends java.lang.Object
Defines a set of render properties for a specified format. Used by VirtualViewer to remember properties set in the web.xml.
-
-
Constructor Summary
Constructors Constructor Description FormatRenderProperties(int bitDepth, int dpi, int format)
Create a set of render properties for the given format.FormatRenderProperties(int bitDepth, int dpi, int format, double width, double height)
Create a set of render properties for the given format.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBitDepth()
int
getDpi()
double
getHeight()
int
getRenderFormat()
double
getWidth()
void
setBitDepth(int bitDepth)
void
setDpi(int dpi)
void
setFormat(int format)
void
setHeight(double height)
void
setWidth(double width)
-
-
-
Constructor Detail
-
FormatRenderProperties
public FormatRenderProperties(int bitDepth, int dpi, int format)
Create a set of render properties for the given format.- Parameters:
bitDepth
- number of bits used for color informationdpi
- dots per inchformat
- format type code
-
FormatRenderProperties
public FormatRenderProperties(int bitDepth, int dpi, int format, double width, double height)
Create a set of render properties for the given format.- Parameters:
bitDepth
- number of bits used for color informationdpi
- dots per inchformat
- format type codewidth
- default widthheight
- default height
-
-
Method Detail
-
getBitDepth
public int getBitDepth()
- Returns:
- number of bits used for color information
-
setBitDepth
public void setBitDepth(int bitDepth)
- Parameters:
bitDepth
- the bitDepth to set
-
getDpi
public int getDpi()
- Returns:
- dpi
-
setDpi
public void setDpi(int dpi)
- Parameters:
dpi
- the dpi to set
-
getRenderFormat
public int getRenderFormat()
- Returns:
- the format
-
setFormat
public void setFormat(int format)
- Parameters:
format
- the format to set
-
getWidth
public double getWidth()
- Returns:
- the width
-
setWidth
public void setWidth(double width)
- Parameters:
width
- default width to set
-
getHeight
public double getHeight()
- Returns:
- height
-
setHeight
public void setHeight(double height)
- Parameters:
height
- default height to set
-
-