org.pentaho.di.core.gui
Class SwingGC
java.lang.Object
org.pentaho.di.core.gui.SwingGC
- All Implemented Interfaces:
- GCInterface
public class SwingGC
- extends Object
- implements GCInterface
Method Summary |
void |
dispose()
|
void |
drawImage(GCInterface.EImage image,
int locationX,
int locationY)
|
void |
drawJobEntryIcon(int x,
int y,
JobEntryCopy jobEntryCopy)
|
void |
drawLine(int x,
int y,
int x2,
int y2)
|
void |
drawPixelatedImage(BufferedImage img,
int locationX,
int locationY)
|
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 |
drawText(String text,
int x,
int y)
|
void |
drawText(String text,
int x,
int y,
boolean transparent)
|
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()
|
Point |
getArea()
|
Point |
getDeviceBounds()
|
Object |
getImage()
|
Point |
getImageBounds(GCInterface.EImage image)
|
static BufferedImage |
getNativeImage(GCInterface.EImage image)
|
boolean |
isDrawingPixelatedImages()
|
void |
setAlpha(int alpha)
|
void |
setAntialias(boolean antiAlias)
|
void |
setBackground(GCInterface.EColor color)
|
void |
setBackground(int r,
int g,
int b)
|
void |
setDrawingPixelatedImages(boolean drawingPixelatedImages)
|
void |
setFont(GCInterface.EFont font)
|
void |
setFont(String fontName,
int fontSize,
boolean fontBold,
boolean fontItalic)
|
void |
setForeground(GCInterface.EColor color)
|
void |
setForeground(int r,
int g,
int b)
|
void |
setLineStyle(GCInterface.ELineStyle lineStyle)
|
void |
setLineWidth(int width)
|
void |
setTransform(float translationX,
float translationY,
int shadowsize,
float magnification)
|
void |
switchForegroundBackgroundColors()
|
Point |
textExtent(String text)
|
SwingGC
public SwingGC(ImageObserver observer,
Point area,
int iconsize,
int xOffset,
int yOffset)
throws KettleException
- Throws:
KettleException
SwingGC
public SwingGC(Graphics2D gc,
Rectangle2D rect,
int iconsize,
int xOffset,
int yOffset)
throws KettleException
- Throws:
KettleException
dispose
public void dispose()
- Specified by:
dispose
in interface GCInterface
drawLine
public void drawLine(int x,
int y,
int x2,
int y2)
- Specified by:
drawLine
in interface GCInterface
drawImage
public void drawImage(GCInterface.EImage image,
int locationX,
int locationY)
- Specified by:
drawImage
in interface GCInterface
drawPixelatedImage
public void drawPixelatedImage(BufferedImage img,
int locationX,
int locationY)
getImageBounds
public Point getImageBounds(GCInterface.EImage image)
- Specified by:
getImageBounds
in interface GCInterface
getNativeImage
public static final BufferedImage getNativeImage(GCInterface.EImage image)
drawPoint
public void drawPoint(int x,
int y)
- Specified by:
drawPoint
in interface GCInterface
drawPolygon
public void drawPolygon(int[] polygon)
- Specified by:
drawPolygon
in interface GCInterface
drawPolyline
public void drawPolyline(int[] polyline)
- Specified by:
drawPolyline
in interface GCInterface
drawRectangle
public void drawRectangle(int x,
int y,
int width,
int height)
- Specified by:
drawRectangle
in interface GCInterface
drawRoundRectangle
public void drawRoundRectangle(int x,
int y,
int width,
int height,
int circleWidth,
int circleHeight)
- Specified by:
drawRoundRectangle
in interface GCInterface
drawText
public void drawText(String text,
int x,
int y)
- Specified by:
drawText
in interface GCInterface
drawText
public void drawText(String text,
int x,
int y,
boolean transparent)
- Specified by:
drawText
in interface GCInterface
fillPolygon
public void fillPolygon(int[] polygon)
- Specified by:
fillPolygon
in interface GCInterface
fillRectangle
public void fillRectangle(int x,
int y,
int width,
int height)
- Specified by:
fillRectangle
in interface GCInterface
fillRoundRectangle
public void fillRoundRectangle(int x,
int y,
int width,
int height,
int circleWidth,
int circleHeight)
- Specified by:
fillRoundRectangle
in interface GCInterface
getDeviceBounds
public Point getDeviceBounds()
- Specified by:
getDeviceBounds
in interface GCInterface
setAlpha
public void setAlpha(int alpha)
- Specified by:
setAlpha
in interface GCInterface
getAlpha
public int getAlpha()
- Specified by:
getAlpha
in interface GCInterface
setBackground
public void setBackground(GCInterface.EColor color)
- Specified by:
setBackground
in interface GCInterface
setFont
public void setFont(GCInterface.EFont font)
- Specified by:
setFont
in interface GCInterface
setForeground
public void setForeground(GCInterface.EColor color)
- Specified by:
setForeground
in interface GCInterface
setLineStyle
public void setLineStyle(GCInterface.ELineStyle lineStyle)
- Specified by:
setLineStyle
in interface GCInterface
setLineWidth
public void setLineWidth(int width)
- Specified by:
setLineWidth
in interface GCInterface
setTransform
public void setTransform(float translationX,
float translationY,
int shadowsize,
float magnification)
- Specified by:
setTransform
in interface GCInterface
textExtent
public Point textExtent(String text)
- Specified by:
textExtent
in interface GCInterface
drawStepIcon
public void drawStepIcon(int x,
int y,
StepMeta stepMeta)
- Specified by:
drawStepIcon
in interface GCInterface
drawJobEntryIcon
public void drawJobEntryIcon(int x,
int y,
JobEntryCopy jobEntryCopy)
- Specified by:
drawJobEntryIcon
in interface GCInterface
setAntialias
public void setAntialias(boolean antiAlias)
- Specified by:
setAntialias
in interface GCInterface
setBackground
public void setBackground(int r,
int g,
int b)
- Specified by:
setBackground
in interface GCInterface
setForeground
public void setForeground(int r,
int g,
int b)
- Specified by:
setForeground
in interface GCInterface
setFont
public void setFont(String fontName,
int fontSize,
boolean fontBold,
boolean fontItalic)
- Specified by:
setFont
in interface GCInterface
getImage
public Object getImage()
- Specified by:
getImage
in interface GCInterface
switchForegroundBackgroundColors
public void switchForegroundBackgroundColors()
- Specified by:
switchForegroundBackgroundColors
in interface GCInterface
getArea
public Point getArea()
- Specified by:
getArea
in interface GCInterface
isDrawingPixelatedImages
public boolean isDrawingPixelatedImages()
- Returns:
- the drawingPixelatedImages
setDrawingPixelatedImages
public void setDrawingPixelatedImages(boolean drawingPixelatedImages)
- Parameters:
drawingPixelatedImages
- the drawingPixelatedImages to set