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

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

本文整理了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

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

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

  1. /**
  2. * printImageDescription
  3. */
  4. protected String printImageDescription(int height) {
  5. StringWriter stream = new StringWriter();
  6. try {
  7. new AsciiImage().convertToAscii(description, new PrintWriter(stream), Util.get(SIShell.KEY_WIDTH, 80) - 2,
  8. height);
  9. //remove windows returns
  10. return stream.toString().replaceAll("\r", "");
  11. } catch (Exception e) {
  12. ManagedException.forward(e);
  13. return null;
  14. }
  15. }

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

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

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

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

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

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

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

  1. /**
  2. * {@inheritDoc}.
  3. * <p/>
  4. * see {@link #description}.
  5. */
  6. @Override
  7. public String getDescription(Properties env, boolean full) {
  8. //if sequential mode, show the parents (-->tree) description
  9. if (Util.get(SIShell.KEY_SEQUENTIAL, false) && getParent() != null) {
  10. return getParent().getDescription(env, full);
  11. } else if (description == null) {
  12. description = getConstraints() != null ? getConstraints().toString() : name;
  13. } else if (full || hasFileDescription()) {
  14. description = printImageDescription();
  15. }
  16. return description;
  17. }

相关文章