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

Method setX

CodenameOne/src/com/codename1/ui/Component.java:1091–1096  ·  view source on GitHub ↗
(int x)

Source from the content-addressed store, hash-verified

1089 ///
1090 /// - `x`: the current x coordinate of the components origin
1091 public void setX(int x) {
1092 bounds.setX(x);
1093 if (Form.activePeerCount > 0) {
1094 onParentPositionChange();
1095 }
1096 }
1097
1098 /// Gets the x-coordinate of the outer bounds of this component. The outer bounds are formed
1099 /// by the bounds outside the margin of the component. (i.e. `x - leftMargin`).

Callers 15

pointerReleasedImplMethod · 0.95
animateMethod · 0.95
layoutContainerMethod · 0.95
actionPerformedMethod · 0.95
animateHierarchyMethod · 0.95
animateLayoutMethod · 0.95
updateStateMethod · 0.95
paintInternalMethod · 0.95
paintLockMethod · 0.95
layoutContainerMethod · 0.95
layoutContainerMethod · 0.95

Calls 1

Tested by 1

testCSSBorderMethod · 0.76