Package org.netbeans.api.visual.model

Examples of org.netbeans.api.visual.model.ObjectState


    @Override
    protected void paintWidget() {
        Graphics2D g = getScene().getGraphics();
        //g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF);
        g.setColor(this.color);
        ObjectState state = this.getState();
        float width = 1.0f;
        if (state.isHovered() || this.popupVisible) {
            width = HOVER_STROKE_WIDTH;
        }

        Stroke oldStroke = g.getStroke();
        g.setStroke(new BasicStroke(width));
View Full Code Here


            return;
        }

        Graphics2D g = getScene().getGraphics();
        g.setPaint(this.getBackground());
        ObjectState state = this.getState();
        float width = 1.0f;

        if (isBold) {
            width = BOLD_STROKE_WIDTH;
        }
View Full Code Here

TOP

Related Classes of org.netbeans.api.visual.model.ObjectState

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.