|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.kupzog.ktable.SWTX
public class SWTX
Provides some extensions for the KTable SWT custom table.
Field Summary | |
---|---|
static int |
ALIGN_HORIZONTAL_CENTER
|
static int |
ALIGN_HORIZONTAL_LEFT
|
static int |
ALIGN_HORIZONTAL_LEFT_CENTER
|
static int |
ALIGN_HORIZONTAL_LEFT_LEFT
|
static int |
ALIGN_HORIZONTAL_LEFT_RIGHT
|
static int |
ALIGN_HORIZONTAL_MASK
|
static int |
ALIGN_HORIZONTAL_NONE
|
static int |
ALIGN_HORIZONTAL_RIGHT
|
static int |
ALIGN_HORIZONTAL_RIGHT_CENTER
|
static int |
ALIGN_HORIZONTAL_RIGHT_LEFT
|
static int |
ALIGN_HORIZONTAL_RIGHT_RIGHT
|
static int |
ALIGN_VERTICAL_BOTTOM
|
static int |
ALIGN_VERTICAL_CENTER
|
static int |
ALIGN_VERTICAL_MASK
|
static int |
ALIGN_VERTICAL_TOP
|
static int |
AUTO_SCROLL
|
static java.lang.String |
COLOR_BGFOCUS
|
static java.lang.String |
COLOR_FIXEDHIGHLIGHT
|
static int |
EDIT_ON_KEY
Style bit that makes KTable activate the celleditor whenever a key is pressed. |
static int |
EVENT_SWTX_BASE
|
static int |
EVENT_TABLE_HEADER
|
static int |
EVENT_TABLE_HEADER_CLICK
|
static int |
EVENT_TABLE_HEADER_RESIZE
|
static int |
FILL_WITH_DUMMYCOL
Style bit for KTable that ensures the table always covers the whole space. |
static int |
FILL_WITH_LASTCOL
Style bit for KTable that ensures the table always covers the whole space. |
static int |
MARK_FOCUS_HEADERS
Style bit that makes KTable draw left and top header cells in a different style when the focused cell is in their row/column. |
static int |
WRAP
|
static int |
WRAP_MASK
|
Constructor Summary | |
---|---|
SWTX()
|
Method Summary | |
---|---|
static java.lang.String |
cropWrappedTextForHeight(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int height)
|
static void |
drawButtonDeepDown(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int textAlign,
org.eclipse.swt.graphics.Image image,
int imageAlign,
int x,
int y,
int w,
int h)
|
static void |
drawButtonDeepDown(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int textAlign,
org.eclipse.swt.graphics.Image image,
int imageAlign,
org.eclipse.swt.graphics.Rectangle r)
|
static void |
drawButtonDown(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int textAlign,
org.eclipse.swt.graphics.Image image,
int imageAlign,
int x,
int y,
int w,
int h)
|
static void |
drawButtonDown(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int textAlign,
org.eclipse.swt.graphics.Image image,
int imageAlign,
int x,
int y,
int w,
int h,
org.eclipse.swt.graphics.Color face)
|
static void |
drawButtonDown(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int textAlign,
org.eclipse.swt.graphics.Image image,
int imageAlign,
int x,
int y,
int w,
int h,
org.eclipse.swt.graphics.Color face,
org.eclipse.swt.graphics.Color shadowNormal,
int leftMargin,
int topMargin)
|
static void |
drawButtonDown(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int textAlign,
org.eclipse.swt.graphics.Image image,
int imageAlign,
org.eclipse.swt.graphics.Rectangle r)
|
static void |
drawButtonUp(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int textAlign,
org.eclipse.swt.graphics.Image image,
int imageAlign,
int x,
int y,
int w,
int h)
|
static void |
drawButtonUp(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int textAlign,
org.eclipse.swt.graphics.Image image,
int imageAlign,
int x,
int y,
int w,
int h,
org.eclipse.swt.graphics.Color face)
|
static void |
drawButtonUp(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int textAlign,
org.eclipse.swt.graphics.Image image,
int imageAlign,
int x,
int y,
int w,
int h,
org.eclipse.swt.graphics.Color face,
org.eclipse.swt.graphics.Color shadowHigh,
org.eclipse.swt.graphics.Color shadowNormal,
org.eclipse.swt.graphics.Color shadowDark,
int leftMargin,
int topMargin)
|
static void |
drawButtonUp(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int textAlign,
org.eclipse.swt.graphics.Image image,
int imageAlign,
org.eclipse.swt.graphics.Rectangle r)
|
static void |
drawButtonUp(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int textAlign,
org.eclipse.swt.graphics.Image image,
int imageAlign,
org.eclipse.swt.graphics.Rectangle r,
int leftMargin,
int topMargin)
|
static void |
drawFlatButtonUp(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int textAlign,
org.eclipse.swt.graphics.Image image,
int imageAlign,
int x,
int y,
int w,
int h,
org.eclipse.swt.graphics.Color face,
org.eclipse.swt.graphics.Color shadowLight,
org.eclipse.swt.graphics.Color shadowNormal,
int leftMargin,
int topMargin)
|
static void |
drawImageVerticalAlign(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Image image,
int imageAlign,
int x,
int y,
int h)
|
static void |
drawShadowImage(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Image image,
int x,
int y,
int alpha)
|
static void |
drawTextImage(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int textAlign,
org.eclipse.swt.graphics.Image image,
int imageAlign,
int x,
int y,
int w,
int h)
|
static void |
drawTextImage(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int textAlign,
org.eclipse.swt.graphics.Image image,
int imageAlign,
org.eclipse.swt.graphics.Rectangle r)
|
static int |
drawTextVerticalAlign(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int textAlign,
int x,
int y,
int w,
int h)
|
static void |
drawTransparentImage(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Image image,
int x,
int y)
|
static org.eclipse.swt.graphics.Point |
getCachedStringExtent(org.eclipse.swt.graphics.GC gc,
java.lang.String text)
|
static org.eclipse.swt.graphics.Color |
getColor(java.lang.String colorKey)
Returns a custom color. |
static org.eclipse.swt.graphics.Image |
loadImageResource(org.eclipse.swt.widgets.Display d,
java.lang.String name)
Loads an image from the root of this package. |
static java.lang.String |
wrapText(org.eclipse.swt.graphics.GC gc,
java.lang.String text,
int width)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int AUTO_SCROLL
public static final int FILL_WITH_LASTCOL
public static final int FILL_WITH_DUMMYCOL
public static final int EDIT_ON_KEY
public static final int MARK_FOCUS_HEADERS
public static final java.lang.String COLOR_BGFOCUS
public static final java.lang.String COLOR_FIXEDHIGHLIGHT
public static final int EVENT_SWTX_BASE
public static final int EVENT_TABLE_HEADER
public static final int EVENT_TABLE_HEADER_CLICK
public static final int EVENT_TABLE_HEADER_RESIZE
public static final int ALIGN_HORIZONTAL_MASK
public static final int ALIGN_HORIZONTAL_NONE
public static final int ALIGN_HORIZONTAL_LEFT
public static final int ALIGN_HORIZONTAL_LEFT_LEFT
public static final int ALIGN_HORIZONTAL_LEFT_RIGHT
public static final int ALIGN_HORIZONTAL_LEFT_CENTER
public static final int ALIGN_HORIZONTAL_RIGHT
public static final int ALIGN_HORIZONTAL_RIGHT_RIGHT
public static final int ALIGN_HORIZONTAL_RIGHT_LEFT
public static final int ALIGN_HORIZONTAL_RIGHT_CENTER
public static final int ALIGN_HORIZONTAL_CENTER
public static final int ALIGN_VERTICAL_MASK
public static final int ALIGN_VERTICAL_TOP
public static final int ALIGN_VERTICAL_BOTTOM
public static final int ALIGN_VERTICAL_CENTER
public static final int WRAP_MASK
public static final int WRAP
Constructor Detail |
---|
public SWTX()
Method Detail |
---|
public static org.eclipse.swt.graphics.Color getColor(java.lang.String colorKey)
colorKey
- The key defined in SWTX.
public static org.eclipse.swt.graphics.Point getCachedStringExtent(org.eclipse.swt.graphics.GC gc, java.lang.String text)
public static int drawTextVerticalAlign(org.eclipse.swt.graphics.GC gc, java.lang.String text, int textAlign, int x, int y, int w, int h)
public static void drawTransparentImage(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Image image, int x, int y)
public static void drawImageVerticalAlign(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Image image, int imageAlign, int x, int y, int h)
public static void drawTextImage(org.eclipse.swt.graphics.GC gc, java.lang.String text, int textAlign, org.eclipse.swt.graphics.Image image, int imageAlign, int x, int y, int w, int h)
public static void drawTextImage(org.eclipse.swt.graphics.GC gc, java.lang.String text, int textAlign, org.eclipse.swt.graphics.Image image, int imageAlign, org.eclipse.swt.graphics.Rectangle r)
public static java.lang.String cropWrappedTextForHeight(org.eclipse.swt.graphics.GC gc, java.lang.String text, int height)
public static java.lang.String wrapText(org.eclipse.swt.graphics.GC gc, java.lang.String text, int width)
public static void drawButtonUp(org.eclipse.swt.graphics.GC gc, java.lang.String text, int textAlign, org.eclipse.swt.graphics.Image image, int imageAlign, int x, int y, int w, int h, org.eclipse.swt.graphics.Color face, org.eclipse.swt.graphics.Color shadowHigh, org.eclipse.swt.graphics.Color shadowNormal, org.eclipse.swt.graphics.Color shadowDark, int leftMargin, int topMargin)
public static void drawButtonUp(org.eclipse.swt.graphics.GC gc, java.lang.String text, int textAlign, org.eclipse.swt.graphics.Image image, int imageAlign, int x, int y, int w, int h, org.eclipse.swt.graphics.Color face)
public static void drawButtonUp(org.eclipse.swt.graphics.GC gc, java.lang.String text, int textAlign, org.eclipse.swt.graphics.Image image, int imageAlign, org.eclipse.swt.graphics.Rectangle r, int leftMargin, int topMargin)
public static void drawButtonUp(org.eclipse.swt.graphics.GC gc, java.lang.String text, int textAlign, org.eclipse.swt.graphics.Image image, int imageAlign, int x, int y, int w, int h)
public static void drawButtonUp(org.eclipse.swt.graphics.GC gc, java.lang.String text, int textAlign, org.eclipse.swt.graphics.Image image, int imageAlign, org.eclipse.swt.graphics.Rectangle r)
public static void drawButtonDown(org.eclipse.swt.graphics.GC gc, java.lang.String text, int textAlign, org.eclipse.swt.graphics.Image image, int imageAlign, int x, int y, int w, int h, org.eclipse.swt.graphics.Color face, org.eclipse.swt.graphics.Color shadowNormal, int leftMargin, int topMargin)
public static void drawButtonDown(org.eclipse.swt.graphics.GC gc, java.lang.String text, int textAlign, org.eclipse.swt.graphics.Image image, int imageAlign, int x, int y, int w, int h)
public static void drawButtonDown(org.eclipse.swt.graphics.GC gc, java.lang.String text, int textAlign, org.eclipse.swt.graphics.Image image, int imageAlign, org.eclipse.swt.graphics.Rectangle r)
public static void drawButtonDown(org.eclipse.swt.graphics.GC gc, java.lang.String text, int textAlign, org.eclipse.swt.graphics.Image image, int imageAlign, int x, int y, int w, int h, org.eclipse.swt.graphics.Color face)
public static void drawButtonDeepDown(org.eclipse.swt.graphics.GC gc, java.lang.String text, int textAlign, org.eclipse.swt.graphics.Image image, int imageAlign, int x, int y, int w, int h)
public static void drawButtonDeepDown(org.eclipse.swt.graphics.GC gc, java.lang.String text, int textAlign, org.eclipse.swt.graphics.Image image, int imageAlign, org.eclipse.swt.graphics.Rectangle r)
public static void drawFlatButtonUp(org.eclipse.swt.graphics.GC gc, java.lang.String text, int textAlign, org.eclipse.swt.graphics.Image image, int imageAlign, int x, int y, int w, int h, org.eclipse.swt.graphics.Color face, org.eclipse.swt.graphics.Color shadowLight, org.eclipse.swt.graphics.Color shadowNormal, int leftMargin, int topMargin)
public static void drawShadowImage(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Image image, int x, int y, int alpha)
gc
- image
- x
- y
- alpha
- public static org.eclipse.swt.graphics.Image loadImageResource(org.eclipse.swt.widgets.Display d, java.lang.String name)
d
- The display to use when creating the image.name
- The string name inclusive path to the image.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |