|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object yext.svg.view.SVGIcon
public class SVGIcon
An icon implementation that displays scalable vector graphics.
Constructor Summary | |
---|---|
SVGIcon()
Initializes a new SVGIcon instance without associated SVG
graphics. |
|
SVGIcon(SVGModel model)
Initializes a new SVGIcon instance that displays the given
scalable vector graphics. |
|
SVGIcon(URL svgURL)
Initializes a new SVGIcon instance that displays the
referenced SVG document. |
Method Summary | |
---|---|
int |
getIconHeight()
|
int |
getIconWidth()
|
SVGModel |
getModel()
Returns the underlying SVG model for this SVGIcon . |
void |
paintIcon(Component c,
Graphics gfx,
int x,
int y)
|
void |
setModel(SVGModel model)
Sets the underlying SVG model for this SVGIcon . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SVGIcon(URL svgURL)
SVGIcon
instance that displays the
referenced SVG document.
svgURL
- the URL of the SVG document to display.public SVGIcon(SVGModel model)
SVGIcon
instance that displays the given
scalable vector graphics.
model
- the scalable vector graphics to display.
May not be null
!public SVGIcon()
SVGIcon
instance without associated SVG
graphics. Use setModel(SVGModel)
to specify the vector graphics
to display.
Method Detail |
---|
public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
public void paintIcon(Component c, Graphics gfx, int x, int y)
paintIcon
in interface Icon
public SVGModel getModel()
SVGIcon
.
public void setModel(SVGModel model)
SVGIcon
.
model
- the SVG model to use. May not be null
!
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |