public class SWTDirectGC extends Object implements GCInterface
PrimitiveGCInterface.EColor, PrimitiveGCInterface.EFont, PrimitiveGCInterface.EImage, PrimitiveGCInterface.ELineStyle| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.swt.graphics.Color |
background |
protected org.eclipse.swt.graphics.Color |
black |
protected org.eclipse.swt.graphics.Color |
blue |
protected org.eclipse.swt.graphics.Color |
crystal |
protected org.eclipse.swt.graphics.Color |
darkGray |
protected org.eclipse.swt.graphics.Color |
gray |
protected org.eclipse.swt.graphics.Color |
green |
protected org.eclipse.swt.graphics.Color |
hopDefault |
protected org.eclipse.swt.graphics.Color |
hopOK |
protected org.eclipse.swt.graphics.Color |
lightBlue |
protected org.eclipse.swt.graphics.Color |
lightGray |
protected org.eclipse.swt.graphics.Color |
magenta |
protected org.eclipse.swt.graphics.Color |
orange |
protected org.eclipse.swt.graphics.Color |
red |
protected org.eclipse.swt.graphics.Color |
white |
protected org.eclipse.swt.graphics.Color |
yellow |
| Constructor and Description |
|---|
SWTDirectGC(org.eclipse.swt.graphics.GC gc,
Point area,
int iconsize) |
| 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 x,
int y,
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 SwtUniversalImage |
getNativeImage(PrimitiveGCInterface.EImage image) |
void |
setAlpha(int alpha) |
void |
setAntialias(boolean antiAlias) |
void |
setBackground(int r,
int g,
int b) |
void |
setBackground(PrimitiveGCInterface.EColor color) |
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 org.eclipse.swt.graphics.Color background
protected org.eclipse.swt.graphics.Color black
protected org.eclipse.swt.graphics.Color white
protected org.eclipse.swt.graphics.Color red
protected org.eclipse.swt.graphics.Color yellow
protected org.eclipse.swt.graphics.Color orange
protected org.eclipse.swt.graphics.Color green
protected org.eclipse.swt.graphics.Color blue
protected org.eclipse.swt.graphics.Color magenta
protected org.eclipse.swt.graphics.Color gray
protected org.eclipse.swt.graphics.Color lightGray
protected org.eclipse.swt.graphics.Color darkGray
protected org.eclipse.swt.graphics.Color lightBlue
protected org.eclipse.swt.graphics.Color crystal
protected org.eclipse.swt.graphics.Color hopDefault
protected org.eclipse.swt.graphics.Color hopOK
public SWTDirectGC(org.eclipse.swt.graphics.GC gc,
Point area,
int iconsize)
public void dispose()
dispose in interface PrimitiveGCInterfacepublic void drawLine(int x,
int y,
int x2,
int y2)
drawLine in interface PrimitiveGCInterfacepublic void drawImage(String location, ClassLoader classLoader, int x, int y)
drawImage in interface PrimitiveGCInterfacepublic void drawImage(PrimitiveGCInterface.EImage image, int x, int y)
drawImage in interface PrimitiveGCInterfacepublic void drawImage(PrimitiveGCInterface.EImage image, int x, int y, float magnification)
drawImage in interface PrimitiveGCInterfacepublic void drawImage(PrimitiveGCInterface.EImage image, int x, int y, int width, int height, float magnification)
drawImage in interface PrimitiveGCInterfacepublic void drawImage(PrimitiveGCInterface.EImage image, int x, int y, float magnification, double angle)
drawImage in interface PrimitiveGCInterfacepublic Point getImageBounds(PrimitiveGCInterface.EImage image)
getImageBounds in interface PrimitiveGCInterfacepublic static final SwtUniversalImage getNativeImage(PrimitiveGCInterface.EImage image)
public void drawPoint(int x,
int y)
drawPoint in interface PrimitiveGCInterfacepublic void drawPolygon(int[] polygon)
drawPolygon in interface PrimitiveGCInterfacepublic void drawPolyline(int[] polyline)
drawPolyline in interface PrimitiveGCInterfacepublic void drawRectangle(int x,
int y,
int width,
int height)
drawRectangle in interface PrimitiveGCInterfacepublic void drawRoundRectangle(int x,
int y,
int width,
int height,
int circleWidth,
int circleHeight)
drawRoundRectangle in interface PrimitiveGCInterfacepublic void drawText(String text, int x, int y)
drawText in interface PrimitiveGCInterfacepublic void drawText(String text, int x, int y, boolean transparent)
drawText in interface PrimitiveGCInterfacepublic void fillPolygon(int[] polygon)
fillPolygon in interface PrimitiveGCInterfacepublic void fillRectangle(int x,
int y,
int width,
int height)
fillRectangle in interface PrimitiveGCInterfacepublic void fillGradientRectangle(int x,
int y,
int width,
int height,
boolean vertical)
fillGradientRectangle in interface PrimitiveGCInterfacepublic void fillRoundRectangle(int x,
int y,
int width,
int height,
int circleWidth,
int circleHeight)
fillRoundRectangle in interface PrimitiveGCInterfacepublic Point getDeviceBounds()
getDeviceBounds in interface PrimitiveGCInterfacepublic void setAlpha(int alpha)
setAlpha in interface PrimitiveGCInterfacepublic int getAlpha()
getAlpha in interface PrimitiveGCInterfacepublic void setBackground(PrimitiveGCInterface.EColor color)
setBackground in interface PrimitiveGCInterfacepublic void setFont(PrimitiveGCInterface.EFont font)
setFont in interface PrimitiveGCInterfacepublic void setForeground(PrimitiveGCInterface.EColor color)
setForeground in interface PrimitiveGCInterfacepublic void setLineStyle(PrimitiveGCInterface.ELineStyle lineStyle)
setLineStyle in interface PrimitiveGCInterfacepublic void setLineWidth(int width)
setLineWidth in interface PrimitiveGCInterfacepublic void setTransform(float translationX,
float translationY,
int shadowsize,
float magnification)
setTransform in interface PrimitiveGCInterfacepublic Point textExtent(String text)
textExtent in interface PrimitiveGCInterfacepublic void drawStepIcon(int x,
int y,
StepMeta stepMeta,
float magnification)
drawStepIcon in interface GCInterfacepublic void drawJobEntryIcon(int x,
int y,
JobEntryCopy jobEntryCopy,
float magnification)
drawJobEntryIcon in interface GCInterfacepublic void drawJobEntryIcon(int x,
int y,
JobEntryCopy jobEntryCopy)
drawJobEntryIcon in interface GCInterfacepublic void drawStepIcon(int x,
int y,
StepMeta stepMeta)
drawStepIcon in interface GCInterfacepublic void setAntialias(boolean antiAlias)
setAntialias in interface PrimitiveGCInterfacepublic void setBackground(int r,
int g,
int b)
setBackground in interface PrimitiveGCInterfacepublic void setForeground(int r,
int g,
int b)
setForeground in interface PrimitiveGCInterfacepublic void setFont(String fontName, int fontSize, boolean fontBold, boolean fontItalic)
setFont in interface PrimitiveGCInterfacepublic void switchForegroundBackgroundColors()
switchForegroundBackgroundColors in interface PrimitiveGCInterfacepublic Point getArea()
getArea in interface PrimitiveGCInterfacepublic Object getImage()
getImage in interface PrimitiveGCInterfacepublic void drawImage(BufferedImage image, int x, int y)
drawImage in interface PrimitiveGCInterfaceCopyright © 2019 Hitachi Vantara. All rights reserved.