MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / repaint

Method repaint

CodenameOne/src/com/codename1/ui/Component.java:4214–4225  ·  view source on GitHub ↗
(Component cmp)

Source from the content-addressed store, hash-verified

4212 ///
4213 /// - `cmp`: the given component on the screen
4214 void repaint(Component cmp) {
4215 if (isCellRenderer() || cmp.getWidth() <= 0 || cmp.getHeight() <= 0 || paintLockImage != null) {
4216 return;
4217 }
4218 // null parent repaint can happen when a component is removed and modified which
4219 // is common for a popup
4220 Component parent = getParent();
4221
4222 if (parent != null && parent.isVisible()) {
4223 parent.repaint(cmp);
4224 }
4225 }
4226
4227 /// Repaint this Component, the repaint call causes a callback of the paint
4228 /// method on the event dispatch thread.

Callers 15

hideTextEditorMethod · 0.95
setFocusedMethod · 0.95
pointerDraggedMethod · 0.95
setScrollXMethod · 0.95
setScrollYMethod · 0.95
updateStateMethod · 0.95
pointerReleasedMethod · 0.95
pageScrollMethod · 0.95
dragScrollThumbMethod · 0.95
scrollRectToVisibleMethod · 0.95

Calls 15

isCellRendererMethod · 0.95
getParentMethod · 0.95
isVisibleMethod · 0.95
setDirtyRegionMethod · 0.95
getSizeMethod · 0.95
minMethod · 0.95
getXMethod · 0.95
getYMethod · 0.95
maxMethod · 0.95
getWidthMethod · 0.95
getHeightMethod · 0.95
setXMethod · 0.95

Tested by

no test coverage detected