Package ar.app.util

Examples of ar.app.util.LabeledItem


      public Controls() {
        super("Clipwarn");
        this.setLayout(new GridLayout(1,0));
        add(highColor);
        add(lowColor);
        add(new LabeledItem("Delta:", underDelta));
        underDelta.addChangeListener(actionProvider.changeDelegate());
        lowColor.addActionListener(actionProvider.actionDelegate());
        highColor.addActionListener(actionProvider.actionDelegate());
      }
View Full Code Here


    public static final class Controls extends ControlPanel {
      public JSpinner examples = new JSpinner(new SpinnerNumberModel(10, 050, 1));

      public Controls() {
        super("legend");
        this.add(new LabeledItem("Examples: ", examples));
        examples.addChangeListener(actionProvider.changeDelegate());
      }
View Full Code Here

      public ColorChooser highColor = new ColorChooser(Color.white, "Highlight");
      public ColorChooser lowColor = new ColorChooser(Color.black, "Lowlight");
      public Controls() {
        super("EdgeBoost");
        this.setLayout(new GridLayout(1,0));
        add(new LabeledItem("Radius:", radius));
        add(lowColor);
        add(highColor);
        radius.addChangeListener(actionProvider.changeDelegate());
        highColor.addActionListener(actionProvider.actionDelegate());
        lowColor.addActionListener(actionProvider.actionDelegate());
View Full Code Here

      public ColorChooser highColor = new ColorChooser(Color.black, "Highlight");
      public ColorChooser lowColor = new ColorChooser(Util.CLEAR, "Lowlight");
      public Controls() {
        super("SubPixel");
        this.setLayout(new GridLayout(1,0));
        add(new LabeledItem("Radius:", radius));
        add(lowColor);
        add(highColor);
        radius.addChangeListener(actionProvider.changeDelegate());
        highColor.addActionListener(actionProvider.actionDelegate());
        lowColor.addActionListener(actionProvider.actionDelegate());
View Full Code Here

    JPanel ds = new JPanel();
    ds.setLayout(new BorderLayout());
    ds.add(datasets, BorderLayout.CENTER);
    ds.add(transferDefaults, BorderLayout.EAST);
   
    this.add(new LabeledItem("Dataset:", ds));
    this.add(new LabeledItem("Aggregator:", aggregators));
    this.add(transferBuilder);
   
    transferDefaults.addActionListener(new ActionListener() {@Override public void actionPerformed(ActionEvent e) {transferDefaults();}});
    transferDefaults();
   
View Full Code Here

    private final JCheckBox box = new JCheckBox();
    private EnhanceHost host=null;
   
    /**Create a toggle control.  Will have no effect until 'host' is set.**/
    public Control() {
      JPanel item = new LabeledItem("Modify Selection:", box);
      this.add(item);
     
      box.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          boolean show = ((JCheckBox)e.getSource()).isSelected();
View Full Code Here

  JCheckBox enhance = new JCheckBox();
  JButton limit = new JButton("Limit/Zoom");
 
  public RegionOptions() {
    this.add(modSelection);
    this.add(new LabeledItem("Enhance:", enhance));
    this.add(limit);
   
    enhance.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        JCheckBox b = (JCheckBox) e.getSource();
View Full Code Here

    glyphsType.addItem("Quad Tree");
    glyphsType.addItem("List");
    glyphsType.addItem("MemMap List");
    glyphsType.setSelectedItem("MemMap List");
    this.add(new LabeledItem("Glyph Storage:", glyphsType));
   
    size.addItem(.001);
    size.addItem(.005);
    size.addItem(.01);
    size.addItem(.05);
    size.addItem(.1);
    size.addItem(.5);
    size.addItem(1d);
    size.setSelectedItem(.01);
    this.add(new LabeledItem("Size: ", size));
   
    ActionListener l = actionProvider.actionDelegate();
    glyphsType.addActionListener(l);
    size.addActionListener(l);
  }
View Full Code Here

  private static final Transfer<Number,Color> RED_WHITE_LOG =
      Seq.start(new General.ValuerTransfer<>(new MathValuers.Log<>(10d), 0d))
      .then(new Numbers.Interpolate<Double>(new Color(255,0,0,38), Color.red, Color.white));
 
  public Presets(HasViewTransform transformSource) {
    this.add(new LabeledItem("Presets:", presets));
    presets.addActionListener(actionProvider.actionDelegate());
   
    ar.app.util.AppUtil.loadInstances(presets, Presets.class, Presets.Preset.class, "");

    for (int i=0; i<presets.getItemCount(); i++) {
View Full Code Here

//        valuers.addItem(new Entry<>(MathValuers.MultiplyInt.class, 10));
//        valuers.addItem(new Entry<>(MathValuers.SubtractInt.class, 1));
       
       
        this.setLayout(new GridLayout(1,0));
        this.add(new LabeledItem("Operation:", valuers));
        this.add(new LabeledItem("Ref Arg:", value));

        value.addChangeListener(actionProvider.changeDelegate());
        valuers.addActionListener(actionProvider.actionDelegate());
        valuers.addItemListener(new ItemListener() {
          @Override public void itemStateChanged(ItemEvent e) {
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.