yu.ac.bg.etf.javaqx.qswing.graphics
Class Image

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.qswing.graphics.Image

public abstract class Image
extends java.lang.Object

Abstract Image.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Field Summary
static int SCALE_FAST
          Fast image scaling (the value is 2).
static int SCALE_SMOOTH
          Smoot image scaling (the value is 4).
 
Constructor Summary
Image()
           
 
Method Summary
abstract  void flush()
          Flushes the resources.
abstract  int getHeight()
          Returns height of the image.
abstract  Image getScaledInstance(int width, int height, int hints)
          Returns scaled image.
abstract  ImageProducer getSource()
          Returns image producer.
abstract  int getWidth()
          Returns width of the image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCALE_FAST

public static final int SCALE_FAST
Fast image scaling (the value is 2).

See Also:
Constant Field Values

SCALE_SMOOTH

public static final int SCALE_SMOOTH
Smoot image scaling (the value is 4).

See Also:
Constant Field Values
Constructor Detail

Image

public Image()
Method Detail

getWidth

public abstract int getWidth()
Returns width of the image.

Returns:
width of the image

getHeight

public abstract int getHeight()
Returns height of the image.

Returns:
height of the image

getSource

public abstract ImageProducer getSource()
Returns image producer.

Returns:
image producer

getScaledInstance

public abstract Image getScaledInstance(int width,
                                        int height,
                                        int hints)
Returns scaled image.

Parameters:
width - the width
height - the height
hints - the hints
Returns:
scaled image

flush

public abstract void flush()
Flushes the resources.



Copyright © 2007 ETF and contributors. All Rights Reserved.