public interface IJCGraphicContainer
IJCGraphicContainer
interface represents a generic entry point to
manage graphic containers which wraps and embed JVM graphic object within
WPF/WinForms hosting applications
JCOBridge offers an implementation for AWT/Swing
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the graphic container
|
void |
endMeasureOverride()
End MeasureOverride operation
|
Object |
getGraphicObject()
The graphic
Object hosted from the graphic container |
int |
getMeasureOverrideHeight()
MeasureOverride Height
|
int |
getMeasureOverrideWidth()
MeasureOverride Width
|
long |
getNativeWindowHandle()
Retrieves the native handle to the hosting window
|
boolean |
hasFocusWithinCore()
Get focus state
|
boolean |
hasMeasureOverride()
Return if the graphic container implements management of MeasureOverride
|
boolean |
hasWndProcHandler()
Return if the graphic container implements management for WndProc
|
void |
initialize(long hwndHost)
Initialize the graphic container
|
boolean |
isRemoteManaged()
Return if the graphic container implements embedding styles and all
management for window placement
|
void |
setSizeAndVisibility(boolean isVisible,
int x,
int y,
int width,
int height)
Sets visibility and bounding rectangle
|
void |
startMeasureOverride(int width,
int height)
Starts a MeasureOverride operation
|
boolean |
wndProcHandler(long hwnd,
int msg,
long wParam,
long lParam,
boolean handled)
Accesses the window process (handle) of the hosted child window
|
void initialize(long hwndHost)
hwndHost
- The HWND of the hosting applicationvoid destroy()
boolean isRemoteManaged()
On Windows this means to remove from the HWND: WS_CAPTION | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_SYSMENU and add the child behavior using WS_CHILDWINDOW
void setSizeAndVisibility(boolean isVisible, int x, int y, int width, int height)
isVisible
- Set visibilityx
- The x-axis value of the left side of the rectangle.y
- The y-axis value of the top side of the rectangle.width
- A positive number that represents the width of the
rectangle.height
- A positive number that represents the height of the
rectangle.boolean hasMeasureOverride()
void startMeasureOverride(int width, int height)
width
- The width constraint receivedheight
- The height constraint receivedint getMeasureOverrideWidth()
int getMeasureOverrideHeight()
void endMeasureOverride()
boolean hasWndProcHandler()
boolean wndProcHandler(long hwnd, int msg, long wParam, long lParam, boolean handled)
hwnd:
- The window handle of the hosted window.msg:
- The message to act upon.wParam:
- Information that may be relevant to handling the message.
This is typically used to store small pieces of information,
such as flags.lParam:
- Information that may be relevant to handling the message.
This is typically used to reference an object.handled:
- The handled value coming from the orginal call.boolean hasFocusWithinCore()
long getNativeWindowHandle()