public abstract class AbstractDrawingSurface extends java.lang.Object implements DrawingSurface
Copyright 2004-2010 Partner Software, Inc.
| Modifier and Type | Field and Description |
|---|---|
protected int |
backgroundColor |
protected ImageStyle |
currentImageStyle |
protected MapSet |
currentMapSet |
protected PointStyle |
currentPointStyle |
protected PolygonStyle |
currentPolygonStyle |
protected PolylineStyle |
currentPolylineStyle |
protected TextStyle |
currentTextStyle |
protected int |
foregroundColor |
protected MapViewFrame |
frame |
protected PolylineStyle |
invisiblePolylineStyle |
protected boolean |
largePrint |
protected boolean |
nightView |
protected boolean |
printing |
protected RenderImageStyle |
renderImageStyle |
protected int |
renderMode |
protected RenderPointStyle |
renderPointStyle |
protected RenderPolygonStyle |
renderPolygonStyle |
protected RenderPolylineStyle |
renderPolylineStyle |
protected int |
renderQuality |
protected RenderTextStyle |
renderTextStyle |
protected boolean |
showInvisibleGraphics |
QUALITY_GOOD, QUALITY_OK, QUALITY_POOR, RENDER_EPHEMERA, RENDER_INDICATION, RENDER_RASTER, RENDER_RETICLE, RENDER_SELECTION, RENDER_VECTOR| Constructor and Description |
|---|
AbstractDrawingSurface() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyBackBuffer()
Copies the back buffer to the onscreen or "front" buffer.
|
int |
displayListFor(long key) |
int |
displayListFor(java.lang.Object key) |
void |
drawDisplayList(int displayListID) |
void |
drawLiteralPoints(LiteralPointFile literalPoints) |
abstract void |
drawPoint(int dataID,
double x,
double y,
int offsetX,
int offsetY,
int rotation) |
void |
drawPolygon(int dataId,
DoubleBuffer coords) |
abstract void |
drawPolygon(int dataID,
DynamicDoubleArray coords) |
abstract void |
drawPolyline(int dataID,
DoubleBuffer coords) |
void |
drawPolyline(int dataID,
DynamicDoubleArray coords) |
void |
drawPolyline(int dataID,
XyPolyline polyline) |
abstract void |
drawText(int dataID,
double x,
double y,
int offsetX,
int offsetY,
int rotation,
int alignment,
java.lang.String text) |
void |
endDisplayList() |
boolean |
isBackBufferSupported()
Returns true if this surface offers a backing buffer.
|
boolean |
isDisplayListSupported() |
boolean |
isDrawingToBackBuffer()
Returns true if the surface is currently drawing to a backing buffer.
|
boolean |
isLargePrint() |
boolean |
isNightView() |
boolean |
isPrinting() |
void |
popState() |
void |
pushState() |
void |
removeDisplayList(int displayListID) |
void |
setBackgroundColor(int color) |
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 newRGB) |
void |
setFrame(MapViewFrame frame) |
void |
setImageStyle(ImageStyle style) |
void |
setImageStyle(int style) |
void |
setImageStyle(java.lang.String styleName) |
void |
setLargePrint(boolean largePrint) |
void |
setMapSet(MapSet newMapSet) |
void |
setNightView(boolean nightView) |
void |
setPointStyle(int style) |
void |
setPointStyle(PointStyle style) |
void |
setPointStyle(java.lang.String styleName) |
void |
setPolygonStyle(int style) |
void |
setPolygonStyle(PolygonStyle style) |
void |
setPolygonStyle(java.lang.String styleName) |
void |
setPolylineStyle(int style) |
void |
setPolylineStyle(PolylineStyle style) |
void |
setPolylineStyle(java.lang.String styleName) |
void |
setPrinting(boolean printing) |
void |
setRenderMode(int newMode) |
void |
setRenderQuality(int newQuality) |
void |
setRenderScaleRegion(RenderScaleRegion scaleRegion) |
void |
setShowInvisibleGraphics(boolean showInvisibleGraphics) |
void |
setTextStyle(int style) |
void |
setTextStyle(java.lang.String styleName) |
void |
setTextStyle(TextStyle style) |
int |
startDisplayList(long key) |
int |
startDisplayList(java.lang.Object key) |
abstract void |
startDrawing() |
abstract void |
stopDrawing() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, drawImage, drawRasterImage, drawWheelMenu, drawWheelMenuCenter, isDirty, popName, pushNameprotected int renderMode
protected int renderQuality
protected MapViewFrame frame
protected RenderPolygonStyle renderPolygonStyle
protected RenderImageStyle renderImageStyle
protected RenderPolylineStyle renderPolylineStyle
protected RenderPointStyle renderPointStyle
protected RenderTextStyle renderTextStyle
protected MapSet currentMapSet
protected PolygonStyle currentPolygonStyle
protected ImageStyle currentImageStyle
protected PolylineStyle currentPolylineStyle
protected PointStyle currentPointStyle
protected TextStyle currentTextStyle
protected int backgroundColor
protected int foregroundColor
protected boolean showInvisibleGraphics
protected PolylineStyle invisiblePolylineStyle
protected boolean printing
protected boolean nightView
protected boolean largePrint
public void setShowInvisibleGraphics(boolean showInvisibleGraphics)
setShowInvisibleGraphics in interface DrawingSurfacepublic void setRenderMode(int newMode)
setRenderMode in interface DrawingSurfacepublic void setPrinting(boolean printing)
setPrinting in interface DrawingSurfacepublic void setRenderQuality(int newQuality)
setRenderQuality in interface DrawingSurfacepublic void setFrame(MapViewFrame frame)
setFrame in interface DrawingSurfacepublic boolean isNightView()
isNightView in interface DrawingSurfacepublic void setNightView(boolean nightView)
setNightView in interface DrawingSurfacepublic boolean isLargePrint()
isLargePrint in interface DrawingSurfacepublic void setLargePrint(boolean largePrint)
setLargePrint in interface DrawingSurfacepublic boolean isPrinting()
isPrinting in interface DrawingSurfacepublic abstract void startDrawing()
startDrawing in interface DrawingSurfacepublic abstract void stopDrawing()
stopDrawing in interface DrawingSurfacepublic void setMapSet(MapSet newMapSet)
setMapSet in interface DrawingSurfacepublic void pushState()
pushState in interface DrawingSurfacepublic void popState()
popState in interface DrawingSurfacepublic void setBackgroundColor(int color)
setBackgroundColor in interface DrawingSurfacepublic void setForegroundColor(int newRGB)
setForegroundColor in interface DrawingSurfacepublic void setRenderScaleRegion(RenderScaleRegion scaleRegion)
setRenderScaleRegion in interface DrawingSurfacepublic void setPolygonStyle(int style)
setPolygonStyle in interface DrawingSurfacepublic void setPolygonStyle(PolygonStyle style)
setPolygonStyle in interface DrawingSurfacepublic void setPolygonStyle(java.lang.String styleName)
setPolygonStyle in interface DrawingSurfacepublic void setImageStyle(int style)
setImageStyle in interface DrawingSurfacepublic void setImageStyle(ImageStyle style)
setImageStyle in interface DrawingSurfacepublic void setImageStyle(java.lang.String styleName)
setImageStyle in interface DrawingSurfacepublic void setPolylineStyle(int style)
setPolylineStyle in interface DrawingSurfacepublic void setPolylineStyle(java.lang.String styleName)
setPolylineStyle in interface DrawingSurfacepublic void setPolylineStyle(PolylineStyle style)
setPolylineStyle in interface DrawingSurfacepublic void setPointStyle(int style)
setPointStyle in interface DrawingSurfacepublic void setPointStyle(PointStyle style)
setPointStyle in interface DrawingSurfacepublic void setPointStyle(java.lang.String styleName)
setPointStyle in interface DrawingSurfacepublic void setTextStyle(int style)
setTextStyle in interface DrawingSurfacepublic void setTextStyle(TextStyle style)
setTextStyle in interface DrawingSurfacepublic void setTextStyle(java.lang.String styleName)
setTextStyle in interface DrawingSurfacepublic void drawPolygon(int dataId,
DoubleBuffer coords)
drawPolygon in interface DrawingSurfacepublic abstract void drawPolygon(int dataID,
DynamicDoubleArray coords)
drawPolygon in interface DrawingSurfacepublic abstract void drawPolyline(int dataID,
DoubleBuffer coords)
drawPolyline in interface DrawingSurfacepublic void drawPolyline(int dataID,
DynamicDoubleArray coords)
drawPolyline in interface DrawingSurfacepublic abstract void drawPoint(int dataID,
double x,
double y,
int offsetX,
int offsetY,
int rotation)
drawPoint in interface DrawingSurfacepublic abstract void drawText(int dataID,
double x,
double y,
int offsetX,
int offsetY,
int rotation,
int alignment,
java.lang.String text)
drawText in interface DrawingSurfacepublic void drawPolyline(int dataID,
XyPolyline polyline)
drawPolyline in interface DrawingSurfacepublic void drawLiteralPoints(LiteralPointFile literalPoints)
drawLiteralPoints in interface DrawingSurfacepublic boolean isBackBufferSupported()
DrawingSurfaceIf this method returns true, the implementation must also support the methods setDrawingToBackBuffer() and copyBackBuffer()
isBackBufferSupported in interface DrawingSurfacepublic boolean isDrawingToBackBuffer()
DrawingSurfaceisDrawingToBackBuffer in interface DrawingSurfacepublic void setDrawingToBackBuffer(boolean isit)
DrawingSurfacesetDrawingToBackBuffer in interface DrawingSurfaceisit - true if surface should start drawing to the backing bufferpublic void copyBackBuffer()
DrawingSurfacecopyBackBuffer in interface DrawingSurfacepublic boolean isDisplayListSupported()
isDisplayListSupported in interface DrawingSurfacepublic int displayListFor(long key)
displayListFor in interface DrawingSurfacepublic int startDisplayList(long key)
startDisplayList in interface DrawingSurfacepublic int displayListFor(java.lang.Object key)
displayListFor in interface DrawingSurfacepublic int startDisplayList(java.lang.Object key)
startDisplayList in interface DrawingSurfacepublic void endDisplayList()
endDisplayList in interface DrawingSurfacepublic void removeDisplayList(int displayListID)
removeDisplayList in interface DrawingSurfacepublic void drawDisplayList(int displayListID)
drawDisplayList in interface DrawingSurface