All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Enclosing class:
GridRuler

public static class GridRuler.X extends GridRuler
See Also:
  • Constructor Details

  • Method Details

    • offset

      protected int offset(Rectangle r)
      Description copied from class: GridRuler
      Whats the offset position for the given rectangle in this ruler's dimension? (i.e. for a horizontal ruler it would be r.x)
      Specified by:
      offset in class GridRuler
      Parameters:
      r - The rectangle in question.
    • extent

      protected int extent(Rectangle r)
      Description copied from class: GridRuler
      Whats the extent of the given rectangle in this ruler's dimension? (i.e. for a horizontal ruler it would be r.width)
      Specified by:
      extent in class GridRuler
      Parameters:
      r - The rectangle in question.
    • inc

      protected int inc(Dimension resolution)
      Specified by:
      inc in class GridRuler
    • minRes

      protected int minRes()
      Specified by:
      minRes in class GridRuler
    • paintUnderline

      protected void paintUnderline(Graphics2D g, int start, Rectangle area)
      Specified by:
      paintUnderline in class GridRuler
    • paintLabel

      protected void paintLabel(Graphics2D g, int pos, int value, Rectangle area)
      Description copied from class: GridRuler
      Paint the label (a string representing the ruler value.
      Specified by:
      paintLabel in class GridRuler
      pos - The position in Java2D space at which to paint the label
      value - The value of the label itself.