Package org.openpnp.gui.support

Examples of org.openpnp.gui.support.MutableLocationProxy


  @Override
  public void createBindings() {
    LengthConverter lengthConverter = new LengthConverter();
   
    MutableLocationProxy unitsPerPixel = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, camera, "unitsPerPixel", unitsPerPixel, "location");
        addWrappedBinding(unitsPerPixel, "lengthX", textFieldUppX, "text", lengthConverter);
        addWrappedBinding(unitsPerPixel, "lengthY", textFieldUppY, "text", lengthConverter);
    ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldUppX);
    ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldUppY);
View Full Code Here


        IntegerConverter intConverter = new IntegerConverter();
        BufferedImageIconConverter imageConverter = new BufferedImageIconConverter();
       
//        bind(UpdateStrategy.READ_WRITE, zippynozzletip, "pixelComp", pixelCompJTF, "location");
       
        MutableLocationProxy nozzleOffsets = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, zippynozzletip, "nozzleOffsets", nozzleOffsets, "location");
        addWrappedBinding(nozzleOffsets, "lengthX", locationX, "text", lengthConverter);
        addWrappedBinding(nozzleOffsets, "lengthY", locationY, "text", lengthConverter);
        addWrappedBinding(nozzleOffsets, "lengthZ", locationZ, "text", lengthConverter);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(locationX);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(locationY);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(locationZ);
    
       
        MutableLocationProxy mirrorStartLocation = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, zippynozzletip, "mirrorStartLocation", mirrorStartLocation, "location");
        addWrappedBinding(mirrorStartLocation, "lengthX", textFieldMirrorStartX, "text", lengthConverter);
        addWrappedBinding(mirrorStartLocation, "lengthY", textFieldMirrorStartY, "text", lengthConverter);
        addWrappedBinding(mirrorStartLocation, "lengthZ", textFieldMirrorStartZ, "text", lengthConverter);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldMirrorStartX);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldMirrorStartY);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldMirrorStartZ);

        MutableLocationProxy mirrorMidLocation = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, zippynozzletip, "mirrorMidLocation", mirrorMidLocation, "location");
        addWrappedBinding(mirrorMidLocation, "lengthX", textFieldMirrorMidX, "text", lengthConverter);
        addWrappedBinding(mirrorMidLocation, "lengthY", textFieldMirrorMidY, "text", lengthConverter);
        addWrappedBinding(mirrorMidLocation, "lengthZ", textFieldMirrorMidZ, "text", lengthConverter);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldMirrorMidX);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldMirrorMidY);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldMirrorMidZ);

        MutableLocationProxy mirrorEndLocation = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, zippynozzletip, "mirrorEndLocation", mirrorEndLocation, "location");
        addWrappedBinding(mirrorEndLocation, "lengthX", textFieldMirrorEndX, "text", lengthConverter);
        addWrappedBinding(mirrorEndLocation, "lengthY", textFieldMirrorEndY, "text", lengthConverter);
        addWrappedBinding(mirrorEndLocation, "lengthZ", textFieldMirrorEndZ, "text", lengthConverter);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldMirrorEndX);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldMirrorEndY);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldMirrorEndZ);

        MutableLocationProxy changerStartLocation = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, zippynozzletip, "changerStartLocation", changerStartLocation, "location");
        addWrappedBinding(changerStartLocation, "lengthX", textFieldChangerStartX, "text", lengthConverter);
        addWrappedBinding(changerStartLocation, "lengthY", textFieldChangerStartY, "text", lengthConverter);
        addWrappedBinding(changerStartLocation, "lengthZ", textFieldChangerStartZ, "text", lengthConverter);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldChangerStartX);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldChangerStartY);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldChangerStartZ);

        MutableLocationProxy changerMidLocation = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, zippynozzletip, "changerMidLocation", changerMidLocation, "location");
        addWrappedBinding(changerMidLocation, "lengthX", textFieldChangerMidX, "text", lengthConverter);
        addWrappedBinding(changerMidLocation, "lengthY", textFieldChangerMidY, "text", lengthConverter);
        addWrappedBinding(changerMidLocation, "lengthZ", textFieldChangerMidZ, "text", lengthConverter);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldChangerMidX);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldChangerMidY);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldChangerMidZ);

        MutableLocationProxy changerEndLocation = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, zippynozzletip, "changerEndLocation", changerEndLocation, "location");
        addWrappedBinding(changerEndLocation, "lengthX", textFieldChangerEndX, "text", lengthConverter);
        addWrappedBinding(changerEndLocation, "lengthY", textFieldChangerEndY, "text", lengthConverter);
        addWrappedBinding(changerEndLocation, "lengthZ", textFieldChangerEndZ, "text", lengthConverter);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldChangerEndX);
