Search:

Type: Posts; User: liulca

Search: Search took 0.10 seconds.

  1. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    I'm sorry not to save but to pass the points based
    on the id to polygons and then draw that is the question
  2. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    I'm sorry but how do I save the collection :confused:



    <
    int n = POLYGON.size() ;
    int[] x = new int[n];
    int[] y = new int[n];
    ...
  3. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    I'm sorry I can not go on I thank you in advance.:confused:



    <

    int n = POLYGON.size() ;
    int[] x = new int[n];
    int[] y = new int[n];
  4. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    I apologize to recognize when the id changes should I use if () {}
    or how do I know when the id changes and pass the points array
    and draw thank you in advance


    <

    int n =...
  5. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    I apologize as we move forward I can not see me for help



    <
    int[] x = null ;
    int[] y = null ;
    int index = 0;
  6. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    how do I save id, x, y array polygons
    I thank you in advance



    <
    Polygon[] polygons = new Polygon[4];
    int id_number = 0;
    int x = 0;
  7. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    the procedure described in post # 15. is correct but I can not write the code
    I'm not very experienced you asking for your help I thank you in advance :confused:
  8. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    this is the code and I get this error I can get some help I thank you in advance.:confused:



    <

    Map<Integer,List<POINTS>> PolygonsByID = new...
  9. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    I followed the steps # 15 but the problem is that I can not understand
    I can get some help or some example thank you in advance :confused:
  10. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    I'm sorry but I do not understand what code I have to watch.:confused:
  11. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    I'm sorry but I do not know how I solve this problem you can see some examples thank you in advance.:confused:
  12. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    asking for your help I do not understand do wrong I'm working on this code can not spend points to individual polygons could get some help I thank you in advance.



    <
    ...
  13. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    I'm working on this solution but I error
    Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 50, Size: 1
    Thanks for your patience



    <
    ...
  14. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    the question is
    1) how do I count the number of points for each polygon;
    2) How do I switch points to polygons
    I thank you in advance



    <
    Map<Integer,List<POINTS>>...
  15. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    container is one where all the points then group the different polygons based on their <id> and eventually draw polygons can be such a thing or are on the wrong track
    I'm working on this code...
  16. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    I'm sorry this is the correct code
    I thank you in advance help me



    <
    import java.awt.Container;
    import java.awt.Graphics;
    import java.awt.event.WindowAdapter;
    import...
  17. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hi this is the code formatted I hope I was clear I thank you in advance


    import java.awt.Color;
    import java.awt.Container;
    import java.awt.Graphics;
    import java.awt.Polygon;
    import...
  18. Replies
    36
    Views
    2,686

    Re: draw 4 different polygons.

    hello
    my problem is how to draw polygons other than 4 <id> a arraylist containing all points of the polygons the code that I wrote I just draw a polygon with 25 points
    example
    polygon 1 ...... id...
  19. Replies
    36
    Views
    2,686

    draw 4 different polygons.

    hi my problem is to draw 4 different polygons thanks in advance


    import java.awt.Color;
    import java.awt.Container;
    import java.awt.Graphics;
    import java.awt.Polygon;
    import...
Results 1 to 19 of 19