Package org.pentaho.di.core.gui
Class SwingGC
java.lang.Object
org.pentaho.di.core.gui.SwingGC
- All Implemented Interfaces:
GCInterface
,org.pentaho.di.core.gui.PrimitiveGCInterface
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.pentaho.di.core.gui.PrimitiveGCInterface
org.pentaho.di.core.gui.PrimitiveGCInterface.EColor, org.pentaho.di.core.gui.PrimitiveGCInterface.EFont, org.pentaho.di.core.gui.PrimitiveGCInterface.EImage, org.pentaho.di.core.gui.PrimitiveGCInterface.ELineStyle
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSwingGC
(Graphics2D gc, Rectangle2D rect, int iconsize, int xOffset, int yOffset) SwingGC
(ImageObserver observer, org.pentaho.di.core.gui.Point area, int iconsize, int xOffset, int yOffset) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
void
drawImage
(BufferedImage image, int x, int y) void
drawImage
(String location, ClassLoader classLoader, int x, int y) void
drawImage
(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image, int x, int y) void
drawImage
(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image, int locationX, int locationY, float magnification) void
drawImage
(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image, int x, int y, float magnification, double angle) void
drawImage
(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image, int x, int y, int width, int height, float magnification) void
drawJobEntryIcon
(int x, int y, JobEntryCopy jobEntryCopy) void
drawJobEntryIcon
(int x, int y, JobEntryCopy jobEntryCopy, float magnification) void
drawLine
(int x, int y, int x2, int y2) void
drawPoint
(int x, int y) void
drawPolygon
(int[] polygon) void
drawPolyline
(int[] polyline) void
drawRectangle
(int x, int y, int width, int height) void
drawRoundRectangle
(int x, int y, int width, int height, int circleWidth, int circleHeight) void
drawStepIcon
(int x, int y, StepMeta stepMeta) void
drawStepIcon
(int x, int y, StepMeta stepMeta, float magnification) void
void
void
fillGradientRectangle
(int x, int y, int width, int height, boolean vertical) void
fillPolygon
(int[] polygon) void
fillRectangle
(int x, int y, int width, int height) void
fillRoundRectangle
(int x, int y, int width, int height, int circleWidth, int circleHeight) int
getAlpha()
org.pentaho.di.core.gui.Point
getArea()
org.pentaho.di.core.gui.Point
getImage()
org.pentaho.di.core.gui.Point
getImageBounds
(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image) static final org.pentaho.di.core.SwingUniversalImage
getNativeImage
(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image) boolean
void
setAlpha
(int alpha) void
setAntialias
(boolean antiAlias) void
setBackground
(int r, int g, int b) void
setBackground
(org.pentaho.di.core.gui.PrimitiveGCInterface.EColor color) void
setDrawingPixelatedImages
(boolean drawingPixelatedImages) void
void
setFont
(org.pentaho.di.core.gui.PrimitiveGCInterface.EFont font) void
setForeground
(int r, int g, int b) void
setForeground
(org.pentaho.di.core.gui.PrimitiveGCInterface.EColor color) void
setLineStyle
(org.pentaho.di.core.gui.PrimitiveGCInterface.ELineStyle lineStyle) void
setLineWidth
(int width) void
setTransform
(float translationX, float translationY, int shadowsize, float magnification) void
org.pentaho.di.core.gui.Point
textExtent
(String text)
-
Field Details
-
background
-
black
-
red
-
yellow
-
orange
-
green
-
blue
-
magenta
-
gray
-
lightGray
-
darkGray
-
lightBlue
-
crystal
-
hopDefault
-
hopOK
-
-
Constructor Details
-
SwingGC
public SwingGC(ImageObserver observer, org.pentaho.di.core.gui.Point area, int iconsize, int xOffset, int yOffset) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
SwingGC
public SwingGC(Graphics2D gc, Rectangle2D rect, int iconsize, int xOffset, int yOffset) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
-
Method Details
-
dispose
public void dispose()- Specified by:
dispose
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
drawLine
public void drawLine(int x, int y, int x2, int y2) - Specified by:
drawLine
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
drawImage
- Specified by:
drawImage
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
drawImage
public void drawImage(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image, int x, int y) - Specified by:
drawImage
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
drawImage
public void drawImage(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image, int locationX, int locationY, float magnification) - Specified by:
drawImage
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
drawImage
public void drawImage(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image, int x, int y, int width, int height, float magnification) - Specified by:
drawImage
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
drawImage
public void drawImage(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image, int x, int y, float magnification, double angle) - Specified by:
drawImage
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
getImageBounds
public org.pentaho.di.core.gui.Point getImageBounds(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image) - Specified by:
getImageBounds
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
getNativeImage
public static final org.pentaho.di.core.SwingUniversalImage getNativeImage(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image) -
drawPoint
public void drawPoint(int x, int y) - Specified by:
drawPoint
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
drawPolygon
public void drawPolygon(int[] polygon) - Specified by:
drawPolygon
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
drawPolyline
public void drawPolyline(int[] polyline) - Specified by:
drawPolyline
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
drawRectangle
public void drawRectangle(int x, int y, int width, int height) - Specified by:
drawRectangle
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
drawRoundRectangle
public void drawRoundRectangle(int x, int y, int width, int height, int circleWidth, int circleHeight) - Specified by:
drawRoundRectangle
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
drawText
- Specified by:
drawText
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
drawText
- Specified by:
drawText
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
fillPolygon
public void fillPolygon(int[] polygon) - Specified by:
fillPolygon
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
fillRectangle
public void fillRectangle(int x, int y, int width, int height) - Specified by:
fillRectangle
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
fillGradientRectangle
public void fillGradientRectangle(int x, int y, int width, int height, boolean vertical) - Specified by:
fillGradientRectangle
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
fillRoundRectangle
public void fillRoundRectangle(int x, int y, int width, int height, int circleWidth, int circleHeight) - Specified by:
fillRoundRectangle
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
getDeviceBounds
public org.pentaho.di.core.gui.Point getDeviceBounds()- Specified by:
getDeviceBounds
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
setAlpha
public void setAlpha(int alpha) - Specified by:
setAlpha
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
getAlpha
public int getAlpha()- Specified by:
getAlpha
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
setBackground
public void setBackground(org.pentaho.di.core.gui.PrimitiveGCInterface.EColor color) - Specified by:
setBackground
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
setFont
public void setFont(org.pentaho.di.core.gui.PrimitiveGCInterface.EFont font) - Specified by:
setFont
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
setForeground
public void setForeground(org.pentaho.di.core.gui.PrimitiveGCInterface.EColor color) - Specified by:
setForeground
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
setLineStyle
public void setLineStyle(org.pentaho.di.core.gui.PrimitiveGCInterface.ELineStyle lineStyle) - Specified by:
setLineStyle
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
setLineWidth
public void setLineWidth(int width) - Specified by:
setLineWidth
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
setTransform
public void setTransform(float translationX, float translationY, int shadowsize, float magnification) - Specified by:
setTransform
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
getTransform
-
textExtent
- Specified by:
textExtent
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
drawStepIcon
- Specified by:
drawStepIcon
in interfaceGCInterface
-
drawJobEntryIcon
- Specified by:
drawJobEntryIcon
in interfaceGCInterface
-
drawJobEntryIcon
- Specified by:
drawJobEntryIcon
in interfaceGCInterface
-
drawStepIcon
- Specified by:
drawStepIcon
in interfaceGCInterface
-
setAntialias
public void setAntialias(boolean antiAlias) - Specified by:
setAntialias
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
setBackground
public void setBackground(int r, int g, int b) - Specified by:
setBackground
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
setForeground
public void setForeground(int r, int g, int b) - Specified by:
setForeground
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
setFont
- Specified by:
setFont
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
getImage
- Specified by:
getImage
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
switchForegroundBackgroundColors
public void switchForegroundBackgroundColors()- Specified by:
switchForegroundBackgroundColors
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
getArea
public org.pentaho.di.core.gui.Point getArea()- Specified by:
getArea
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-
isDrawingPixelatedImages
public boolean isDrawingPixelatedImages()- Returns:
- the drawingPixelatedImages
-
setDrawingPixelatedImages
public void setDrawingPixelatedImages(boolean drawingPixelatedImages) - Parameters:
drawingPixelatedImages
- the drawingPixelatedImages to set
-
drawImage
- Specified by:
drawImage
in interfaceorg.pentaho.di.core.gui.PrimitiveGCInterface
-