org.pentaho.di.ui.core.gui
Class GUIResource

java.lang.Object
  extended by org.pentaho.di.ui.core.gui.GUIResource

public class GUIResource
extends Object


Method Summary
static Point calculateControlPosition(Control control)
           
 void drawPentahoGradient(Display display, GC gc, Rectangle rect, boolean vertical)
           
 String fromClipboard()
           
 Color getColor(int red, int green, int blue)
           
 Color getColorBackground()
           
 Color getColorBlack()
           
 Color getColorBlue()
           
 Color getColorBlueCustomGrid()
           
 Color getColorCreamPentaho()
           
 Color getColorDarkGray()
           
 Color getColorDemoGray()
           
 Color getColorDirectory()
           
 Color getColorGraph()
           
 Color getColorGray()
           
 Color getColorGreen()
           
 Color getColorLightGray()
           
 Color getColorLightPentaho()
           
 Color getColorMagenta()
           
 Color getColorOrange()
           
 Color getColorPentaho()
           
 Color getColorRed()
           
 Color getColorSuccessGreen()
           
 Color getColorTab()
           
 Color getColorWhite()
           
 Color getColorYellow()
           
 Display getDisplay()
           
 Image getEditOptionButton()
           
 Font getFontBold()
           
 Font getFontFixed()
           
 Font getFontGraph()
           
 Font getFontLarge()
           
 Font getFontMedium()
           
 Font getFontMediumBold()
           
 Font getFontNote()
           
 Font getFontSmall()
           
 Font getFontTiny()
           
 Image getImage(String location)
          Loads an image from a location once.
 Image getImageAdd()
           
 Image getImageArrow()
           
 Image getImageBanner()
           
 Image getImageBol()
           
 Image getImageBusy()
           
 Image getImageCalendar()
           
 Image getImageChef()
           
 Image getImageClosePanel()
           
 Image getImageCluster()
           
 Image getImageCollapseAll()
           
 Image getImageColor()
           
 Image getImageColumnSmall()
           
 Image getImageConnection()
           
 Image getImageContextMenu()
           
 Image getImageContinueLog()
           
 Image getImageCopyHop()
           
 Image getImageCredits()
           
 Image getImageDelete()
           
 Image getImageDesignPanel()
           
 Image getImageDisabledHop()
           
 Image getImageDummy()
           
 Image getImageDummySmall()
           
 Image getImageEdit()
           
 Image getImageEditSmall()
           
 Image getImageEmpty16x16()
           
 Image getImageErrorHop()
           
 Image getImageExpandAll()
           
 Image getImageExploreDbSmall()
           
 Image getImageExploreSolutionSmall()
           
 Image getImageExport()
           
 Image getImageFalse()
           
 Image getImageFolderConnections()
           
 Image getImageHideInactive()
           
 Image getImageHideResults()
           
 Image getImageHop()
           
 Image getImageHopInput()
           
 Image getImageHopOutput()
           
 Image getImageHopTarget()
           
 Image getImageImport()
           
 Image getImageInfoHop()
           
 Image getImageJobGraph()
           
 Image getImageKettleLogo()
           
 Image getImageKeySmall()
           
 Image getImageLocked()
           
 Image getImageLogoSmall()
           
 Map<String,Image> getImageMap()
           
 Image getImageMaximizePanel()
           
 Image getImageMinimizePanel()
           
 Image getImageNew()
           
 Image getImageNoteSmall()
           
 Image getImageParallelHop()
           
 Image getImagePauseLog()
           
 Image getImagePentaho()
           
 Image getImageProcedure()
           
 Image getImageProfil()
           
 Image getImageRegexSmall()
           
 Image getImageSchema()
           
 Image getImageSearchSmall()
           
 Image getImageShowDeleted()
           
 Image getImageShowErrorLines()
           
 Image getImageShowGrid()
           
 Image getImageShowHistory()
           
 Image getImageShowInactive()
           
 Image getImageShowLog()
           
 Image getImageShowPerf()
           
 Image getImageShowResults()
           
 Map<String,Image> getImagesJobentries()
           
 Map<String,Image> getImagesJobentriesSmall()
           
 Image getImageSlave()
           
 Image getImageSpoon()
           
 Map<String,Image> getImagesSteps()
           
 Map<String,Image> getImagesStepsSmall()
           
 Image getImageStart()
           
 Image getImageStartSmall()
           
 Image getImageStepError()
           
 Image getImageSynonym()
           
 Image getImageTable()
           
 Image getImageTransGraph()
           
 Image getImageTrue()
           
 Image getImageUnconditionalHop()
           
 Image getImageUser()
           
 Image getImageVariable()
           
 Image getImageVersionBrowser()
           
 Image getImageView()
           
 Image getImageViewPanel()
           
 Image getImageWarning()
           
 Image getImageWizard()
           
