|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IScreenDisplay2
Provides access to additional members that control the Screen Display.
Method Summary | |
---|---|
short |
addCache()
Creates a new cache and return its ID. |
void |
doScroll(int xDelta,
int yDelta,
boolean updateScreen)
Scrolls the screen by the specified amount. |
void |
drawCache(int hDC,
short index,
tagRECT deviceRect,
tagRECT cacheRect)
Draws the specified screen cache to the specified window device context. |
void |
finishFeedback()
Ends feedback drawing. |
void |
frameScrolled(int x,
int y)
Call on frame display when container is scrolled. |
short |
getActiveCache()
Screen cache where drawing occurs. |
int |
getBackgroundRGB()
The RGB value of the background color. |
short |
getCacheCount()
Number of screen caches. |
int |
getCacheMemDC(short index)
Memory device context for the specified screen cache. |
ITrackCancel |
getCancelTracker()
Cancel tracker that is associated with the display. |
void |
getDrawingOffset(int[] x,
int[] y)
The offset between the device origin and the active cache origin. |
int |
getHWnd()
Associated window handle. |
int |
getWindowDC()
Device context for the associated window. |
void |
invalidate(IEnvelope rect,
boolean erase,
short cacheIndex)
Cause the specified area of the specified cache to redraw. |
boolean |
isCacheDirty(short cacheIndex)
Indicates if the specified cache needs refreshing. |
boolean |
isFirstCacheTransparent()
Indicates if the bottom cache is transparent. |
boolean |
isFramed()
Indicates if drawing occurs in a frame rather than on the whole window. |
boolean |
isScaleContents()
Indicates if the contents of the screen scale when a resize occurs. |
boolean |
isSuppressResize()
Indicates if display resizing is suppressed. |
boolean |
isUseScrollbars()
Indicates if scrollbars should appear. |
void |
panMoveTo(IPoint mouseLocation)
Pans to a new point. |
void |
panStart(IPoint mouseLocation)
Prepares display for panning. |
IEnvelope |
panStop()
Stops panning and returns new visible bounds. |
void |
removeAllCaches()
Removes all caches. |
void |
removeCache(short cacheID)
Removes the specified cache. |
void |
rotateMoveTo(IPoint pPoint)
Rotates to new point. |
void |
rotateStart(IPoint mousePt,
IPoint centerPt)
Prepares display for rotating. |
double |
rotateStop()
Stops rotating and returns new angle. |
void |
rotateTimer()
Draws the rotated display. |
void |
setActiveCache(short index)
Screen cache where drawing occurs. |
void |
setBackgroundRGB(int rGB)
The RGB value of the background color. |
void |
setCancelTrackerByRef(ITrackCancel cancelTracker)
Cancel tracker that is associated with the display. |
void |
setHWnd(int hWnd)
Associated window handle. |
void |
setIsFirstCacheTransparent(boolean flag)
Indicates if the bottom cache is transparent. |
void |
setIsFramed(boolean flag)
Indicates if drawing occurs in a frame rather than on the whole window. |
void |
setScaleContents(boolean flag)
Indicates if the contents of the screen scale when a resize occurs. |
void |
setScrollbarHandles(int hWndHorzScrollbar,
int hWndVertScrollbar)
Optionally specify application supplied scrollbars. |
void |
setSuppressResize(boolean suppressResize)
Indicates if display resizing is suppressed. |
void |
setUseScrollbars(boolean flag)
Indicates if scrollbars should appear. |
void |
startFeedback()
Prepare the display for drawing selection/rubberbanding. |
void |
startRecording()
Starts recording all output to the recording cache. |
void |
stopRecording()
Stops recording to the recording cache. |
void |
trackPan()
Interactively pans the screen. |
void |
trackRotate()
Interactively rotates the screen. |
void |
updateWindow()
Forces a redraw. |
void |
validate(short cacheIndex)
Clear dirty flag for specified cache. |
Methods inherited from interface com.esri.arcgis.display.IDisplay |
---|
drawMultipoint, drawPoint, drawPolygon, drawPolyline, drawRectangle, drawText, finishDrawing, getClipEnvelope, getClipEnvelopes, getClipGeometry, getDisplayTransformation, getFilter, getHDC, getHPalette, getIlluminationProps, isSuppressEvents, progress, setClipGeometry, setDisplayTransformation, setFilterByRef, setHPalette, setIlluminationProps, setSuppressEvents, setSymbol, startDrawing |
Method Detail |
---|
void setHWnd(int hWnd) throws IOException, AutomationException
hWnd
- The hWnd (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getHWnd() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getWindowDC() throws IOException, AutomationException
This property is a Windows operating environment device context handle. The Windows operating environment manages the system display by assigning a device context for each window in the application. You can use the WindowDC property to refer to the handle for an object's device context.
This property does not provide a value to pass to IDisplay::StartDrawing. Instead, call IDisplay::StartDrawing with a value of 0 for the hDC as this will automatically use the Windows API function GetDC to populate IScreenDisplay2::WindowDC with the hDC of the main display and drawing will occur there.
The value of the WindowDC property can change while an application runs, so do not store the value in a variable; instead, use the WindowDC property each time you need it.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.short addCache() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeCache(short cacheID) throws IOException, AutomationException
cacheID
- The cacheID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.short getCacheCount() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeAllCaches() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCacheMemDC(short index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setActiveCache(short index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.short getActiveCache() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setIsFirstCacheTransparent(boolean flag) throws IOException, AutomationException
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isFirstCacheTransparent() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void startRecording() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void stopRecording() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUseScrollbars(boolean flag) throws IOException, AutomationException
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isUseScrollbars() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setScrollbarHandles(int hWndHorzScrollbar, int hWndVertScrollbar) throws IOException, AutomationException
hWndHorzScrollbar
- The hWndHorzScrollbar (A COM typedef) (in)hWndVertScrollbar
- The hWndVertScrollbar (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setScaleContents(boolean flag) throws IOException, AutomationException
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isScaleContents() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSuppressResize(boolean suppressResize) throws IOException, AutomationException
suppressResize
- The suppressResize (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isSuppressResize() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isFramed() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setIsFramed(boolean flag) throws IOException, AutomationException
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ITrackCancel getCancelTracker() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCancelTrackerByRef(ITrackCancel cancelTracker) throws IOException, AutomationException
cancelTracker
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void invalidate(IEnvelope rect, boolean erase, short cacheIndex) throws IOException, AutomationException
rect
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)erase
- The erase (in)cacheIndex
- The cacheIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isCacheDirty(short cacheIndex) throws IOException, AutomationException
cacheIndex
- The cacheIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void drawCache(int hDC, short index, tagRECT deviceRect, tagRECT cacheRect) throws IOException, AutomationException
hDC
- The hDC (A COM typedef) (in)index
- The index (in)deviceRect
- A Structure: com.esri.arcgis.system.tagRECT (in)cacheRect
- A Structure: com.esri.arcgis.system.tagRECT (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void doScroll(int xDelta, int yDelta, boolean updateScreen) throws IOException, AutomationException
xDelta
- The xDelta (in)yDelta
- The yDelta (in)updateScreen
- The updateScreen (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void trackPan() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void panStart(IPoint mouseLocation) throws IOException, AutomationException
mouseLocation
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void panMoveTo(IPoint mouseLocation) throws IOException, AutomationException
mouseLocation
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnvelope panStop() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void trackRotate() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void rotateStart(IPoint mousePt, IPoint centerPt) throws IOException, AutomationException
mousePt
- A reference to a com.esri.arcgis.geometry.IPoint (in)centerPt
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void rotateMoveTo(IPoint pPoint) throws IOException, AutomationException
pPoint
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void rotateTimer() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double rotateStop() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void updateWindow() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setBackgroundRGB(int rGB) throws IOException, AutomationException
rGB
- The rGB (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getBackgroundRGB() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getDrawingOffset(int[] x, int[] y) throws IOException, AutomationException
x
- The x (out: use single element array)y
- The y (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void validate(short cacheIndex) throws IOException, AutomationException
cacheIndex
- The cacheIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void startFeedback() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void finishFeedback() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void frameScrolled(int x, int y) throws IOException, AutomationException
x
- The x (in)y
- The y (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |