public class GUIGraphicsUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
INSET |
static int |
RAISED |
static int |
WINDOW_GRAPHIC |
static int |
WINDOW_NORMAL |
| Constructor and Description |
|---|
GUIGraphicsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ImageIcon |
createImageIcon(String image)
This routine will extract image resources from jar file and create
an ImageIcon
|
static void |
draw3DLeft(Graphics g,
int which,
int x,
int y,
int fmWidth,
int fmHeight) |
static void |
draw3DMiddle(Graphics g,
int which,
int x,
int y,
int fmWidth,
int fmHeight) |
static void |
draw3DOne(Graphics g,
int which,
int x,
int y,
int fmWidth,
int fmHeight) |
static void |
draw3DRight(Graphics g,
int which,
int x,
int y,
int fmWidth,
int fmHeight) |
static void |
drawBezel(Graphics g,
int x,
int y,
int w,
int h,
boolean isPressed,
boolean isDefault,
Color shadow,
Color darkShadow,
Color highlight,
Color lightHighlight) |
static void |
drawDashedRect(Graphics g,
int x,
int y,
int width,
int height) |
static void |
drawEtchedRect(Graphics g,
int x,
int y,
int w,
int h,
Color shadow,
Color darkShadow,
Color highlight,
Color lightHighlight) |
static void |
drawGroove(Graphics g,
int x,
int y,
int w,
int h,
Color shadow,
Color highlight) |
static void |
drawLoweredBezel(Graphics g,
int x,
int y,
int w,
int h,
Color shadow,
Color darkShadow,
Color highlight,
Color lightHighlight) |
static void |
drawScrollBar(Graphics g,
int which,
int direction,
int x,
int y,
int fmWidth,
int fmHeight,
Color fg,
Color bg) |
static void |
drawString(Graphics g,
String text,
int underlinedChar,
int x,
int y)
Draw a string with the graphics g at location (x,y) just like g.drawString() would.
|
static void |
drawWinBottom(Graphics g,
int which,
Color fill,
int x,
int y,
int fmWidth,
int fmHeight) |
static void |
drawWinLeft(Graphics g,
int which,
Color fill,
int x,
int y,
int fmWidth,
int fmHeight) |
static void |
drawWinLowerLeft(Graphics g,
int which,
Color fill,
int x,
int y,
int fmWidth,
int fmHeight) |
static void |
drawWinLowerRight(Graphics g,
int which,
Color fill,
int x,
int y,
int fmWidth,
int fmHeight) |
static void |
drawWinRight(Graphics g,
int which,
Color fill,
int x,
int y,
int fmWidth,
int fmHeight) |
static void |
drawWinUpper(Graphics g,
int which,
Color fill,
int x,
int y,
int fmWidth,
int fmHeight) |
static void |
drawWinUpperLeft(Graphics g,
int which,
Color fill,
int x,
int y,
int fmWidth,
int fmHeight) |
static void |
drawWinUpperRight(Graphics g,
int which,
Color fill,
int x,
int y,
int fmWidth,
int fmHeight) |
static List<Image> |
getApplicationIcons() |
static ImageIcon |
getClosedLockIcon() |
static String |
getDefaultFont() |
static Font |
getDerivedFont(Font font,
int width,
int height,
int numRows,
int numCols,
float scaleHeight,
float scaleWidth,
float pointSize) |
static Insets |
getEtchedInsets()
Returns the amount of space taken up by a border drawn by
drawEtchedRect() |
static Insets |
getGrooveInsets()
Returns the amount of space taken up by a border drawn by
drawGroove() |
static ImageIcon |
getOpenLockIcon() |
static boolean |
isFontNameExists(String fontString)
Checks to see if the font name exists within our environment
|
static void |
positionPopup(Component component,
JPopupMenu jpm,
int xCoord,
int yCoord) |
public static final int RAISED
public static final int INSET
public static final int WINDOW_NORMAL
public static final int WINDOW_GRAPHIC
public static void draw3DLeft(Graphics g, int which, int x, int y, int fmWidth, int fmHeight)
public static void draw3DMiddle(Graphics g, int which, int x, int y, int fmWidth, int fmHeight)
public static void draw3DRight(Graphics g, int which, int x, int y, int fmWidth, int fmHeight)
public static void draw3DOne(Graphics g, int which, int x, int y, int fmWidth, int fmHeight)
public static void drawScrollBar(Graphics g, int which, int direction, int x, int y, int fmWidth, int fmHeight, Color fg, Color bg)
public static void drawWinUpperLeft(Graphics g, int which, Color fill, int x, int y, int fmWidth, int fmHeight)
public static void drawWinUpper(Graphics g, int which, Color fill, int x, int y, int fmWidth, int fmHeight)
public static void drawWinUpperRight(Graphics g, int which, Color fill, int x, int y, int fmWidth, int fmHeight)
public static void drawWinLeft(Graphics g, int which, Color fill, int x, int y, int fmWidth, int fmHeight)
public static void drawWinRight(Graphics g, int which, Color fill, int x, int y, int fmWidth, int fmHeight)
public static void drawWinLowerLeft(Graphics g, int which, Color fill, int x, int y, int fmWidth, int fmHeight)
public static void drawWinBottom(Graphics g, int which, Color fill, int x, int y, int fmWidth, int fmHeight)
public static void drawWinLowerRight(Graphics g, int which, Color fill, int x, int y, int fmWidth, int fmHeight)
public static void drawEtchedRect(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
public static Insets getEtchedInsets()
drawEtchedRect()public static void drawGroove(Graphics g, int x, int y, int w, int h, Color shadow, Color highlight)
public static Insets getGrooveInsets()
drawGroove()public static void drawBezel(Graphics g, int x, int y, int w, int h, boolean isPressed, boolean isDefault, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
public static void drawLoweredBezel(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
public static void drawString(Graphics g, String text, int underlinedChar, int x, int y)
g - graphics objecttext - some text to drawunderlinedChar - number ov char to underlinex - xy - ypublic static void drawDashedRect(Graphics g, int x, int y, int width, int height)
public static Font getDerivedFont(Font font, int width, int height, int numRows, int numCols, float scaleHeight, float scaleWidth, float pointSize)
public static void positionPopup(Component component, JPopupMenu jpm, int xCoord, int yCoord)
public static String getDefaultFont()
public static boolean isFontNameExists(String fontString)
fontString - font to usepublic static ImageIcon createImageIcon(String image)
image - image to usepublic static ImageIcon getOpenLockIcon()
public static ImageIcon getClosedLockIcon()
Copyright © 2018. All rights reserved.