Examples of ColourValueNode


Examples of org.openquark.cal.valuenode.ColourValueNode

        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

Examples of org.openquark.cal.valuenode.ColourValueNode

       }
       
        // 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

Examples of org.openquark.cal.valuenode.ColourValueNode

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

Examples of org.openquark.cal.valuenode.ColourValueNode

        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
Copyright © 2018 www.massapi.com. 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.