public class Java2DDrawingSurface extends AbstractDrawingSurface
Copyright 2004-2007 Partner Software, Inc.
backgroundColor, currentImageStyle, currentMapSet, currentPointStyle, currentPolygonStyle, currentPolylineStyle, currentTextStyle, foregroundColor, frame, invisiblePolylineStyle, largePrint, nightView, printing, renderImageStyle, renderMode, renderPointStyle, renderPolygonStyle, renderPolylineStyle, renderQuality, renderTextStyle, showInvisibleGraphicsQUALITY_GOOD, QUALITY_OK, QUALITY_POOR, RENDER_EPHEMERA, RENDER_INDICATION, RENDER_RASTER, RENDER_RETICLE, RENDER_SELECTION, RENDER_VECTOR| Constructor and Description |
|---|
Java2DDrawingSurface(java.awt.Component component,
VideoPreferences videoPreferences) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
copyBackBuffer()
Copies the back buffer to the onscreen or "front" buffer.
|
void |
drawImage(int dataID,
double x,
double y,
int ox,
int oy,
int rotation,
ImageSource image,
double imageScale,
int pixelsWide,
int pixelsHigh) |
void |
drawPoint(int dataID,
double x,
double y,
int ox,
int oy,
int rotation) |
void |
drawPolygon(int dataID,
DynamicDoubleArray coords) |
void |
drawPolygon2(int dataID,
DynamicDoubleArray coords) |
void |
drawPolyline(int dataID,
DoubleBuffer coords) |
void |
drawPolyline(int dataID,
DynamicDoubleArray coords) |
void |
drawRasterImage(RasterImage image) |
void |
drawText(int dataID,
double x,
double y,
int offsetX,
int offsetY,
int rotation,
int alignment,
java.lang.String text) |
void |
drawWheelMenu(WheelMenu menu) |
void |
drawWheelMenuCenter(WheelMenu menu) |
boolean |
getUseBackBuffer() |
boolean |
isBackBufferSupported()
Returns true if this surface offers a backing buffer.
|
boolean |
isDirty() |
boolean |
isDrawingToBackBuffer()
Returns true if the surface is currently drawing to a backing buffer.
|
void |
popName() |
void |
pushName(int i) |
ImageRotation |
rotationFor(java.awt.Image image,
float theta) |
void |
setBackgroundColor(int color) |
void |
setComponent(java.awt.Component component)
This should be called before rendering starts, to set the component for
graphics operations.
|
void |
setDrawingToBackBuffer(boolean isit)
Sets whether the surface should draw to the backing buffer (true) or to
the onscreen or "front" buffer (false).
|
void |
setForegroundColor(int color) |
void |
setGraphics(java.awt.Graphics graphics)
This should be called before rendering starts, to set the target for
graphics operations.
|
void |
setPointStyle(int style) |
void |
setPointStyle(PointStyle style) |
void |
setPolygonStyle(int style) |
void |
setPolygonStyle(PolygonStyle style) |
void |
setPolylineStyle(int style) |
void |
setPolylineStyle(PolylineStyle style) |
void |
setTextStyle(int style) |
void |
setTextStyle(TextStyle style) |
void |
setUseBackBuffer(boolean mustI) |
void |
startDrawing() |
void |
startMonochromeDrawing()
Switches surface into a monochrome drawing mode.
|
void |
stopDrawing() |
void |
stopMonochromeDrawing()
Switches surface out of a monochrome drawing mode.
|
displayListFor, displayListFor, drawDisplayList, drawLiteralPoints, drawPolygon, drawPolyline, endDisplayList, isDisplayListSupported, isLargePrint, isNightView, isPrinting, popState, pushState, removeDisplayList, setFrame, setImageStyle, setImageStyle, setImageStyle, setLargePrint, setMapSet, setNightView, setPointStyle, setPolygonStyle, setPolylineStyle, setPrinting, setRenderMode, setRenderQuality, setRenderScaleRegion, setShowInvisibleGraphics, setTextStyle, startDisplayList, startDisplayListpublic Java2DDrawingSurface(java.awt.Component component,
VideoPreferences videoPreferences)
public void setGraphics(java.awt.Graphics graphics)
public void setComponent(java.awt.Component component)
public boolean getUseBackBuffer()
public void setUseBackBuffer(boolean mustI)
public boolean isDirty()
public void startDrawing()
startDrawing in interface DrawingSurfacestartDrawing in class AbstractDrawingSurfacepublic void clear()
public void stopDrawing()
stopDrawing in interface DrawingSurfacestopDrawing in class AbstractDrawingSurfacepublic void setBackgroundColor(int color)
setBackgroundColor in interface DrawingSurfacesetBackgroundColor in class AbstractDrawingSurfacepublic void setForegroundColor(int color)
setForegroundColor in interface DrawingSurfacesetForegroundColor in class AbstractDrawingSurfacepublic void setPolygonStyle(PolygonStyle style)
setPolygonStyle in interface DrawingSurfacesetPolygonStyle in class AbstractDrawingSurfacepublic void setPolygonStyle(int style)
setPolygonStyle in interface DrawingSurfacesetPolygonStyle in class AbstractDrawingSurfacepublic void setPolylineStyle(int style)
setPolylineStyle in interface DrawingSurfacesetPolylineStyle in class AbstractDrawingSurfacepublic void setPolylineStyle(PolylineStyle style)
setPolylineStyle in interface DrawingSurfacesetPolylineStyle in class AbstractDrawingSurfacepublic void setPointStyle(int style)
setPointStyle in interface DrawingSurfacesetPointStyle in class AbstractDrawingSurfacepublic void setPointStyle(PointStyle style)
setPointStyle in interface DrawingSurfacesetPointStyle in class AbstractDrawingSurfacepublic void setTextStyle(int style)
setTextStyle in interface DrawingSurfacesetTextStyle in class AbstractDrawingSurfacepublic void setTextStyle(TextStyle style)
setTextStyle in interface DrawingSurfacesetTextStyle in class AbstractDrawingSurfacepublic void drawImage(int dataID,
double x,
double y,
int ox,
int oy,
int rotation,
ImageSource image,
double imageScale,
int pixelsWide,
int pixelsHigh)
public void drawPolygon2(int dataID,
DynamicDoubleArray coords)
public void drawPolygon(int dataID,
DynamicDoubleArray coords)
drawPolygon in interface DrawingSurfacedrawPolygon in class AbstractDrawingSurfacepublic void drawPolyline(int dataID,
DoubleBuffer coords)
drawPolyline in interface DrawingSurfacedrawPolyline in class AbstractDrawingSurfacepublic void drawPolyline(int dataID,
DynamicDoubleArray coords)
drawPolyline in interface DrawingSurfacedrawPolyline in class AbstractDrawingSurfacepublic void drawPoint(int dataID,
double x,
double y,
int ox,
int oy,
int rotation)
drawPoint in interface DrawingSurfacedrawPoint in class AbstractDrawingSurfacepublic void drawText(int dataID,
double x,
double y,
int offsetX,
int offsetY,
int rotation,
int alignment,
java.lang.String text)
drawText in interface DrawingSurfacedrawText in class AbstractDrawingSurfacepublic void drawRasterImage(RasterImage image)
public boolean isBackBufferSupported()
DrawingSurfaceIf this method returns true, the implementation must also support the methods setDrawingToBackBuffer() and copyBackBuffer()
isBackBufferSupported in interface DrawingSurfaceisBackBufferSupported in class AbstractDrawingSurfacepublic boolean isDrawingToBackBuffer()
DrawingSurfaceisDrawingToBackBuffer in interface DrawingSurfaceisDrawingToBackBuffer in class AbstractDrawingSurfacepublic void setDrawingToBackBuffer(boolean isit)
DrawingSurfacesetDrawingToBackBuffer in interface DrawingSurfacesetDrawingToBackBuffer in class AbstractDrawingSurfaceisit - true if surface should start drawing to the backing bufferpublic void copyBackBuffer()
DrawingSurfacecopyBackBuffer in interface DrawingSurfacecopyBackBuffer in class AbstractDrawingSurfacepublic void pushName(int i)
public void popName()
public void drawWheelMenuCenter(WheelMenu menu)
public void drawWheelMenu(WheelMenu menu)
public ImageRotation rotationFor(java.awt.Image image, float theta)
public void startMonochromeDrawing()
public void stopMonochromeDrawing()