apollo.gui.drawable
Class PromoterGlyph

java.lang.Object
  extended by apollo.gui.drawable.DrawableSeqFeature
      extended by apollo.gui.drawable.PromoterGlyph
All Implemented Interfaces:
Drawable, SelectableI

public class PromoterGlyph
extends DrawableSeqFeature

A glyph that draws a solid bar with a triangle at the top or bottom. This might be useful for showing transposon insertions, for example. Renamed from DrawableInsertion to Triangle in order to be more descriptive of what is actually drawn


Field Summary
 
Fields inherited from class apollo.gui.drawable.DrawableSeqFeature
boxBounds, DECORATED, draw_level, drawable_parent, feature, flags, HIGHLIGHTED, is_drawn, LABELED, LEFTEDGE, logger, RIGHTEDGE, SELECTED, VISIBLE
 
Constructor Summary
PromoterGlyph()
          constructs a glyph with the triangle at the top pointing in the direction of the insertion.
PromoterGlyph(SeqFeatureI feature)
           
 
Method Summary
 void drawUnselected(java.awt.Graphics g, java.awt.Rectangle boxBounds, Transformer transformer, TierManagerI manager)
           
 
Methods inherited from class apollo.gui.drawable.DrawableSeqFeature
accept, addDecorations, addHighlights, contains, deleteDrawable, draw, draw, drawMissing, drawSelected, drawStartAndStopCodons, feature_draw, findDrawable, fontColorForBackground, getBoxBounds, getCharY, getCodonX, getDisplayLabel, getDrawableColor, getDrawLevel, getEnd, getFeature, getFeatureProperty, getFeatureType, getHigh, getLeft, getLeftmostVisible, getLow, getName, getRefDrawable, getRight, getSize, getStart, getStrand, getTierIndex, getType, getYCentre, getYSpace, intersects, isDecorated, isDrawn, isForwardStrand, isHighlighted, isLabeled, isLeftEdge, isRightEdge, isSelected, isVisible, sameFeature, setBoxBounds, setDrawLevel, setDrawn, setEdgeHighlights, setFeature, setHighlighted, setLabeled, setLabeled, setRefDrawable, setSelected, setTierIndex, setVisible, synchFeatureProperty, wantToDraw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PromoterGlyph

public PromoterGlyph()
constructs a glyph with the triangle at the top pointing in the direction of the insertion. when selected a 1 pixel line is draw down to the insertion site the triangle is filled with gray and outlined in black, and the bar is black.


PromoterGlyph

public PromoterGlyph(SeqFeatureI feature)
Method Detail

drawUnselected

public void drawUnselected(java.awt.Graphics g,
                           java.awt.Rectangle boxBounds,
                           Transformer transformer,
                           TierManagerI manager)
Overrides:
drawUnselected in class DrawableSeqFeature