package uk.me.graphe.client;

import java.util.Collection;

import com.google.gwt.widgetideas.graphics.client.GWTCanvas;

public interface Drawing {	
    /**
     * adds a vertex to the graph
     * 
     * the vertex may not be centered at the passed location
     * 
     * @param canvas
     *            the name of the GWTCanvas to be rendered
     * @param edges
     *            the collection of vertices to be drawn
     * @param vertices
     *            the collection of edges to be drawn
     */
    public void renderGraph (GWTCanvas canvas, Collection<EdgeDrawable> edges, Collection<VertexDrawable> vertices);

    /**
     * Assign an offset to the graph drawing. The offsets are stored 
     * in drawing and whenever anything is drawn it adds these offsets 
     * to their coordinates. 
     * @param x
     * 			the new x offset to be added to the old one
     * @param y
     * 			the new y offset to be added to the old one
     * 			
     */
    public void setOffset(int x, int y);

    /**
     * 
     * @return the x offset
     */
    public int getOffsetX();
    
    /**
     * 
     * @return the y offset
     */
    public int getOffsetY();
    
    /**
     * set the zoom
     * @param zoom
     */
    public void setZoom(double zoom);
    
    /**
     * 
     * @return the current level of zoom (1 = no zoom)
     */
    public double getZoom();

    /**
     * 
     * @param value - determines whether user is in 
     * flow chart mode or not
     */
	public void setFlowChart(boolean value);
}

@@ -1531,10 +1531,606 @@
 value);%0A
+%09%0A    /**%0A     * set the coordinates of the UI line, and displays it%0A     * %0A     * @param startX%0A     *            x coordinate of start point%0A     * @param startY%0A     *            y coordinate of start point%0A     * @param endX%0A     *            x coordinate of end point%0A     * @param endY%0A     *            y coordinate of end point%0A     */%0A    public void setUILine(double startX,double startY,double endX,double endY);%0A    %0A    /**%0A     * displays the UI line%0A     * %0A     */%0A    public void showUIline();%0A    %0A    /**%0A     * hides the UI line%0A     * %0A     */%0A    public void hideUIline();%0A
 %7D%0A

Add methods for UI line