Examples of Paint


Examples of java.awt.Paint

        checkFormat(requestProperties, parameters);
        setFormatter(parameters.formatter);

        checkBackground(requestProperties, parameters);
        Paint bgPaint = parameters.background;

        checkProjectionType(requestProperties, parameters);
        checkBoundingBox(requestProperties, parameters);
        Proj projection = createProjection(requestProperties, parameters);
       
View Full Code Here

Examples of java.awt.Paint

    public static Paint getBackground(Properties props, Paint defPaint) {
        boolean transparent = PropUtils.booleanFromProperties(props,
                TRANSPARENT,
                false);

        Paint backgroundColor = PropUtils.parseColorFromProperties(props,
                BGCOLOR,
                defPaint);
       
        if (backgroundColor == null) {
            backgroundColor = Color.white;
        }

        if (transparent) {
            if (backgroundColor instanceof Color) {
                Color bgc = (Color) backgroundColor;
                backgroundColor = new Color(bgc.getRed(), bgc.getGreen(), bgc.getBlue(), 0x00);
            } else {
                backgroundColor = OMColor.clear;
            }
        }

        if (Debug.debugging("imageserver")) {
            Debug.output("ImageServerUtils.createOMProjection: projection color: "
                    + (backgroundColor instanceof Color ? Integer.toHexString(((Color) backgroundColor).getRGB())
                            : backgroundColor.toString())
                    + ", transparent("
                    + transparent + ")");
        }

        return backgroundColor;
View Full Code Here

Examples of java.awt.Paint

        return map;
    }

    public void actionPerformed(ActionEvent ae) {
        if (map != null) {
            Paint newPaint = OMColorChooser.showDialog(this,
                    getText(),
                    map.getBackground());
            if (newPaint != null) {

                String colorString = Integer.toString(((java.awt.Color) newPaint).getRGB());
View Full Code Here

Examples of java.awt.Paint

        return stroke;
    }

    public Paint getPaint(String paintProperty, String defaultPaintString) {
        Paint paint = null;

        String paintKey = "paint" + getProperty(paintProperty);

        if (paintProperty != null) {
            paint = (Paint) renderAttributesCache.get(paintKey);
View Full Code Here

Examples of java.awt.Paint

        return paint;
    }

    public Paint getFillPaint() {

        Paint fillPaint = getPaint(LPC_FILLCOLOR, CLEAR_COLOR_STRING);
        String fillPatternString = getProperty(LPC_FILLPATTERN);

        if (fillPatternString == null
                || fillPatternString.equalsIgnoreCase(LPC_SOLID_PATTERN)) {
            return fillPaint;
View Full Code Here

Examples of java.awt.Paint

        if (scale <= 20000000f) {
            g.fillRect(0, 0, getWidth(), getHeight());
            return;
        }

        Paint oldPaint = null;
        if (g instanceof Graphics2D) {
            oldPaint = ((Graphics2D) g).getPaint();
        } else {
            oldPaint = g.getColor();
        }
View Full Code Here

Examples of java.awt.Paint

     */
    public void setLinePaint(Paint lPaint) {
        if (lPaint == linePaint)
            return;

        Paint oldPaint = linePaint;
        linePaint = lPaint;

        if (lineColorButton != null) {
            lineColorButton.setIcon(getIconForPaint(linePaint, false));
        }
View Full Code Here

Examples of java.awt.Paint

     */
    public void setSelectPaint(Paint sPaint) {
        if (sPaint == selectPaint)
            return;

        Paint oldPaint = selectPaint;
        selectPaint = sPaint;

        if (selectColorButton != null) {
            selectColorButton.setIcon(getIconForPaint(selectPaint, false));
        }
View Full Code Here

Examples of java.awt.Paint

     */
    public void setFillPaint(Paint fPaint) {
        if (fPaint == fillPaint)
            return;

        Paint oldPaint = fillPaint;
        fillPaint = fPaint;

        if (fillColorButton != null) {
            fillColorButton.setIcon(getIconForPaint(fillPaint, true));
        }
View Full Code Here

Examples of java.awt.Paint

     */
    public void setMattingPaint(Paint mPaint) {
        if (mPaint == mattingPaint)
            return;

        Paint oldPaint = mattingPaint;
        mattingPaint = mPaint;

        if (mattingColorButton != null) {
            mattingColorButton.setIcon(getMattingIconForPaint());
        }
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.