| java.lang.Object net.refractions.udig.ui.graphics.SWTGraphics
SWTGraphics | public class SWTGraphics implements ViewportGraphics(Code) | | A Graphics object that wraps SWT's GC object
author: jeichar since: 0.3 |
Constructor Summary | |
public | SWTGraphics(Image image, Display display) Construct SWTGraphics . | public | SWTGraphics(GC gc, Display display, Dimension displaySize) Construct SWTGraphics . |
Method Summary | |
public void | clearRect(int x, int y, int width, int height) | public static BufferedImage | createBufferedImage(int w, int h) | public static Image | createDefaultImage(Display display, int width, int height) | public static ImageData | createImageData(RenderedImage image, boolean transparent) | public static ImageData | createImageDataFromBytes(RenderedImage image) | public static ImageDescriptor | createImageDescriptor(RenderedImage image, boolean transparent) | public static Image | createSWTImage(RenderedImage image, boolean transparent) | public void | dispose() | public void | draw(Shape s) | public void | drawImage(RenderedImage rimage, int x, int y) | public void | drawImage(java.awt.Image image, int x, int y) | public void | drawImage(java.awt.Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2) | public void | drawImage(RenderedImage rimage, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2) | public void | drawImage(Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2) | public void | drawLine(int x1, int y1, int x2, int y2) | public void | drawString(String string, int x, int y, int alignx, int aligny) | public void | fill(Shape s) | public void | fillRect(int x, int y, int width, int height) | public int | getFontAscent() | public int | getFontHeight() | public Rectangle2D | getStringBounds(String str) | public void | setBackground(java.awt.Color c) This is hard because - background doesn't mean what we think it means. | public void | setClip(java.awt.Rectangle r) | public void | setColor(java.awt.Color c) | void | setGraphics(GC gc, Display display) | public void | setStroke(int style, int width) | public void | setTransform(AffineTransform transform) | public int | stringWidth(String str) | public void | translate(Point offset) |
TRANSPARENT | final public static int TRANSPARENT(Code) | | The TRANSPARENT color
|
SWTGraphics | public SWTGraphics(Image image, Display display)(Code) | | Construct SWTGraphics .
Parameters: Image - image Parameters: display - The display object |
SWTGraphics | public SWTGraphics(GC gc, Display display, Dimension displaySize)(Code) | | Construct SWTGraphics .
Parameters: gc - The GC object Parameters: display - The display object |
clearRect | public void clearRect(int x, int y, int width, int height)(Code) | | See Also: net.refractions.udig.project.render.ViewportGraphics.clearRect(intintintint) |
createBufferedImage | public static BufferedImage createBufferedImage(int w, int h)(Code) | | Create a buffered image that can be be coverted to SWTland later
|
createDefaultImage | public static Image createDefaultImage(Display display, int width, int height)(Code) | | |
createImageData | public static ImageData createImageData(RenderedImage image, boolean transparent)(Code) | | |
createImageDataFromBytes | public static ImageData createImageDataFromBytes(RenderedImage image)(Code) | | |
createImageDescriptor | public static ImageDescriptor createImageDescriptor(RenderedImage image, boolean transparent)(Code) | | |
createSWTImage | public static Image createSWTImage(RenderedImage image, boolean transparent)(Code) | | |
dispose | public void dispose()(Code) | | |
draw | public void draw(Shape s)(Code) | | See Also: net.refractions.udig.project.render.ViewportGraphics.draw(java.awt.Shape) |
drawImage | public void drawImage(RenderedImage rimage, int x, int y)(Code) | | See Also: net.refractions.udig.project.render.ViewportGraphics.drawImage(javax.media.jai.PlanarImageintint) |
drawImage | public void drawImage(RenderedImage rimage, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2)(Code) | | |
drawImage | public void drawImage(Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2)(Code) | | |
drawLine | public void drawLine(int x1, int y1, int x2, int y2)(Code) | | |
fill | public void fill(Shape s)(Code) | | See Also: net.refractions.udig.project.render.ViewportGraphics.draw(java.awt.Shape) |
fillRect | public void fillRect(int x, int y, int width, int height)(Code) | | See Also: net.refractions.udig.project.render.ViewportGraphics.fillRect(intintintint) |
getFontAscent | public int getFontAscent()(Code) | | |
getFontHeight | public int getFontHeight()(Code) | | |
setBackground | public void setBackground(java.awt.Color c)(Code) | | This is hard because - background doesn't mean what we think it means.
See Also: net.refractions.udig.project.render.ViewportGraphics.setBackground(java.awt.Color) |
setClip | public void setClip(java.awt.Rectangle r)(Code) | | See Also: net.refractions.udig.project.render.ViewportGraphics.setClip(java.awt.Rectangle) |
setColor | public void setColor(java.awt.Color c)(Code) | | See Also: net.refractions.udig.project.render.ViewportGraphics.setColor(java.awt.Color) |
setGraphics | void setGraphics(GC gc, Display display)(Code) | | |
setStroke | public void setStroke(int style, int width)(Code) | | See Also: net.refractions.udig.project.render.ViewportGraphics.setStroke(intint) |
setTransform | public void setTransform(AffineTransform transform)(Code) | | See Also: net.refractions.udig.project.render.ViewportGraphics.setTransform(java.awt.geom.AffineTransform) |
translate | public void translate(Point offset)(Code) | | See Also: net.refractions.udig.project.render.ViewportGraphics.translate(java.awt.Point) |
|
|