Package org.apache.pivot.wtk.text

Examples of org.apache.pivot.wtk.text.ComponentNode


        }
    }

    @Override
    public int getBaseline() {
        ComponentNode componentNode = (ComponentNode) getNode();
        Component component = componentNode.getComponent();

        int baseline = -1;
        if (component != null) {
            baseline = component.getBaseline();
        }
View Full Code Here


        return baseline;
    }

    @Override
    protected void setSkinLocation(int skinX, int skinY) {
        ComponentNode componentNode = (ComponentNode) getNode();
        Component component = componentNode.getComponent();

        if (component != null) {
            // I have to un-translate the x and y coordinates because the
            // component is painted by the Container object, and it's co-ordinates
            // are relative to the Container object, not to the document node hierarchy.
View Full Code Here

TOP

Related Classes of org.apache.pivot.wtk.text.ComponentNode

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.