Search in sources :

Example 1 with PlaneTool

use of org.twak.tweed.tools.PlaneTool in project chordatlas by twak.

the class PanoGen method getUI.

@Override
public JComponent getUI() {
    ui.removeAll();
    ui.setLayout(new ListDownLayout());
    if (new File(Tweed.toWorkspace(folder), TO_DOWNLOAD).exists()) {
        JButton download = new JButton("download");
        download.addActionListener(e -> downloadPanos());
        ui.add(download);
    }
    JButton align = new JButton("facade tool");
    align.addActionListener(e -> tweed.setTool(new FacadeTool(tweed)));
    ui.add(align);
    JButton plane = new JButton("plane tool");
    plane.addActionListener(e -> tweed.setTool(new PlaneTool(tweed)));
    ui.add(plane);
    return ui;
}
Also used : ListDownLayout(org.twak.utils.ui.ListDownLayout) JButton(javax.swing.JButton) File(java.io.File) FacadeTool(org.twak.tweed.tools.FacadeTool) PlaneTool(org.twak.tweed.tools.PlaneTool)

Aggregations

File (java.io.File)1 JButton (javax.swing.JButton)1 FacadeTool (org.twak.tweed.tools.FacadeTool)1 PlaneTool (org.twak.tweed.tools.PlaneTool)1 ListDownLayout (org.twak.utils.ui.ListDownLayout)1