Search in sources :

Example 26 with Point

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));
    }
}
Also used : BoxPane(org.apache.pivot.wtk.BoxPane) Point(org.apache.pivot.wtk.Point) TextInput(org.apache.pivot.wtk.TextInput)

Aggregations

Point (org.apache.pivot.wtk.Point)26 Bounds (org.apache.pivot.wtk.Bounds)11 Component (org.apache.pivot.wtk.Component)9 Display (org.apache.pivot.wtk.Display)9 TextInput (org.apache.pivot.wtk.TextInput)6 IOException (java.io.IOException)5 GradientPaint (java.awt.GradientPaint)4 Button (org.apache.pivot.wtk.Button)4 ButtonPressListener (org.apache.pivot.wtk.ButtonPressListener)3 Container (org.apache.pivot.wtk.Container)3 Cursor (org.apache.pivot.wtk.Cursor)3 DragSource (org.apache.pivot.wtk.DragSource)3 DropAction (org.apache.pivot.wtk.DropAction)3 DropTarget (org.apache.pivot.wtk.DropTarget)3 Label (org.apache.pivot.wtk.Label)3 Line2D (java.awt.geom.Line2D)2 File (java.io.File)2 FileObject (org.apache.commons.vfs2.FileObject)2 BXMLSerializer (org.apache.pivot.beans.BXMLSerializer)2 ArrayList (org.apache.pivot.collections.ArrayList)2