本文整理了Java中java.awt.Panel.getBounds()
方法的一些代码示例,展示了Panel.getBounds()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Panel.getBounds()
方法的具体详情如下:
包路径:java.awt.Panel
类名称:Panel
方法名:getBounds
暂无
代码示例来源:origin: wildfly/wildfly
public void paint(Graphics g) {
Rectangle bounds=panel.getBounds();
if(bounds == null || graphics == null)
return;
Color old=graphics.getColor();
graphics.setColor(Color.black);
graphics.drawRect(0, 0, bounds.width - 1, bounds.height - 1);
graphics.setColor(old);
}
代码示例来源:origin: wildfly/wildfly
public void clearPanel() {
Rectangle bounds=null;
if(panel == null || graphics == null)
return;
bounds=panel.getBounds();
graphics.clearRect(1, 1, bounds.width - 2, bounds.height - 2);
}
代码示例来源:origin: apache/activemq-artemis
public void paint(Graphics g) {
Rectangle bounds=panel.getBounds();
Color old=graphics.getColor();
if(bounds == null || graphics == null)
return;
graphics.setColor(Color.black);
graphics.drawRect(0, 0, bounds.width - 1, bounds.height - 1);
graphics.setColor(old);
}
代码示例来源:origin: apache/activemq-artemis
public void paint(Graphics g) {
Rectangle bounds=panel.getBounds();
Color old=graphics.getColor();
if(bounds == null || graphics == null)
return;
graphics.setColor(Color.black);
graphics.drawRect(0, 0, bounds.width - 1, bounds.height - 1);
graphics.setColor(old);
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
public void paint(Graphics g) {
Rectangle bounds=panel.getBounds();
Color old=graphics.getColor();
if(bounds == null || graphics == null)
return;
graphics.setColor(Color.black);
graphics.drawRect(0, 0, bounds.width - 1, bounds.height - 1);
graphics.setColor(old);
}
代码示例来源:origin: org.jgroups/com.springsource.org.jgroups
public void paint(Graphics g) {
Rectangle bounds=panel.getBounds();
Color old=graphics.getColor();
if(bounds == null || graphics == null)
return;
graphics.setColor(Color.black);
graphics.drawRect(0, 0, bounds.width-1, bounds.height-1);
graphics.setColor(old);
}
代码示例来源:origin: com.bbossgroups.rpc/bboss-rpc
public void paint(Graphics g) {
Rectangle bounds=panel.getBounds();
Color old=graphics.getColor();
if(bounds == null || graphics == null)
return;
graphics.setColor(Color.black);
graphics.drawRect(0, 0, bounds.width-1, bounds.height-1);
graphics.setColor(old);
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
public void paint(Graphics g) {
Rectangle bounds=panel.getBounds();
if(bounds == null || graphics == null)
return;
Color old=graphics.getColor();
graphics.setColor(Color.black);
graphics.drawRect(0, 0, bounds.width - 1, bounds.height - 1);
graphics.setColor(old);
}
代码示例来源:origin: com.bbossgroups.rpc/bboss-rpc
public void clearPanel() {
System.out.println("CLEAR");
Rectangle bounds=panel.getBounds();
graphics.clearRect(0, 0, bounds.width, bounds.height);
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
public void clearPanel() {
Rectangle bounds=null;
if(panel == null || graphics == null)
return;
bounds=panel.getBounds();
graphics.clearRect(1, 1, bounds.width - 2, bounds.height - 2);
}
代码示例来源:origin: org.jgroups/com.springsource.org.jgroups
public void clearPanel() {
System.out.println("CLEAR");
Rectangle bounds=panel.getBounds();
graphics.clearRect(0, 0, bounds.width, bounds.height);
}
代码示例来源:origin: apache/activemq-artemis
public void clearPanel() {
Rectangle bounds=null;
if(panel == null || graphics == null)
return;
bounds=panel.getBounds();
graphics.clearRect(1, 1, bounds.width - 2, bounds.height - 2);
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
public void clearPanel() {
Rectangle bounds=null;
if(panel == null || graphics == null)
return;
bounds=panel.getBounds();
graphics.clearRect(1, 1, bounds.width - 2, bounds.height - 2);
}
代码示例来源:origin: apache/activemq-artemis
public void clearPanel() {
Rectangle bounds=null;
if(panel == null || graphics == null)
return;
bounds=panel.getBounds();
graphics.clearRect(1, 1, bounds.width - 2, bounds.height - 2);
}
代码示例来源:origin: org.jgroups/com.springsource.org.jgroups
public void clearPanel() {
Rectangle bounds=null;
if(panel == null || graphics == null)
return;
bounds=panel.getBounds();
graphics.clearRect(1, 1, bounds.width-2, bounds.height-2);
}
代码示例来源:origin: com.bbossgroups.rpc/bboss-rpc
public void clearPanel() {
Rectangle bounds=null;
if(panel == null || graphics == null)
return;
bounds=panel.getBounds();
graphics.clearRect(1, 1, bounds.width-2, bounds.height-2);
}
内容来源于网络,如有侵权,请联系作者删除!