|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.ui.core.ConstUI
public class ConstUI
This class is used to define a number of default values for various settings throughout Kettle. It also contains a number of static final methods to make your life easier.
Field Summary | |
---|---|
static int |
COLOR_BACKGROUND_BLUE
The default blue-component of the background color |
static int |
COLOR_BACKGROUND_GREEN
The default green-component of the background color |
static int |
COLOR_BACKGROUND_RED
The default red-component of the background color |
static int |
COLOR_GRAPH_BLUE
The default blue-component of the graph background color |
static int |
COLOR_GRAPH_GREEN
The default green-component of the graph background color |
static int |
COLOR_GRAPH_RED
The default red-component of the graph background color |
static int |
COLOR_TAB_BLUE
The default blue-component of the tab selected color |
static int |
COLOR_TAB_GREEN
The default green-component of the tab selected color |
static int |
COLOR_TAB_RED
The default red-component of the tab selected color |
static String |
FONT_FIXED_NAME
Default font name for the fixed width font |
static int |
FONT_FIXED_SIZE
Default font size for the fixed width font |
static int |
FONT_FIXED_TYPE
Default font type for the fixed width font |
static int |
GRID_SIZE
Default grid size to which the graphical views snap. |
static int |
ICON_SIZE
Default icon size |
static int |
INTERVAL_MS_TRANS_CANVAS_REFRESH
the default canvas refresh interval for running transformations |
static int |
LINE_WIDTH
Default line width for arrows & around icons |
static int |
NOTE_MIN_SIZE
The minimal size of a note on a graphical view (width & height) |
static int |
TOOLTIP_OFFSET
Offset between pointer and tooltip position. |
Constructor Summary | |
---|---|
ConstUI()
|
Method Summary | |
---|---|
static void |
displayMenu(Menu menu,
Control control)
|
static void |
displayMenu(org.pentaho.ui.xul.containers.XulMenupopup xulMenuPopup,
Control control)
|
static TreeItem |
findTreeItem(TreeItem parent,
String name)
|
static TreeItem |
findTreeItem(TreeItem parent,
String parentName,
String name)
Finds a TreeItem with a certain label (name) in a (part of a) tree. |
static void |
flipExpanded(TreeItem ti)
Flips the TreeItem from expanded to not expanded or vice-versa. |
static int |
getTreeLevel(TreeItem ti)
Determine the level of where the TreeItem is position in a tree. |
static String |
getTreePath(TreeItem ti,
int from)
Return the tree path seperated by Const.FILE_SEPARATOR, starting from a certain depth in the tree. |
static String[] |
getTreeStrings(TreeItem ti)
Get an array of strings containing the path from the given TreeItem to the parent. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FONT_FIXED_NAME
public static final int FONT_FIXED_SIZE
public static final int FONT_FIXED_TYPE
public static final int ICON_SIZE
public static final int LINE_WIDTH
public static final int GRID_SIZE
public static final int NOTE_MIN_SIZE
public static final int TOOLTIP_OFFSET
public static final int COLOR_BACKGROUND_RED
public static final int COLOR_BACKGROUND_GREEN
public static final int COLOR_BACKGROUND_BLUE
public static final int COLOR_GRAPH_RED
public static final int COLOR_GRAPH_GREEN
public static final int COLOR_GRAPH_BLUE
public static final int COLOR_TAB_RED
public static final int COLOR_TAB_GREEN
public static final int COLOR_TAB_BLUE
public static final int INTERVAL_MS_TRANS_CANVAS_REFRESH
Constructor Detail |
---|
public ConstUI()
Method Detail |
---|
public static final int getTreeLevel(TreeItem ti)
ti
- The TreeItem
public static final String[] getTreeStrings(TreeItem ti)
ti
- The TreeItem to look at
public static final String getTreePath(TreeItem ti, int from)
ti
- The TreeItem to get the path forfrom
- The depth to start at, use 0 to get the complete tree.
public static final void flipExpanded(TreeItem ti)
ti
- The TreeItem to flip.public static final TreeItem findTreeItem(TreeItem parent, String name)
public static final TreeItem findTreeItem(TreeItem parent, String parentName, String name)
parent
- The TreeItem where we start looking.parentName
- The name of the parent to match as well (null=not used)name
- The name or item label to look for.
public static void displayMenu(org.pentaho.ui.xul.containers.XulMenupopup xulMenuPopup, Control control)
public static void displayMenu(Menu menu, Control control)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |