package jlink.example;
import java.awt.*;
import java.io.PrintStream;
import javax.swing.*;
import jlink.flowchart.*;
import jlink.flowchart.graph.JLGraph;
import jlink.icon.JLinkImageDistributor;
// Referenced classes of package jlink.example:
// JLinkGraphModelExample
public class JLinkFeatures
{
JFrame frame;
String titleString;
JLFlowchart flowchart1;
JLFlowchart flowchart2;
JLFlowchart flowchart3;
JLFlowchart flowchart4;
JLGraph graph;
JLCanvas canvas;
JLabel status;
public JLinkFeatures()
{
frame = new JFrame();
titleString = new String("Untitled Document");
graph = new JLGraph();
canvas = new JLCanvas();
status = new JLabel("JLink Flowchart Authoring Tool v1.0");
frame.setTitle(titleString);
frame.setIconImage((new JLinkImageDistributor()).getJLinkWindowImage());
flowchart1 = new JLFlowchart(graph, 3, Color.WHITE, Color.BLACK, Color.BLACK, new Dimension(500, 600));
flowchart2 = new JLFlowchart(graph, 5, Color.WHITE, Color.BLACK, Color.BLACK, new Dimension(500, 600));
flowchart3 = new JLFlowchart(graph, 4, Color.WHITE, Color.BLACK, Color.BLACK, new Dimension(500, 600));
flowchart4 = new JLFlowchart(graph, 1, Color.WHITE, Color.BLACK, Color.BLACK, new Dimension(500, 600));
flowchart4.setJLPageOrientation(10);
JLWorksheet ws = new JLWorksheet();
ws.setJLWorksheetType(1);
ws.setAuthor("Jason Barraclough");
ws.setProcessName("Cooking toast.");
ws.setChartName("Making Jason Breakfast.");
ws.setChartID(1);
ws.setProcessNumber(13);
ws.setDescription("Looking after Jason has its quirks. Cooking him toast is no exception.");
ws.setDate("10th Jan 2008");
ws.setPage(1);
canvas.addNewContainer(flowchart1);
canvas.addNewContainer(flowchart2);
canvas.addNewContainer(flowchart3);
canvas.addNewContainer(flowchart4);
canvas.addNewContainer(ws);
frame.getContentPane().add(new JScrollPane(canvas), "Center");
frame.getContentPane().add(status, "South");
frame.setSize(600, 600);
frame.setDefaultCloseOperation(3);
frame.setExtendedState(6);
frame.setVisible(true);
JLinkGraphModelExample g1 = new JLinkGraphModelExample();
System.out.println(g1.toast.toString());
}
public static void main(String args[])
{
new JLinkFeatures();
}
}