Constructor and Description |
---|
SWTGraphics(org.eclipse.swt.graphics.GC gc) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.Path |
createPath() |
void |
drawLine(int x1,
int y1,
int x2,
int y2) |
void |
drawPath(org.eclipse.swt.graphics.Path path) |
void |
drawRectangle(int x,
int y,
int width,
int height) |
void |
drawRectangle(org.eclipse.swt.graphics.Rectangle rect) |
void |
drawText(String string,
int x,
int y,
Float rotate) |
void |
fillRectangle(int x,
int y,
int width,
int height) |
void |
fillRectangle(org.eclipse.swt.graphics.Rectangle rect) |
org.eclipse.swt.graphics.FontMetrics |
getFontMetrics() |
org.eclipse.swt.graphics.Color |
getSystemColor(int color) |
void |
setAlpha(int alpha) |
void |
setAntialias(boolean state) |
void |
setBackground(org.eclipse.swt.graphics.Color color) |
void |
setClipping(org.eclipse.swt.graphics.Rectangle rect) |
void |
setForeground(org.eclipse.swt.graphics.Color color) |
void |
setLineAttributes(org.eclipse.swt.graphics.LineAttributes lineAttributes) |
org.eclipse.swt.graphics.Point |
textExtent(String string) |
public void setLineAttributes(org.eclipse.swt.graphics.LineAttributes lineAttributes)
setLineAttributes
in interface Graphics
public void drawLine(int x1, int y1, int x2, int y2)
public void fillRectangle(int x, int y, int width, int height)
fillRectangle
in interface Graphics
public void setBackground(org.eclipse.swt.graphics.Color color)
setBackground
in interface Graphics
public void setClipping(org.eclipse.swt.graphics.Rectangle rect)
setClipping
in interface Graphics
public void setForeground(org.eclipse.swt.graphics.Color color)
setForeground
in interface Graphics
public org.eclipse.swt.graphics.Color getSystemColor(int color)
getSystemColor
in interface Graphics
public void drawRectangle(int x, int y, int width, int height)
drawRectangle
in interface Graphics
public void drawRectangle(org.eclipse.swt.graphics.Rectangle rect)
drawRectangle
in interface Graphics
public org.eclipse.swt.graphics.Path createPath()
createPath
in interface Graphics
public void drawPath(org.eclipse.swt.graphics.Path path)
public void fillRectangle(org.eclipse.swt.graphics.Rectangle rect)
fillRectangle
in interface Graphics
public org.eclipse.swt.graphics.Point textExtent(String string)
textExtent
in interface Graphics
public void setAntialias(boolean state)
setAntialias
in interface Graphics
public org.eclipse.swt.graphics.FontMetrics getFontMetrics()
getFontMetrics
in interface Graphics