Hi,
 
       In the geometry example where you are creating a check mark,is ther a
class that i can call to visually display the check mark because i'm using
awt with the following code


public class App 
{
    public static void main( String[] args )
    {
        
        new LineWin();
        
        System.out.println( "Hello World!" + GeoTools.getVersion() );
          
        //System.out.println("made a Linestring of length: " +
line.getLength() );
         
    }
}

class LineWin extends Frame
{
    LineWin()
    {
       setTitle("Drawing a line");
       setSize(400, 300);
       
       // GeometryFactory used to create Geometries
        GeometryFactory gf = new GeometryFactory();
       
        // Set coordiante to make a line
        Coordinate[] coord = 
                new Coordinate[] { new Coordinate(10,10), new
Coordinate(20,25) } ;
       
        // Create line with coordinates
        LineString line = gf.createLineString(coord);
         
        
       setVisible(true);
    }
    
    public void paint(Graphics g)
    {
     g.drawLine(coord); 
    }
    
    class WindowCatcher extends WindowAdapter
    {
        public void windowClosing (WindowEvent evt)
        {
           evt.getWindow().dispose();
           System.exit(0);
        }
    }
    
}

but as drawline only accepts int, int,int,int, how i could i then visually
display this?

Cheers
-- 
View this message in context: 
http://www.nabble.com/Visually-Diplaying-a-Line-tp19990084p19990084.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to