本文整理了Java中java.awt.Graphics2D.setPaintMode()
方法的一些代码示例,展示了Graphics2D.setPaintMode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graphics2D.setPaintMode()
方法的具体详情如下:
包路径:java.awt.Graphics2D
类名称:Graphics2D
方法名:setPaintMode
暂无
代码示例来源:origin: kevin-wayne/algs4
/**
* Turns off xor mode.
*/
public void xorOff() {
offscreen.setPaintMode();
}
代码示例来源:origin: apache/pdfbox
@Override
public void setPaintMode()
{
groupG2D.setPaintMode();
alphaG2D.setPaintMode();
}
代码示例来源:origin: geotools/geotools
public void setPaintMode() {
delegate.setPaintMode();
}
代码示例来源:origin: magefree/mage
static void renderSplashFrame(Graphics2D g) {
g.setComposite(AlphaComposite.Clear);
g.fillRect(120, 140, 200, 40);
g.setPaintMode();
g.setColor(Color.white);
g.drawString("Version 0.6.1", 560, 460);
}
代码示例来源:origin: geotools/geotools
/**
* Create the tiled image and the associated graphics object that we will be used to draw the
* vector features into a raster.
*
* <p>Note, the graphics objects will be an instance of TiledImageGraphics which is a sub-class
* of Graphics2D.
*/
private void createImage(Dimension gridDim) {
ColorModel cm = ColorModel.getRGBdefault();
SampleModel sm = cm.createCompatibleSampleModel(gridDim.width, gridDim.height);
image = new TiledImage(0, 0, gridDim.width, gridDim.height, 0, 0, sm, cm);
graphics = image.createGraphics();
graphics.setPaintMode();
graphics.setComposite(AlphaComposite.Src);
}
代码示例来源:origin: brianway/algorithms-learning
/**
* Turns off xor mode.
*/
public void xorOff() {
offscreen.setPaintMode();
}
代码示例来源:origin: org.apache.pdfbox/pdfbox
@Override
public void setPaintMode()
{
groupG2D.setPaintMode();
alphaG2D.setPaintMode();
}
代码示例来源:origin: org.scijava/j3dcore
@Override
public final void setPaintMode() {
xOrModeColor = null;
offScreenGraphics2D.setPaintMode();
}
代码示例来源:origin: com.github.yannrichet/JMathPlot
/**
* Method used to initialize drawer to DEFAULT values
*/
public void initGraphics(Graphics2D _comp2D) {
comp2D = _comp2D;
comp2D.setPaintMode();
}
代码示例来源:origin: edu.princeton.cs/algs4
/**
* Turns off xor mode.
*/
public void xorOff() {
offscreen.setPaintMode();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/napkinlaf
/** {@inheritDoc} */
@Override
public void setPaintMode() {
g2d.setPaintMode();
}
代码示例来源:origin: pentaho/pentaho-reporting
/**
* Sets the paint mode of this graphics context to overwrite the destination with this graphics context's current
* color. This sets the logical pixel operation function to the paint or overwrite mode. All subsequent rendering
* operations will overwrite the destination with the current color.
*/
public void setPaintMode() {
parent.setPaintMode();
}
代码示例来源:origin: robo-code/robocode
@Override
public void setPaintMode() {
g.setPaintMode();
}
代码示例来源:origin: com.samskivert/samskivert
@Override
public void setPaintMode ()
{
_copy.setPaintMode();
_primary.setPaintMode();
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
public void setPaintMode()
{
System.out.println( "setPaintMode():" );
g2D.setPaintMode();
}
代码示例来源:origin: com.haulmont.thirdparty/poi
public void setPaintMode()
{
System.out.println( "setPaintMode():" );
g2D.setPaintMode();
}
代码示例来源:origin: org.openmicroscopy/ome-poi
public void setPaintMode()
{
System.out.println( "setPaintMode():" );
g2D.setPaintMode();
}
代码示例来源:origin: locationtech/jts
private void teardown(Graphics2D graphics) {
graphics.setPaintMode();
graphics.setColor(originalColor);
graphics.setStroke(originalStroke);
graphics.setFont(originalFont);
}
代码示例来源:origin: com.coherentlogic.coherent.data-model/demo-application
public void show () {
int frame = 20;
final String[] comps = {"foo", "bar", "baz"};
graphics.setComposite(AlphaComposite.Clear);
graphics.fillRect(120,140,200,40);
graphics.setPaintMode();
graphics.setColor(Color.BLACK);
graphics.drawString("Loading "+comps[(frame/5)%3]+"...", 120, 150);
}
}
代码示例来源:origin: org.integratedmodelling/klab-engine
private void checkReset(int type) {
if (resetRaster) {
raster = RasterFactory.createBandedRaster(type, width, height, 1, null);
bimage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
bimage.setAccelerationPriority(1.0f);
graphics = bimage.createGraphics();
graphics.setPaintMode();
graphics.setComposite(AlphaComposite.Src);
resetRaster = false;
}
}
内容来源于网络,如有侵权,请联系作者删除!