| java.lang.Object com.javujavu.javux.wings.WingToolkit
All known Subclasses: com.javujavu.javux.wings.WingToolkit12,
WingToolkit | public class WingToolkit (Code) | | A collection of various utility methods used by WingS components.
This class provides Java version dependent methods
like mouse wheel, text antialiasing and so on.
It checks Java version and initialize appropriate
derived class eg WingToolkit12 for Java 1.2
This is one of the core WingS classes required by all the components
This class is thread safe.
|
Method Summary | |
public void | addHierarchyListener(WingComponent c) | protected void | addWheelListener(WingComponent src, WingComponent target) | public static Dimension | calcLabelSize(WingImage imgIcon, String text, WingFont font, Insets margin, int gap, WingComponent c) | public int | charsWidth(WingFont font, char[] data, int offset, int length) | protected void | clrComposite(Graphics g, Object composite) | public Color | createColor(int argb) | protected Window | createPopup(WingComponent origin, WingComponent content, boolean focusableWindow) | public static void | drawBackground(Graphics g, int x, int y, int width, int height, Style style, Component c) | public static void | drawLabel(Graphics g, int x, int y, int width, int height, WingImage imgIcon, String text, WingFont font, Color color, Color focus, Insets margin, int gap, int alignment, int textPosition, WingComponent c) | public boolean | drawSmoothImage(Graphics g, WingImage image, int x, int y, int w, int h, ImageObserver o) | protected Image | getBuffer(Component c, int width, int height) | public static void | hidePopup(Container handle) | public static void | intersection(Rectangle dest, Rectangle with) | protected Object | mulComposite(Graphics g, int alpha) | public static void | paintBuffered(Component comp, Graphics g) | protected synchronized void | paintBuffered(Component comp, Graphics g, Rectangle clipBounds, Rectangle bufRect) | protected void | paintBuffered(Component comp, Graphics g, Rectangle clipBounds, Rectangle bufRect, Image buf) | public static void | paintContainer(Container parent, Graphics g) | public void | requestFocusInWindow(Container c) | public void | setTextAntialias(Graphics g, boolean antialias) | public static Container | showPopup(WingComponent origin, int pivotX, int pivotY, int pivotWidth, int pivotHeight, int direction, int minWidth, int minHeight, WingComponent content, Dimension minLightweightSize, boolean enableLightweight, boolean enableHeavyweight, boolean forceLightweight, boolean focusableWindow) | public int | stringWidth(WingFont font, String s) | public static WingToolkit | the() |
BUFFER_REUSE | final protected static int BUFFER_REUSE(Code) | | |
charsWidth | public int charsWidth(WingFont font, char[] data, int offset, int length)(Code) | | |
drawLabel | public static void drawLabel(Graphics g, int x, int y, int width, int height, WingImage imgIcon, String text, WingFont font, Color color, Color focus, Insets margin, int gap, int alignment, int textPosition, WingComponent c)(Code) | | |
paintBuffered | public static void paintBuffered(Component comp, Graphics g)(Code) | | Paints component using double buffering
Parameters: comp - component Parameters: g - graphics |
paintContainer | public static void paintContainer(Container parent, Graphics g)(Code) | | Paints container childs
Parameters: parent - container Parameters: g - graphics |
setTextAntialias | public void setTextAntialias(Graphics g, boolean antialias)(Code) | | |
showPopup | public static Container showPopup(WingComponent origin, int pivotX, int pivotY, int pivotWidth, int pivotHeight, int direction, int minWidth, int minHeight, WingComponent content, Dimension minLightweightSize, boolean enableLightweight, boolean enableHeavyweight, boolean forceLightweight, boolean focusableWindow)(Code) | | Parameters: origin - any component Parameters: pivotX - Parameters: pivotY - Parameters: pivotWidth - Parameters: pivotHeight - Parameters: direction - Parameters: minWidth - Parameters: minHeight - Parameters: content - component Parameters: minLightweightSize - Parameters: enableLightweight - Parameters: enableHeavyweight - Parameters: forceLightweight - Parameters: focusableWindow - instance of Window for heavy popup,instance of WingComponent for light, or null |
|
|