org.smartui
Class GraphicUtility
java.lang.Object
|
+--org.smartui.GraphicUtility
- public class GraphicUtility
- extends java.lang.Object
The ImageTool class is used to manage all images and
supply some useful method to operate on images
|
Method Summary |
static void |
frame3D(java.awt.Graphics g,
int x,
int y,
int width,
int height,
java.awt.Color topColor,
java.awt.Color bottomColor,
int lineWidth)
|
static java.awt.Image |
getDarkenImage(java.awt.Component cp,
java.awt.Image image)
|
static java.awt.Image |
getFadeImage(java.awt.Component cp,
java.awt.Image image)
|
static java.awt.Image |
getImage(java.lang.String url,
java.awt.Component cp)
Get the image from the url, if it has every been loaded to buffer
directly return it, else load it from url |
static java.awt.Dimension |
getImageSize(java.awt.Image img,
java.awt.image.ImageObserver imgOb)
Get the image size |
static java.awt.Image |
loadImage(java.lang.String url,
java.awt.Component cp)
Load the image from the URL |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphicUtility
public GraphicUtility()
getImage
public static java.awt.Image getImage(java.lang.String url,
java.awt.Component cp)
- Get the image from the url, if it has every been loaded to buffer
directly return it, else load it from url
getImageSize
public static java.awt.Dimension getImageSize(java.awt.Image img,
java.awt.image.ImageObserver imgOb)
- Get the image size
loadImage
public static java.awt.Image loadImage(java.lang.String url,
java.awt.Component cp)
- Load the image from the URL
getDarkenImage
public static java.awt.Image getDarkenImage(java.awt.Component cp,
java.awt.Image image)
getFadeImage
public static java.awt.Image getFadeImage(java.awt.Component cp,
java.awt.Image image)
frame3D
public static void frame3D(java.awt.Graphics g,
int x,
int y,
int width,
int height,
java.awt.Color topColor,
java.awt.Color bottomColor,
int lineWidth)