Package ghidra.framework.main
Class ZoomedImagePainter
java.lang.Object
ghidra.framework.main.ZoomedImagePainter
- All Implemented Interfaces:
GGlassPanePainter
A class that paints a given image with varying zoom levels. The zoom is set by clients
according to changes made by an
Animator. In essence,
this class paints the given image centered over the given target bounds at some
level of zoom. If the zoom or bounds of the parent container are never changed,
then the image painted by this class will not change.
NOTE: This class and it's getters/setters need to be public for reflective callbacks
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImagecreateIconImage(Icon icon) floatgetZoom()voidpaint(GGlassPane glassPane, Graphics g) voidsetMagnifyFactor(float factor) voidsetTargetBounds(Rectangle containerBounds) voidsetZoom(float zoom)
-
Constructor Details
-
ZoomedImagePainter
-
-
Method Details
-
paint
- Specified by:
paintin interfaceGGlassPanePainter
-
getZoom
public float getZoom() -
setZoom
public void setZoom(float zoom) -
getTargetBounds
-
setTargetBounds
-
setMagnifyFactor
public void setMagnifyFactor(float factor) -
createIconImage
-