public class GuiUtil extends java.lang.Object
Constructor and Description |
---|
GuiUtil() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.JPanel |
besidesPanel(java.awt.Component... componentArray)
Creates a jpanel with a gridlayout of 1,2 with the given arguments.
|
static javax.swing.JPanel |
besidesPanel(java.awt.Component jc1,
java.awt.Component jc2,
int widthOfSecondComponent)
Creates a jpanel with a gridlayout of 1,2 with the given arguments, and
force the width of the secon columns.
|
static javax.swing.JLabel |
createBigBoldLabel(java.lang.String text,
int incSize) |
static javax.swing.JLabel |
createBoldLabel(java.lang.String text) |
static javax.swing.JPanel |
createCenteredBoldLabel(java.lang.String text) |
static javax.swing.JPanel |
createCenteredLabel(javax.swing.JLabel label) |
static javax.swing.JPanel |
createCenteredLabel(java.lang.String text) |
static javax.swing.JLabel |
createFixedWidthBoldLabel(java.lang.String text,
int w) |
static javax.swing.JLabel |
createFixedWidthLabel(java.lang.String text,
int w) |
static javax.swing.JLabel |
createFixedWidthRightAlignedLabel(java.lang.String text,
int w) |
static IcyFrame |
createIcyFrameFromWindow(java.awt.Window window) |
static javax.swing.JPanel |
createLineBoxPanel(java.awt.Component... componentArray) |
static javax.swing.JPanel |
createLoweredPanel(java.awt.Component comp) |
static javax.swing.JPanel |
createPageBoxPanel(java.awt.Component... componentArray) |
static javax.swing.JPanel |
createRaisedPanel(java.awt.Component comp) |
static javax.swing.JPanel |
createTabArea(javax.swing.JTextArea area,
int width) |
static javax.swing.JPanel |
createTabArea(javax.swing.JTextArea area,
int width,
int height) |
static javax.swing.JPanel |
createTabArea(java.lang.String text,
int width) |
static javax.swing.JPanel |
createTabArea(java.lang.String text,
int width,
int height) |
static javax.swing.JPanel |
createTabBoldLabel(java.lang.String text,
int width) |
static javax.swing.JPanel |
createTabLabel(javax.swing.JLabel label,
int width) |
static javax.swing.JPanel |
createTabLabel(java.lang.String text,
int width) |
static void |
drawCenteredText(java.awt.Graphics g,
java.lang.String string,
int w,
int h)
Deprecated.
|
static void |
drawHCenteredText(java.awt.Graphics g,
java.lang.String string,
int w,
int y)
Deprecated.
|
static javax.swing.JPanel |
generatePanel()
This generate a panel with an empty border on the side, so that it is
quite pretty.
|
static javax.swing.JPanel |
generatePanel(java.lang.String string) |
static javax.swing.JPanel |
generatePanelWithoutBorder() |
static TitledFrame |
generateTitleFrame(java.lang.String title,
javax.swing.JPanel panel,
java.awt.Dimension titleDimension,
boolean resizable,
boolean closable,
boolean maximizable,
boolean iconifiable) |
static java.awt.geom.Rectangle2D |
getStringBounds(java.awt.Component c,
java.lang.String s)
Deprecated.
Use
GraphicsUtil.getStringBounds(Component, String) instead |
static java.awt.geom.Rectangle2D |
getStringBounds(java.awt.Graphics g,
java.awt.Font f,
java.lang.String s)
Deprecated.
|
static java.awt.geom.Rectangle2D |
getStringBounds(java.awt.Graphics g,
java.lang.String s)
Deprecated.
Use
GraphicsUtil.getStringBounds(Graphics, String) instead |
static void |
paintBackGround(java.awt.Component component,
java.awt.Graphics g)
Deprecated.
|
static void |
paintBackGround(java.awt.Image image)
Deprecated.
|
static void |
paintBackGround(int width,
int height,
java.awt.Graphics g)
Deprecated.
|
static void |
setCursor(java.awt.Component c,
int cursor) |
static void |
setEnableContainer(java.awt.Container container,
boolean enable)
Deprecated.
what was the goal of this method ???
|
public GuiUtil()
public static javax.swing.JPanel createLoweredPanel(java.awt.Component comp)
public static javax.swing.JPanel createRaisedPanel(java.awt.Component comp)
public static javax.swing.JLabel createBoldLabel(java.lang.String text)
public static javax.swing.JLabel createBigBoldLabel(java.lang.String text, int incSize)
public static javax.swing.JPanel createCenteredLabel(java.lang.String text)
public static javax.swing.JPanel createCenteredLabel(javax.swing.JLabel label)
public static javax.swing.JPanel createCenteredBoldLabel(java.lang.String text)
public static javax.swing.JLabel createFixedWidthLabel(java.lang.String text, int w)
public static javax.swing.JLabel createFixedWidthBoldLabel(java.lang.String text, int w)
public static javax.swing.JLabel createFixedWidthRightAlignedLabel(java.lang.String text, int w)
public static javax.swing.JPanel createTabLabel(java.lang.String text, int width)
public static javax.swing.JPanel createTabLabel(javax.swing.JLabel label, int width)
public static javax.swing.JPanel createTabBoldLabel(java.lang.String text, int width)
public static javax.swing.JPanel createTabArea(java.lang.String text, int width)
public static javax.swing.JPanel createTabArea(javax.swing.JTextArea area, int width)
public static javax.swing.JPanel createTabArea(java.lang.String text, int width, int height)
public static javax.swing.JPanel createTabArea(javax.swing.JTextArea area, int width, int height)
public static javax.swing.JPanel createLineBoxPanel(java.awt.Component... componentArray)
public static javax.swing.JPanel createPageBoxPanel(java.awt.Component... componentArray)
public static javax.swing.JPanel besidesPanel(java.awt.Component jc1, java.awt.Component jc2, int widthOfSecondComponent)
public static javax.swing.JPanel besidesPanel(java.awt.Component... componentArray)
public static javax.swing.JPanel generatePanel()
public static javax.swing.JPanel generatePanel(java.lang.String string)
public static javax.swing.JPanel generatePanelWithoutBorder()
@Deprecated public static void setEnableContainer(java.awt.Container container, boolean enable)
public static TitledFrame generateTitleFrame(java.lang.String title, javax.swing.JPanel panel, java.awt.Dimension titleDimension, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
public static IcyFrame createIcyFrameFromWindow(java.awt.Window window)
window
- the window to convert in IcyFrameclosed
event is listened from the original window which will automatically call the
close() method of the returned IcyFrame.public static void setCursor(java.awt.Component c, int cursor)
@Deprecated public static void paintBackGround(int width, int height, java.awt.Graphics g)
GraphicsUtil.paintIcyBackGround(int, int, Graphics)
instead@Deprecated public static void paintBackGround(java.awt.Component component, java.awt.Graphics g)
GraphicsUtil.paintIcyBackGround(Component, Graphics)
instead@Deprecated public static void paintBackGround(java.awt.Image image)
GraphicsUtil.paintIcyBackGround(Component, Graphics)
instead@Deprecated public static java.awt.geom.Rectangle2D getStringBounds(java.awt.Graphics g, java.awt.Font f, java.lang.String s)
GraphicsUtil.getStringBounds(Graphics, Font, String)
instead@Deprecated public static java.awt.geom.Rectangle2D getStringBounds(java.awt.Component c, java.lang.String s)
GraphicsUtil.getStringBounds(Component, String)
instead@Deprecated public static java.awt.geom.Rectangle2D getStringBounds(java.awt.Graphics g, java.lang.String s)
GraphicsUtil.getStringBounds(Graphics, String)
instead@Deprecated public static void drawHCenteredText(java.awt.Graphics g, java.lang.String string, int w, int y)
GraphicsUtil.drawHCenteredString(Graphics, String, int, int, boolean)
instead@Deprecated public static void drawCenteredText(java.awt.Graphics g, java.lang.String string, int w, int h)
GraphicsUtil.drawCenteredString(Graphics, String, int, int, boolean)
instead