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.
|
private org.eclipse.swt.graphics.Color |
colorBlack |
org.eclipse.swt.graphics.Color |
colorGrid |
org.eclipse.swt.graphics.Color |
colorGridStrong |
(package private) java.util.Map<java.lang.Integer,org.eclipse.swt.graphics.Color> |
colorsSwt |
private org.eclipse.swt.graphics.Device |
guiDevice |
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) |
(package private) org.eclipse.swt.graphics.Font |
getTextFontSwt(float fontSize,
char type,
char style) |
color, getColorValue, getTextFont, getTextFont, xPixelFrac, xPixelUnit, yPixelFrac, yPixelUnit
private final org.eclipse.swt.graphics.Device guiDevice
public final org.eclipse.swt.graphics.Font smallPromptFont
public final org.eclipse.swt.graphics.Font stdInputFont
public final org.eclipse.swt.graphics.Font stdButtonFont
java.util.Map<java.lang.Integer,org.eclipse.swt.graphics.Color> colorsSwt
private final org.eclipse.swt.graphics.Color colorBlack
public final org.eclipse.swt.graphics.Color colorGrid
public final org.eclipse.swt.graphics.Color colorGridStrong
public org.eclipse.swt.graphics.Color colorBackground
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 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 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 static GralColor createColorGui(org.eclipse.swt.graphics.Color color)
color
- The SWT-colorpublic org.eclipse.swt.graphics.Font getSwtFont(float fontSize)
public org.eclipse.swt.graphics.Font fontSwt(GralFont font)
forn
- The given Gral font in system-independent form.org.eclipse.swt.graphics.Font getTextFontSwt(float fontSize, char type, char style)