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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final org.eclipse.swt.widgets.Control
private static boolean
private int
private int
private ImageLoader
private org.eclipse.swt.graphics.Image
private org.eclipse.swt.graphics.Rectangle
private String
private org.eclipse.swt.graphics.Image
private org.eclipse.swt.graphics.Rectangle
private String
private org.eclipse.swt.graphics.Image
private org.eclipse.swt.graphics.Rectangle
private String
(package private) boolean
(package private) org.eclipse.swt.graphics.Rectangle
private org.eclipse.swt.graphics.Image
private org.eclipse.swt.graphics.Rectangle
(package private) org.eclipse.swt.graphics.Point
private final org.eclipse.swt.widgets.Shell
private final int
private final boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SWTBGImagePainter
(org.eclipse.swt.widgets.Control control, int tileMode, boolean useGBImage) SWTBGImagePainter
(org.eclipse.swt.widgets.Control control, ImageLoader imageLoader, String bgImageLeftId, String bgImageRightId, 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
Modifier and TypeMethodDescriptionvoid
buildBackground
(org.eclipse.swt.widgets.Control control) void
dispose()
org.eclipse.swt.graphics.Image
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
void
setImage
(ImageLoader imageLoader, String idLeft, String idRight, 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, String bgImageLeftId, String bgImageRightId, String bgImageId) private void
setImages
(org.eclipse.swt.graphics.Image bgImageLeft, org.eclipse.swt.graphics.Image bgImageRight, org.eclipse.swt.graphics.Image bgImage)
-
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
-
imgSrcLeftID
-
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
-
-
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
-
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
-
handleEvent
public void handleEvent(org.eclipse.swt.widgets.Event event) - Specified by:
handleEvent
in interfaceorg.eclipse.swt.widgets.Listener
-