Package ar.app.util

Examples of ar.app.util.LabeledItem


        super("Interpolate");
        this.setLayout(new GridLayout(1,0));
        add(lowColor);
        add(highColor);
        add(highDef);
        add(new LabeledItem("Start:", low));
        add(new LabeledItem("End:", high));
        low.addChangeListener(actionProvider.changeDelegate());
        high.addChangeListener(actionProvider.changeDelegate());
        lowColor.addActionListener(actionProvider.actionDelegate());
        highColor.addActionListener(actionProvider.actionDelegate());
        highDef.addActionListener(actionProvider.actionDelegate());
View Full Code Here


      public ColorChooser belowColor = new ColorChooser(Color.red, "Below");

      public Controls() {
        super("Percent");
        this.setLayout(new GridLayout(1,0));
        add(new LabeledItem("Percent:", spinner));
        add(aboveColor);
        add(belowColor);
       
        spinner.addChangeListener(actionProvider.changeDelegate());
        aboveColor.addActionListener(actionProvider.actionDelegate());
View Full Code Here

     
      public Controls() {
        super("Seam-carve");
        //setLayout(new GridLayout(1,3));
        add(carver);
        add(new LabeledItem("Rows:", rows));
        add(new LabeledItem("Cols:", cols));
       
        carver.addItem("Sweep");
        carver.addItem("Two Sweeps");
        carver.addItem("Exactly N");
        carver.addItem("Incremental");
View Full Code Here

      private final JSpinner contours = new JSpinner(new SpinnerNumberModel(5, 0, 20, 1));
      private final JCheckBox fill =new JCheckBox("Fill");
     
      public Controls() {
        super("Seam-carve");       
        add(new LabeledItem
            ("Contours:", contours));
        add(fill);
        contours.addChangeListener(actionProvider.changeDelegate());
        fill.addChangeListener(actionProvider.changeDelegate());
      }
View Full Code Here

      private final JSpinner left = new JSpinner(new SpinnerNumberModel(1, 0, 50,1));
      private final JSpinner right = new JSpinner(new SpinnerNumberModel(1, 0, 50,1));
     
      public Controls() {
        super("spread");       
        add(new LabeledItem("Up:", up));
        add(new LabeledItem("Down:", down));
        add(new LabeledItem("Left:", left));
        add(new LabeledItem("Right:", right));
       
        up.addChangeListener(actionProvider.changeDelegate());
        down.addChangeListener(actionProvider.changeDelegate());
        left.addChangeListener(actionProvider.changeDelegate());
        right.addChangeListener(actionProvider.changeDelegate());
View Full Code Here

      public static final Entry redBlue = new Entry("Blue/Red", Color.white, new Color[]{Color.blue, Color.red});

      private final JComboBox<Entry> palette = new JComboBox<>();
     
      public Controls() {
        this.add(new LabeledItem("Palette:", palette));
       
        palette.addItem(cableColors);
        palette.addItem(brewerColors);
        palette.addItem(tractColors);
        palette.addItem(redBlue);
View Full Code Here

  private final JProgressBar progress = new JProgressBar();
  private final Thread t = new Thread(new Monitor(), "Status updater");
  private Renderer watching;

  public Status() {
    this.add(new LabeledItem("Processing:", progress), BorderLayout.CENTER);
    progress.setMaximum(100);
    progress.setMinimum(0);
    progress.setStringPainted(true);

    t.setDaemon(true);
View Full Code Here

    renderers.addItem("Serial");
    renderers.addActionListener(actionProvider.actionDelegate());
    renderers.setSelectedItem("Parallel");
   
    JPanel upper = new JPanel();
    upper.add(new LabeledItem("Render:" , renderers));
    this.add(upper);
  }
View Full Code Here

TOP

Related Classes of ar.app.util.LabeledItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.