|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.bio.gui.glyph.ArrowGlyph
public class ArrowGlyph
A Glyph that paints an arrow shape within the bounds. The
setDirection method allows the decision of the direction, to
which the arrow points.
| Constructor Summary | |
|---|---|
ArrowGlyph()
Creates a new ArrowGlyph, which is filled with the color
blue by default. |
|
ArrowGlyph(Paint fillPaint,
Paint outerPaint)
Creates a new ArrowGlyph, which is filled with the given
color. |
|
ArrowGlyph(Rectangle2D.Float bounds)
This constructs an arrow in the given bounds, which is colored blue. |
|
ArrowGlyph(Rectangle2D.Float bounds,
Paint fillPaint,
Paint outerPaint)
Constructor which sets both the size of this arrow and its color. |
|
| Method Summary | |
|---|---|
Rectangle2D.Float |
getBounds()
|
Paint |
getFillPaint()
Returns the paint properties of this glyph. |
Paint |
getOuterPaint()
Returns the paint properties of the outer line of this glyph. |
void |
render(Graphics2D g)
|
void |
setBounds(Rectangle2D.Float r)
|
void |
setDirection(int direction)
This method allows you to decide in which direction the arrow has to point. |
void |
setFillPaint(Paint fillPaint)
Allows you to set the paint properties of this glyph. |
void |
setOuterPaint(Paint outerPaint)
Allows setting the paint properties of the outer line of this glyph to the given value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrowGlyph()
ArrowGlyph, which is filled with the color
blue by default.
public ArrowGlyph(Paint fillPaint,
Paint outerPaint)
ArrowGlyph, which is filled with the given
color.
fillPaint - Paint properties to fill this arrow.outerPaint - Paint properties of the outer border of this arrow.public ArrowGlyph(Rectangle2D.Float bounds)
bounds -
public ArrowGlyph(Rectangle2D.Float bounds,
Paint fillPaint,
Paint outerPaint)
bounds - fillPaint - | Method Detail |
|---|
public Rectangle2D.Float getBounds()
getBounds in interface Glyphpublic void setBounds(Rectangle2D.Float r)
setBounds in interface Glyphpublic void setDirection(int direction)
StrandedFeature.
direction - A +1 means to the right, -1 to the left an 0 (and any other value)
produces a rectangular shape without arrows at its end.public void render(Graphics2D g)
render in interface Glyphpublic Paint getFillPaint()
public void setFillPaint(Paint fillPaint)
fillPaint - public Paint getOuterPaint()
public void setOuterPaint(Paint outerPaint)
outerPaint -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||