|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttabs.TabGuiUtility
public class TabGuiUtility
Instances of this class provide methods that can be used to help a tab drawing it's GUI
| Constructor Summary | |
|---|---|
TabGuiUtility(org.eclipse.swt.widgets.Composite composite)
Creates a new instance of the current class given the composite used for drawings |
|
| Method Summary | |
|---|---|
void |
createBottomComposite()
This method initializes bottomComposite |
java.util.ArrayList<ColorButton> |
createColorButtonsComposite(org.eclipse.swt.graphics.Color[] colorsList)
Create the color buttons composite |
void |
createUpperComposite(java.lang.String labelText)
Create the upper composite of a tab which contains the tab's title |
org.eclipse.swt.widgets.Scale |
getAlphaScale()
Returns the current opacity scale value |
java.awt.Color |
getCurrentColor()
Returns the current selected color in AWT format |
ColorButton |
getSelectedButton()
Returns the current selected colored button |
org.eclipse.swt.widgets.Scale |
getStrokeScale()
Returns the current size scale value |
void |
setSelectedColorButton(ColorButton cb)
Select a given colored button |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TabGuiUtility(org.eclipse.swt.widgets.Composite composite)
composite - | Method Detail |
|---|
public void createUpperComposite(java.lang.String labelText)
labelText - tab's titlepublic java.util.ArrayList<ColorButton> createColorButtonsComposite(org.eclipse.swt.graphics.Color[] colorsList)
colorsList - the list of colors to create the color buttons (one for each color)
ColorButton'spublic java.awt.Color getCurrentColor()
public void createBottomComposite()
public org.eclipse.swt.widgets.Scale getStrokeScale()
public org.eclipse.swt.widgets.Scale getAlphaScale()
public void setSelectedColorButton(ColorButton cb)
cb - the ColorButton to be selectedpublic ColorButton getSelectedButton()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||