2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2008 - INRIA - Jean-Baptiste Silvy
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
14 * @file JavaInteraction.h
16 * File regrouping routines used to interact with Java graphic objects
19 #ifndef _JAVA_INTERACTION_H_
20 #define _JAVA_INTERACTION_H_
26 #include "dynlib_renderer.h"
27 #include "ObjectStructure.h"
31 * Start interactive zoom on given figure
33 RENDERER_IMPEXP void startInteractiveZoom(char *pstObjUID);
36 * Call rubber box on a figure
37 * @param pstObjUID figure UID on which to apply the rubber box
38 * @param intialRect if not null, specify the initial rectangle to use
39 * @return [usedButton x y z l L h]
41 RENDERER_IMPEXP double *javaClickRubberBox(char *pstObjUID, double *initialRect, int iRectSize);
42 RENDERER_IMPEXP double *javaDragRubberBox(char *pstObjUID);
45 * Perform an interactive zoom of the figure using a rectangular selection.
46 * @param pFigure figure to zoom.
48 RENDERER_IMPEXP void interactiveJavaZoom(sciPointObj * pFigure);
51 * Perform an interactive zoom of the subwin using a rectangular selection.
52 * @param pSubwin subwin to zoom.
54 RENDERER_IMPEXP void interactiveJavaSubwinZoom(sciPointObj * pSubwin);
57 * Perform an interactive rotation of a subwin contained in the figure.
58 * @param pFigure figure corresponding to the canvas
60 RENDERER_IMPEXP void interactiveJavaRotation(sciPointObj * pFigure);
63 * Perform an interactive rotation of a subwin with the mouse.
64 * @param pSubwin subwin to rotate
66 RENDERER_IMPEXP void interactiveJavaSubwinRotation(sciPointObj * pSubwin);
70 * @param pSubwin subwin to unzoom
72 RENDERER_IMPEXP void javaUnzoomSubwin(sciPointObj * pSubwin);
75 * Put the figure in top of other windows.
76 * @pram pFigure figure corresponding to the window
78 RENDERER_IMPEXP void javaShowWindow(sciPointObj * pFigure);
84 #endif /* _JAVA_INTERACTION_H_ */