本文整理了Java中org.netbeans.api.visual.widget.Widget.repaint()
方法的一些代码示例,展示了Widget.repaint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Widget.repaint()
方法的具体详情如下:
包路径:org.netbeans.api.visual.widget.Widget
类名称:Widget
方法名:repaint
[英]Schedules the widget for repainting.
[中]安排小部件重新绘制。
代码示例来源:origin: org.netbeans.api/org-netbeans-api-visual
/**
* Sets the widget opacity.
* @param opaque if true, then the widget is opaque
*/
public final void setOpaque (boolean opaque) {
this.opaque = opaque;
repaint ();
}
代码示例来源:origin: org.netbeans.api/org-netbeans-api-visual
/**
* Sets a clipping for the widget.
* @param checkClipping if true, then the clipping is used
*/
public final void setCheckClipping (boolean checkClipping) {
this.checkClipping = checkClipping;
repaint ();
}
代码示例来源:origin: in.jlibs/org-netbeans-api-visual
/**
* Sets the widget opacity.
* @param opaque if true, then the widget is opaque
*/
public final void setOpaque (boolean opaque) {
this.opaque = opaque;
repaint ();
}
代码示例来源:origin: in.jlibs/org-netbeans-api-visual
/**
* Sets a clipping for the widget.
* @param checkClipping if true, then the clipping is used
*/
public final void setCheckClipping (boolean checkClipping) {
this.checkClipping = checkClipping;
repaint ();
}
代码示例来源:origin: org.netbeans.api/org-netbeans-api-visual
/**
* Schedules the widget to repaint or revalidation.
* @param repaintOnly if true, then the widget is scheduled for repainting only;
* if false, then widget is scheduled for revalidation (the Scene.validate method has to be called after all changes to invoke validation)
*/
// NOTE - has to be called before a change is set into the widget when the change affects the local/scene location/boundary because repaint/revalidate needs to calculate old scene boundaries
public final void revalidate (boolean repaintOnly) {
if (repaintOnly)
repaint ();
else
revalidate ();
}
代码示例来源:origin: in.jlibs/org-netbeans-api-visual
/**
* Schedules the widget to repaint or revalidation.
* @param repaintOnly if true, then the widget is scheduled for repainting only;
* if false, then widget is scheduled for revalidation (the Scene.validate method has to be called after all changes to invoke validation)
*/
// NOTE - has to be called before a change is set into the widget when the change affects the local/scene location/boundary because repaint/revalidate needs to calculate old scene boundaries
public final void revalidate (boolean repaintOnly) {
if (repaintOnly)
repaint ();
else
revalidate ();
}
代码示例来源:origin: in.jlibs/org-netbeans-api-visual
/**
* Sets the widget background paint.
* @param background the background paint
*/
public final void setBackground (Paint background) {
this.background = background;
// Since we have a new color set manually, we no longer want to update
// when the property changes.
if(backgroundListener != null)
{
ResourceTable resourceTable = getResourceTable ();
if (resourceTable != null)
resourceTable.removePropertyChangeListener(backgroundProperty, backgroundListener);
backgroundListener = null;
}
repaint ();
}
代码示例来源:origin: org.netbeans.api/org-netbeans-api-visual
/**
* Sets the widget background paint.
* @param background the background paint
*/
public final void setBackground (Paint background) {
this.background = background;
// Since we have a new color set manually, we no longer want to update
// when the property changes.
if(backgroundListener != null)
{
ResourceTable resourceTable = getResourceTable ();
if (resourceTable != null)
resourceTable.removePropertyChangeListener(backgroundProperty, backgroundListener);
backgroundListener = null;
}
repaint ();
}
代码示例来源:origin: org.netbeans.api/org-netbeans-api-visual
/**
* Sets the widget foreground color.
* @param foreground the foreground color
*/
public final void setForeground (Color foreground) {
this.foreground = foreground;
// Since we have a new color set manually, we no longer want to update
// when the property changes.
if (foregroundListener != null) {
ResourceTable resourceTable = getResourceTable();
if (resourceTable != null) {
resourceTable.removePropertyChangeListener(foregroundProperty, foregroundListener);
}
foregroundListener = null;
}
repaint();
}
代码示例来源:origin: in.jlibs/org-netbeans-api-visual
/**
* Sets the widget foreground color.
* @param foreground the foreground color
*/
public final void setForeground (Color foreground) {
this.foreground = foreground;
// Since we have a new color set manually, we no longer want to update
// when the property changes.
if (foregroundListener != null) {
ResourceTable resourceTable = getResourceTable();
if (resourceTable != null) {
resourceTable.removePropertyChangeListener(foregroundProperty, foregroundListener);
}
foregroundListener = null;
}
repaint();
}
代码示例来源:origin: in.jlibs/org-netbeans-api-visual
private void revalidateUptoRoot () {
if (requiresPartValidation)
return;
if (isRepaintRequiredForRevalidating ())
repaint ();
calculatedPreferredBounds = null;
requiresPartValidation = true;
if (parentWidget != null)
parentWidget.revalidateUptoRoot ();
if (dependencies != null)
for (Dependency dependency : dependencies)
dependency.revalidateDependency ();
}
代码示例来源:origin: org.netbeans.api/org-netbeans-api-visual
private void revalidateUptoRoot () {
if (requiresPartValidation)
return;
if (isRepaintRequiredForRevalidating ())
repaint ();
calculatedPreferredBounds = null;
requiresPartValidation = true;
if (parentWidget != null)
parentWidget.revalidateUptoRoot ();
if (dependencies != null)
for (Dependency dependency : dependencies)
dependency.revalidateDependency ();
}
代码示例来源:origin: org.netbeans.api/org-netbeans-api-visual
table.addPropertyChangeListener(property, backgroundListener);
repaint ();
代码示例来源:origin: in.jlibs/org-netbeans-api-visual
table.addPropertyChangeListener(property, backgroundListener);
repaint ();
代码示例来源:origin: in.jlibs/org-netbeans-api-visual
repaint ();
代码示例来源:origin: org.netbeans.api/org-netbeans-api-visual
repaint ();
代码示例来源:origin: org.netbeans.api/org-netbeans-api-visual
repaint ();
代码示例来源:origin: in.jlibs/org-netbeans-api-visual
repaint ();
内容来源于网络,如有侵权,请联系作者删除!