Package org.dyno.visual.swing.plugin.spi

Examples of org.dyno.visual.swing.plugin.spi.IBaselineAdapter


    nm = ty - nm;
    sr = tby + sr;
    su = tby + su;
    sm = tby + sm;
    WidgetAdapter dropAdapter = WidgetAdapter.getWidgetAdapter(todrop);
    IBaselineAdapter dropBaseline=(IBaselineAdapter) dropAdapter.getAdapter(IBaselineAdapter.class);
    WidgetAdapter targetAdapter = WidgetAdapter.getWidgetAdapter(target);
    IBaselineAdapter targetBaseline=(IBaselineAdapter) targetAdapter.getAdapter(IBaselineAdapter.class);
    int tb = targetBaseline.getBaseline();
    WidgetAdapter parent = WidgetAdapter.getWidgetAdapter(container);
    Point sp = parent.getMascotLocation();
    int sb = dropBaseline.getBaseline(this_point.y - sp.y);
    int dby = this_point.y;
    tb = ty + tb;
View Full Code Here


    sm = tby + sm;
    WidgetAdapter dropAdapter = WidgetAdapter.getWidgetAdapter(todrop);
    WidgetAdapter targetAdapter = WidgetAdapter.getWidgetAdapter(target);
    WidgetAdapter parent = WidgetAdapter.getWidgetAdapter(container);
    Point sp = parent.getMascotLocation();
    IBaselineAdapter targetBaseline=(IBaselineAdapter) targetAdapter.getAdapter(IBaselineAdapter.class);
    IBaselineAdapter dropBaseline=(IBaselineAdapter) dropAdapter.getAdapter(IBaselineAdapter.class);
    int tb = targetBaseline.getBaseline();
    int sb = dropBaseline.getBaseline(sp.y + todrop.getHeight() - this_point.y);
    int dy = this_point.y;
    tb = ty + tb;
    sb = dy + sb;
    int thisx = todrop.getX();
    int thisr = thisx + todrop.getWidth();
    int targetx = target.getX();
    int targetr = targetx + target.getWidth();
    int targety = target.getY();
    int minx = Math.min(thisx, targetx) - ANCHOR_EXT;
    int maxr = Math.max(thisr, targetr) + ANCHOR_EXT;
    if (Math.abs(tb - sb) < THRESHOLD_DISTANCE) {
      List<Quartet> list = new ArrayList<Quartet>();
      int by = sp.y + todrop.getHeight();
      int th = by - tb;
      int H = dropBaseline.getHeightByDescent(th);
      Quartet trio = new Quartet(tb, by - H, minx, maxr, new HorizontalBaselineAnchor(target));
      list.add(trio);
      return list;
    } else if (Math.abs(dy - targety) < THRESHOLD_DISTANCE) {
      List<Quartet> list = new ArrayList<Quartet>();
View Full Code Here

    sr = tby + sr;
    su = tby + su;
    sm = tby + sm;
    WidgetAdapter dropAdapter = WidgetAdapter.getWidgetAdapter(todrop);
    WidgetAdapter targetAdapter = WidgetAdapter.getWidgetAdapter(target);
    IBaselineAdapter targetBaseline=(IBaselineAdapter) targetAdapter.getAdapter(IBaselineAdapter.class);
    int tb = targetBaseline.getBaseline();
    IBaselineAdapter dropBaseline=(IBaselineAdapter) dropAdapter.getAdapter(IBaselineAdapter.class);
    int sb = dropBaseline.getBaseline();
    int dy = this_point.y - dropAdapter.getHotspotPoint().y;
    int dby = dy + todrop.getHeight();
    tb = ty + tb;
    sb = dy + sb;
    int thisx = this_point.x - dropAdapter.getHotspotPoint().x;
    int thisr = thisx + todrop.getWidth();
    int targetx = target.getX();
    int targetr = targetx + target.getWidth();
    int targety = target.getY();
    int targetb = targety + target.getHeight();
    int minx = Math.min(thisx, targetx) - ANCHOR_EXT;
    int maxr = Math.max(thisr, targetr) + ANCHOR_EXT;
    if (Math.abs(tb - sb) < THRESHOLD_DISTANCE) {
      List<Quartet> list = new ArrayList<Quartet>();
      Anchor a = new HorizontalBaselineAnchor(target);
      Quartet trio = new Quartet(tb, tb - dropBaseline.getBaseline() + dropAdapter.getHotspotPoint().y, minx, maxr, a);
      list.add(trio);
      return list;
    } else if (Math.abs(dy - targety) < THRESHOLD_DISTANCE) {
      List<Quartet> list = new ArrayList<Quartet>();
      Anchor a = new HorizontalTopAlignAnchor(target);
View Full Code Here

TOP

Related Classes of org.dyno.visual.swing.plugin.spi.IBaselineAdapter

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.