2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET
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
15 #include "createGraphicObject.h"
16 #include "getScilabJavaVM.h"
19 #include "CallGraphicController.hxx"
20 #include "GraphicObjectBuilder.hxx"
21 #include "DataController.hxx"
23 using namespace org_scilab_modules_graphic_objects;
25 char *createGraphicObject(int _iType)
27 return CallGraphicController::askGraphicObject(getScilabJavaVM(), _iType);
30 char *cloneGraphicObject(char const* _sId)
32 return CallGraphicController::cloneGraphicObject(getScilabJavaVM(), _sId);
35 char const* createDataObject(char const* _sId, int _iType)
37 return DataController::createDataObject(_sId, _iType);
40 void buildFigureMenuBar(char const* _sFigureId)
42 CallGraphicController::buildFigureMenuBar(getScilabJavaVM(), _sFigureId);
45 char * constructRectangles(char * pparentsubwinUID, double x, double y, double height, double width, int foreground, int background, int isfilled, int isline)
49 return GraphicObjectBuilder::constructRectangles(getScilabJavaVM(), pparentsubwinUID, x, y, height, width, foreground, background, isfilled, isline);
51 catch (std::exception & e)
53 printf("exception: %s\n", e.what());