public class SWTGC extends Object implements org.pentaho.di.core.gui.GCInterface
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
Constructor and Description |
---|
SWTGC(org.eclipse.swt.graphics.Device device,
org.pentaho.di.core.gui.Point area,
int iconsize) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
drawImage(BufferedImage image,
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 x,
int y,
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 |
drawImage(String location,
ClassLoader classLoader,
int x,
int y) |
void |
drawJobEntryIcon(int x,
int y,
org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy) |
void |
drawJobEntryIcon(int x,
int y,
org.pentaho.di.job.entry.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,
org.pentaho.di.trans.step.StepMeta stepMeta) |
void |
drawStepIcon(int x,
int y,
org.pentaho.di.trans.step.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() |
org.pentaho.di.core.gui.Point |
getArea() |
org.pentaho.di.core.gui.Point |
getDeviceBounds() |
Object |
getImage() |
org.pentaho.di.core.gui.Point |
getImageBounds(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image) |
static SwtUniversalImage |
getNativeImage(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image) |
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 |
setFont(org.pentaho.di.core.gui.PrimitiveGCInterface.EFont font) |
void |
setFont(String fontName,
int fontSize,
boolean fontBold,
boolean fontItalic) |
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 |
switchForegroundBackgroundColors() |
org.pentaho.di.core.gui.Point |
textExtent(String text) |
public SWTGC(org.eclipse.swt.graphics.Device device, org.pentaho.di.core.gui.Point area, int iconsize)
public void dispose()
dispose
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void drawLine(int x, int y, int x2, int y2)
drawLine
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void drawImage(String location, ClassLoader classLoader, int x, int y)
drawImage
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void drawImage(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image, int x, int y)
drawImage
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void drawImage(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image, int x, int y, float magnification)
drawImage
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void drawImage(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image, int x, int y, int width, int height, float magnification)
drawImage
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void drawImage(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image, int x, int y, float magnification, double angle)
drawImage
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public org.pentaho.di.core.gui.Point getImageBounds(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image)
getImageBounds
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public static final SwtUniversalImage getNativeImage(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image)
public void drawPoint(int x, int y)
drawPoint
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void drawPolygon(int[] polygon)
drawPolygon
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void drawPolyline(int[] polyline)
drawPolyline
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void drawRectangle(int x, int y, int width, int height)
drawRectangle
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void drawRoundRectangle(int x, int y, int width, int height, int circleWidth, int circleHeight)
drawRoundRectangle
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void drawText(String text, int x, int y)
drawText
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void drawText(String text, int x, int y, boolean transparent)
drawText
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void fillPolygon(int[] polygon)
fillPolygon
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void fillRectangle(int x, int y, int width, int height)
fillRectangle
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void fillGradientRectangle(int x, int y, int width, int height, boolean vertical)
fillGradientRectangle
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void fillRoundRectangle(int x, int y, int width, int height, int circleWidth, int circleHeight)
fillRoundRectangle
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public org.pentaho.di.core.gui.Point getDeviceBounds()
getDeviceBounds
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void setAlpha(int alpha)
setAlpha
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public int getAlpha()
getAlpha
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void setBackground(org.pentaho.di.core.gui.PrimitiveGCInterface.EColor color)
setBackground
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void setFont(org.pentaho.di.core.gui.PrimitiveGCInterface.EFont font)
setFont
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void setForeground(org.pentaho.di.core.gui.PrimitiveGCInterface.EColor color)
setForeground
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void setLineStyle(org.pentaho.di.core.gui.PrimitiveGCInterface.ELineStyle lineStyle)
setLineStyle
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void setLineWidth(int width)
setLineWidth
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void setTransform(float translationX, float translationY, int shadowsize, float magnification)
setTransform
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public org.pentaho.di.core.gui.Point textExtent(String text)
textExtent
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void drawStepIcon(int x, int y, org.pentaho.di.trans.step.StepMeta stepMeta, float magnification)
drawStepIcon
in interface org.pentaho.di.core.gui.GCInterface
public void drawJobEntryIcon(int x, int y, org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy, float magnification)
drawJobEntryIcon
in interface org.pentaho.di.core.gui.GCInterface
public void drawJobEntryIcon(int x, int y, org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy)
drawJobEntryIcon
in interface org.pentaho.di.core.gui.GCInterface
public void drawStepIcon(int x, int y, org.pentaho.di.trans.step.StepMeta stepMeta)
drawStepIcon
in interface org.pentaho.di.core.gui.GCInterface
public void setAntialias(boolean antiAlias)
setAntialias
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void setBackground(int r, int g, int b)
setBackground
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void setForeground(int r, int g, int b)
setForeground
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void setFont(String fontName, int fontSize, boolean fontBold, boolean fontItalic)
setFont
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public Object getImage()
getImage
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void switchForegroundBackgroundColors()
switchForegroundBackgroundColors
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public org.pentaho.di.core.gui.Point getArea()
getArea
in interface org.pentaho.di.core.gui.PrimitiveGCInterface
public void drawImage(BufferedImage image, int x, int y)
drawImage
in interface org.pentaho.di.core.gui.PrimitiveGCInterface