Package org.dyno.visual.swing.layouts

Examples of org.dyno.visual.swing.layouts.Alignment.clone()


        cons.component = child;
        cons.constraints = constraints;
        compcons.add(cons);
        Alignment alignment = constraints.getHorizontal();
        if (alignment instanceof Leading) {
          Leading leading = (Leading) alignment.clone();
          leading.setLeading(postLead);
          constraints = new Constraints(leading, constraints.getVertical());
        } else if (alignment instanceof Bilateral) {
          Bilateral bilateral = (Bilateral) alignment.clone();
          bilateral.setLeading(postLead);
View Full Code Here


        if (alignment instanceof Leading) {
          Leading leading = (Leading) alignment.clone();
          leading.setLeading(postLead);
          constraints = new Constraints(leading, constraints.getVertical());
        } else if (alignment instanceof Bilateral) {
          Bilateral bilateral = (Bilateral) alignment.clone();
          bilateral.setLeading(postLead);
          constraints = new Constraints(bilateral, constraints.getVertical());
        } else if (alignment instanceof Trailing) {
          Bilateral bilateral = new Bilateral(postLead, ((Trailing) alignment).getTrailing(), ((Trailing) alignment).getSize());
          constraints = new Constraints(bilateral, constraints.getVertical());
View Full Code Here

        } else if (alignment instanceof Bilateral) {
          int t = postTrail - child.getWidth();
          Trailing trailing = new Trailing(t, 10, child.getWidth());
          constraints = new Constraints(trailing, constraints.getVertical());
        } else if (alignment instanceof Trailing) {
          Trailing trailing = (Trailing) alignment.clone();
          trailing.setTrailing(postTrail - child.getWidth());
          constraints = new Constraints(trailing, constraints.getVertical());
        }
        layout.setConstraints(child, constraints);
      }
View Full Code Here

        cons.component = child;
        cons.constraints = constraints;
        compcons.add(cons);
        Alignment alignment = constraints.getVertical();
        if (alignment instanceof Leading) {
          Leading leading = (Leading) alignment.clone();
          leading.setSize(postSize);
          constraints = new Constraints(constraints.getHorizontal(), leading);
        } else if (alignment instanceof Bilateral) {
          Bilateral bilateral = (Bilateral) alignment;
          int lead = bilateral.getLeading();
View Full Code Here

          Bilateral bilateral = (Bilateral) alignment;
          int lead = bilateral.getLeading();
          Leading leading = new Leading(lead, postSize, 10, innerHeight - postSize - lead);
          constraints = new Constraints(constraints.getHorizontal(), leading);
        } else if (alignment instanceof Trailing) {
          Trailing trailing = (Trailing) alignment.clone();
          trailing.setSize(postSize);
          constraints = new Constraints(constraints.getHorizontal(), trailing);
        }
        layout.setConstraints(child, constraints);
      }
View Full Code Here

        cons.component = child;
        cons.constraints = constraints;
        compcons.add(cons);
        Alignment alignment = constraints.getVertical();
        if (alignment instanceof Leading) {
          Leading leading = (Leading) alignment.clone();
          leading.setSize(postSize);
          constraints = new Constraints(constraints.getHorizontal(), leading);
        } else if (alignment instanceof Bilateral) {
          Bilateral bilateral = (Bilateral) alignment;
          int trail = bilateral.getTrailing();
View Full Code Here

          Bilateral bilateral = (Bilateral) alignment;
          int trail = bilateral.getTrailing();
          Trailing leading = new Trailing(trail, postSize, 10, innerHeight - postSize - trail);
          constraints = new Constraints(constraints.getHorizontal(), leading);
        } else if (alignment instanceof Trailing) {
          Trailing trailing = (Trailing) alignment.clone();
          trailing.setSize(postSize);
          constraints = new Constraints(constraints.getHorizontal(), trailing);
        }
        layout.setConstraints(child, constraints);
      }
View Full Code Here

        cons.component = child;
        cons.constraints = constraints;
        compcons.add(cons);
        Alignment alignment = constraints.getVertical();
        if (alignment instanceof Leading) {
          Leading leading = (Leading) alignment.clone();
          leading.setLeading(postLead);
          constraints = new Constraints(constraints.getHorizontal(), leading);
        } else if (alignment instanceof Bilateral) {
          Bilateral bilateral = (Bilateral) alignment.clone();
          bilateral.setLeading(postLead);
View Full Code Here

        if (alignment instanceof Leading) {
          Leading leading = (Leading) alignment.clone();
          leading.setLeading(postLead);
          constraints = new Constraints(constraints.getHorizontal(), leading);
        } else if (alignment instanceof Bilateral) {
          Bilateral bilateral = (Bilateral) alignment.clone();
          bilateral.setLeading(postLead);
          constraints = new Constraints(constraints.getHorizontal(), bilateral);
        } else if (alignment instanceof Trailing) {
          Bilateral bilateral = new Bilateral(postLead, ((Trailing) alignment).getTrailing(), ((Trailing) alignment).getSize());
          constraints = new Constraints(constraints.getHorizontal(), bilateral);
View Full Code Here

        } else if (alignment instanceof Bilateral) {
          int t = postTrail - child.getHeight();
          Trailing trailing = new Trailing(t, 10, child.getHeight());
          constraints = new Constraints(constraints.getHorizontal(), trailing);
        } else if (alignment instanceof Trailing) {
          Trailing trailing = (Trailing) alignment.clone();
          trailing.setTrailing(postTrail - child.getHeight());
          constraints = new Constraints(constraints.getHorizontal(), trailing);
        }
        layout.setConstraints(child, constraints);
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.