use of org.apache.pivot.wtk.Point in project pivot by apache.
the class ComponentInspectorSkin method updatePointControl.
private void updatePointControl(Dictionary<String, Object> dictionary, String key) {
BoxPane boxPane = (BoxPane) controls.get(key);
if (boxPane != null) {
Point point = (Point) dictionary.get(key);
TextInput xTextInput = (TextInput) ((FlowPane) boxPane.get(0)).get(0);
TextInput yTextInput = (TextInput) ((FlowPane) boxPane.get(1)).get(0);
xTextInput.setText(String.valueOf(point.x));
yTextInput.setText(String.valueOf(point.y));
}
}
Aggregations