Package nodebox.ui

Examples of nodebox.ui.DraggableNumber


    private DraggableNumber draggable;

    public FloatControl(String nodePath, Port port) {
        super(nodePath, port);
        setLayout(new FlowLayout(FlowLayout.LEADING, 0, 0));
        draggable = new DraggableNumber();
        draggable.addChangeListener(this);
        draggable.setMinimumValue(null);
        draggable.setMinimumValue(port.getMinimumValue());
        draggable.setMaximumValue(port.getMaximumValue());
        setPreferredSize(draggable.getPreferredSize());
View Full Code Here


        //   (to compensate for the effect).
        JPanel frameNumberPanel = new JPanel();
        frameNumberPanel.setOpaque(false);
        frameNumberPanel.setLayout(new FlowLayout(FlowLayout.LEADING, 0, 0));
        frameNumberPanel.setBorder(new Theme.InsetsBorder(5, 0, -4, 0));
        frameNumber = new DraggableNumber();
        frameNumber.addChangeListener(this);
        frameNumberPanel.add(frameNumber);
        add(frameNumberPanel);
        playButton = new NButton("Play", getImageStream("/animation-play.png"), getImageStream("/animation-stop.png"));
        playButton.setToolTipText("Play Animation");
View Full Code Here

    private DraggableNumber draggable;

    public IntControl(String nodePath, Port port) {
        super(nodePath, port);
        setLayout(new FlowLayout(FlowLayout.LEADING, 0, 0));
        draggable = new DraggableNumber();
        draggable.addChangeListener(this);
        NumberFormat intFormat = NumberFormat.getNumberInstance(Locale.US);
        intFormat.setMinimumFractionDigits(0);
        intFormat.setMaximumFractionDigits(0);
        draggable.setNumberFormat(intFormat);
View Full Code Here

    private final DraggableNumber yNumber;

    public PointControl(String nodePath, Port port) {
        super(nodePath, port);
        setLayout(new FlowLayout(FlowLayout.LEADING, 0, 0));
        xNumber = new DraggableNumber();
        xNumber.addChangeListener(this);
        yNumber = new DraggableNumber();
        yNumber.addChangeListener(this);
        add(xNumber);
        add(Box.createHorizontalStrut(5));
        add(yNumber);
        setValueForControl(port.getValue());
View Full Code Here

TOP

Related Classes of nodebox.ui.DraggableNumber

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.