public class OverlayableUtils
extends java.lang.Object
Overlayable
.Constructor and Description |
---|
OverlayableUtils() |
Modifier and Type | Method and Description |
---|---|
static Overlayable[] |
getAllOverlayables(javax.swing.JComponent component)
Gets all overlayables associated with this component and its parents.
|
static Overlayable |
getOverlayable(javax.swing.JComponent component)
Gets the overlayable associated with this component and its parents.
|
static javax.swing.Icon |
getPredefinedOverlayIcon(java.lang.String name)
Gets the predefined icon that can be used as the overlay icon for the Swing component.
|
static void |
repaintAllOverlayables(javax.swing.JComponent component)
Repaints all the overlayables associated with the component or its parents.
|
static void |
repaintOverlayable(javax.swing.JComponent component)
Repaints the overlayable component associated with component.
|
public static Overlayable getOverlayable(javax.swing.JComponent component)
component
- the component.public static Overlayable[] getAllOverlayables(javax.swing.JComponent component)
getOverlayable(javax.swing.JComponent)
, this method will find the all overlayables that contain the component
or its parents.component
- the componentpublic static void repaintOverlayable(javax.swing.JComponent component)
public OverlayTextField() {
...
public void repaint(long tm, int x, int y, int width, int height) {
super.repaint(tm, x, y, width, height);
OverlayableUtils.repaintOverlayable(this);
}
component
- the component that has an overlayable.public static void repaintAllOverlayables(javax.swing.JComponent component)
component
- the component.public static javax.swing.Icon getPredefinedOverlayIcon(java.lang.String name)
name
- name defined in OverlayableIconsFactory
.