|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.report.drawutil.internal.SWTDStyle
org.eclipse.tptp.platform.report.birt).
public class SWTDStyle
This class is made to transform any IDStyle applied on a IDItem, to a valid style suitable for SWT widget/drawings.
| Nested Class Summary | |
|---|---|
static class |
SWTDStyle.SColor
Deprecated. Because getColor() may return a system's default color, the user MUST not dispose. |
static class |
SWTDStyle.SFont
Deprecated. Because getFont() may return a system's default font, the user MUST not dispose. |
| Field Summary | |
|---|---|
protected org.eclipse.swt.graphics.Color |
back_
Deprecated. style's current back color |
protected boolean |
dispose_back_
Deprecated. |
protected boolean |
dispose_font_
Deprecated. |
protected boolean |
dispose_fore_
Deprecated. |
protected org.eclipse.swt.graphics.Font |
font_
Deprecated. style's current font |
protected int |
font_style_
Deprecated. |
protected org.eclipse.swt.graphics.Color |
fore_
Deprecated. style's current fore color |
| Constructor Summary | |
|---|---|
SWTDStyle(org.eclipse.swt.graphics.Device _dev)
Deprecated. Create default style. |
|
SWTDStyle(org.eclipse.swt.graphics.Device _dev,
float font_scale)
Deprecated. Create default style. |
|
SWTDStyle(org.eclipse.swt.graphics.Device dev,
IDItem _item)
Deprecated. Create a style from given IDItem, same result as calling styleOf(item). |
|
SWTDStyle(org.eclipse.swt.graphics.Device dev,
IDItem _item,
float font_scale)
Deprecated. Create a style from given IDItem, same result as calling styleOf(item). |
|
| Method Summary | |
|---|---|
void |
dispose()
Deprecated. Call this to dispose color and fonts allocated by this object. |
org.eclipse.swt.graphics.Color |
getBack()
Deprecated. |
static SWTDStyle.SColor |
getBackColor(org.eclipse.swt.graphics.Device _swt_device,
IDItem _item)
Deprecated. |
static SWTDStyle.SColor |
getColor(org.eclipse.swt.graphics.Device _swt_device,
IDColor _jscrib_color)
Deprecated. Equivalent to getColor( _swt_device, _jscrib_color, null ); |
static SWTDStyle.SColor |
getColor(org.eclipse.swt.graphics.Device _swt_device,
IDColor _jscrib_color,
SWTDStyle.SColor _scolor)
Deprecated. Convert a jscrib IDColor to a swt Color. |
static int |
getColorComponent(int jscrib_color_component)
Deprecated. Convert an jscrib component color range to a valid SWT Color range [0..255]. |
static org.eclipse.swt.graphics.Color |
getDefaultBack(org.eclipse.swt.graphics.Device dev_)
Deprecated. |
static org.eclipse.swt.graphics.Font |
getDefaultFont(org.eclipse.swt.graphics.Device dev_,
float font_scale)
Deprecated. |
static org.eclipse.swt.graphics.Color |
getDefaultFore(org.eclipse.swt.graphics.Device dev_)
Deprecated. |
org.eclipse.swt.graphics.Font |
getFont()
Deprecated. |
static SWTDStyle.SFont |
getFont(org.eclipse.swt.graphics.Device _swt_device,
IDFont _jscrib_font)
Deprecated. Equivalent to getFont( _swt_device, _jscrib_font, null ); |
static SWTDStyle.SFont |
getFont(org.eclipse.swt.graphics.Device _swt_device,
IDFont _jscrib_font,
float _font_scale,
SWTDStyle.SFont _sfont)
Deprecated. Convert a jscrib font to SWT one. |
static SWTDStyle.SFont |
getFont(org.eclipse.swt.graphics.Device _swt_device,
IDFont _jscrib_font,
SWTDStyle.SFont _sfont)
Deprecated. |
static SWTDStyle.SFont |
getFont(org.eclipse.swt.graphics.Device _swt_device,
IDItem _item)
Deprecated. |
static SWTDStyle.SFont |
getFont(org.eclipse.swt.graphics.Device _swt_device,
IDItem _item,
float font_scale)
Deprecated. |
static IDFont |
getFont(IDItem _item)
Deprecated. |
int |
getFontStyle()
Deprecated. |
org.eclipse.swt.graphics.Color |
getFore()
Deprecated. |
static SWTDStyle.SColor |
getForeColor(org.eclipse.swt.graphics.Device _swt_device,
IDItem _item)
Deprecated. |
void |
styleOf(org.eclipse.swt.graphics.Device _swt_device,
IDItem _item)
Deprecated. |
void |
styleOf(org.eclipse.swt.graphics.Device _swt_device,
IDItem _item,
float font_scale)
Deprecated. Dispose current style and change this SWTDStyle with style collected from given IDItem. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.eclipse.swt.graphics.Font font_
protected org.eclipse.swt.graphics.Color fore_
protected org.eclipse.swt.graphics.Color back_
protected boolean dispose_font_
protected boolean dispose_back_
protected boolean dispose_fore_
protected int font_style_
| Constructor Detail |
|---|
public SWTDStyle(org.eclipse.swt.graphics.Device _dev)
public SWTDStyle(org.eclipse.swt.graphics.Device _dev,
float font_scale)
public SWTDStyle(org.eclipse.swt.graphics.Device dev,
IDItem _item)
public SWTDStyle(org.eclipse.swt.graphics.Device dev,
IDItem _item,
float font_scale)
| Method Detail |
|---|
public void dispose()
dispose in interface IDisposablepublic org.eclipse.swt.graphics.Font getFont()
public org.eclipse.swt.graphics.Color getFore()
public org.eclipse.swt.graphics.Color getBack()
public int getFontStyle()
public static org.eclipse.swt.graphics.Color getDefaultFore(org.eclipse.swt.graphics.Device dev_)
public static org.eclipse.swt.graphics.Color getDefaultBack(org.eclipse.swt.graphics.Device dev_)
public static org.eclipse.swt.graphics.Font getDefaultFont(org.eclipse.swt.graphics.Device dev_,
float font_scale)
public void styleOf(org.eclipse.swt.graphics.Device _swt_device,
IDItem _item,
float font_scale)
public void styleOf(org.eclipse.swt.graphics.Device _swt_device,
IDItem _item)
public static SWTDStyle.SFont getFont(org.eclipse.swt.graphics.Device _swt_device,
IDFont _jscrib_font,
float _font_scale,
SWTDStyle.SFont _sfont)
_swt_device - the devie used to create font_jscrib_font - the font to convert_font_scale - zoom average for the font_sfont - reuse this object rather than allocate a new one.
public static SWTDStyle.SFont getFont(org.eclipse.swt.graphics.Device _swt_device,
IDFont _jscrib_font,
SWTDStyle.SFont _sfont)
public static final SWTDStyle.SFont getFont(org.eclipse.swt.graphics.Device _swt_device,
IDFont _jscrib_font)
public static int getColorComponent(int jscrib_color_component)
public static SWTDStyle.SColor getColor(org.eclipse.swt.graphics.Device _swt_device,
IDColor _jscrib_color,
SWTDStyle.SColor _scolor)
_swt_device - the device used to create color._jscrib_color - the color to convert._scolor - reuse this object rather than allocate a new SColor instance.
public static SWTDStyle.SColor getColor(org.eclipse.swt.graphics.Device _swt_device,
IDColor _jscrib_color)
public static SWTDStyle.SColor getForeColor(org.eclipse.swt.graphics.Device _swt_device,
IDItem _item)
public static SWTDStyle.SColor getBackColor(org.eclipse.swt.graphics.Device _swt_device,
IDItem _item)
public static SWTDStyle.SFont getFont(org.eclipse.swt.graphics.Device _swt_device,
IDItem _item,
float font_scale)
public static SWTDStyle.SFont getFont(org.eclipse.swt.graphics.Device _swt_device,
IDItem _item)
public static IDFont getFont(IDItem _item)
|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||