Java JComponent Properties isRectangularSelection(JComponent c)

Here you can find the source of isRectangularSelection(JComponent c)

Description

is Rectangular Selection

License

Open Source License

Declaration

public static boolean isRectangularSelection(JComponent c) 

Method Source Code

//package com.java2s;
/*//from  w w w. j av  a2s . co m
 *  Copyright (c) 2012 Sam Harwell, Tunnel Vision Laboratories LLC
 *  All rights reserved.
 *
 *  The source code of this document is proprietary work, and is not licensed for
 *  distribution. For information about licensing, contact Sam Harwell at:
 *      sam@tunnelvisionlabs.com
 */

import javax.swing.JComponent;

public class Main {
    /** Boolean property defining whether selection is being rectangular in a particular text component. */
    private static final String RECTANGULAR_SELECTION_PROPERTY = "rectangular-selection";

    public static boolean isRectangularSelection(JComponent c) {
        return Boolean.TRUE.equals(c.getClientProperty(RECTANGULAR_SELECTION_PROPERTY));
    }
}

Related

  1. isMandatory(JComponent comp)
  2. isMarker(JComponent component)
  3. isOver(JComponent c)
  4. isOverlapping(JComponent comp1, JComponent comp2)
  5. isPasteEnabled(JComponent component)
  6. isRequired(JComponent component)
  7. isVisible(JComponent c, Rectangle r)
  8. isVisible(JComponent comp)
  9. isVisibleOnScreen(final JComponent component)