Class SequenceRenderContext.Border

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.SwingConstants
    Enclosing interface:
    SequenceRenderContext

    public static class SequenceRenderContext.Border
    extends java.lang.Object
    implements java.io.Serializable, javax.swing.SwingConstants
    The metric object for the 'border' area - the area between the extent of the rendered area and the beginning or end of the sequence. This provides information about its size, and hints about how to align information within the borders.
    Author:
    Matthew Pocock
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface javax.swing.SwingConstants

        BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
    • Constructor Summary

      Constructors 
      Constructor Description
      Border()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAlignment()
      Gets the Alignment - one of LEADING, TRAILING or CENTER.
      double getSize()
      Gets the current size of the border in pixels.
      void setAlignment​(int alignment)
      Sets the Alignment attribute of the Border object.
      void setSize​(double size)
      Sets the size of the border in number of pixels.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Border

        public Border()
    • Method Detail

      • setSize

        public void setSize​(double size)
        Sets the size of the border in number of pixels.
        Parameters:
        size - The new size in pixels
      • setAlignment

        public void setAlignment​(int alignment)
                          throws java.lang.IllegalArgumentException
        Sets the Alignment attribute of the Border object. This will be one of the values LEADING, TRAILING or CENTER.
        Parameters:
        alignment - The new Alignment value
        Throws:
        java.lang.IllegalArgumentException - Description of Exception
      • getSize

        public double getSize()
        Gets the current size of the border in pixels.
        Returns:
        The Size value
      • getAlignment

        public int getAlignment()
        Gets the Alignment - one of LEADING, TRAILING or CENTER.
        Returns:
        The alignment value