|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.application.swt.ResourceManager
public class ResourceManager
Class, which manages SWT resources so they can be properly released.
| Field Summary | |
|---|---|
static int |
BIG_BUTTON_FONT_HEIGHT
Height of font used for big size buttons. |
static int |
BIG_COMBO_FONT_HEIGHT
Height of font used for big size combo boxes. |
static int |
BIG_LIST_FONT_HEIGHT
Height of font used for big size list boxes. |
static int |
BIG_TAB_FOLDER_FONT_HEIGHT
Height of font used for big size list boxes. |
static int |
BIG_TABLE_FONT_HEIGHT
Height of font used for big size tables. |
static int |
BIG_TEXT_FONT_HEIGHT
Height of font used for big size texts. |
protected org.eclipse.swt.graphics.Font |
m_bigButtonFont
Font used for big size buttons. |
protected org.eclipse.swt.graphics.Font |
m_bigComboFont
Font used for big size combos. |
protected org.eclipse.swt.graphics.Font |
m_bigLabelFont
Font used for big size labels. |
protected org.eclipse.swt.graphics.Font |
m_bigListFont
Font used for big size lists. |
protected org.eclipse.swt.graphics.Font |
m_bigTabFolderFont
Font used for big size tabs in tab folder. |
protected org.eclipse.swt.graphics.Font |
m_bigTableFont
Font used for big size tables. |
protected org.eclipse.swt.graphics.Font |
m_bigTextFont
Font used for big size texts. |
protected org.eclipse.swt.graphics.Image |
m_blankImage
Image to user for "hidden" cursor. |
protected org.eclipse.swt.graphics.Cursor |
m_defaultCursor
Cursor displayed by default. |
protected org.eclipse.swt.graphics.Font |
m_middleButtonFont
Font used for middle size buttons. |
protected org.eclipse.swt.graphics.Font |
m_middleLabelFont
Font used for middle size labels. |
protected org.eclipse.swt.graphics.Cursor |
m_waitCursor
Cursor displayed when user waits. |
static int |
MIDDLE_BUTTON_FONT_HEIGHT
Height of font used for middle size buttons. |
static int |
MIDDLE_TEXT_FONT_HEIGHT
Height of font used for middle size texts. |
| Constructor Summary | |
|---|---|
ResourceManager()
|
|
| Method Summary | |
|---|---|
static ResourceManager |
getInstance()
Get the default instance. |
void |
releaseResources()
Release all allocated resources. |
void |
setBigButtonFont(org.eclipse.swt.widgets.Button bigButton)
Set big font for specified button. |
void |
setBigComboTextFont(org.eclipse.swt.widgets.Combo bigCombo)
Set big font for specified combo. |
void |
setBigLabelFont(org.eclipse.swt.widgets.Label bigLabel)
Set big font for specified label. |
void |
setBigListTextFont(org.eclipse.swt.widgets.List bigList)
Set big font for specified list. |
void |
setBigTabFolderFont(org.eclipse.swt.widgets.TabFolder bigTabFolder)
Set big font for specified tab folder |
void |
setBigTableFont(org.eclipse.swt.widgets.Table bigTable)
Set big font for specified table. |
void |
setBigTextFont(org.eclipse.swt.widgets.Text bigText)
Set big font for specified text. |
void |
setDefaultCursor(org.eclipse.swt.widgets.Control ctlControl)
Set the default cursor for given control |
void |
setDefaultCursor(org.eclipse.swt.widgets.Shell window)
Set the default cursor for given shell |
void |
setHiddenDefaultCursor(org.eclipse.swt.widgets.Display defaultDisplay)
Set the default cursor to be hidden to make it easier for people on two touchscreen system to do not find for the cursor. |
static void |
setInstance(ResourceManager defaultInstance)
Set default instance. |
void |
setMiddleButtonFont(org.eclipse.swt.widgets.Button middleButton)
Set middle font for specified button. |
void |
setMiddleLabelFont(org.eclipse.swt.widgets.Label middleLabel)
Set middle font for specified label. |
void |
setTableTextFont(org.eclipse.swt.widgets.Text bigText)
Set table like font for specified text. |
void |
setWaitCursor(org.eclipse.swt.widgets.Control ctlControl)
Set the wait cursor for given control |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MIDDLE_BUTTON_FONT_HEIGHT
public static final int BIG_BUTTON_FONT_HEIGHT
public static final int MIDDLE_TEXT_FONT_HEIGHT
public static final int BIG_TEXT_FONT_HEIGHT
public static final int BIG_TABLE_FONT_HEIGHT
public static final int BIG_COMBO_FONT_HEIGHT
public static final int BIG_LIST_FONT_HEIGHT
public static final int BIG_TAB_FOLDER_FONT_HEIGHT
protected org.eclipse.swt.graphics.Font m_middleButtonFont
protected org.eclipse.swt.graphics.Font m_bigButtonFont
protected org.eclipse.swt.graphics.Font m_bigTextFont
protected org.eclipse.swt.graphics.Font m_bigTableFont
protected org.eclipse.swt.graphics.Font m_bigComboFont
protected org.eclipse.swt.graphics.Font m_bigListFont
protected org.eclipse.swt.graphics.Font m_middleLabelFont
protected org.eclipse.swt.graphics.Font m_bigLabelFont
protected org.eclipse.swt.graphics.Font m_bigTabFolderFont
protected org.eclipse.swt.graphics.Cursor m_waitCursor
protected org.eclipse.swt.graphics.Cursor m_defaultCursor
protected org.eclipse.swt.graphics.Image m_blankImage
| Constructor Detail |
|---|
public ResourceManager()
| Method Detail |
|---|
public static ResourceManager getInstance()
public static void setInstance(ResourceManager defaultInstance)
defaultInstance - - new default controller instancegetInstance()public void releaseResources()
public void setMiddleButtonFont(org.eclipse.swt.widgets.Button middleButton)
middleButton - - button to set font forpublic void setBigTabFolderFont(org.eclipse.swt.widgets.TabFolder bigTabFolder)
bigTabFolder - - tab folder to set font forpublic void setBigButtonFont(org.eclipse.swt.widgets.Button bigButton)
bigButton - - button to set font forpublic void setBigTextFont(org.eclipse.swt.widgets.Text bigText)
bigText - - text to set font forpublic void setTableTextFont(org.eclipse.swt.widgets.Text bigText)
bigText - - text to set font forpublic void setBigComboTextFont(org.eclipse.swt.widgets.Combo bigCombo)
bigCombo - - combo to set font forpublic void setBigListTextFont(org.eclipse.swt.widgets.List bigList)
bigList - - combo to set font forpublic void setBigTableFont(org.eclipse.swt.widgets.Table bigTable)
bigTable - - table to set font forpublic void setMiddleLabelFont(org.eclipse.swt.widgets.Label middleLabel)
middleLabel - - label to set font forpublic void setBigLabelFont(org.eclipse.swt.widgets.Label bigLabel)
bigLabel - - label to set font forpublic void setWaitCursor(org.eclipse.swt.widgets.Control ctlControl)
ctlControl - - control to set the cursor forpublic void setDefaultCursor(org.eclipse.swt.widgets.Control ctlControl)
ctlControl - - control to set the cursor forpublic void setDefaultCursor(org.eclipse.swt.widgets.Shell window)
window - - shell to set the cursor forpublic void setHiddenDefaultCursor(org.eclipse.swt.widgets.Display defaultDisplay)
defaultDisplay - - display which is used
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||