Package org.openquark.cal.valuenode

Examples of org.openquark.cal.valuenode.ColourValueNode$ColourValueNodeProvider


        ValueNode valueVN = (ValueNode) value;

        // Special case when handling Colour data types.
        if (valueVN instanceof ColourValueNode) {      

            ColourValueNode colourValueNode = (ColourValueNode) valueVN;
            Color colour = colourValueNode.getColourValue();
           
            displayLabel.setBackground(colour);
            displayLabel.setForeground(colour);
           
        } else {
View Full Code Here


       }
       
        // Special handling for colour value nodes.
        if (valueNode instanceof ColourValueNode) {      

            ColourValueNode colourValueNode = (ColourValueNode) valueNode;

            Color colour = colourValueNode.getColourValue();
            Color opaqueColour = new Color(colour.getRed(), colour.getGreen(), colour.getBlue());           
            getValueField().setBackground(opaqueColour);
            getValueField().setForeground(opaqueColour);
            getValueField().setSelectedTextColor(opaqueColour);
            getValueField().setSelectionColor(opaqueColour);
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    protected void commitValue() {
        ValueNode returnVN = new ColourValueNode(getColourChooser().getColor(), getValueNode().getTypeExpr());
        replaceValueNode(returnVN, false);
        notifyValueCommitted();
    }
View Full Code Here

        else if (value instanceof Color) {       
            TypeExpr colourType = calServices.getTypeFromQualifiedName(CAL_Color.TypeConstructors.Color);
            if (colourType == null) {
                return null;
            }
            return new ColourValueNode((Color) value, colourType);
        }
        else if (value instanceof Time) {
            TypeExpr timeType = calServices.getTypeFromQualifiedName(CAL_Time.TypeConstructors.Time);
            if (timeType == null) {
                return null;               
View Full Code Here

TOP

Related Classes of org.openquark.cal.valuenode.ColourValueNode$ColourValueNodeProvider

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.