Codota Logo
Renderer.reader
Code IndexAdd Codota to your IDE (free)

How to use
reader
method
in
org.crsh.text.Renderer

Best Java code snippets using org.crsh.text.Renderer.reader (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: org.crsh/crsh.shell.core

/**
 * Create a renderer for the specified width and height or return null if the element does not provide any output
 * for the specified dimensions. The default implementation delegates to the {@link #reader(int)} method when the
 * <code>height</code> argument is not positive otherwise it returns null. Subclasses should override this method
 * when they want to provide content that can adapts to the specified height.
 *
 * @param width the width
 * @param height the height
 * @return the renderer
 */
public LineReader reader(int width, int height) {
 if (height > 0) {
  return null;
 } else {
  return reader(width);
 }
}
origin: org.crsh/crsh.shell.core

for (int i = 0;i < readers.length;i++) {
 Renderer renderer = cols.get(i);
 LineReader reader = renderer.reader(widths[i] - leftCellPadding - rightCellPadding, height);
 readers[i] = reader;
origin: org.crsh/crsh.shell.core

readers.addLast(child.reader(width - 2));
LineReader value = TreeRenderer.this.value != null ? TreeRenderer.this.value.reader(width) : null;
origin: org.crsh/crsh.shell.core

public boolean hasLine() {
 if (height > 0 && index >= height) {
  return false;
 } else {
  if (current == null || !current.hasLine()) {
   while (i.hasNext()) {
    Renderer next = i.next();
    LineReader reader = next.reader(width);
    if (reader != null && reader.hasLine()) {
     current = reader;
     return true;
    }
   }
   return false;
  } else {
   return true;
  }
 }
}
origin: org.crsh/crsh.shell.core

/**
 * Renders this object to the provided output.
 *
 * @param out the output
 */
public final void render(RenderAppendable out) {
 LineReader renderer = reader(out.getWidth());
 if (renderer != null) {
  while (renderer.hasLine()) {
   renderer.renderLine(out);
   out.append('\n');
  }
 }
}
origin: org.crsh/crsh.shell.core

public void render(RenderAppendable to) {
 Renderer renderer = renderer();
 // For now height - 1 because of the char that goes to the line in some impl
 LineReader reader = renderer.reader(to.getWidth(), to.getHeight() - 1);
 if (reader != null) {
  while (reader.hasLine()) {
   reader.renderLine(to);
   to.append('\n');
  }
 }
}
origin: org.crsh/crsh.shell.core

return Renderer.NULL.reader(width);
org.crsh.textRendererreader

Javadoc

Create a renderer for the specified width and height or return null if the element does not provide any output for the specified dimensions. The default implementation delegates to the #reader(int) method when the height argument is not positive otherwise it returns null. Subclasses should override this method when they want to provide content that can adapts to the specified height.

Popular methods of Renderer

  • getRenderable
  • getType
  • renderer
  • getActualHeight
    Return the actual height for the specified with.
  • getActualWidth
    Returns the element actual width.
  • getMinHeight
    Return the minimum height for the specified with.
  • getMinWidth
    Returns the element minimum width.
  • render
    Renders this object to the provided output.
  • vertical

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Menu (java.awt)
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Reference (javax.naming)
  • JComboBox (javax.swing)
  • JTable (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now