public interface IDesignerControl
Modifier and Type | Method and Description |
---|---|
JComponent |
createComponent(PanelDesignerControl controller,
PhantomFile data,
Object previousAttachment)
Creates the component with the specified data.
|
int |
getControlSBSize(PanelDesignerControl controller,
int cx,
int cy)
Gets the size of the scroll-bar enabled part of the control.
|
String |
getText(PanelDesignerControl controller)
Gets the text of the component as possible.
|
boolean |
isSupported(byte[] data)
Checks if this data is supported.
|
boolean |
needsImmediateCreation(byte[] data)
Checks if component needs immediate creation in the Win32 thread.
|
void |
onDestroy(PanelDesignerControl controller)
Called when destroyed.
|
void |
onImageUpdate(PanelDesignerControl controller)
Called when the component needs to update its image due to change of panel font and/or background color.
|
int |
onMouse(PanelDesignerControl controller,
int operation,
int x,
int y)
The method called from JNI.
|
void |
onTurnPage(PanelDesignerControl controller,
int page)
Called when the JNI notebook turns page.
|
int[] |
onWindowPositionChanging(PanelDesignerControl controller,
int x,
int y,
int cx,
int cy)
Called by Win32 to adjust the window position before it is changed.
|
void |
postPaint(PanelDesignerControl controller,
Graphics2D g,
JComponent c,
int cx,
int cy)
Performs a post-paint.
|
void |
prePaint(PanelDesignerControl controller,
Graphics2D g,
JComponent c,
int cx,
int cy)
Performs a pre-paint.
|
void |
setBounds(PanelDesignerControl controller,
JComponent c,
int x,
int y,
int cx,
int cy)
Sets the bounds of the component.
|
boolean |
setText(PanelDesignerControl controller,
String text)
Sets the text of the component if possible.
|
boolean |
wantMouseMessages()
Checks if this implementor wants mouse messages.
|
boolean isSupported(byte[] data) throws IOException
data
- The in-memory control data.IOException
- For file errors.boolean needsImmediateCreation(byte[] data)
JComponent createComponent(PanelDesignerControl controller, PhantomFile data, Object previousAttachment) throws IOException
controller
- The controller.data
- The in-memory control data.previousAttachment
- The previous attachment if non-null.IOException
- For file errors.void onImageUpdate(PanelDesignerControl controller)
void setBounds(PanelDesignerControl controller, JComponent c, int x, int y, int cx, int cy)
void prePaint(PanelDesignerControl controller, Graphics2D g, JComponent c, int cx, int cy)
void postPaint(PanelDesignerControl controller, Graphics2D g, JComponent c, int cx, int cy)
boolean wantMouseMessages()
int onMouse(PanelDesignerControl controller, int operation, int x, int y)
controller
- The controller.operation
- Mouse operation: MOUSEMOVE, BUTTONDOWN, BUTTONUP, BUTTONDBLCLK or CAPTURECHANGED.x
- Mouse position X relative the window.y
- Mouse position Y relative the window.int getControlSBSize(PanelDesignerControl controller, int cx, int cy)
cx
- The current width.cy
- The current height.int[] onWindowPositionChanging(PanelDesignerControl controller, int x, int y, int cx, int cy)
String getText(PanelDesignerControl controller)
void onTurnPage(PanelDesignerControl controller, int page)
boolean setText(PanelDesignerControl controller, String text)
void onDestroy(PanelDesignerControl controller)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.