Package org.dyno.visual.swing.layouts

Examples of org.dyno.visual.swing.layouts.LayoutStyle$Java6LayoutStyle


      return list;
    }
    return null;
  }
  private List<Quartet> getTAnchor(JComponent todrop, JComponent target, Point this_point) {
    LayoutStyle style = LayoutStyle.getInstance();
    int nr = style.getPreferredGap(todrop, target, ComponentPlacement.RELATED, SwingConstants.NORTH, container);
    int nu = style.getPreferredGap(todrop, target, ComponentPlacement.UNRELATED, SwingConstants.NORTH, container);
    int nm = nr + nu;
    int sr = style.getPreferredGap(todrop, target, ComponentPlacement.RELATED, SwingConstants.SOUTH, container);
    int su = style.getPreferredGap(todrop, target, ComponentPlacement.UNRELATED, SwingConstants.SOUTH, container);
    int sm = sr + su;
    int ty = target.getY();
    int tby = target.getY() + target.getHeight();
    nr = ty - nr;
    nu = ty - nu;
View Full Code Here


  }

  private List<Quartet> getRConAnchor(JComponent todrop, Point this_point) {
    Insets insets = container.getInsets();
    int bx = this_point.x;
    LayoutStyle style = LayoutStyle.getInstance();
    int east = style.getContainerGap(todrop, SwingConstants.EAST, container);
    int h = container.getHeight();
    int w = container.getWidth();
    if (Math.abs(bx - w + insets.right) < THRESHOLD_DISTANCE) {
      List<Quartet> list = new ArrayList<Quartet>();
      Quartet trio = new Quartet(w - insets.right, w - insets.right, insets.top, h - insets.bottom, new VerticalTrailingContainerAnchor(container));
View Full Code Here

    } else
      return null;
  }

  private List<Quartet> getRAnchor(JComponent todrop, JComponent target, Point this_point) {
    LayoutStyle style = LayoutStyle.getInstance();
    int wr = style.getPreferredGap(todrop, target, ComponentPlacement.RELATED, SwingConstants.WEST, container);
    int wu = style.getPreferredGap(todrop, target, ComponentPlacement.UNRELATED, SwingConstants.WEST, container);
    int wm = wu + wr;
    int er = style.getPreferredGap(todrop, target, ComponentPlacement.RELATED, SwingConstants.EAST, container);
    int eu = style.getPreferredGap(todrop, target, ComponentPlacement.UNRELATED, SwingConstants.EAST, container);
    int sr = style.getPreferredGap(todrop, target, ComponentPlacement.RELATED, SwingConstants.SOUTH, container);
    int su = style.getPreferredGap(todrop, target, ComponentPlacement.UNRELATED, SwingConstants.SOUTH, container);
    int tby = target.getY() + target.getHeight();
    sr = sr + tby;
    su = su + tby;
    int em = eu + er;
    int tx = target.getX();
View Full Code Here

    Insets insets = container.getInsets();
    WidgetAdapter dropAdapter = WidgetAdapter.getWidgetAdapter(todrop);
    int hotspoty = dropAdapter.getHotspotPoint().y;
    int ty = this_point.y - hotspoty;
    int by = ty + todrop.getHeight();
    LayoutStyle style = LayoutStyle.getInstance();
    int north = style.getContainerGap(todrop, SwingConstants.NORTH, container);
    int south = style.getContainerGap(todrop, SwingConstants.SOUTH, container);
    int h = container.getHeight();
    int w = container.getWidth();
    if (Math.abs(ty - insets.top) < THRESHOLD_DISTANCE) {
      List<Quartet> list = new ArrayList<Quartet>();
      Anchor a = new HorizontalLeadingContainerAnchor(container);
View Full Code Here

    Insets insets = container.getInsets();
    WidgetAdapter dropAdapter = WidgetAdapter.getWidgetAdapter(todrop);
    int hotspotx = dropAdapter.getHotspotPoint().x;
    int tx = this_point.x - hotspotx;
    int bx = tx + todrop.getWidth();
    LayoutStyle style = LayoutStyle.getInstance();
    int west = style.getContainerGap(todrop, SwingConstants.WEST, container);
    int east = style.getContainerGap(todrop, SwingConstants.EAST, container);
    int h = container.getHeight();
    int w = container.getWidth();
    if (Math.abs(tx - insets.left) < THRESHOLD_DISTANCE) {
      List<Quartet> list = new ArrayList<Quartet>();
      Anchor a = new VerticalLeadingContainerAnchor(container);
View Full Code Here

    } else
      return null;
  }

  private List<Quartet> getVAnchor(JComponent todrop, JComponent target, Point this_point) {
    LayoutStyle style = LayoutStyle.getInstance();
    int wr = style.getPreferredGap(todrop, target, ComponentPlacement.RELATED, SwingConstants.WEST, container);
    int wu = style.getPreferredGap(todrop, target, ComponentPlacement.UNRELATED, SwingConstants.WEST, container);
    int wm = wu + wr;
    int er = style.getPreferredGap(todrop, target, ComponentPlacement.RELATED, SwingConstants.EAST, container);
    int eu = style.getPreferredGap(todrop, target, ComponentPlacement.UNRELATED, SwingConstants.EAST, container);
    int indent = style.getPreferredGap(todrop, target, ComponentPlacement.INDENT, SwingConstants.EAST, container);
    int sr = style.getPreferredGap(todrop, target, ComponentPlacement.RELATED, SwingConstants.SOUTH, container);
    int su = style.getPreferredGap(todrop, target, ComponentPlacement.UNRELATED, SwingConstants.SOUTH, container);
    int tby = target.getY() + target.getHeight();
    sr = sr + tby;
    su = su + tby;
    int em = eu + er;
    int tx = target.getX();
View Full Code Here

    }
    return null;
  }

  private List<Quartet> getHAnchor(JComponent todrop, JComponent target, Point this_point) {
    LayoutStyle style = LayoutStyle.getInstance();
    int nr = style.getPreferredGap(todrop, target, ComponentPlacement.RELATED, SwingConstants.NORTH, container);
    int nu = style.getPreferredGap(todrop, target, ComponentPlacement.UNRELATED, SwingConstants.NORTH, container);
    int nm = nr + nu;
    int sr = style.getPreferredGap(todrop, target, ComponentPlacement.RELATED, SwingConstants.SOUTH, container);
    int su = style.getPreferredGap(todrop, target, ComponentPlacement.UNRELATED, SwingConstants.SOUTH, container);
    int sm = sr + su;
    int ty = target.getY();
    int tby = target.getY() + target.getHeight();
    nr = ty - nr;
    nu = ty - nu;
View Full Code Here

  }

  private List<Quartet> getLConAnchor(JComponent todrop, Point this_point) {
    Insets insets = container.getInsets();
    int tx = this_point.x;
    LayoutStyle style = LayoutStyle.getInstance();
    if (style == null)
      style = LayoutStyle.getInstance();
    int west = style.getContainerGap(todrop, SwingConstants.WEST, container);
    int h = container.getHeight();
    if (Math.abs(tx - insets.left) < THRESHOLD_DISTANCE) {
      List<Quartet> list = new ArrayList<Quartet>();
      Quartet trio = new Quartet(insets.left, insets.left, insets.top, h - insets.bottom, new VerticalLeadingContainerAnchor(container));
      list.add(trio);
View Full Code Here

    } else
      return null;
  }

  private List<Quartet> getLAnchor(JComponent todrop, JComponent target, Point this_point) {
    LayoutStyle style = LayoutStyle.getInstance();
    int wr = style.getPreferredGap(todrop, target, ComponentPlacement.RELATED, SwingConstants.WEST, container);
    int wu = style.getPreferredGap(todrop, target, ComponentPlacement.UNRELATED, SwingConstants.WEST, container);
    int wm = wu + wr;
    int er = style.getPreferredGap(todrop, target, ComponentPlacement.RELATED, SwingConstants.EAST, container);
    int eu = style.getPreferredGap(todrop, target, ComponentPlacement.UNRELATED, SwingConstants.EAST, container);
    int indent = style.getPreferredGap(todrop, target, ComponentPlacement.INDENT, SwingConstants.EAST, container);
    int sr = style.getPreferredGap(todrop, target, ComponentPlacement.RELATED, SwingConstants.SOUTH, container);
    int su = style.getPreferredGap(todrop, target, ComponentPlacement.UNRELATED, SwingConstants.SOUTH, container);
    int tby = target.getY() + target.getHeight();
    sr = sr + tby;
    su = su + tby;
    int em = eu + er;
    int tx = target.getX();
View Full Code Here

  }

  private List<Quartet> getBConAnchor(JComponent todrop, Point this_point) {
    Insets insets = container.getInsets();
    int by = this_point.y;
    LayoutStyle style = LayoutStyle.getInstance();
    int south = style.getContainerGap(todrop, SwingConstants.SOUTH, container);
    int h = container.getHeight();
    int w = container.getWidth();
    if (Math.abs(by - h + insets.bottom) < THRESHOLD_DISTANCE) {
      List<Quartet> list = new ArrayList<Quartet>();
      Quartet trio = new Quartet(h - insets.bottom, h - insets.bottom, insets.left, w - insets.right, new HorizontalTrailingContainerAnchor(container));
View Full Code Here

TOP

Related Classes of org.dyno.visual.swing.layouts.LayoutStyle$Java6LayoutStyle

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.