예제 #1
0
  public static Width create(boolean withChilds) {
    Width xml = new Width();
    xml.setValue(12.3);
    xml.setFlex(false);
    xml.setNarrow(false);
    xml.setUnit("pt");

    if (withChilds) {}

    return xml;
  }
예제 #2
0
  public int getLargestWidth() {
    List<Integer> widthList = new ArrayList<Integer>();
    widthList.add(250);

    for (Question question : this.questionValueTable.getTable().keySet()) {
      DefaultTableValue value = this.questionValueTable.retrieveValue(question);

      Width width = (Width) value.getStyle().retrieveValue("Width");
      widthList.add(width.evaluatedValue());
    }
    return Collections.max(widthList);
  }
 @Override
 protected void do4DiagramService(ServletInput input) throws Exception {
   serviceFacade
       .getDiagramService()
       .setSize(DiagramKey.getString(input), Width.getInt(input), Height.getInt(input));
 }