static GUIResource getInstance()
           
 Clipboard getNewClipboard()
           
 Image getResetOptionButton()
           
 Object[] messageDialogWithToggle(Shell shell, String dialogTitle, Image image, String message, int dialogImageType, String[] buttonLabels, int defaultIndex, String toggleMessage, boolean toggleState)
          Generic popup with a toggle option
 void reload()
          Deprecated. because you can't guarantee that all the disposed colors and fonts are no longer used in the GUI.
 void setImageArrow(Image imageArrow)
           
 void setImageBanner(Image imageBanner)
           
 void setImageChef(Image imageChef)
           
 void setImageDummySmall(Image imageDummySmall)
           
 void setImageKettleLogo(Image imageKettleLogo)
           
 void setImageLogoSmall(Image imageLogoSmall)
           
 void setImagesJobentries(Hashtable<String,Image> imagesJobentries)
           
 void setImagesJobentriesSmall(Hashtable<String,Image> imagesJobentriesSmall)
           
 void setImageStartSmall(Image imageStartSmall)
           
 void toClipboard(String cliptext)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final GUIResource getInstance()

reload

public void reload()
Deprecated. because you can't guarantee that all the disposed colors and fonts are no longer used in the GUI.

reloads all colors, fonts and images.


getColorBackground

public Color getColorBackground()
Returns:
Returns the colorBackground.

getColorBlack

public Color getColorBlack()
Returns:
Returns the colorBlack.

getColorBlue

public Color getColorBlue()
Returns:
Returns the colorBlue.

getColorDarkGray

public Color getColorDarkGray()
Returns:
Returns the colorDarkGray.

getColorDemoGray

public Color getColorDemoGray()
Returns:
Returns the colorDemoGray.

getColorDirectory

public Color getColorDirectory()
Returns:
Returns the colorDirectory.

getColorGraph

public Color getColorGraph()
Returns:
Returns the colorGraph.

getColorGray

public Color getColorGray()
Returns:
Returns the colorGray.

getColorGreen

public Color getColorGreen()
Returns:
Returns the colorGreen.

getColorLightGray

public Color getColorLightGray()
Returns:
Returns the colorLightGray.

getColorMagenta

public Color getColorMagenta()
Returns:
Returns the colorMagenta.

getColorOrange

public Color getColorOrange()
Returns:
Returns the colorOrange.

getColorSuccessGreen

public Color getColorSuccessGreen()
Returns:
Returns the colorSuccessGreen.

getColorRed

public Color getColorRed()
Returns:
Returns the colorRed.

getColorBlueCustomGrid

public Color getColorBlueCustomGrid()
Returns:
Returns the colorBlueCustomGrid.

getColorTab

public Color getColorTab()
Returns:
Returns the colorTab.

getColorWhite

public Color getColorWhite()
Returns:
Returns the colorWhite.

getColorYellow

public Color getColorYellow()
Returns:
Returns the colorYellow.

getDisplay

public Display getDisplay()
Returns:
Returns the display.

getFontFixed

public Font getFontFixed()
Returns:
Returns the fontFixed.

getFontGraph

public Font getFontGraph()
Returns:
Returns the fontGraph.

getFontNote

public Font getFontNote()
Returns:
Returns the fontNote.

getImageBol

public Image getImageBol()
Returns:
Returns the imageBol.

getImageCalendar

public Image getImageCalendar()
Returns:
Returns the imageCalendar.

getImageCluster

public Image getImageCluster()
Returns:
Returns the imageCluster.

getImageSlave

public Image getImageSlave()
Returns:
Returns the imageSlave.

getImageConnection

public Image getImageConnection()
Returns:
Returns the imageConnection.

getImageAdd

public Image getImageAdd()

getImageTable

public Image getImageTable()
Returns:
Returns the imageTable.

getImageKeySmall

public Image getImageKeySmall()
Returns:
Returns the imageKeySmall.

getImageColumnSmall

public Image getImageColumnSmall()
Returns:
Returns the imageColumnSmall.

getImageSchema

public Image getImageSchema()
Returns:
Returns the imageSchema.

getImageSynonym

public Image getImageSynonym()
Returns:
Returns the imageSynonym.

getImageProcedure

public Image getImageProcedure()
Returns:
Returns the imageProcedure.

getImageExploreDbSmall

public Image getImageExploreDbSmall()
Returns:
Returns the imageExploreDbSmall.

getImageView

public Image getImageView()
Returns:
Returns the imageView.

getImageNoteSmall

public Image getImageNoteSmall()
Returns:
Returns the imageView.

getImageColor

public Image getImageColor()
Returns:
Returns the imageColor.

getImageCredits

public Image getImageCredits()
Returns:
Returns the imageCredits.

getImageDummy

public Image getImageDummy()
Returns:
Returns the imageDummy.

getImageHop

public Image getImageHop()
Returns:
Returns the imageHop.

getImageDisabledHop

public Image getImageDisabledHop()
Returns:
Returns the imageDisabledHop.

getImageSpoon

public Image getImageSpoon()
Returns:
Returns the imageSpoon.

getImagePentaho

public Image getImagePentaho()
Returns:
Returns the image Pentaho.

getImagesSteps

public Map<String,Image> getImagesSteps()
Returns:
Returns the imagesSteps.

getImagesStepsSmall

public Map<String,Image> getImagesStepsSmall()
Returns:
Returns the imagesStepsSmall.

getImageStart

public Image getImageStart()
Returns:
Returns the imageStart.

getImagesJobentries

public Map<String,Image> getImagesJobentries()
Returns:
Returns the imagesJobentries.

setImagesJobentries

public void setImagesJobentries(Hashtable<String,Image> imagesJobentries)
Parameters:
imagesJobentries - The imagesJobentries to set.

getImagesJobentriesSmall

public Map<String,Image> getImagesJobentriesSmall()
Returns:
Returns the imagesJobentriesSmall.

setImagesJobentriesSmall

public void setImagesJobentriesSmall(Hashtable<String,Image> imagesJobentriesSmall)
Parameters:
imagesJobentriesSmall - The imagesJobentriesSmall to set.

getImageChef

public Image getImageChef()
Returns:
Returns the imageChef.

setImageChef

public void setImageChef(Image imageChef)
Parameters:
imageChef - The imageChef to set.

getFontLarge

public Font getFontLarge()
Returns:
the fontLarge

getFontTiny

public Font getFontTiny()
Returns:
the tiny font

getFontSmall

public Font getFontSmall()
Returns:
the small font

getNewClipboard

public Clipboard getNewClipboard()
Returns:
Returns the clipboard.

toClipboard

public void toClipboard(String cliptext)

fromClipboard

public String fromClipboard()

getFontBold

public Font getFontBold()

getImageVariable

public Image getImageVariable()
Returns:
the imageVariable

getImageTransGraph

public Image getImageTransGraph()

getImageUser

public Image getImageUser()

getImageProfil

public Image getImageProfil()

getImageFolderConnections

public Image getImageFolderConnections()

getImageJobGraph

public Image getImageJobGraph()

getEditOptionButton

public Image getEditOptionButton()

getResetOptionButton

public Image getResetOptionButton()

getImageEditSmall

public Image getImageEditSmall()

getImageExploreSolutionSmall

public Image getImageExploreSolutionSmall()

getImageArrow

public Image getImageArrow()
Returns:
the imageArrow

setImageArrow

public void setImageArrow(Image imageArrow)
Parameters:
imageArrow - the imageArrow to set

getImageDummySmall

public Image getImageDummySmall()
Returns:
the imageDummySmall

setImageDummySmall

public void setImageDummySmall(Image imageDummySmall)
Parameters:
imageDummySmall - the imageDummySmall to set

getImageStartSmall

public Image getImageStartSmall()
Returns:
the imageStartSmall

setImageStartSmall

public void setImageStartSmall(Image imageStartSmall)
Parameters:
imageStartSmall - the imageStartSmall to set

getImageBanner

public Image getImageBanner()
Returns:
the imageBanner

getImageWizard

public Image getImageWizard()
Returns:
the imageWizard

setImageBanner

public void setImageBanner(Image imageBanner)
Parameters:
imageBanner - the imageBanner to set

getImageKettleLogo

public Image getImageKettleLogo()
Returns:
the imageKettleLogo

setImageKettleLogo

public void setImageKettleLogo(Image imageKettleLogo)
Parameters:
imageKettleLogo - the imageKettleLogo to set

getColorPentaho

public Color getColorPentaho()
Returns:
the colorPentaho

getImageLogoSmall

public Image getImageLogoSmall()
Returns:
the imageLogoSmall

setImageLogoSmall

public void setImageLogoSmall(Image imageLogoSmall)
Parameters:
imageLogoSmall - the imageLogoSmall to set

getColorLightPentaho

public Color getColorLightPentaho()
Returns:
the colorLightPentaho

getColorCreamPentaho

public Color getColorCreamPentaho()
Returns:
the colorCreamPentaho

drawPentahoGradient

public void drawPentahoGradient(Display display,
                                GC gc,
                                Rectangle rect,
                                boolean vertical)

messageDialogWithToggle

public Object[] messageDialogWithToggle(Shell shell,
                                        String dialogTitle,
                                        Image image,
                                        String message,
                                        int dialogImageType,
                                        String[] buttonLabels,
                                        int defaultIndex,
                                        String toggleMessage,
                                        boolean toggleState)
Generic popup with a toggle option

Parameters:
dialogTitle -
image -
message -
dialogImageType -
buttonLabels -
defaultIndex -
toggleMessage -
toggleState -
Returns:

calculateControlPosition

public static Point calculateControlPosition(Control control)

getFontMedium

public Font getFontMedium()
Returns:
the fontMedium

getFontMediumBold

public Font getFontMediumBold()
Returns:
the fontMediumBold

getImageShowLog

public Image getImageShowLog()
Returns:
the imageShowLog

getImageShowGrid

public Image getImageShowGrid()
Returns:
the imageShowGrid

getImageShowHistory

public Image getImageShowHistory()
Returns:
the imageShowHistory

getImageShowPerf

public Image getImageShowPerf()
Returns:
the imageShowPerf

getImageHideInactive

public Image getImageHideInactive()
Returns:
the "hide inactive" image

getImageShowInactive

public Image getImageShowInactive()
Returns:
the "show inactive" image

getImageClosePanel

public Image getImageClosePanel()
Returns:
the close panel image

getImageMaximizePanel

public Image getImageMaximizePanel()
Returns:
the maximize panel image

getImageMinimizePanel

public Image getImageMinimizePanel()
Returns:
the minimize panel image

getImageShowErrorLines

public Image getImageShowErrorLines()
Returns:
the show error lines image

getImageShowResults

public Image getImageShowResults()

getImageHideResults

public Image getImageHideResults()

getImageDesignPanel

public Image getImageDesignPanel()

getImageViewPanel

public Image getImageViewPanel()

getImageExpandAll

public Image getImageExpandAll()

getImageSearchSmall

public Image getImageSearchSmall()

getImageRegexSmall

public Image getImageRegexSmall()

getImageCollapseAll

public Image getImageCollapseAll()

getImageStepError

public Image getImageStepError()

getImageCopyHop

public Image getImageCopyHop()

getImageErrorHop

public Image getImageErrorHop()

getImageInfoHop

public Image getImageInfoHop()

getImageWarning

public Image getImageWarning()

getImageVersionBrowser

public Image getImageVersionBrowser()

getImageNew

public Image getImageNew()

getImageEdit

public Image getImageEdit()

getImageDelete

public Image getImageDelete()

getImageShowDeleted

public Image getImageShowDeleted()

getImagePauseLog

public Image getImagePauseLog()

getImageContinueLog

public Image getImageContinueLog()

getImageImport

public Image getImageImport()

getImageExport

public Image getImageExport()

getImageHopInput

public Image getImageHopInput()

getImageHopOutput

public Image getImageHopOutput()

getImageHopTarget

public Image getImageHopTarget()

getImageLocked

public Image getImageLocked()

getImage

public Image getImage(String location)
Loads an image from a location once. The second time, the image comes from a cache. Because of this, it's important to never dispose of the image you get from here. (easy!) The images are automatically disposed when the application ends.

Parameters:
location -
Returns:

getColor

public Color getColor(int red,
                      int green,
                      int blue)

getImageMap

public Map<String,Image> getImageMap()
Returns:
The image map used to cache images loaded from certain location using getImage(String location);

getImageTrue

public Image getImageTrue()
Returns:
the imageTrue

getImageFalse

public Image getImageFalse()
Returns:
the imageFalse

getImageContextMenu

public Image getImageContextMenu()
Returns:
the imageContextMenu

getImageParallelHop

public Image getImageParallelHop()

getImageUnconditionalHop

public Image getImageUnconditionalHop()

getImageBusy

public Image getImageBusy()

getImageEmpty16x16

public Image getImageEmpty16x16()