Package org.pentaho.di.core
Class SwingUniversalImage
- java.lang.Object
- 
- org.pentaho.di.core.SwingUniversalImage
 
- 
- Direct Known Subclasses:
- SwingUniversalImageBitmap,- SwingUniversalImageSvg
 
 public abstract class SwingUniversalImage extends Object Universal image storage for Swing processing. It contains SVG or bitmap image depends on file and settings.
- 
- 
Constructor SummaryConstructors Constructor Description SwingUniversalImage()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static BufferedImagecreateBitmap(int width, int height)Create bitmap with specified size and full colorspace.static BufferedImagecreateDoubleBitmap(int width, int height)Create bitmap with double of specified size and full colorspace.static Graphics2DcreateGraphics(BufferedImage area)Create Graphics2D for specified bitmap with rendering hints.voiddrawToGraphics(Graphics2D gc, int locationX, int locationY, int width, int height)voiddrawToGraphics(Graphics2D gc, int centerX, int centerY, int width, int height, double angleRadians)BufferedImagegetAsBitmapForSize(int width, int height)Get scaled image.BufferedImagegetAsBitmapForSize(int width, int height, double angleRadians)Draw rotated image on double canvas size.abstract booleanisBitmap()protected abstract voidrender(Graphics2D gc, int centerX, int centerY, int width, int height, double angleRadians)Render with scale, at specified position, with possible rotation.protected abstract voidrenderSimple(BufferedImage area)Just scale for area's size.
 
- 
- 
- 
Method Detail- 
isBitmappublic abstract boolean isBitmap() 
 - 
renderSimpleprotected abstract void renderSimple(BufferedImage area) Just scale for area's size.
 - 
renderprotected abstract void render(Graphics2D gc, int centerX, int centerY, int width, int height, double angleRadians) Render with scale, at specified position, with possible rotation.
 - 
getAsBitmapForSizepublic BufferedImage getAsBitmapForSize(int width, int height) Get scaled image.
 - 
getAsBitmapForSizepublic BufferedImage getAsBitmapForSize(int width, int height, double angleRadians) Draw rotated image on double canvas size. It required against lost corners on rotate.
 - 
drawToGraphicspublic void drawToGraphics(Graphics2D gc, int locationX, int locationY, int width, int height) 
 - 
drawToGraphicspublic void drawToGraphics(Graphics2D gc, int centerX, int centerY, int width, int height, double angleRadians) 
 - 
createBitmappublic static BufferedImage createBitmap(int width, int height) Create bitmap with specified size and full colorspace.
 - 
createDoubleBitmappublic static BufferedImage createDoubleBitmap(int width, int height) Create bitmap with double of specified size and full colorspace. Used for rotated images.
 - 
createGraphicspublic static Graphics2D createGraphics(BufferedImage area) Create Graphics2D for specified bitmap with rendering hints.
 
- 
 
-