added java support in the GIFPlot example

some minor changes where needed in the interface file


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@331 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Harco de Hilster 2000-03-05 18:05:55 +00:00
commit c28fa00d6a
9 changed files with 488 additions and 0 deletions

View file

@ -30,7 +30,11 @@ typedef struct ColorMap {
%addmethods {
ColorMap(char *filename);
~ColorMap();
#ifdef SWIGJAVA
%name(make_default) void default();
#else
void default();
#endif
void assign(int index,int r, int g, int b);
%name(__getitem__) int getitem(int index);
%name(__setitem__) void setitem(int index, int value);
@ -40,6 +44,16 @@ typedef struct ColorMap {
/* Some default colors */
#ifdef SWIGJAVA
const Pixel BLACK = 0;
const Pixel WHITE = 1;
const Pixel RED = 2;
const Pixel GREEN = 3;
const Pixel BLUE = 4;
const Pixel YELLOW = 5;
const Pixel CYAN = 6;
const Pixel MAGENTA = 7;
#else
#define BLACK 0
#define WHITE 1
#define RED 2
@ -48,6 +62,7 @@ typedef struct ColorMap {
#define YELLOW 5
#define CYAN 6
#define MAGENTA 7
#endif
/*-------------------------------------------------------------------------
FrameBuffer
@ -245,9 +260,11 @@ typedef struct Plot3D {
}
} Plot3D;
#ifndef SWIGJAVA
const PixMap *SQUARE = &PixMap_SQUARE;
const PixMap *TRIANGLE = &PixMap_TRIANGLE;
const PixMap *CROSS = &PixMap_CROSS;
#endif
%enabledoc