本文整理了Java中javax.swing.JPanel.paintComponents()
方法的一些代码示例,展示了JPanel.paintComponents()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPanel.paintComponents()
方法的具体详情如下:
包路径:javax.swing.JPanel
类名称:JPanel
方法名:paintComponents
暂无
代码示例来源:origin: chewiebug/GCViewer
protected void paintComponent(Graphics g) {
super.paintComponents(g);
configureFormatter();
double lineDistance = getLineDistance();
代码示例来源:origin: BranislavLazic/SwingTutorials
public void paintComponent(Graphics g){
super.paintComponents(g);
g.drawImage(image, 0,0,null);
g.setColor(Color.RED);
g.fillRect(10, 10, 100, 50);
}
}
代码示例来源:origin: org.solovyev/common-other
protected void paintComponent(Graphics g) {
super.paintComponents(g);
for (PreparedPlotElement preparedPlotElement : preparedPlotElements) {
Plot.plot(preparedPlotElement, g);
}
}
}
代码示例来源:origin: it.tidalwave.netbeans/it-tidalwave-netbeans-swing
@Override
public void paint (final Graphics g)
{
final Graphics2D g2 = (Graphics2D)g;
if (oldSnapshotImage == null)
{
content.paint(g);
}
else
{
g2.drawImage(oldSnapshotImage, 0, 0, null);
}
if ((newSnapshotImage != null) && (alphaComposite != null))
{
final Composite compositeSave = g2.getComposite();
g2.setComposite(alphaComposite);
g2.drawImage(newSnapshotImage, 0, 0, null);
g2.setComposite(compositeSave);
}
super.paintComponents(g);
}
};
代码示例来源:origin: com.jidesoft/jide-oss
@Override
public void paintComponents(Graphics g) {
if ((getInvokeCondition() & INVOKE_ON_PAINT) != 0) {
initialize();
}
super.paintComponents(g);
}
代码示例来源:origin: ThomasFooteDQ/DroidQuest
public void paintComponent(Graphics g) {
super.paintComponents(g); // Paint background
Graphics2D g2 = (Graphics2D) g;
g2.setTransform(at);
代码示例来源:origin: com.mgmtp.gcviewer/gcviewer
protected void paintComponent(Graphics g) {
super.paintComponents(g);
configureFormatter();
double lineDistance = getLineDistance();
内容来源于网络,如有侵权,请联系作者删除!