Class SpanSetTableCellRenderer<N extends Number>

All Implemented Interfaces:
GComponent, SpannedRenderer<N>, FontChangeListener, GColumnRenderer<Span.SpanSet<N,?>>, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, SwingConstants, TableCellRenderer

public class SpanSetTableCellRenderer<N extends Number> extends AbstractGColumnRenderer<Span.SpanSet<N,?>> implements SpannedRenderer<N>
See Also:
  • Field Details

  • Constructor Details

    • SpanSetTableCellRenderer

      public SpanSetTableCellRenderer()
  • Method Details

    • setFullRange

      public void setFullRange(Span<N,?> fullRange)
      Description copied from interface: SpannedRenderer
      Set the span of the viewport
      Specified by:
      setFullRange in interface SpannedRenderer<N extends Number>
      Parameters:
      fullRange - the span
    • getFilterString

      public String getFilterString(Span.SpanSet<N,?> t, Settings settings)
      Description copied from interface: GColumnRenderer
      Returns a string that is suitable for use when filtering. The returned String should be an unformatted (e.g., no HTML markup, icons, etc) version of what is on the screen. If the String returned here does not match what the user sees (that which is rendered), then the filtering action may confuse the user.
      Specified by:
      getFilterString in interface GColumnRenderer<N extends Number>
      Parameters:
      t - the column type instance
      settings - any settings the converter may need to convert the type
      Returns:
      the unformatted String version of what is rendered in the table cell on screen
    • getTableCellRendererComponent

      public Component getTableCellRendererComponent(GTableCellRenderingData data)
      Description copied from class: GTableCellRenderer
      Provide basic cell rendering -- setting foreground and background colors, font, text, alignment, drop color, and border. Additional data that may be of use to the renderer is passed through the GTableCellRenderingData object.
      Overrides:
      getTableCellRendererComponent in class GTableCellRenderer
      Parameters:
      data - Context data used in the rendering of a data cell.
      Returns:
      The component used for drawing the table cell.
    • paintComponent

      protected void paintComponent(Graphics parentG)
      Overrides:
      paintComponent in class JComponent
    • getFullRange

      public Span<N,?> getFullRange()
      Description copied from interface: SpannedRenderer
      Get the span of the viewport
      Specified by:
      getFullRange in interface SpannedRenderer<N extends Number>
      Returns:
      the span
    • getFullRangeDouble

      public SpannedRenderer.DoubleSpan getFullRangeDouble()
      Description copied from interface: SpannedRenderer
      Get the span of the viewport with double endpoints
      Specified by:
      getFullRangeDouble in interface SpannedRenderer<N extends Number>
      Returns:
      the span
    • getSpan

      public double getSpan()
      Description copied from interface: SpannedRenderer
      Get the length of the span
      Specified by:
      getSpan in interface SpannedRenderer<N extends Number>
      Returns:
      the length