public class DesignerCNoteBook extends DesignerControlAdapter
Constructor and Description |
---|
DesignerCNoteBook() |
Modifier and Type | Method and Description |
---|---|
JComponent |
createComponent(PanelDesignerControl controller,
PhantomFile data)
Creates the component with the specified data.
|
int |
onMouse(PanelDesignerControl controller,
int operation,
int x,
int y)
The method called from JNI when the implementation wants mouse messages.
|
void |
onTurnPage(PanelDesignerControl controller,
int page)
Called when the JNI notebook turns page.
|
void |
prePaint(PanelDesignerControl controller,
Graphics2D g,
JComponent c,
int cx,
int cy)
Performs a pre-paint: set the view port.
|
boolean |
wantMouseMessages()
Indicates notebook wants mouse messages.
|
createComponent, getControlSBSize, getText, isSupported, needsImmediateCreation, onDestroy, onImageUpdate, onWindowPositionChanging, postPaint, setBounds, setText
public JComponent createComponent(PanelDesignerControl controller, PhantomFile data) throws IOException
createComponent
in class DesignerControlAdapter
controller
- The controller.data
- The in-memory control data.IOException
- For file errors.public void prePaint(PanelDesignerControl controller, Graphics2D g, JComponent c, int cx, int cy)
prePaint
in interface IDesignerControl
prePaint
in class DesignerControlAdapter
public boolean wantMouseMessages()
wantMouseMessages
in interface IDesignerControl
wantMouseMessages
in class DesignerControlAdapter
public int onMouse(PanelDesignerControl controller, int operation, int x, int y)
onMouse
in interface IDesignerControl
onMouse
in class DesignerControlAdapter
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.public void onTurnPage(PanelDesignerControl controller, int page)
onTurnPage
in interface IDesignerControl
onTurnPage
in class DesignerControlAdapter
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.