Gridarta Editor
net.sf.gridarta.utils.ImageUtils Class Reference
+ Collaboration diagram for net.sf.gridarta.utils.ImageUtils:

Static Public Member Functions

static Image scaleImage (@NotNull final Image image, final int w, final int h) throws InterruptedException
 

Private Member Functions

 ImageUtils ()
 

Static Private Attributes

static final Component COMPONENT
 
static final MediaTracker TRACKER = new MediaTracker(COMPONENT)
 

Detailed Description

Utility class for image related functions.

Author
Andreas Kirschbaum

Definition at line 31 of file ImageUtils.java.

Constructor & Destructor Documentation

◆ ImageUtils()

net.sf.gridarta.utils.ImageUtils.ImageUtils ( )
private

Private constructor to prevent instantiation.

Definition at line 53 of file ImageUtils.java.

Member Function Documentation

◆ scaleImage()

static Image net.sf.gridarta.utils.ImageUtils.scaleImage ( @NotNull final Image  image,
final int  w,
final int  h 
) throws InterruptedException
static

Member Data Documentation

◆ COMPONENT

final Component net.sf.gridarta.utils.ImageUtils.COMPONENT
staticprivate
Initial value:
= new Component() {
private static final long serialVersionUID = 1L;
}

The component for the media TRACKER.

Definition at line 36 of file ImageUtils.java.

◆ TRACKER

final MediaTracker net.sf.gridarta.utils.ImageUtils.TRACKER = new MediaTracker(COMPONENT)
staticprivate

The MediaTracker for loading scaled images.

Definition at line 48 of file ImageUtils.java.

Referenced by net.sf.gridarta.utils.ImageUtils.scaleImage().


The documentation for this class was generated from the following file: