Class GuiResource


  • public class GuiResource
    extends Object
    • Constructor Detail

      • GuiResource

        protected GuiResource()
    • Method Detail

      • getInstance

        public static final GuiResource getInstance()
      • reload

        public void reload()
        reloads all colors, fonts and images.
      • loadAsResource

        public org.eclipse.swt.graphics.Image loadAsResource​(org.eclipse.swt.widgets.Display display,
                                                             String location,
                                                             int size)
      • loadAsResource

        public org.eclipse.swt.graphics.Image loadAsResource​(org.eclipse.swt.widgets.Display display,
                                                             String location,
                                                             int width,
                                                             int height)
      • getImageLabel

        public org.eclipse.swt.graphics.Image getImageLabel()
      • getImageDuplicate

        public org.eclipse.swt.graphics.Image getImageDuplicate()
      • getImageCopy

        public org.eclipse.swt.graphics.Image getImageCopy()
      • getImageFunction

        public org.eclipse.swt.graphics.Image getImageFunction()
      • getImageEmpty

        public org.eclipse.swt.graphics.Image getImageEmpty()
      • getColorBackground

        public org.eclipse.swt.graphics.Color getColorBackground()
        Returns:
        Returns the colorBackground.
      • getColorBlack

        public org.eclipse.swt.graphics.Color getColorBlack()
        Returns:
        Returns the colorBlack.
      • getColorBlue

        public org.eclipse.swt.graphics.Color getColorBlue()
        Returns:
        Returns the colorBlue.
      • getColorDarkGray

        public org.eclipse.swt.graphics.Color getColorDarkGray()
        Returns:
        Returns the colorDarkGray.
      • getColorVeryDarkGray

        public org.eclipse.swt.graphics.Color getColorVeryDarkGray()
        Returns:
        Returns veryDarkGray.
      • getColorDemoGray

        public org.eclipse.swt.graphics.Color getColorDemoGray()
        Returns:
        Returns the colorDemoGray.
      • getColorDirectory

        public org.eclipse.swt.graphics.Color getColorDirectory()
        Returns:
        Returns the colorDirectory.
      • getColorGraph

        public org.eclipse.swt.graphics.Color getColorGraph()
        Returns:
        Returns the colorGraph.
      • getColorGray

        public org.eclipse.swt.graphics.Color getColorGray()
        Returns:
        Returns the colorGray.
      • getColorGreen

        public org.eclipse.swt.graphics.Color getColorGreen()
        Returns:
        Returns the colorGreen.
      • getColorDarkGreen

        public org.eclipse.swt.graphics.Color getColorDarkGreen()
        Returns:
        Returns the color dark green.
      • getColorLightGray

        public org.eclipse.swt.graphics.Color getColorLightGray()
        Returns:
        Returns the colorLightGray.
      • getColorLightBlue

        public org.eclipse.swt.graphics.Color getColorLightBlue()
        Returns:
        Returns the colorLightBlue.
      • getColorMagenta

        public org.eclipse.swt.graphics.Color getColorMagenta()
        Returns:
        Returns the colorMagenta.
      • getColorPurpule

        public org.eclipse.swt.graphics.Color getColorPurpule()
      • getColorIndigo

        public org.eclipse.swt.graphics.Color getColorIndigo()
      • getColorOrange

        public org.eclipse.swt.graphics.Color getColorOrange()
        Returns:
        Returns the colorOrange.
      • getColorSuccessGreen

        public org.eclipse.swt.graphics.Color getColorSuccessGreen()
        Returns:
        Returns the colorSuccessGreen.
      • getColorRed

        public org.eclipse.swt.graphics.Color getColorRed()
        Returns:
        Returns the colorRed.
      • getColorDarkRed

        public org.eclipse.swt.graphics.Color getColorDarkRed()
        Returns:
        Returns the color dark red.
      • getColorBlueCustomGrid

        public org.eclipse.swt.graphics.Color getColorBlueCustomGrid()
        Returns:
        Returns the colorBlueCustomGrid.
      • getColorTab

        public org.eclipse.swt.graphics.Color getColorTab()
        Returns:
        Returns the colorTab.
      • getColorWhite

        public org.eclipse.swt.graphics.Color getColorWhite()
        Returns:
        Returns the colorWhite.
      • getColorYellow

        public org.eclipse.swt.graphics.Color getColorYellow()
        Returns:
        Returns the colorYellow.
      • getFontFixed

        public org.eclipse.swt.graphics.Font getFontFixed()
        Returns:
        Returns the fontFixed.
      • getFontGraph

        public org.eclipse.swt.graphics.Font getFontGraph()
        Returns:
        Returns the fontGraph.
      • getFontDefault

        public org.eclipse.swt.graphics.Font getFontDefault()
        Returns:
        Returns the default system font size adjusted for the global zoom factor.
      • getFontNote

        public org.eclipse.swt.graphics.Font getFontNote()
        Returns:
        Returns the fontNote.
      • getImageBol

        public org.eclipse.swt.graphics.Image getImageBol()
        Returns:
        Returns the imageBol.
      • getImageCalendar

        public org.eclipse.swt.graphics.Image getImageCalendar()
        Returns:
        Returns the imageCalendar.
      • getImageServer

        public org.eclipse.swt.graphics.Image getImageServer()
        Returns:
        Returns the imageServer.
      • getImageDatabase

        public org.eclipse.swt.graphics.Image getImageDatabase()
        Returns:
        Returns the database image.
      • getImageData

        public org.eclipse.swt.graphics.Image getImageData()
        Returns:
        Returns the data image.
      • getImageAdd

        public org.eclipse.swt.graphics.Image getImageAdd()
      • getImageTable

        public org.eclipse.swt.graphics.Image getImageTable()
        Returns:
        Returns the table image.
      • getImagePreview

        public org.eclipse.swt.graphics.Image getImagePreview()
        Returns:
        Returns the preview image.
      • getImageSchema

        public org.eclipse.swt.graphics.Image getImageSchema()
        Returns:
        Returns the imageSchema.
      • getImageSynonym

        public org.eclipse.swt.graphics.Image getImageSynonym()
        Returns:
        Returns the imageSynonym.
      • getImageNote

        public org.eclipse.swt.graphics.Image getImageNote()
        Returns:
        Returns the imageView.
      • getImageColor

        public org.eclipse.swt.graphics.Image getImageColor()
        Returns:
        Returns the imageColor.
      • getImageMissing

        public org.eclipse.swt.graphics.Image getImageMissing()
        Returns:
        Returns the imageMissing.
      • getImageHop

        public org.eclipse.swt.graphics.Image getImageHop()
        Returns:
        Returns the imageHop.
      • getImageDisabledHop

        public org.eclipse.swt.graphics.Image getImageDisabledHop()
        Returns:
        Returns the imageDisabledHop.
      • getImage

        public org.eclipse.swt.graphics.Image getImage​(IValueMeta valueMeta)
        Return the image of the IValueMeta from plugin
        Returns:
        image
      • getFontLarge

        public org.eclipse.swt.graphics.Font getFontLarge()
        Returns:
        the fontLarge
      • getFontTiny

        public org.eclipse.swt.graphics.Font getFontTiny()
        Returns:
        the tiny font
      • getFontSmall

        public org.eclipse.swt.graphics.Font getFontSmall()
        Returns:
        the small font
      • getNewClipboard

        public org.eclipse.swt.dnd.Clipboard getNewClipboard()
        Returns:
        Returns the clipboard.
      • toClipboard

        public void toClipboard​(String cliptext)
      • fromClipboard

        public String fromClipboard()
      • getFontBold

        public org.eclipse.swt.graphics.Font getFontBold()
      • getImageVariable

        public org.eclipse.swt.graphics.Image getImageVariable()
        Returns:
        the imageVariable
      • getImageVariableMini

        public org.eclipse.swt.graphics.Image getImageVariableMini()
      • getImagePipeline

        public org.eclipse.swt.graphics.Image getImagePipeline()
      • getImagePlugin

        public org.eclipse.swt.graphics.Image getImagePlugin()
      • getImageUser

        public org.eclipse.swt.graphics.Image getImageUser()
      • getImageFolderConnections

        public org.eclipse.swt.graphics.Image getImageFolderConnections()
      • getImagePartitionSchema

        public org.eclipse.swt.graphics.Image getImagePartitionSchema()
      • getImageWorkflow

        public org.eclipse.swt.graphics.Image getImageWorkflow()
      • getEditOptionButton

        public org.eclipse.swt.graphics.Image getEditOptionButton()
      • getImageResetOption

        public org.eclipse.swt.graphics.Image getImageResetOption()
      • getImageArrow

        public org.eclipse.swt.graphics.Image getImageArrow()
        Returns:
        the imageArrow
      • getImageFolder

        public org.eclipse.swt.graphics.Image getImageFolder()
        Returns:
        the imageArrow
      • getImageFile

        public org.eclipse.swt.graphics.Image getImageFile()
        Returns:
        the imageFile
      • getColorHop

        public org.eclipse.swt.graphics.Color getColorHop()
        Returns:
        the color
      • getImageHopUi

        public org.eclipse.swt.graphics.Image getImageHopUi()
        Returns:
        the imageLogoSmall
      • getImageHopUiTaskbar

        public org.eclipse.swt.graphics.Image getImageHopUiTaskbar()
        Returns:
        the image size for Taskbar
      • getColorLight

        public org.eclipse.swt.graphics.Color getColorLight()
        Returns:
        the colorLight
      • getColorCream

        public org.eclipse.swt.graphics.Color getColorCream()
        Returns:
        the colorCream
      • getColorCrystalText

        public org.eclipse.swt.graphics.Color getColorCrystalText()
        Returns:
        the default color of text in the Crystal theme
      • getColorHopDefault

        public org.eclipse.swt.graphics.Color getColorHopDefault()
        Returns:
        the default color the hop lines for default/unconditional
      • getColorHopTrue

        public org.eclipse.swt.graphics.Color getColorHopTrue()
        Returns:
        the default color the hop lines for the "OK" condition
      • getColorDeprecated

        public org.eclipse.swt.graphics.Color getColorDeprecated()
        Returns:
        the default color the deprecated condition
      • drawGradient

        public void drawGradient​(org.eclipse.swt.widgets.Display display,
                                 org.eclipse.swt.graphics.GC gc,
                                 org.eclipse.swt.graphics.Rectangle rect,
                                 boolean vertical)
      • calculateControlPosition

        public static org.eclipse.swt.graphics.Point calculateControlPosition​(org.eclipse.swt.widgets.Control control)
      • getFontMedium

        public org.eclipse.swt.graphics.Font getFontMedium()
        Returns:
        the fontMedium
      • getFontMediumBold

        public org.eclipse.swt.graphics.Font getFontMediumBold()
        Returns:
        the fontMediumBold
      • getImageShowLog

        public org.eclipse.swt.graphics.Image getImageShowLog()
        Returns:
        the imageShowLog
      • getImageShowGrid

        public org.eclipse.swt.graphics.Image getImageShowGrid()
        Returns:
        the imageShowGrid
      • getImageShowHistory

        public org.eclipse.swt.graphics.Image getImageShowHistory()
        Returns:
        the imageShowHistory
      • getImageShowPerf

        public org.eclipse.swt.graphics.Image getImageShowPerf()
        Returns:
        the imageShowPerf
      • getImageHide

        public org.eclipse.swt.graphics.Image getImageHide()
        Returns:
        the "hide" image
      • getImageShow

        public org.eclipse.swt.graphics.Image getImageShow()
        Returns:
        the "show" image
      • getImageShowSelected

        public org.eclipse.swt.graphics.Image getImageShowSelected()
        Returns:
        the "show selected" image
      • getImageShowAll

        public org.eclipse.swt.graphics.Image getImageShowAll()
        Returns:
        the "show all" image
      • getImageClosePanel

        public org.eclipse.swt.graphics.Image getImageClosePanel()
        Returns:
        the close panel image
      • getImageMaximizePanel

        public org.eclipse.swt.graphics.Image getImageMaximizePanel()
        Returns:
        the maximize panel image
      • getImageMinimizePanel

        public org.eclipse.swt.graphics.Image getImageMinimizePanel()
        Returns:
        the minimize panel image
      • getImageShowErrorLines

        public org.eclipse.swt.graphics.Image getImageShowErrorLines()
        Returns:
        the show error lines image
      • getImageShowResults

        public org.eclipse.swt.graphics.Image getImageShowResults()
      • getImageHideResults

        public org.eclipse.swt.graphics.Image getImageHideResults()
      • getImageClearText

        public org.eclipse.swt.graphics.Image getImageClearText()
      • getImageExpandAll

        public org.eclipse.swt.graphics.Image getImageExpandAll()
      • getImageRegex

        public org.eclipse.swt.graphics.Image getImageRegex()
      • getImageCollapseAll

        public org.eclipse.swt.graphics.Image getImageCollapseAll()
      • getImageCopyHop

        public org.eclipse.swt.graphics.Image getImageCopyHop()
      • getSwtImageCopyRowsDisabled

        public SwtUniversalImage getSwtImageCopyRowsDisabled()
      • getImageError

        public org.eclipse.swt.graphics.Image getImageError()
      • getImageInfo

        public org.eclipse.swt.graphics.Image getImageInfo()
      • getImageWarning

        public org.eclipse.swt.graphics.Image getImageWarning()
      • getImageDeprecated

        public org.eclipse.swt.graphics.Image getImageDeprecated()
      • getImageNew

        public org.eclipse.swt.graphics.Image getImageNew()
      • getImageEdit

        public org.eclipse.swt.graphics.Image getImageEdit()
      • getImageDelete

        public org.eclipse.swt.graphics.Image getImageDelete()
      • getImageCancel

        public org.eclipse.swt.graphics.Image getImageCancel()
      • getImageCut

        public org.eclipse.swt.graphics.Image getImageCut()
      • getImageInput

        public org.eclipse.swt.graphics.Image getImageInput()
      • getImageOutput

        public org.eclipse.swt.graphics.Image getImageOutput()
      • getImageTarget

        public org.eclipse.swt.graphics.Image getImageTarget()
      • getImageLocked

        public org.eclipse.swt.graphics.Image getImageLocked()
      • getImage

        public org.eclipse.swt.graphics.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 - the location of the image resource to load
        Returns:
        the loaded image
      • getImage

        public org.eclipse.swt.graphics.Image getImage​(String location,
                                                       int width,
                                                       int height)
        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 - the location of the image resource to load
        width - The height to resize the image to
        height - The width to resize the image to
        Returns:
        the loaded image
      • getImage

        public org.eclipse.swt.graphics.Image getImage​(String location,
                                                       ClassLoader classLoader,
                                                       int width,
                                                       int height)
        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 - the location of the image resource to load
        classLoader - the ClassLoader to use to locate resources
        width - The height to resize the image to
        height - The width to resize the image to
        Returns:
        the loaded image
      • getImage

        public org.eclipse.swt.graphics.Image getImage​(String location,
                                                       ClassLoader classLoader,
                                                       int width,
                                                       int height,
                                                       boolean disabled)
        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 - the location of the image resource to load
        classLoader - the ClassLoader to use to locate resources
        width - The height to resize the image to
        height - The width to resize the image to
        disabled - in case you want to gray-scaled 'disabled' version of the image
        Returns:
        the loaded image
      • getColor

        public org.eclipse.swt.graphics.Color getColor​(int red,
                                                       int green,
                                                       int blue)
      • getImageMap

        public Map<String,​org.eclipse.swt.graphics.Image> getImageMap()
        Returns:
        The image map used to cache images loaded from certain location using getImage(String location);
      • getImageTrue

        public org.eclipse.swt.graphics.Image getImageTrue()
        Returns:
        the imageTrue
      • getImageFalse

        public org.eclipse.swt.graphics.Image getImageFalse()
        Returns:
        the imageFalse
      • getImageFailure

        public org.eclipse.swt.graphics.Image getImageFailure()
      • getImageSuccess

        public org.eclipse.swt.graphics.Image getImageSuccess()
      • getImageContextMenu

        public org.eclipse.swt.graphics.Image getImageContextMenu()
        Returns:
        the imageContextMenu
      • getImageParallelHop

        public org.eclipse.swt.graphics.Image getImageParallelHop()
      • getSwtImageParallelDisabled

        public SwtUniversalImage getSwtImageParallelDisabled()
      • getImageUnconditionalHop

        public org.eclipse.swt.graphics.Image getImageUnconditionalHop()
      • getSwtImageUnconditionalDisabled

        public SwtUniversalImage getSwtImageUnconditionalDisabled()
      • getImageBusy

        public org.eclipse.swt.graphics.Image getImageBusy()
      • getImageInject

        public org.eclipse.swt.graphics.Image getImageInject()
      • getImageBalance

        public org.eclipse.swt.graphics.Image getImageBalance()
      • getImageCheckpoint

        public org.eclipse.swt.graphics.Image getImageCheckpoint()
      • getImageHelpWeb

        public org.eclipse.swt.graphics.Image getImageHelpWeb()
      • getImageDown

        public org.eclipse.swt.graphics.Image getImageDown()
      • getImageUp

        public org.eclipse.swt.graphics.Image getImageUp()
      • getImageLocation

        public org.eclipse.swt.graphics.Image getImageLocation()
      • getImageAddAll

        public org.eclipse.swt.graphics.Image getImageAddAll()
      • getImageAddSingle

        public org.eclipse.swt.graphics.Image getImageAddSingle()
      • getImageRemoveAll

        public org.eclipse.swt.graphics.Image getImageRemoveAll()
      • getImageRemoveSingle

        public org.eclipse.swt.graphics.Image getImageRemoveSingle()
      • getImageNavigateBack

        public org.eclipse.swt.graphics.Image getImageNavigateBack()
      • getImageNavigateForward

        public org.eclipse.swt.graphics.Image getImageNavigateForward()
      • getImageNavigateUp

        public org.eclipse.swt.graphics.Image getImageNavigateUp()
      • getImageRefresh

        public org.eclipse.swt.graphics.Image getImageRefresh()
      • getImageHome

        public org.eclipse.swt.graphics.Image getImageHome()
      • getImagePrint

        public org.eclipse.swt.graphics.Image getImagePrint()
      • getImageClose

        public org.eclipse.swt.graphics.Image getImageClose()
        Gets imageToolbarClose
        Returns:
        value of imageToolbarClose
      • getImagePause

        public org.eclipse.swt.graphics.Image getImagePause()
        Gets imageToolbarPause
        Returns:
        value of imageToolbarPause
      • getImageRun

        public org.eclipse.swt.graphics.Image getImageRun()
        Gets image run 16x16
        Returns:
        image
      • getImageStop

        public org.eclipse.swt.graphics.Image getImageStop()
        Gets image stop 16x16
        Returns:
        image
      • getImageView

        public org.eclipse.swt.graphics.Image getImageView()
        Gets imageToolbarView
        Returns:
        value of imageToolbarView
      • getImageSearch

        public org.eclipse.swt.graphics.Image getImageSearch()
        Gets image search 16x16
        Returns:
        image