public class SwingGC extends Object implements GCInterface
PrimitiveGCInterface.EColor, PrimitiveGCInterface.EFont, PrimitiveGCInterface.EImage, PrimitiveGCInterface.ELineStyle
Modifier and Type | Field and Description |
---|---|
protected Color |
background |
protected Color |
black |
protected Color |
blue |
protected Color |
crystal |
protected Color |
darkGray |
protected Color |
gray |
protected Color |
green |
protected Color |
hopDefault |
protected Color |
hopOK |
protected Color |
lightBlue |
protected Color |
lightGray |
protected Color |
magenta |
protected Color |
orange |
protected Color |
red |
protected Color |
yellow |
Constructor and Description |
---|
SwingGC(Graphics2D gc,
Rectangle2D rect,
int iconsize,
int xOffset,
int yOffset) |
SwingGC(ImageObserver observer,
Point area,
int iconsize,
int xOffset,
int yOffset) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
drawImage(BufferedImage image,
int x,
int y) |
void |
drawImage(PrimitiveGCInterface.EImage image,
int x,
int y) |
void |
drawImage(PrimitiveGCInterface.EImage image,
int locationX,
int locationY,
float magnification) |
void |
drawImage(PrimitiveGCInterface.EImage image,
int x,
int y,
float magnification,
double angle) |
void |
drawImage(PrimitiveGCInterface.EImage image,
int x,
int y,
int width,
int height,
float magnification) |
void |
drawImage(String location,
ClassLoader classLoader,
int x,
int y) |
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 |
drawText(String text,
int x,
int y) |
void |
drawText(String text,
int x,
int y,
boolean transparent) |
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() |
Point |
getArea() |
Point |
getDeviceBounds() |
Object |
getImage() |
Point |
getImageBounds(PrimitiveGCInterface.EImage image) |
static SwingUniversalImage |
getNativeImage(PrimitiveGCInterface.EImage image) |
AffineTransform |
getTransform() |
boolean |
isDrawingPixelatedImages() |
void |
setAlpha(int alpha) |
void |
setAntialias(boolean antiAlias) |
void |
setBackground(int r,
int g,
int b) |
void |
setBackground(PrimitiveGCInterface.EColor color) |
void |
setDrawingPixelatedImages(boolean drawingPixelatedImages) |
void |
setFont(PrimitiveGCInterface.EFont font) |
void |
setFont(String fontName,
int fontSize,
boolean fontBold,
boolean fontItalic) |
void |
setForeground(int r,
int g,
int b) |
void |
setForeground(PrimitiveGCInterface.EColor color) |
void |
setLineStyle(PrimitiveGCInterface.ELineStyle lineStyle) |
void |
setLineWidth(int width) |
void |
setTransform(float translationX,
float translationY,
int shadowsize,
float magnification) |
void |
switchForegroundBackgroundColors() |
Point |
textExtent(String text) |
protected Color background
protected Color black
protected Color red
protected Color yellow
protected Color orange
protected Color green
protected Color blue
protected Color magenta
protected Color gray
protected Color lightGray
protected Color darkGray
protected Color lightBlue
protected Color crystal
protected Color hopDefault
protected Color hopOK
public SwingGC(ImageObserver observer, Point area, int iconsize, int xOffset, int yOffset) throws KettleException
KettleException
public SwingGC(Graphics2D gc, Rectangle2D rect, int iconsize, int xOffset, int yOffset) throws KettleException
KettleException
public void dispose()
dispose
in interface PrimitiveGCInterface
public void drawLine(int x, int y, int x2, int y2)
drawLine
in interface PrimitiveGCInterface
public void drawImage(String location, ClassLoader classLoader, int x, int y)
drawImage
in interface PrimitiveGCInterface
public void drawImage(PrimitiveGCInterface.EImage image, int x, int y)
drawImage
in interface PrimitiveGCInterface
public void drawImage(PrimitiveGCInterface.EImage image, int locationX, int locationY, float magnification)
drawImage
in interface PrimitiveGCInterface
public void drawImage(PrimitiveGCInterface.EImage image, int x, int y, int width, int height, float magnification)
drawImage
in interface PrimitiveGCInterface
public void drawImage(PrimitiveGCInterface.EImage image, int x, int y, float magnification, double angle)
drawImage
in interface PrimitiveGCInterface
public Point getImageBounds(PrimitiveGCInterface.EImage image)
getImageBounds
in interface PrimitiveGCInterface
public static final SwingUniversalImage getNativeImage(PrimitiveGCInterface.EImage image)
public void drawPoint(int x, int y)
drawPoint
in interface PrimitiveGCInterface
public void drawPolygon(int[] polygon)
drawPolygon
in interface PrimitiveGCInterface
public void drawPolyline(int[] polyline)
drawPolyline
in interface PrimitiveGCInterface
public void drawRectangle(int x, int y, int width, int height)
drawRectangle
in interface PrimitiveGCInterface
public void drawRoundRectangle(int x, int y, int width, int height, int circleWidth, int circleHeight)
drawRoundRectangle
in interface PrimitiveGCInterface
public void drawText(String text, int x, int y)
drawText
in interface PrimitiveGCInterface
public void drawText(String text, int x, int y, boolean transparent)
drawText
in interface PrimitiveGCInterface
public void fillPolygon(int[] polygon)
fillPolygon
in interface PrimitiveGCInterface
public void fillRectangle(int x, int y, int width, int height)
fillRectangle
in interface PrimitiveGCInterface
public void fillGradientRectangle(int x, int y, int width, int height, boolean vertical)
fillGradientRectangle
in interface PrimitiveGCInterface
public void fillRoundRectangle(int x, int y, int width, int height, int circleWidth, int circleHeight)
fillRoundRectangle
in interface PrimitiveGCInterface
public Point getDeviceBounds()
getDeviceBounds
in interface PrimitiveGCInterface
public void setAlpha(int alpha)
setAlpha
in interface PrimitiveGCInterface
public int getAlpha()
getAlpha
in interface PrimitiveGCInterface
public void setBackground(PrimitiveGCInterface.EColor color)
setBackground
in interface PrimitiveGCInterface
public void setFont(PrimitiveGCInterface.EFont font)
setFont
in interface PrimitiveGCInterface
public void setForeground(PrimitiveGCInterface.EColor color)
setForeground
in interface PrimitiveGCInterface
public void setLineStyle(PrimitiveGCInterface.ELineStyle lineStyle)
setLineStyle
in interface PrimitiveGCInterface
public void setLineWidth(int width)
setLineWidth
in interface PrimitiveGCInterface
public void setTransform(float translationX, float translationY, int shadowsize, float magnification)
setTransform
in interface PrimitiveGCInterface
public AffineTransform getTransform()
public Point textExtent(String text)
textExtent
in interface PrimitiveGCInterface
public void drawStepIcon(int x, int y, StepMeta stepMeta, float magnification)
drawStepIcon
in interface GCInterface
public void drawJobEntryIcon(int x, int y, JobEntryCopy jobEntryCopy, float magnification)
drawJobEntryIcon
in interface GCInterface
public void drawJobEntryIcon(int x, int y, JobEntryCopy jobEntryCopy)
drawJobEntryIcon
in interface GCInterface
public void drawStepIcon(int x, int y, StepMeta stepMeta)
drawStepIcon
in interface GCInterface
public void setAntialias(boolean antiAlias)
setAntialias
in interface PrimitiveGCInterface
public void setBackground(int r, int g, int b)
setBackground
in interface PrimitiveGCInterface
public void setForeground(int r, int g, int b)
setForeground
in interface PrimitiveGCInterface
public void setFont(String fontName, int fontSize, boolean fontBold, boolean fontItalic)
setFont
in interface PrimitiveGCInterface
public Object getImage()
getImage
in interface PrimitiveGCInterface
public void switchForegroundBackgroundColors()
switchForegroundBackgroundColors
in interface PrimitiveGCInterface
public Point getArea()
getArea
in interface PrimitiveGCInterface
public boolean isDrawingPixelatedImages()
public void setDrawingPixelatedImages(boolean drawingPixelatedImages)
drawingPixelatedImages
- the drawingPixelatedImages to setpublic void drawImage(BufferedImage image, int x, int y)
drawImage
in interface PrimitiveGCInterface
Copyright © 2018 Hitachi Vantara. All rights reserved.