|
ICY Version 1.0.1.0
|
Static Public Member Functions | |
| static JPanel | createLineBoxPanel (Component...componentArray) |
| static JPanel | createPageBoxPanel (Component...componentArray) |
| static JPanel | besidesPanel (Component jc1, Component jc2, int widthOfSecondComponent) |
| static JPanel | besidesPanel (Component...componentArray) |
| static JPanel | generatePanel () |
| static JPanel | generatePanel (String string) |
| static JPanel | generatePanelWithoutBorder () |
| static void | setEnableContainer (Container container, boolean enable) |
| static void | paintBackGround (int width, int height, Graphics g) |
| static void | paintBackGround (Component component, Graphics g) |
| static void | paintBackGround (Image image) |
| static Image | addBackGround (Image source, int sourceSize, int outSize) |
| static Image | addBackGround (Image source, int outSize) |
| static Image | addBackGround (Image source) |
| static Rectangle2D | getStringBounds (Graphics g, Font f, String s) |
| static Rectangle2D | getStringBounds (Component c, String s) |
| static Rectangle2D | getStringBounds (Graphics g, String s) |
| static void | drawHCenteredText (Graphics g, String string, int w, int y) |
| static void | drawCenteredText (Graphics g, String string, int w, int h) |
| static TitledFrame | generateTitleFrame (String title, JPanel panel, Dimension titleDimension, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable) |
This class is a toolbox with many simple gui routines.
| static JPanel icy.gui.util.GuiUtil.besidesPanel | ( | Component... | componentArray | ) | [static] |
Creates a jpanel with a gridlayout of 1,2 with the given arguments.
| static JPanel icy.gui.util.GuiUtil.besidesPanel | ( | Component | jc1, |
| Component | jc2, | ||
| int | widthOfSecondComponent | ||
| ) | [static] |
Creates a jpanel with a gridlayout of 1,2 with the given arguments, and force the width of the secon columns. Should be use for list of label beside parameters
| static void icy.gui.util.GuiUtil.drawHCenteredText | ( | Graphics | g, |
| String | string, | ||
| int | w, | ||
| int | y | ||
| ) | [static] |
Draw a text centered on x on a given y.
| g | |
| string | |
| y |
| static JPanel icy.gui.util.GuiUtil.generatePanel | ( | ) | [static] |
This generate a panel with an empty border on the side, so that it is quite pretty. Generated with a boxLayout
| static Rectangle2D icy.gui.util.GuiUtil.getStringBounds | ( | Graphics | g, |
| Font | f, | ||
| String | s | ||
| ) | [static] |
Return bounds to draw specified string in the specified Graphics context with specified font
| static Rectangle2D icy.gui.util.GuiUtil.getStringBounds | ( | Component | c, |
| String | s | ||
| ) | [static] |
Return bounds to draw specified string in the specified component
| static Rectangle2D icy.gui.util.GuiUtil.getStringBounds | ( | Graphics | g, |
| String | s | ||
| ) | [static] |
Return bounds to draw specified string in the specified Graphics context with current font
| static void icy.gui.util.GuiUtil.setEnableContainer | ( | Container | container, |
| boolean | enable | ||
| ) | [static] |
Allow to enable/Disable all the content of a container ( such as a JPanel for instance )
1.7.3