Package com.biglybt.ui.swt.skin
Class SWTBGImagePainter
- java.lang.Object
-
- com.biglybt.ui.swt.skin.SWTBGImagePainter
-
- All Implemented Interfaces:
org.eclipse.swt.widgets.Listener
public class SWTBGImagePainter extends java.lang.Object implements org.eclipse.swt.widgets.Listener
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
bDirty
private org.eclipse.swt.widgets.Control
control
private static boolean
DEBUG
private int
fdHeight
private int
fdWidth
private ImageLoader
imageLoader
private org.eclipse.swt.graphics.Image
imgSrc
private org.eclipse.swt.graphics.Rectangle
imgSrcBounds
private java.lang.String
imgSrcID
private org.eclipse.swt.graphics.Image
imgSrcLeft
private org.eclipse.swt.graphics.Rectangle
imgSrcLeftBounds
private java.lang.String
imgSrcLeftID
private org.eclipse.swt.graphics.Image
imgSrcRight
private org.eclipse.swt.graphics.Rectangle
imgSrcRightBounds
private java.lang.String
imgSrcRightID
(package private) boolean
inEvent
(package private) org.eclipse.swt.graphics.Rectangle
lastBounds
private org.eclipse.swt.graphics.Image
lastImage
private org.eclipse.swt.graphics.Rectangle
lastResizeRect
(package private) org.eclipse.swt.graphics.Point
lastShellBGSize
private org.eclipse.swt.widgets.Shell
shell
private int
tileMode
private boolean
useBGImage
-
Constructor Summary
Constructors Modifier Constructor Description private
SWTBGImagePainter(org.eclipse.swt.widgets.Control control, int tileMode, boolean useGBImage)
SWTBGImagePainter(org.eclipse.swt.widgets.Control control, ImageLoader imageLoader, java.lang.String bgImageLeftId, java.lang.String bgImageRightId, java.lang.String bgImageId, int tileMode, boolean useBGImage)
SWTBGImagePainter(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Image bgImage, int tileMode)
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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildBackground(org.eclipse.swt.widgets.Control control)
void
dispose()
org.eclipse.swt.graphics.Image
getLatestImage()
void
handleEvent(org.eclipse.swt.widgets.Event event)
private boolean
imagesEqual(org.eclipse.swt.graphics.Image image1, org.eclipse.swt.graphics.Image image2)
static void
main(java.lang.String[] args)
void
setImage(ImageLoader imageLoader, java.lang.String idLeft, java.lang.String idRight, java.lang.String id)
void
setImage(org.eclipse.swt.graphics.Image bgImageLeft, org.eclipse.swt.graphics.Image bgImageRight, org.eclipse.swt.graphics.Image bgImage)
void
setImages(ImageLoader imageLoader, java.lang.String bgImageLeftId, java.lang.String bgImageRightId, java.lang.String bgImageId)
private void
setImages(org.eclipse.swt.graphics.Image bgImageLeft, org.eclipse.swt.graphics.Image bgImageRight, org.eclipse.swt.graphics.Image bgImage)
-
-
-
Field Detail
-
DEBUG
private static boolean DEBUG
-
lastResizeRect
private org.eclipse.swt.graphics.Rectangle lastResizeRect
-
shell
private final org.eclipse.swt.widgets.Shell shell
-
imgSrcID
private java.lang.String imgSrcID
-
imgSrcLeftID
private java.lang.String imgSrcLeftID
-
imgSrcRightID
private java.lang.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 Detail
-
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, java.lang.String bgImageLeftId, java.lang.String bgImageRightId, java.lang.String bgImageId, int tileMode, boolean useBGImage)
-
-
Method Detail
-
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, java.lang.String idLeft, java.lang.String idRight, java.lang.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, java.lang.String bgImageLeftId, java.lang.String bgImageRightId, java.lang.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(java.lang.String[] args)
-
handleEvent
public void handleEvent(org.eclipse.swt.widgets.Event event)
- Specified by:
handleEvent
in interfaceorg.eclipse.swt.widgets.Listener
-
-