com.notuvy.image
Class ScaledImage

java.lang.Object
  extended by com.notuvy.image.ScaledImage

public class ScaledImage
extends Object

A utility to create resized image from an original image. Currently it supports only shrinking, not enlarging.

Version:
$Id: ScaledImage.java,v 1.2 2006/06/22 04:56:29 murali Exp $
Author:
murali

Field Summary
protected static DecimalFormat FORMAT
           
 
Constructor Summary
ScaledImage(BufferedImage pOriginal, int pMaxDimension)
           
 
Method Summary
protected  void adjustHeight()
           
protected  void adjustWidth()
           
 void clear()
           
 BufferedImage getImage()
           
protected  int getMaxDimension()
           
protected  int getNewHeight()
           
protected  int getNewWidth()
           
protected  int getOrigHeight()
           
protected  BufferedImage getOriginal()
           
protected  int getOrigWidth()
           
protected  double getScale()
           
protected  void initialize()
           
protected  void initializeOriginal(BufferedImage pOriginal)
           
 void setImage(BufferedImage pImage)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FORMAT

protected static final DecimalFormat FORMAT
Constructor Detail

ScaledImage

public ScaledImage(BufferedImage pOriginal,
                   int pMaxDimension)
Method Detail

getOriginal

protected BufferedImage getOriginal()

getMaxDimension

protected int getMaxDimension()

getImage

public BufferedImage getImage()

getOrigWidth

protected int getOrigWidth()

getOrigHeight

protected int getOrigHeight()

getNewWidth

protected int getNewWidth()

getNewHeight

protected int getNewHeight()

getScale

protected double getScale()

setImage

public void setImage(BufferedImage pImage)

initialize

protected void initialize()

adjustWidth

protected void adjustWidth()

adjustHeight

protected void adjustHeight()

initializeOriginal

protected void initializeOriginal(BufferedImage pOriginal)

toString

public String toString()
Overrides:
toString in class Object

clear

public void clear()


Copyright © 2013. All Rights Reserved.