Examples of Paint


Examples of java.awt.Paint

    public TexturePaint getTextureMask() {
        return textureMask;
    }

    protected void setEdgeMatchesFill() {
        Paint paint = getDisplayPaint();
        if (fillPaint instanceof Color && paint instanceof Color
                && !isClear(fillPaint)) {
            edgeMatchesFill = ((Color) fillPaint).equals((Color) paint);
        } else {
            edgeMatchesFill = false;
View Full Code Here

Examples of java.awt.Paint

        int[][] ypts = ypoints;
        int[] _x, _y;
        int i;
        int len = xpts.length;

        Paint displayPaint = getDisplayPaint();
        Paint fillPaint = getFillPaint();
        boolean isFillClear = isClear(fillPaint);
        boolean isLineClear = isClear(displayPaint);

        // If shapes are null, then we have to do things the old way.
        try {
View Full Code Here

Examples of java.awt.Paint

        int[] _x, _y;
        int i;
        int len = xpts.length;

        Paint displayPaint = getDisplayPaint();
        Paint fillPaint = getFillPaint();
        boolean isFillClear = isClear(fillPaint);
        boolean isLineClear = isClear(displayPaint);

        Paint tm = getTextureMask();

        // If shapes are null, then we have to do things the old way.
        try {
            for (i = 0; i < len; i++) {
                _x = xpts[i];
View Full Code Here

Examples of java.awt.Paint

     * @since
     */
    private void setLocationColor(BasicLocation bl, int t) {
        if (bl == null)
            return;
        Paint c = getLabPaint(t);
        OMText label = bl.getLabel();
        if (label != null) {
            if (LabTextColor != null)
                label.setLinePaint(LabTextColor);
            else
View Full Code Here

Examples of java.awt.Paint

        // setBackground(ImageServerUtils.getBackground(requestProperties,
        // getBackground()));

        // New way, passed along to ImageServer methods.
        Paint bgPaint = ImageServerUtils.getBackground(requestProperties,
                getBackground());

        boolean formatFound = false;

        String format = requestProperties.getProperty(FORMAT);
View Full Code Here

Examples of java.awt.Paint

        }

        props.setProperty(LPC_LINEWIDTH,
                Integer.toString((int) ((BasicStroke) omGraphic.getStroke()).getLineWidth()));

        Paint paint = omGraphic.getLinePaint();
        if (paint instanceof Color) {
            props.setProperty(LPC_LINECOLOR,
                    ColorFactory.getHexColorString((Color) paint));
        }
View Full Code Here

Examples of java.awt.Paint

        String paintString = props.getProperty(propertyKey);
        if (paintString == null) {
            paintString = props.getProperty(Environment.BackgroundColor);
        }

        Paint ret = null;
        if (paintString != null) {
            try {
                ret = PropUtils.parseColor(paintString);
            } catch (NumberFormatException nfe) {
                // Color set to white below...
View Full Code Here

Examples of java.awt.Paint

    /**
     * render points
     */
    protected void renderPoints(Graphics g) {
        Paint pointPaint = getLabelPaint();

        for (Iterator it = points.iterator(); it.hasNext();) {
            OMPoint point = (OMPoint) it.next();
            point.setLinePaint(pointPaint);
            point.setFillPaint(pointPaint);
View Full Code Here

Examples of java.awt.Paint

    /**
     * render labels
     */
    protected void renderLabels(Graphics g) {
        Font f = getFont();
        Paint labelPaint = getLabelPaint();
        Paint mattingPaint = getMattingPaint();
        boolean isMatted = isMatted();
        for (Iterator it = labels.iterator(); it.hasNext();) {
            OMText text = (OMText) it.next();
            text.setFont(f);
            text.setLinePaint(labelPaint);
View Full Code Here

Examples of java.awt.Paint

        }

        pixels = new int[nPixels];

        // Init colors.
        Paint paint = getDisplayPaint();
        if (paint instanceof Color) {
            foreground = ((Color) paint).getRGB();
        } else {
            foreground = Color.black.getRGB();
        }
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.