Package org.biojava.bio.gui.glyph
Class RectangleGlyph
- java.lang.Object
-
- org.biojava.bio.gui.glyph.RectangleGlyph
-
- All Implemented Interfaces:
Glyph
public class RectangleGlyph extends java.lang.Object implements Glyph
A Glyph that paints a rectangle shape within the bounds.- Since:
- 1.5
- Author:
- Mark Southern,
-
-
Constructor Summary
Constructors Constructor Description RectangleGlyph()
RectangleGlyph(java.awt.geom.Rectangle2D.Float bounds)
RectangleGlyph(java.awt.Paint paint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.geom.Rectangle2D.Float
getBounds()
java.awt.Paint
getPaint()
void
render(java.awt.Graphics2D g)
void
setBounds(java.awt.geom.Rectangle2D.Float r)
void
setPaint(java.awt.Paint forePaint)
Allows you to set the paint properties of this glyph, i.e., its color.
-
-
-
-
Method Detail
-
getBounds
public java.awt.geom.Rectangle2D.Float getBounds()
-
setBounds
public void setBounds(java.awt.geom.Rectangle2D.Float r)
-
getPaint
public java.awt.Paint getPaint()
- Returns:
- The currently set paint properties of this glyph.
-
setPaint
public void setPaint(java.awt.Paint forePaint)
Allows you to set the paint properties of this glyph, i.e., its color.- Parameters:
forePaint
-
-
-