de.tsl2.nano.core.util.Util.get()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(417)

本文整理了Java中de.tsl2.nano.core.util.Util.get()方法的一些代码示例,展示了Util.get()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.get()方法的具体详情如下:
包路径:de.tsl2.nano.core.util.Util
类名称:Util
方法名:get

Util.get介绍

暂无

代码示例

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.terminal

protected String printImageDescription() {
  return printImageDescription(Util.get(SIShell.KEY_HEIGHT, 20) - 6);
}

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.terminal

/**
 * printImageDescription
 */
protected String printImageDescription(int height) {
  StringWriter stream = new StringWriter();
  try {
    new AsciiImage().convertToAscii(description, new PrintWriter(stream), Util.get(SIShell.KEY_WIDTH, 80) - 2,
      height);
    //remove windows returns
    return stream.toString().replaceAll("\r", "");
  } catch (Exception e) {
    ManagedException.forward(e);
    return null;
  }
}

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.incubation

String xTitle = properties.getProperty("xTitle", "X");
String yTitle = properties.getProperty("yTitle", "Y");
int width = Util.get(properties, "width", 640);
int height = Util.get(properties, "height", 480);
boolean yLogarithmic = Boolean.valueOf(properties.getProperty("yLogarithmic", "false"));
Iterator<Object> it = data.keySet().iterator();

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.terminal

@Override
  public void run() {
    for (AItem<T> item : sequence.getNodes(context)) {
      context.put(sequence.getName(), item.getValue());
      System.out.print(sequence + " running...");
      Object r = action.run(context);
      result.add(new Entry(item, r));
      SIShell.printScreen(getDescription(env, false), in, out, ask(env),
        Util.get(SIShell.KEY_WIDTH, TextTerminal.SCREEN_WIDTH),
        Util.get(SIShell.KEY_HEIGHT, TextTerminal.SCREEN_HEIGHT), TextTerminal.BLOCK_BAR, false, false);
    }
  }
};

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.terminal

return super.getDescription(env, full);
  else {
    int height = Util.get(SIShell.KEY_HEIGHT, 20);
    img = printImageDescription(height - (list.size() >= height ? 0 : list.size()));
int vwidth = Util.get(SIShell.KEY_WIDTH, 80) - (kl + 9);

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.terminal

/**
 * {@inheritDoc}.
 * <p/>
 * see {@link #description}.
 */
@Override
public String getDescription(Properties env, boolean full) {
  //if sequential mode, show the parents (-->tree) description
  if (Util.get(SIShell.KEY_SEQUENTIAL, false) && getParent() != null) {
    return getParent().getDescription(env, full);
  } else if (description == null) {
    description = getConstraints() != null ? getConstraints().toString() : name;
  } else if (full || hasFileDescription()) {
    description = printImageDescription();
  }
  return description;
}

相关文章