|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.model.resources.Images
A set of static methods working on images. Some of those methods are useful, but not really rigorous. This is why they do not appear in the "official" package, but instead in this private one. Do not rely on this API! It may change in incompatible way in any future version.
Field Summary | |
private static java.awt.Dimension |
DEFAULT_TILE_SIZE
The default tile size. |
private static int |
MIN_TILE_SIZE
The minimum tile size. |
Constructor Summary | |
private |
Images()
Do not allow creation of instances of this class. |
Method Summary | |
static ImageLayout |
getImageLayout(java.awt.image.RenderedImage image)
Suggest an ImageLayout for the specified image.
|
private static ImageLayout |
getImageLayout(java.awt.image.RenderedImage image,
boolean initToImage)
Returns an ImageLayout for the specified image.
|
static java.awt.RenderingHints |
getRenderingHints(java.awt.image.RenderedImage image)
Suggest a set of RenderingHints for the specified image.
|
static java.awt.Dimension |
toTileSize(java.awt.Dimension size)
Suggest a tile size for the specified image size. |
private static int |
toTileSize(int imageSize,
int tileSize)
Suggest a tile size close to tileSize for the specified
imageSize . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.awt.Dimension DEFAULT_TILE_SIZE
JAI#setDefaultTileSize
.
private static final int MIN_TILE_SIZE
Constructor Detail |
private Images()
Method Detail |
public static ImageLayout getImageLayout(java.awt.image.RenderedImage image)
ImageLayout
for the specified image.
All parameters are initially set equal to those of the
given RenderedImage
, and then the tile size is
updated according the image's size. This method never
returns null
.
private static ImageLayout getImageLayout(java.awt.image.RenderedImage image, boolean initToImage)
ImageLayout
for the specified image.
If initToImage
is true
, then
All parameters are initially set equal to those of the
given RenderedImage
and the returned layout is
never null
.
public static java.awt.RenderingHints getRenderingHints(java.awt.image.RenderedImage image)
RenderingHints
for the specified image.
The rendering hints may include the following parameters:
JAI#KEY_IMAGE_LAYOUT
with a proposed tile size.null
if no rendering hints is proposed.
public static java.awt.Dimension toTileSize(java.awt.Dimension size)
size
is the image's size. On output, it is the
tile size. This method returns size
for convenience.
private static int toTileSize(int imageSize, int tileSize)
tileSize
for the specified
imageSize
. If this method can't suggest a size, then it
returns 0.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |