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

Method repaint

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

Source from the content-addressed store, hash-verified

2891
2892 /// {@inheritDoc}
2893 @Override
2894 void repaint(Component cmp) {
2895 if (getParent() != null) {
2896 super.repaint(cmp);
2897 return;
2898 }
2899
2900
2901 if (cmp.hasElevation()) {
2902 Container surface = cmp.findSurface();
2903 if (surface != null) {
2904 surface.repaint(cmp.getAbsoluteX() + cmp.calculateShadowOffsetX(24), cmp.getAbsoluteY() + cmp.calculateShadowOffsetY(24), cmp.calculateShadowWidth(24), cmp.calculateShadowHeight(24));
2905 return;
2906 }
2907 }
2908
2909
2910 if (isVisible() && CN.getCurrentForm() == this) { //NOPMD CompareObjectsWithEquals
2911 Display.getInstance().repaint(cmp);
2912 }
2913 }
2914
2915 /// {@inheritDoc}
2916 @Override

Callers 15

runMethod · 0.95
sizeChangedInternalMethod · 0.95
setGlassPaneMethod · 0.95
pointerDraggedMethod · 0.95
pointerReleasedMethod · 0.95
setCurrentMethod · 0.95
animateMethod · 0.95
revalidateInternalMethod · 0.95
pointerDraggedMethod · 0.95
dragFinishedImplMethod · 0.95
runMethod · 0.95
repaintCurrentFormMethod · 0.95

Calls 13

getCurrentFormMethod · 0.95
getInstanceMethod · 0.95
hasElevationMethod · 0.80
findSurfaceMethod · 0.80
calculateShadowWidthMethod · 0.80
calculateShadowHeightMethod · 0.80
getParentMethod · 0.65
repaintMethod · 0.65
isVisibleMethod · 0.65
getAbsoluteXMethod · 0.45

Tested by 3

runMethod · 0.76
refreshThemeInlineMethod · 0.76