Class SequenceRenderContext.Border

java.lang.Object
org.biojava.bio.gui.sequence.SequenceRenderContext.Border
All Implemented Interfaces:
Serializable, SwingConstants
Enclosing interface:
SequenceRenderContext

public static class SequenceRenderContext.Border extends Object implements Serializable, 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:
  • Constructor Details

  • Method Details

    • 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 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:
      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