本文整理了Java中javax.swing.JPanel.paintBorder()
方法的一些代码示例,展示了JPanel.paintBorder()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPanel.paintBorder()
方法的具体详情如下:
包路径:javax.swing.JPanel
类名称:JPanel
方法名:paintBorder
暂无
代码示例来源:origin: xyz.cofe/docking-frames-core
@Override
public void paintBorder( Graphics g ){
super.paintBorder( g );
}
代码示例来源:origin: Exslims/MercuryTrade
g2.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);
g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
super.paintBorder(g2);
if (this.blurReverse) {
if (this.paintBorderValue <= 1.0f) {
super.paintBorder(g);
代码示例来源:origin: org.gosu-lang.gosu/gosu-lab
protected void paintComponent( Graphics g )
{
Graphics2D g2In = (Graphics2D)g;
BufferedImage bi = g2In.getDeviceConfiguration().createCompatibleImage( getWidth(), getHeight(), Transparency.TRANSLUCENT );
Graphics2D g2Image = getTransformedGraphics( g2In, bi );
paintTab( g2Image );
super.paintBorder( g2Image );
if( g2Image != g2In )
{
g2Image.dispose();
g2In.drawImage( bi, null, 0, 0 );
}
}
代码示例来源:origin: org.gosu-lang.gosu/gosu-editor
protected void paintComponent( Graphics g )
{
Graphics2D g2In = (Graphics2D)g;
BufferedImage bi = g2In.getDeviceConfiguration().createCompatibleImage( getWidth(), getHeight(), Transparency.TRANSLUCENT );
Graphics2D g2Image = getTransformedGraphics( g2In, bi );
paintTab( g2Image );
super.paintBorder( g2Image );
if( g2Image != g2In )
{
g2Image.dispose();
g2In.drawImage( bi, null, 0, 0 );
}
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
public void paint(Graphics g) {
if (isShowing()) {
super.paint(g);
} else {
getLayout().layoutContainer(this);
Component[] c = getComponents();
Color col = g.getColor();
try {
g.setColor(getBackground());
g.fillRect(0, 0, getWidth(), getHeight());
for (int i = 0; i < c.length; i++) {
Rectangle r = c[i].getBounds();
if (g.hitClip(r.x, r.y, r.width, r.height)) {
Graphics g2 = g.create(r.x, r.y, r.width, r.height);
try {
c[i].paint(g2);
} finally {
g2.dispose();
}
}
}
if (getBorder() != null) {
super.paintBorder(g);
}
} finally {
g.setColor(col);
}
}
}
代码示例来源:origin: msteiger/jxmapviewer2
private void doPaintComponent(Graphics g)
{/*
* if (isOpaque() || isDesignTime()) { g.setColor(getBackground()); g.fillRect(0,0,getWidth(),getHeight()); }
*/
if (isDesignTime())
{
// do nothing
}
else
{
int z = getZoom();
Rectangle viewportBounds = getViewportBounds();
drawMapTiles(g, z, viewportBounds);
drawOverlays(z, g, viewportBounds);
}
super.paintBorder(g);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public void paint (Graphics g) {
if (isShowing()) {
super.paint(g);
} else {
getLayout().layoutContainer(this);
Component[] c = getComponents();
Color col = g.getColor();
try {
g.setColor(getBackground());
g.fillRect(0,0, getWidth(),getHeight());
for (int i=0; i < c.length; i++) {
Rectangle r = c[i].getBounds();
if (g.hitClip(r.x, r.y,r.width,r.height)) {
Graphics g2 = g.create(r.x, r.y, r.width, r.height);
try {
c[i].paint(g2);
} finally {
g2.dispose();
}
}
}
if (getBorder() != null) {
super.paintBorder(g);
}
} finally {
g.setColor(col);
}
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
public void paint (Graphics g) {
if (isShowing()) {
super.paint(g);
} else {
getLayout().layoutContainer(this);
Component[] c = getComponents();
Color col = g.getColor();
try {
g.setColor(getBackground());
g.fillRect(0,0, getWidth(),getHeight());
for (int i=0; i < c.length; i++) {
Rectangle r = c[i].getBounds();
if (g.hitClip(r.x, r.y,r.width,r.height)) {
Graphics g2 = g.create(r.x, r.y, r.width, r.height);
try {
c[i].paint(g2);
} finally {
g2.dispose();
}
}
}
if (getBorder() != null) {
super.paintBorder(g);
}
} finally {
g.setColor(col);
}
}
}
代码示例来源:origin: org.jxmapviewer/jxmapviewer2
private void doPaintComponent(Graphics g)
{/*
* if (isOpaque() || isDesignTime()) { g.setColor(getBackground()); g.fillRect(0,0,getWidth(),getHeight()); }
*/
if (isDesignTime())
{
// do nothing
}
else
{
int z = getZoom();
Rectangle viewportBounds = getViewportBounds();
drawMapTiles(g, z, viewportBounds);
drawOverlays(z, g, viewportBounds);
}
super.paintBorder(g);
}
代码示例来源:origin: org.jdesktop.swingx/jxmapviewer2
private void doPaintComponent(Graphics g)
{/*
* if (isOpaque() || isDesignTime()) { g.setColor(getBackground()); g.fillRect(0,0,getWidth(),getHeight()); }
*/
if (isDesignTime())
{
// do nothing
}
else
{
int z = getZoom();
Rectangle viewportBounds = getViewportBounds();
drawMapTiles(g, z, viewportBounds);
drawOverlays(z, g, viewportBounds);
}
super.paintBorder(g);
}
内容来源于网络,如有侵权,请联系作者删除!