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 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(Rectangle2D.Float bounds)RectangleGlyph(Paint paint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rectangle2D.FloatgetBounds()PaintgetPaint()voidrender(Graphics2D g)voidsetBounds(Rectangle2D.Float r)voidsetPaint(Paint forePaint)Allows you to set the paint properties of this glyph, i.e., its color.
-
-
-
-
Constructor Detail
-
RectangleGlyph
public RectangleGlyph()
-
RectangleGlyph
public RectangleGlyph(Rectangle2D.Float bounds)
-
RectangleGlyph
public RectangleGlyph(Paint paint)
-
-
Method Detail
-
getBounds
public Rectangle2D.Float getBounds()
-
setBounds
public void setBounds(Rectangle2D.Float r)
-
render
public void render(Graphics2D g)
-
-