Class SWTBGImagePainter

java.lang.Object
com.biglybt.ui.swt.skin.SWTBGImagePainter
All Implemented Interfaces:
org.eclipse.swt.widgets.Listener

public class SWTBGImagePainter extends Object implements org.eclipse.swt.widgets.Listener
  • Field Details

    • DEBUG

      private static boolean DEBUG
    • lastResizeRect

      private org.eclipse.swt.graphics.Rectangle lastResizeRect
    • shell

      private final org.eclipse.swt.widgets.Shell shell
    • imgSrcID

      private String imgSrcID
    • imgSrcLeftID

      private String imgSrcLeftID
    • imgSrcRightID

      private String imgSrcRightID
    • imgSrc

      private org.eclipse.swt.graphics.Image imgSrc
    • imgSrcLeft

      private org.eclipse.swt.graphics.Image imgSrcLeft
    • imgSrcRight

      private org.eclipse.swt.graphics.Image imgSrcRight
    • imgSrcBounds

      private org.eclipse.swt.graphics.Rectangle imgSrcBounds
    • imgSrcLeftBounds

      private org.eclipse.swt.graphics.Rectangle imgSrcLeftBounds
    • imgSrcRightBounds

      private org.eclipse.swt.graphics.Rectangle imgSrcRightBounds
    • lastImage

      private org.eclipse.swt.graphics.Image lastImage
    • inEvent

      boolean inEvent
    • lastBounds

      org.eclipse.swt.graphics.Rectangle lastBounds
    • lastShellBGSize

      org.eclipse.swt.graphics.Point lastShellBGSize
    • tileMode

      private final int tileMode
    • control

      private final org.eclipse.swt.widgets.Control control
    • useBGImage

      private final boolean useBGImage
    • bDirty

      private boolean bDirty
    • fdWidth

      private int fdWidth
    • fdHeight

      private int fdHeight
    • imageLoader

      private ImageLoader imageLoader
  • Constructor Details

    • SWTBGImagePainter

      private SWTBGImagePainter(org.eclipse.swt.widgets.Control control, int tileMode, boolean useGBImage)
    • SWTBGImagePainter

      public SWTBGImagePainter(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Image bgImage, int tileMode)
    • SWTBGImagePainter

      public SWTBGImagePainter(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Image bgImageLeft, org.eclipse.swt.graphics.Image bgImageRight, org.eclipse.swt.graphics.Image bgImage, int tileMode)
    • SWTBGImagePainter

      public SWTBGImagePainter(org.eclipse.swt.widgets.Control control, ImageLoader imageLoader, String bgImageLeftId, String bgImageRightId, String bgImageId, int tileMode, boolean useBGImage)
  • Method Details

    • getLatestImage

      public org.eclipse.swt.graphics.Image getLatestImage()
    • dispose

      public void dispose()
    • setImage

      public void setImage(org.eclipse.swt.graphics.Image bgImageLeft, org.eclipse.swt.graphics.Image bgImageRight, org.eclipse.swt.graphics.Image bgImage)
      Parameters:
      bgImageLeft -
      bgImageRight -
      bgImage -
    • setImage

      public void setImage(ImageLoader imageLoader, String idLeft, String idRight, String id)
    • imagesEqual

      private boolean imagesEqual(org.eclipse.swt.graphics.Image image1, org.eclipse.swt.graphics.Image image2)
    • setImages

      private void setImages(org.eclipse.swt.graphics.Image bgImageLeft, org.eclipse.swt.graphics.Image bgImageRight, org.eclipse.swt.graphics.Image bgImage)
    • setImages

      public void setImages(ImageLoader imageLoader, String bgImageLeftId, String bgImageRightId, String bgImageId)
      Parameters:
      bgImageLeftId -
      bgImageRightId -
      bgImageId -
      Since:
      4.0.0.5
    • buildBackground

      public void buildBackground(org.eclipse.swt.widgets.Control control)
    • main

      public static void main(String[] args)
    • handleEvent

      public void handleEvent(org.eclipse.swt.widgets.Event event)
      Specified by:
      handleEvent in interface org.eclipse.swt.widgets.Listener