View Full Code Here

        addWrappedBinding(feeder, "feedSpeed", textFieldFeedRate, "text",
                doubleConverter);
        // TODO: change to Actuator dropdown
        addWrappedBinding(feeder, "actuatorId", textFieldActuatorId, "text");

        MutableLocationProxy feedStartLocation = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, feeder, "feedStartLocation",
                feedStartLocation, "location");
        addWrappedBinding(feedStartLocation, "lengthX", textFieldFeedStartX,
                "text", lengthConverter);
        addWrappedBinding(feedStartLocation, "lengthY", textFieldFeedStartY,
                "text", lengthConverter);
        addWrappedBinding(feedStartLocation, "lengthZ", textFieldFeedStartZ,
                "text", lengthConverter);

        MutableLocationProxy feedEndLocation = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, feeder, "feedEndLocation",
                feedEndLocation, "location");
        addWrappedBinding(feedEndLocation, "lengthX", textFieldFeedEndX,
                "text", lengthConverter);
        addWrappedBinding(feedEndLocation, "lengthY", textFieldFeedEndY,
View Full Code Here

        super.createBindings();
        LengthConverter lengthConverter = new LengthConverter();
        IntegerConverter integerConverter = new IntegerConverter();

       
        MutableLocationProxy offsets = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, feeder, "offsets", offsets, "location");
        addWrappedBinding(offsets, "lengthX", textFieldOffsetsX, "text",
                lengthConverter);
        addWrappedBinding(offsets, "lengthY", textFieldOffsetsY, "text",
                lengthConverter);
View Full Code Here

  @Override
  public void createBindings() {
    LengthConverter lengthConverter = new LengthConverter();
    DoubleConverter doubleConverter = new DoubleConverter(Configuration.get().getLengthDisplayFormat());
   
        MutableLocationProxy location = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, feeder, "location", location, "location");
        addWrappedBinding(location, "lengthX", textFieldLocationX, "text", lengthConverter);
        addWrappedBinding(location, "lengthY", textFieldLocationY, "text", lengthConverter);
        addWrappedBinding(location, "lengthZ", textFieldLocationZ, "text", lengthConverter);
        addWrappedBinding(location, "rotation", textFieldLocationC, "text", doubleConverter);
View Full Code Here

    @Override
    public void createBindings() {
        LengthConverter lengthConverter = new LengthConverter();

        MutableLocationProxy headOffsets = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, nozzle, "headOffsets", headOffsets,
                "location");
        addWrappedBinding(headOffsets, "lengthX", locationX, "text",
                lengthConverter);
        addWrappedBinding(headOffsets, "lengthY", locationY, "text",
View Full Code Here

    }
   
    @Override
    public void createBindings() {
        LengthConverter lengthConverter = new LengthConverter();
        MutableLocationProxy headOffsets = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, referenceCamera, "headOffsets", headOffsets, "location");
        addWrappedBinding(headOffsets, "lengthX", textFieldOffX, "text", lengthConverter);
        addWrappedBinding(headOffsets, "lengthY", textFieldOffY, "text", lengthConverter);
        addWrappedBinding(headOffsets, "lengthZ", textFieldOffZ, "text", lengthConverter);
        ComponentDecorators.decorateWithAutoSelectAndLengthConversion(textFieldOffX);
View Full Code Here

        LengthConverter lengthConverter = new LengthConverter();

        addWrappedBinding(nozzleTip, "allowIncompatiblePackages",
                chckbxAllowIncompatiblePackages, "selected");

        MutableLocationProxy changerStartLocation = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, nozzleTip, "changerStartLocation",
                changerStartLocation, "location");
        addWrappedBinding(changerStartLocation, "lengthX",
                textFieldChangerStartX, "text", lengthConverter);
        addWrappedBinding(changerStartLocation, "lengthY",
                textFieldChangerStartY, "text", lengthConverter);
        addWrappedBinding(changerStartLocation, "lengthZ",
                textFieldChangerStartZ, "text", lengthConverter);

        MutableLocationProxy changerMidLocation = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, nozzleTip, "changerMidLocation",
                changerMidLocation, "location");
        addWrappedBinding(changerMidLocation, "lengthX",
                textFieldChangerMidX, "text", lengthConverter);
        addWrappedBinding(changerMidLocation, "lengthY",
                textFieldChangerMidY, "text", lengthConverter);
        addWrappedBinding(changerMidLocation, "lengthZ",
                textFieldChangerMidZ, "text", lengthConverter);

        MutableLocationProxy changerEndLocation = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, nozzleTip, "changerEndLocation",
                changerEndLocation, "location");
        addWrappedBinding(changerEndLocation, "lengthX",
                textFieldChangerEndX, "text", lengthConverter);
        addWrappedBinding(changerEndLocation, "lengthY",
View Full Code Here

    @Override
    public void createBindings() {
        LengthConverter lengthConverter = new LengthConverter();

        MutableLocationProxy headOffsets = new MutableLocationProxy();
        bind(UpdateStrategy.READ_WRITE, actuator, "headOffsets", headOffsets,
                "location");
        addWrappedBinding(headOffsets, "lengthX", locationX, "text",
                lengthConverter);
        addWrappedBinding(headOffsets, "lengthY", locationY, "text",
View Full Code Here

TOP

Related Classes of org.openpnp.gui.support.MutableLocationProxy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.