Package java.awt

Examples of java.awt.Component$HeavyweightInLightweightListener


    public Component getGUI(GraphicAttributes graphicAttributes) {
        Debug.message("eomg", "EditableOMPoly.getGUI");
        if (graphicAttributes != null) {
            JMenu ahm = getArrowHeadMenu();
            graphicAttributes.setLineMenuAdditions(new JMenu[] { ahm });
            Component gaGUI = graphicAttributes.getGUI();
            ((JComponent) gaGUI).add(getPolyGUI());
            return gaGUI;
        } else {
            return getPolyGUI();
        }
View Full Code Here


     * Set the name of the plugin. If the parent component is a layer, set its
     * pretty name as well.
     */
    public void setName(String name) {
        this.name = name;
        Component comp = getComponent();
        if (comp != null) {
            comp.setName(name);
        }
    }
View Full Code Here

    /**
     * Get the pretty name of the plugin, which is really the pretty name of the
     * parent component if it's set.
     */
    public String getName() {
        Component comp = getComponent();
        if (comp != null) {
            name = comp.getName();
        }
        return name;
    }
View Full Code Here

     * the application. What that means is up to the LayerHandler or other
     * application components.
     */
    public void setRemovable(boolean set) {
        this.removable = set;
        Component comp = getComponent();
        if ((comp != null) && (comp instanceof Layer)) {
            ((Layer) comp).setRemovable(set);
        }
    }
View Full Code Here

     * removed from an application.
     *
     * @return true if plugin should be allowed to be deleted.
     */
    public boolean isRemovable() {
        Component comp = getComponent();
        if ((comp != null) && (comp instanceof Layer)) {
            this.removable = ((Layer) comp).isRemovable();
        }
        return removable;
    }
View Full Code Here

                } else {
                    index = list.indexOf(omg);
                }

                if (parentLayer == null) {
                    Component comp = getComponent();
                    if (comp != null && comp instanceof Layer) {
                        parentLayer = (Layer) comp;
                    }
                }
View Full Code Here

        if (Debug.debugging("layerspanel")) {
            Debug.output("LayerPane: layer pane for " + layer.getName()
                    + " receiving componentShown event");
        }

        Component comp = e.getComponent();
        if (comp == null) {
        } else if (comp == layer) {
            if (isLayerOn() != true) {
                setLayerOn(true);
                if (Debug.debugging("layerspanel")) {
View Full Code Here

    public void componentHidden(ComponentEvent e) {
        if (Debug.debugging("layerspanel")) {
            Debug.output("LayerPane: layer pane for " + layer.getName()
                    + " receiving componentHidden event");
        }
        Component comp = e.getComponent();

        if (comp == layer) {
            if (isLayerOn() != false) {
                setLayerOn(false);
                if (Debug.debugging("layerspanel")) {
View Full Code Here

            } catch (Exception e) {
                e.printStackTrace();
                editorClass = null;
            }

            Component editorFace = null;
            if (editor != null && editor.supportsCustomEditor()) {
                editorFace = editor.getCustomEditor();
            } else {
                editorFace = new JLabel("Does not support custom editor");
            }
View Full Code Here

                label = ((Node) graphic).getLabel();
                // } else if (graphic instanceof Line) {
                // label = ((Line)graphic).getLabel();
            }
            if (receiver instanceof PlugIn) {
                Component comp = ((PlugIn) receiver).getComponent();
                if (comp instanceof Layer) {
                    if (graphic != null && label != null) {
                        ((Layer) comp).fireRequestToolTip("Node " + label);
                        toolTipUp = true;
                    } else if (toolTipUp) {
View Full Code Here

TOP

Related Classes of java.awt.Component$HeavyweightInLightweightListener

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.