本文整理了Java中java.awt.Graphics2D.fill3DRect()
方法的一些代码示例,展示了Graphics2D.fill3DRect()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graphics2D.fill3DRect()
方法的具体详情如下:
包路径:java.awt.Graphics2D
类名称:Graphics2D
方法名:fill3DRect
暂无
代码示例来源:origin: chewiebug/GCViewer
/**
* Creates a rectangular mono colored image.
*
* @param paint color of the image
* @param width width of the image
* @param height height of the image
* @return mono colored rectangular image
*/
public static ImageIcon createMonoColoredImageIcon(final Paint paint, final int width, final int height) {
final BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR_PRE);
final Graphics2D g = image.createGraphics();
g.setPaint(paint);
final int lineHeight = 4;
g.fill3DRect(0, height / 2 - lineHeight / 2, width, lineHeight, false);
g.dispose();
return new ImageIcon(image);
}
代码示例来源:origin: geotools/geotools
public void fill3DRect(int x, int y, int width, int height, boolean raised) {
delegate.fill3DRect(x, y, width, height, raised);
}
代码示例来源:origin: com.harium/etyl
/**
*
* @param x
* @param y
* @param w
* @param h
* @param raised
*/
public void fill3DRect(int x, int y, int w, int h, boolean raised) {
screen.fill3DRect(x, y, w, h, raised);
}
代码示例来源:origin: com.samskivert/samskivert
@Override
public void fill3DRect (int x, int y, int w, int h, boolean r)
{
_copy.fill3DRect(x, y, w, h, r);
_primary.fill3DRect(x, y, w, h, r);
}
代码示例来源:origin: com.harium.etyl/etyl
/**
* @param x
* @param y
* @param w
* @param h
* @param raised
*/
public void fill3DRect(int x, int y, int w, int h, boolean raised) {
screen.fill3DRect(x, y, w, h, raised);
}
代码示例来源:origin: robo-code/robocode
@Override
public void fill3DRect(int x, int y, int width, int height, boolean raised) {
g.fill3DRect(x, y, width, height, raised);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/napkinlaf
/** {@inheritDoc} */
@Override
public void fill3DRect(int x, int y, int width, int height,
boolean raised) {
g2d.fill3DRect(x, y, width, height, raised);
}
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-graphics
@Override
public void fill3DRect(int x, int y, int width, int height, boolean raised) {
delegate.fill3DRect(x, y, width, height, raised);
}
代码示例来源:origin: net.java.openjdk.cacio/cacio-shared
@Override
public void fill3DRect(int x, int y, int width, int height, boolean r) {
wrapped.fill3DRect(x, y, width, height, r);
}
代码示例来源:origin: org.swinglabs.swingx/swingx-all
@Override
public void fill3DRect(int x, int y, int width, int height, boolean raised) {
delegate.fill3DRect(x, y, width, height, raised);
}
代码示例来源:origin: org.swinglabs.swingx/swingx-graphics
@Override
public void fill3DRect(int x, int y, int width, int height, boolean raised) {
delegate.fill3DRect(x, y, width, height, raised);
}
代码示例来源:origin: syedlopez/proguard
public void fill3DRect(int x, int y, int width, int height, boolean raised)
{
graphics.fill3DRect(x, y, width, height, raised);
}
代码示例来源:origin: JetBrains/jediterm
@Override
public void fill3DRect(int x, int y, int width, int height, boolean raised) {
myPeer.fill3DRect(x, y, width, height, raised);
}
代码示例来源:origin: jrtom/jung
public void fill3DRect(int x, int y, int width, int height, boolean raised) {
delegate.fill3DRect(x, y, width, height, raised);
}
代码示例来源:origin: com.haulmont.thirdparty/poi
public void fill3DRect(int x, int y, int width, int height,
boolean raised) {
System.out.println( "fill3DRect(int,int,int,int,boolean):" );
System.out.println( "x = " + x );
System.out.println( "y = " + y );
System.out.println( "width = " + width );
System.out.println( "height = " + height );
System.out.println( "raised = " + raised );
g2D.fill3DRect( x, y, width, height, raised );
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
public void fill3DRect(int x, int y, int width, int height,
boolean raised) {
System.out.println( "fill3DRect(int,int,int,int,boolean):" );
System.out.println( "x = " + x );
System.out.println( "y = " + y );
System.out.println( "width = " + width );
System.out.println( "height = " + height );
System.out.println( "raised = " + raised );
g2D.fill3DRect( x, y, width, height, raised );
}
代码示例来源:origin: org.openmicroscopy/ome-poi
public void fill3DRect(int x, int y, int width, int height,
boolean raised) {
System.out.println( "fill3DRect(int,int,int,int,boolean):" );
System.out.println( "x = " + x );
System.out.println( "y = " + y );
System.out.println( "width = " + width );
System.out.println( "height = " + height );
System.out.println( "raised = " + raised );
g2D.fill3DRect( x, y, width, height, raised );
}
代码示例来源:origin: robo-code/robocode
private void processFill3DRect(Graphics2D g) {
// fill3DRect(int, int, int, int, boolean)
g.fill3DRect(calls.getInt(), calls.getInt(), calls.getInt(), calls.getInt(),
serializer.deserializeBoolean(calls));
}
代码示例来源:origin: org.scijava/j3dcore
@Override
public void fill3DRect(int x, int y, int width, int height,
boolean raised) {
// XXXX: call validate with bounding box of primitive
// XXXX: need to consider Stroke width
validate();
offScreenGraphics2D.fill3DRect(x, y, width, height, raised);
}
代码示例来源:origin: ontopia/ontopia
/** Draw a coloured square at the end of the display. */
@Override
public void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2 = (Graphics2D) g;
Shape clip = g2.getClip();
Rectangle bounds = clip.getBounds();
double width = bounds.getWidth();
double height = bounds.getHeight();
g2.setColor(squareColor);
g2.fill3DRect(((int) width - 25), 0, 25, (int) height, true);
visibleIndicator.paintComponent(g);
}
内容来源于网络,如有侵权,请联系作者删除!