Package com.scriptographer.adm

Examples of com.scriptographer.adm.Border


    }
    break;
    case TEXT: {
      item = new TextPane(dialog);
      // Space a bit more to the top, to compensate the descender space.
      item.setMargin(new Border(1, 0, 0, 0));
    }
    break;
    case RULER: {
      // If the ruler has a label, add it to the left of it, using an
      // ItemGroup and a TableLayout. The ItemGroup needs to be created
View Full Code Here


      Item marginItem = valueItem;
      // If this is an item group, use the first item in it instead
      // This is only needed for FontPopupList so far.
      if (marginItem instanceof ItemGroup)
        marginItem = (Item) ((ItemGroup) marginItem).getContent().get(0);
      Border margin = marginItem.getVisualMargin();
      // Also take into account any margins the component might have set
      if (valueItem != marginItem)
        margin = margin.add(valueItem.getMargin());
      labelItem.setMargin(margin.top + 3, 4, 0, 0);
      content.put(column + ", " + row + ", right, top", labelItem);
    }
    boolean fullSize = component.getFullSize();
    String justification = isRuler || component.getFullSize()
View Full Code Here

TOP

Related Classes of com.scriptographer.adm.Border

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.