Java Graphics Draw drawMask(Graphics2D g2, Shape mask)

Here you can find the source of drawMask(Graphics2D g2, Shape mask)

Description

draw Mask

License

Open Source License

Declaration

private static void drawMask(Graphics2D g2, Shape mask) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2010 Australian Nuclear Science and Technology Organisation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0 
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * //from  w w  w.  j av a 2s  .c  o m
 * Contributors: 
 *    Norman Xiong (nxi@Bragg Institute) - initial API and implementation
 ******************************************************************************/

import java.awt.Graphics2D;
import java.awt.Shape;

public class Main {
    private static void drawMask(Graphics2D g2, Shape mask) {
        g2.fill(mask);
    }
}

Related

  1. drawInnerButtonDecoration(Graphics g, int x, int y, int w, int h, Color baseColor)
  2. drawISPip(Graphics2D g2d, float width, float height)
  3. drawLightBeamVertical(Graphics g, Color c, int midx, int y1, int y2)
  4. drawLoweredBezel(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
  5. drawMarker(Graphics2D g, int markerWidth, int markerHeight, Point location)
  6. drawMovingRect(int x, int y, int width, int height, Graphics g, int seed)
  7. drawOptimizedLine(Graphics g, int x1, int y1, int x2, int y2)
  8. drawPaintedShape(Graphics2D graphics, Shape shape, Paint paint, Rectangle2D paintBounds, Stroke stroke)
  9. drawPowerScaleLabel(Graphics g, int base, int power, int x, int y, boolean yAxisP)