|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface for things that can render a line of information about a sequence.
Renderers are always activated within the context of a particular sequence panel. A single Renderer can be shaired among many sequence panels, or added multiple times to the same panel. The renderer is required to request how much leading and trailing space it requires, as well as the depth (space orthoganal to the direction that the sequence is rendered).
Method Summary | |
double |
getDepth(SequencePanel sp)
Retrieve the depth of this renderer when rendering sp. |
double |
getMinimumLeader(SequencePanel sp)
Retrieve the minimum leading distance for this renderer when rendering sp. |
double |
getMinimumTrailer(SequencePanel sp)
Retrieve the minimum trailing distance for this renderer when rendering sp. |
void |
paint(java.awt.Graphics2D g,
SequencePanel sp,
java.awt.geom.Rectangle2D seqBox)
Render a portion (possibly all) of the information for sp to g, displaying all of the data that would fall within seqBox. |
Method Detail |
public void paint(java.awt.Graphics2D g, SequencePanel sp, java.awt.geom.Rectangle2D seqBox)
g
- the Graphics2D to render tosp
- the SequencePanel that encapsulates the information to renderseqBox
- the rectangle within which to render sequence stuffpublic double getDepth(SequencePanel sp)
The depth may vary between sequence panels - for example based upon sequence length.
sp
- the SequencePanel to return info forpublic double getMinimumLeader(SequencePanel sp)
The leading distance may vary between sequence panels - for example based upon sequence length.
sp
- the SequencePanel to return info forpublic double getMinimumTrailer(SequencePanel sp)
The trailing distance may vary between sequence panels - for example based upon sequence length.
sp
- the SequencePanel to return info for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |