public class SwtProperties extends GralGridProperties
Modifier and Type | Field and Description |
---|---|
org.eclipse.swt.graphics.Color |
colorBackground
A common background color for all widgets which are paint at the background.
|
org.eclipse.swt.graphics.Color |
colorGrid |
org.eclipse.swt.graphics.Color |
colorGridStrong |
org.eclipse.swt.graphics.Font |
smallPromptFont |
org.eclipse.swt.graphics.Font |
stdButtonFont |
org.eclipse.swt.graphics.Font |
stdInputFont |
colorBackground_, fontMonospacedSansSerif, pixelFrac, size, smallPromptFontSize, stdButtonFontSize, stdInputFontSize, stdTextFontSize, textFont, version, xPixelUnit
Constructor and Description |
---|
SwtProperties(org.eclipse.swt.graphics.Device device,
char sizeC)
Initializes a properties object.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.Color |
color(java.lang.String sColorname)
Returns a color with given Gui-independent color name.
|
org.eclipse.swt.graphics.Color |
colorBackgroundSwt() |
org.eclipse.swt.graphics.Color |
colorSwt(GralColor color)
Returns a color with given Gui-independent color.
|
org.eclipse.swt.graphics.Color |
colorSwt(int colorValue)
Returns a color with given numeric color value.
|
static GralColor |
createColorGui(org.eclipse.swt.graphics.Color color)
Creates an instance of a GUI-system independent color with given SWT color.
|
org.eclipse.swt.graphics.Font |
fontSwt(GralFont font)
Returns a implementation font with given Gui-independent font.
|
org.eclipse.swt.graphics.Font |
getSwtFont(float fontSize) |
color, getColorValue, getTextFont, getTextFont, xPixelFrac, xPixelUnit, yPixelFrac, yPixelUnit
public org.eclipse.swt.graphics.Color colorBackground
public final org.eclipse.swt.graphics.Color colorGrid
public final org.eclipse.swt.graphics.Color colorGridStrong
public final org.eclipse.swt.graphics.Font smallPromptFont
public final org.eclipse.swt.graphics.Font stdButtonFont
public final org.eclipse.swt.graphics.Font stdInputFont
public SwtProperties(org.eclipse.swt.graphics.Device device, char sizeC)
size
- number between 1..5 to determine the size of the content (font size, pixel per cell)public org.eclipse.swt.graphics.Color color(java.lang.String sColorname)
sColorName
- One of the registered color names.public org.eclipse.swt.graphics.Color colorBackgroundSwt()
public org.eclipse.swt.graphics.Color colorSwt(GralColor color)
color
- The given color in system-indpending form.public org.eclipse.swt.graphics.Color colorSwt(int colorValue)
colorValue
- red, green and bluepublic static GralColor createColorGui(org.eclipse.swt.graphics.Color color)
color
- The SWT-colorpublic org.eclipse.swt.graphics.Font fontSwt(GralFont font)
forn
- The given Gral font in system-independent form.public org.eclipse.swt.graphics.Font getSwtFont(float fontSize)