Package org.biojava.bio.gui.sequence
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:
-
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 -
Method Summary
Modifier and TypeMethodDescriptionint
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.
-
Constructor Details
-
Border
public Border()
-
-
Method Details
-
setSize
Sets the size of the border in number of pixels.- Parameters:
size
- The new size in pixels
-
setAlignment
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
Gets the current size of the border in pixels.- Returns:
- The Size value
-
getAlignment
Gets the Alignment - one of LEADING, TRAILING or CENTER.- Returns:
- The alignment value
-