Package com.lightcrafts.ui.toolkit

Examples of com.lightcrafts.ui.toolkit.DropperButton


    protected void operationChanged(Operation operation) {
        super.operationChanged(operation);

        // Make the button that enters and exits the dropper Mode:
        dropperButton = new DropperButton();
        dropperButton.setAlignmentX(1f);
        dropperButton.addItemListener(
            new ItemListener() {
                public void itemStateChanged(ItemEvent event) {
                    boolean selected =
View Full Code Here


    public WhitePointControl(WhitePointOperation op, OpStack stack) {
        super(op, stack);

        // Make the button that enters and exits the dropper Mode:
        dropperButton = new DropperButton();
        dropperButton.setAlignmentX(1f);
        dropperButton.addItemListener(
            new ItemListener() {
                public void itemStateChanged(ItemEvent event) {
                    boolean selected =
View Full Code Here

    protected void operationChanged(Operation operation) {
        super.operationChanged(operation);

        // Make the button that enters and exits the dropper Mode:
        dropperButton = new DropperButton();
        dropperButton.setAlignmentX( 1f );
        dropperButton.addItemListener(
            new ItemListener() {
                public void itemStateChanged( ItemEvent event ) {
                    getComboFrame().getEditor().setMode( EditorMode.ARROW );
View Full Code Here

            ComboFrame.class, this
        );
    }

    private void initDropper( final OpControl control ) {
        m_dropperButton = new DropperButton();
        m_dropperButton.setToolTips(
            ColorSelectStartToolTip, ColorSelectEndToolTip
        );
        m_dropperButton.addItemListener(
            new ItemListener() {
View Full Code Here

        colorContent.add(Box.createHorizontalStrut(8));
        colorContent.add(new ColorSwatch(Color.gray));
        colorContent.add(Box.createHorizontalStrut(8));
        colorContent.add(new ColorText(Color.gray));
        colorContent.add(Box.createHorizontalStrut(8));
        colorContent.add(new DropperButton());

        colorContent.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));

        JFrame frame = new JFrame("Test");
        frame.setContentPane(colorContent);
View Full Code Here

TOP

Related Classes of com.lightcrafts.ui.toolkit.DropperButton

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.