1 // 2 // Description: 3 // SWFFill Class 4 // 5 // Authors: 6 // Jonathan Shore <jshore@e-shuppan.com> 7 // Based on php wrapper developed by <dave@opaque.net> 8 // 9 // Copyright: 10 // Copyright 2001 E-Publishing Group Inc. Permission is granted to use or 11 // modify this code provided that the original copyright notice is included. 12 // 13 // This software is distributed with no warranty of liability, merchantability, 14 // or fitness for a specific purpose. 15 // 16 17 18 19 20 21 22 23 // 24 // SWFFill Class 25 // general fill container 26 // 27 // Notes 28 // - this object is not instantiated by the user rather is generated 29 // when a fill is specified on a path-based entity. 30 // 31 public class SWFFill extends SWFObject implements SWFFillI { 32 SWFFill(int handle)33 public SWFFill (int handle) 34 throws SWFException 35 { 36 super (handle); 37 } 38 39 skewX(float skew)40 public void skewX (float skew) 41 { nSkewX (handle, skew); } skewXTo(float skew)42 public void skewXTo (float skew) 43 { nSkewXTo (handle, skew); } 44 skewY(float skew)45 public void skewY (float skew) 46 { nSkewY (handle, skew); } skewYTo(float skew)47 public void skewYTo (float skew) 48 { nSkewYTo (handle, skew); } 49 scaleX(float scale)50 public void scaleX (float scale) 51 { nScaleX (handle, scale); } scaleXTo(float scale)52 public void scaleXTo (float scale) 53 { nScaleXTo (handle, scale); } 54 scaleY(float scale)55 public void scaleY (float scale) 56 { nScaleY (handle, scale); } scaleYTo(float scale)57 public void scaleYTo (float scale) 58 { nScaleYTo (handle, scale); } 59 scale(float xscale, float yscale)60 public void scale (float xscale, float yscale) 61 { nScale (handle, xscale, yscale); } scale(float scale)62 public void scale (float scale) 63 { nScale (handle, scale, scale); } 64 rotate(float degrees)65 public void rotate (float degrees) 66 { nRotate (handle, degrees); } rotateTo(float degrees)67 public void rotateTo (float degrees) 68 { nRotateTo (handle, degrees); } 69 move(float x, float y)70 public void move (float x, float y) 71 { nMove (handle, x, y); } moveTo(float x, float y)72 public void moveTo (float x, float y) 73 { nMoveTo (handle, x, y); } 74 75 finalize()76 protected void finalize() 77 throws Throwable 78 { 79 nDestroy (handle); 80 super.finalize(); 81 } 82 83 84 // native methods 85 nDestroy(int handle)86 protected native void nDestroy (int handle); 87 nSkewX(int handle, float skew)88 protected native void nSkewX (int handle, float skew); nSkewXTo(int handle, float skew)89 protected native void nSkewXTo (int handle, float skew); 90 nSkewY(int handle, float skew)91 protected native void nSkewY (int handle, float skew); nSkewYTo(int handle, float skew)92 protected native void nSkewYTo (int handle, float skew); 93 nScaleX(int handle, float scale)94 protected native void nScaleX (int handle, float scale); nScaleXTo(int handle, float scale)95 protected native void nScaleXTo (int handle, float scale); 96 nScaleY(int handle, float scale)97 protected native void nScaleY (int handle, float scale); nScaleYTo(int handle, float scale)98 protected native void nScaleYTo (int handle, float scale); 99 nScale(int handle, float xscale, float yscale)100 protected native void nScale (int handle, float xscale, float yscale); 101 nRotate(int handle, float degrees)102 protected native void nRotate (int handle, float degrees); nRotateTo(int handle, float degrees)103 protected native void nRotateTo (int handle, float degrees); 104 nMove(int handle, float x, float y)105 protected native void nMove (int handle, float x, float y); nMoveTo(int handle, float x, float y)106 protected native void nMoveTo (int handle, float x, float y); 107 }; 108 109 110 111 112 113 114 115 116 117 118