| java.lang.Object net.refractions.udig.ui.graphics.NonAdvancedSWTGraphics
NonAdvancedSWTGraphics | public class NonAdvancedSWTGraphics implements ViewportGraphics(Code) | | A Graphics object that wraps SWT's GC object
author: jeichar since: 0.3 |
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 | drawImage(Image swtImage, int x, int y) | public void | drawLine(int x1, int y1, int x2, int y2) | public void | drawOval(int x, int y, int width, int height) | public void | drawPath(Path path) | public void | drawRect(int x, int y, int width, int height) | public void | drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) | public void | drawString(String string, int x, int y, int alignx, int aligny) | public void | fill(Shape s) | public void | fillOval(int x, int y, int width, int height) | public void | fillPath(Path path) | public void | fillRect(int x, int y, int width, int height) | public void | fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) | public java.awt.Color | getBackgroundColor() | public Shape | getClip() | public java.awt.Color | getColor() | public int | getFontAscent() | public int | getFontHeight() | public Rectangle2D | getStringBounds(String str) | public AffineTransform | getTransform() | public void | setAffineTransform(AffineTransform t) Sets an affine transformation for drawing shapes. | 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 | setClipBounds(java.awt.Rectangle newBounds) | 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
|
NonAdvancedSWTGraphics | public NonAdvancedSWTGraphics(Image image, Display display)(Code) | | Construct SWTGraphics .
Parameters: Image - image Parameters: display - The display object |
NonAdvancedSWTGraphics | public NonAdvancedSWTGraphics(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) | | |
drawImage | public void drawImage(Image swtImage, int x, int y)(Code) | | |
drawLine | public void drawLine(int x1, int y1, int x2, int y2)(Code) | | |
drawOval | public void drawOval(int x, int y, int width, int height)(Code) | | |
drawPath | public void drawPath(Path path)(Code) | | |
drawRect | public void drawRect(int x, int y, int width, int height)(Code) | | |
drawRoundRect | public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)(Code) | | |
drawString | public void drawString(String string, int x, int y, int alignx, int aligny)(Code) | | |
fill | public void fill(Shape s)(Code) | | See Also: net.refractions.udig.project.render.ViewportGraphics.draw(java.awt.Shape) |
fillOval | public void fillOval(int x, int y, int width, int height)(Code) | | |
fillPath | public void fillPath(Path path)(Code) | | |
fillRect | public void fillRect(int x, int y, int width, int height)(Code) | | See Also: net.refractions.udig.project.render.ViewportGraphics.fillRect(intintintint) |
fillRoundRect | public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)(Code) | | |
getFontAscent | public int getFontAscent()(Code) | | |
getFontHeight | public int getFontHeight()(Code) | | |
setAffineTransform | public void setAffineTransform(AffineTransform t)(Code) | | Sets an affine transformation for drawing shapes.
Parameters: t - The transform. |
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) |
translate | public void translate(Point offset)(Code) | | See Also: net.refractions.udig.project.render.ViewportGraphics.translate(java.awt.Point) |
|
|