org.placelab.util.swt
Class GlyphGC
java.lang.Object
org.placelab.util.swt.GlyphGC
- public class GlyphGC
- extends java.lang.Object
|
Method Summary |
void |
dispose()
|
void |
drawImage(org.eclipse.swt.graphics.Image image,
int x,
int y)
|
void |
drawImage(org.eclipse.swt.graphics.Image image,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int destX,
int destY,
int destWidth,
int destHeight)
|
void |
drawLine(int x1,
int y1,
int x2,
int y2)
|
void |
drawOval(int x,
int y,
int w,
int h)
|
void |
drawPoint(int x,
int y)
|
void |
drawPolygon(int[] is)
|
void |
drawRectangle(int x,
int y,
int w,
int h)
|
void |
drawText(java.lang.String text,
int x,
int y)
|
void |
drawTextWithBackground(java.lang.String text,
int x,
int y)
|
void |
fillOval(int x,
int y,
int w,
int h)
|
void |
fillPolygon(int[] is)
|
void |
fillRectangle(int x,
int y,
int w,
int h)
|
org.eclipse.swt.graphics.Color |
getBackground()
|
org.eclipse.swt.graphics.Font |
getFont()
|
org.eclipse.swt.graphics.Color |
getForeground()
|
int |
getLineWidth()
|
void |
resetClipping()
|
void |
setBackground(org.eclipse.swt.graphics.Color bg)
|
void |
setFont(org.eclipse.swt.graphics.Font f)
|
void |
setForeground(org.eclipse.swt.graphics.Color fg)
|
void |
setLineWidth(int w)
|
org.eclipse.swt.graphics.Point |
textExtent(java.lang.String text)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlyphGC
public GlyphGC(GlyphComposite glyph)
GlyphGC
public GlyphGC(org.eclipse.swt.graphics.GC drawDirect)
dispose
public void dispose()
getLineWidth
public int getLineWidth()
getForeground
public org.eclipse.swt.graphics.Color getForeground()
getBackground
public org.eclipse.swt.graphics.Color getBackground()
getFont
public org.eclipse.swt.graphics.Font getFont()
setLineWidth
public void setLineWidth(int w)
setForeground
public void setForeground(org.eclipse.swt.graphics.Color fg)
setBackground
public void setBackground(org.eclipse.swt.graphics.Color bg)
setFont
public void setFont(org.eclipse.swt.graphics.Font f)
drawLine
public void drawLine(int x1,
int y1,
int x2,
int y2)
drawPoint
public void drawPoint(int x,
int y)
drawOval
public void drawOval(int x,
int y,
int w,
int h)
fillOval
public void fillOval(int x,
int y,
int w,
int h)
drawRectangle
public void drawRectangle(int x,
int y,
int w,
int h)
fillRectangle
public void fillRectangle(int x,
int y,
int w,
int h)
drawImage
public void drawImage(org.eclipse.swt.graphics.Image image,
int x,
int y)
drawImage
public void drawImage(org.eclipse.swt.graphics.Image image,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
int destX,
int destY,
int destWidth,
int destHeight)
drawText
public void drawText(java.lang.String text,
int x,
int y)
drawTextWithBackground
public void drawTextWithBackground(java.lang.String text,
int x,
int y)
textExtent
public org.eclipse.swt.graphics.Point textExtent(java.lang.String text)
resetClipping
public void resetClipping()
drawPolygon
public void drawPolygon(int[] is)
fillPolygon
public void fillPolygon(int[] is)