1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
/*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2007 - INRIA - Jean-Baptiste Silvy
* Copyright (C) 2008 - INRIA - Vincent Couvert
* desc : Interface functions between between SetProperty functions and
* the C++/Java part of module
*
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
*
*/
#ifndef _SET_JAVA_PROPERTY_H_
#define _SET_JAVA_PROPERTY_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "dynlib_renderer.h"
#include "ObjectStructure.h"
#include "BOOL.h"
/**
* Change the colormap of a figure. The colormap is stored in java
* so we need to access it.
* @param pFigure the figure we wants to modify
* @param rgbMat matrix of size nbColor x 3 conating the 3 channels
* RGB of each color.
* @param nbColor number of color in the new colormap
*/
RENDERER_IMPEXP void sciSetJavaColormap( sciPointObj * pFigure, const double rgbMat[], int nbColor ) ;
/**
* Set the size of a figure object
* @return indicates if the size could be successfully modified
*/
RENDERER_IMPEXP int sciSetJavaFigureSize( sciPointObj * pFigure, const int size[2] ) ;
/**
* Set the size of a window enclosing a figure.
*/
RENDERER_IMPEXP void sciSetJavaWindowSize( sciPointObj * pFigure, const int size[2] ) ;
/**
* Set the position in pixels of a window enclosing a figure.
*/
RENDERER_IMPEXP void sciSetJavaWindowPosition( sciPointObj * pFigure, const int pos[2] ) ;
/**
* Set the message displayed by a figure.
*/
RENDERER_IMPEXP void sciSetJavaInfoMessage( sciPointObj * pFigure, const char * infoMessage ) ;
/**
* Modify the quality of antialiasing or disable it.
* If quality if 0, the antialiasing is disables,
* otherwise it might be either 1, 2, 4, 8 or 16 and then
* specify the number of pass for antialiasing.
* @param quality positive integer.
*/
RENDERER_IMPEXP void sciSetJavaAntialiasingQuality( sciPointObj * pFigure, int quality ) ;
/**
* Zoom a subwin object with the specified rectangle in pixels
* @return TRUE if the axes box has been zoomed, FALSE otherwise
*/
RENDERER_IMPEXP BOOL sciJavaZoomRect(sciPointObj * pSubwin, int posX, int posY, int width, int height);
/**
* Register a text object in order to it after any other object later.
*/
RENDERER_IMPEXP void sciJavaAddTextToDraw(sciPointObj * pText, sciPointObj * parentSubwin);
/**
* Remove a text object in order to it after any other object later.
*/
RENDERER_IMPEXP void sciJavaRemoveTextToDraw(sciPointObj * pText, sciPointObj * parentSubwin);
/**
* Set the auto_resize mode of a figure
*/
RENDERER_IMPEXP void sciSetJavaAutoResizeMode(sciPointObj * pFigure, BOOL resizeMode);
/**
* Set the position and size of the viewport on the canvas
* @param viewport [x,y,w,h] array
*/
RENDERER_IMPEXP void sciSetJavaViewport(sciPointObj * pFigure, const int viewport[4]);
/**
* Set the background color of canvas
*/
RENDERER_IMPEXP void sciSetJavaBackground(sciPointObj * pFigure, int backColor);
/**
* Force a window to be be single buffered
*/
RENDERER_IMPEXP void sciSetJavaUseSingleBuffer(sciPointObj * pFigure, BOOL useSingleBuffer);
/**
* Set the title of a figure.
*/
RENDERER_IMPEXP void sciSetJavaTitle( sciPointObj * pFigure, const char * title ) ;
/**
* Update subwin size and scale
*/
RENDERER_IMPEXP void sciJavaUpdateSubwinScale(sciPointObj * pSubwin);
/**
* Update bounding box of a text objectr if needed
*/
RENDERER_IMPEXP void sciJavaUpdateTextBoundingBox(sciPointObj * pText);
#ifdef __cplusplus
}
#endif
#endif /* _SET_JAVA_PROPERTY_H_ */
|