1 Reply Latest reply on Jun 18, 2009 5:07 PM by apmyhr

    Drawing geometrical objects


      how can I draw a line or a rectangle or a circle?


      the problem is i'll be getting the parameters to draw the geometrical object from server and i need to draw the same.



        • 1. Re: Drawing geometrical objects

          For just about any UIComponent class, you can access its graphics object.  For example,


          this.graphics.drawRoundRect(x, y, width, height);


          This will draw a rectangle ontop of your component.  If you want to have this filled with a color, just remember to put this before it,




          If you need to do more, just check the graphics class API