本文整理了Java中java.awt.Graphics2D.hitClip()
方法的一些代码示例,展示了Graphics2D.hitClip()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graphics2D.hitClip()
方法的具体详情如下:
包路径:java.awt.Graphics2D
类名称:Graphics2D
方法名:hitClip
暂无
代码示例来源:origin: geotools/geotools
public boolean hitClip(int x, int y, int width, int height) {
return delegate.hitClip(x, y, width, height);
}
代码示例来源:origin: net.java.openjdk.cacio/cacio-shared
@Override
public boolean hitClip(int x, int y, int w, int h) {
return wrapped.hitClip(x, y, w, h);
}
代码示例来源:origin: org.swinglabs.swingx/swingx-graphics
@Override
public boolean hitClip(int x, int y, int width, int height) {
return delegate.hitClip(x, y, width, height);
}
代码示例来源:origin: com.samskivert/samskivert
@Override
public boolean hitClip (int x, int y, int w, int h)
{
return _primary.hitClip(x, y, w, h);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/napkinlaf
/** {@inheritDoc} */
@Override
public boolean hitClip(int x, int y, int width, int height) {
return g2d.hitClip(x, y, width, height);
}
代码示例来源:origin: net.sf.jung/jung-visualization
public boolean hitClip(int x, int y, int width, int height) {
return delegate.hitClip(x, y, width, height);
}
代码示例来源:origin: JetBrains/jediterm
@Override
public boolean hitClip(int x, int y, int width, int height) {
return myPeer.hitClip(x, y, width, height);
}
代码示例来源:origin: org.swinglabs.swingx/swingx-all
@Override
public boolean hitClip(int x, int y, int width, int height) {
return delegate.hitClip(x, y, width, height);
}
代码示例来源:origin: org.scijava/j3dcore
@Override
public boolean hitClip(int x, int y, int width, int height) {
return offScreenGraphics2D.hitClip(x, y, width, height);
}
代码示例来源:origin: robo-code/robocode
@Override
public boolean hitClip(int x, int y, int width, int height) {
return g.hitClip(x, y, width, height);
}
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-graphics
@Override
public boolean hitClip(int x, int y, int width, int height) {
return delegate.hitClip(x, y, width, height);
}
代码示例来源:origin: org.geotools/gt-render
public boolean hitClip(int x, int y, int width, int height) {
return delegate.hitClip(x, y, width, height);
}
代码示例来源:origin: syedlopez/proguard
public boolean hitClip(int x, int y, int width, int height)
{
return graphics.hitClip(x, y, width, height);
}
代码示例来源:origin: jrtom/jung
public boolean hitClip(int x, int y, int width, int height) {
return delegate.hitClip(x, y, width, height);
}
代码示例来源:origin: com.haulmont.thirdparty/poi
public boolean hitClip(int x, int y, int width, int height) {
System.out.println( "hitClip(int,int,int,int):" );
System.out.println( "x = " + x );
System.out.println( "y = " + y );
System.out.println( "width = " + width );
System.out.println( "height = " + height );
return g2D.hitClip( x, y, width, height );
}
代码示例来源:origin: org.openmicroscopy/ome-poi
public boolean hitClip(int x, int y, int width, int height) {
System.out.println( "hitClip(int,int,int,int):" );
System.out.println( "x = " + x );
System.out.println( "y = " + y );
System.out.println( "width = " + width );
System.out.println( "height = " + height );
return g2D.hitClip( x, y, width, height );
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
public boolean hitClip(int x, int y, int width, int height) {
System.out.println( "hitClip(int,int,int,int):" );
System.out.println( "x = " + x );
System.out.println( "y = " + y );
System.out.println( "width = " + width );
System.out.println( "height = " + height );
return g2D.hitClip( x, y, width, height );
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
*
*/
protected boolean hitClip(mxGraphics2DCanvas canvas, mxCellState state)
{
Rectangle rect = getExtendedCellBounds(state);
return (rect == null || canvas.getGraphics().hitClip(rect.x,
rect.y, rect.width, rect.height));
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
*
*/
protected boolean hitClip(mxGraphics2DCanvas canvas, mxCellState state)
{
Rectangle rect = getExtendedCellBounds(state);
return (rect == null || canvas.getGraphics().hitClip(rect.x,
rect.y, rect.width, rect.height));
}
代码示例来源:origin: com.github.yannrichet/JMathPlot
public void drawPolygon(double[]... pC) {
int[][] c = new int[pC.length][2];
for (int i = 0; i < pC.length; i++) {
c[i] = projection.screenProjection(pC[i]);
}
int minx = c[0][0], miny = c[0][1], maxx = c[0][0] + 1, maxy = c[0][1] + 1;
int[] x = new int[c.length];
for (int i = 0; i < c.length; i++) {
x[i] = c[i][0];
minx = FastMath.min(minx, x[i]);
maxx = FastMath.max(maxx, x[i]);
}
int[] y = new int[c.length];
for (int i = 0; i < c.length; i++) {
y[i] = c[i][1];
miny = FastMath.min(miny, y[i]);
maxy = FastMath.max(maxy, y[i]);
}
if (comp2D.hitClip(minx, miny, maxx - minx, maxy - miny)) {
comp2D.drawPolygon(x, y, c.length);
}
}
内容来源于网络,如有侵权,请联系作者删除!