|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.gui.layout.BaseXLayout
public final class BaseXLayout
This class assembles layout and paint methods which are frequently used in the GUI.
| Method Summary | |
|---|---|
static void |
antiAlias(java.awt.Graphics g,
GUIProp pr)
Sets the specified anti-aliasing rendering. |
static int |
chopString(java.awt.Graphics g,
byte[] s,
int x,
int y,
int w,
int fs)
Draws the specified string. |
static void |
drawCell(java.awt.Graphics g,
int xs,
int xe,
int ys,
int ye,
boolean focus)
Draws a colored cell. |
static void |
drawCenter(java.awt.Graphics g,
java.lang.String text,
int w,
int y)
Draws a centered string to the panel. |
static void |
drawTooltip(java.awt.Graphics g,
java.lang.String tt,
int x,
int y,
int w,
int c)
Draws a visualization tooltip. |
static void |
enable(java.awt.Component comp,
boolean enable)
Enables or disables the specified component. |
static void |
fill(java.awt.Graphics gg,
java.awt.Color c1,
java.awt.Color c2,
int xs,
int ys,
int xe,
int ye)
Fills the specified area with a color gradient. |
static boolean |
fullAlias()
Checks if the Java version supports all anti-aliasing variants. |
static void |
help(java.awt.Component cont,
byte[] help)
Returns the gui reference of the specified container. |
static javax.swing.ImageIcon |
icon(java.lang.String name)
Returns the specified image as icon. |
static java.awt.Image |
image(java.lang.String name)
Returns the specified image. |
static java.net.URL |
imageURL(java.lang.String name)
Returns the image url. |
static void |
setHeight(java.awt.Component comp,
int h)
Sets the component height, adopting the original component width. |
static void |
setWidth(java.awt.Component comp,
int w)
Sets the component width, adopting the original component height. |
static java.lang.String |
value(double val,
boolean size,
boolean date)
Returns the value of the specified pre value and attribute. |
static int |
width(java.awt.Graphics g,
byte[] s)
Returns the width of the specified text. |
static int |
width(java.awt.Graphics g,
int[] cw,
int c)
Returns the character width of the specified character. |
static int |
width(java.awt.Graphics g,
java.lang.String s)
Returns the width of the specified text. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void help(java.awt.Component cont,
byte[] help)
cont - input containerhelp - help text
public static void setWidth(java.awt.Component comp,
int w)
comp - componentw - width
public static void setHeight(java.awt.Component comp,
int h)
comp - componenth - height
public static void enable(java.awt.Component comp,
boolean enable)
comp - componentenable - boolean flagpublic static javax.swing.ImageIcon icon(java.lang.String name)
name - name of icon
public static java.awt.Image image(java.lang.String name)
name - name of image
public static java.net.URL imageURL(java.lang.String name)
name - name of image
public static java.lang.String value(double val,
boolean size,
boolean date)
val - value to be evaluatedsize - size flagdate - date flag
public static void fill(java.awt.Graphics gg,
java.awt.Color c1,
java.awt.Color c2,
int xs,
int ys,
int xe,
int ye)
gg - graphics referencec1 - first colorc2 - second colorxs - horizontal start positionys - vertical start positionxe - horizontal end positionye - vertical end position
public static void drawCell(java.awt.Graphics g,
int xs,
int xe,
int ys,
int ye,
boolean focus)
g - graphics referencexs - horizontal start positionxe - horizontal end positionys - vertical start positionye - vertical end positionfocus - highlighting flag
public static void antiAlias(java.awt.Graphics g,
GUIProp pr)
g - graphics referencepr - database propertiespublic static boolean fullAlias()
public static void drawCenter(java.awt.Graphics g,
java.lang.String text,
int w,
int y)
g - graphics referencetext - text to be paintedw - panel widthy - vertical position
public static void drawTooltip(java.awt.Graphics g,
java.lang.String tt,
int x,
int y,
int w,
int c)
g - graphics referencett - tooltip labelx - horizontal positiony - vertical positionw - widthc - color color depth
public static int width(java.awt.Graphics g,
java.lang.String s)
g - graphics references - string to be evaluated
public static int chopString(java.awt.Graphics g,
byte[] s,
int x,
int y,
int w,
int fs)
g - graphics references - textx - x coordinatey - y coordinatew - widthfs - font size
public static int width(java.awt.Graphics g,
byte[] s)
g - graphics references - string to be evaluated
public static int width(java.awt.Graphics g,
int[] cw,
int c)
g - graphics referencecw - array with character widthsc - character
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||