public interface SequenceRenderContext extends SwingConstants
| Modifier and Type | Interface and Description | 
|---|---|
static class  | 
SequenceRenderContext.Border
The metric object for the 'border' area - the area between the extent of
 the rendered area and the beginning or end of the sequence. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static ChangeType | 
LAYOUT  | 
static ChangeType | 
REPAINT  | 
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST| Modifier and Type | Method and Description | 
|---|---|
int | 
getDirection()
Gets the direction in which this context expects sequences to be rendered
 - HORIZONTAL or VERTICAL. 
 | 
FeatureHolder | 
getFeatures()
The features to render. 
 | 
Font | 
getFont()
Gets the Font attribute of the SequenceRenderContext object 
 | 
SequenceRenderContext.Border | 
getLeadingBorder()
Gets the LeadingBorder attribute of the SequenceRenderContext object. 
 | 
RangeLocation | 
getRange()
The range of the SymbolList to render. 
 | 
double | 
getScale()
Gets the scale as pixels per Symbol 
 | 
SymbolList | 
getSymbols()
The SymbolList that is currently rendered by this SequenceRenderContext. 
 | 
SequenceRenderContext.Border | 
getTrailingBorder()
Gets the TrailingBorder attribute of the SequenceRenderContext object. 
 | 
int | 
graphicsToSequence(double d)
Converts a graphical position into a sequence coordinate. 
 | 
int | 
graphicsToSequence(Point2D point)
Converts a graphical position into a sequence coordinate. 
 | 
double | 
sequenceToGraphics(int i)
Converts a sequence index into a graphical coordinate. 
 | 
static final ChangeType REPAINT
static final ChangeType LAYOUT
int getDirection()
double getScale()
double sequenceToGraphics(int i)
i - Index within the sequenceint graphicsToSequence(double d)
d - A pixel positionint graphicsToSequence(Point2D point)
point - a point representing the positionSymbolList getSymbols()
FeatureHolder getFeatures()
RangeLocation getRange()
SequenceRenderContext.Border getLeadingBorder()
SequenceRenderContext.Border getTrailingBorder()
Copyright © 2020 BioJava. All rights reserved.