|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.kitfox.svg.app.beans.SVGIcon
public class SVGIcon
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
SVGIcon()
Creates a new instance of SVGIcon |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener p)
|
boolean |
getAntiAlias()
|
int |
getIconHeight()
|
int |
getIconWidth()
|
java.awt.Dimension |
getPreferredSize()
|
SVGUniverse |
getSvgUniverse()
|
java.net.URI |
getSvgURI()
|
boolean |
getUseAntiAlias()
Deprecated. |
boolean |
isClipToViewbox()
clipToViewbox will set a clip box equivilant to the SVG's viewbox before rendering. |
boolean |
isScaleToFit()
If this SVG document has a viewbox, if scaleToFit is set, will scale the viewbox to match the preferred size of this icon |
void |
paintIcon(java.awt.Component comp,
java.awt.Graphics gg,
int x,
int y)
Draws the icon to the specified component. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener p)
|
void |
setAntiAlias(boolean antiAlias)
|
void |
setClipToViewbox(boolean clipToViewbox)
|
void |
setPreferredSize(java.awt.Dimension preferredSize)
|
void |
setScaleToFit(boolean scaleToFit)
|
void |
setSvgResourcePath(java.lang.String resourcePath)
Loads an SVG document from the classpath. |
void |
setSvgUniverse(SVGUniverse svgUniverse)
|
void |
setSvgURI(java.net.URI svgURI)
Loads an SVG document from a URI. |
void |
setUseAntiAlias(boolean antiAlias)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public SVGIcon()
| Method Detail |
|---|
public void addPropertyChangeListener(java.beans.PropertyChangeListener p)
public void removePropertyChangeListener(java.beans.PropertyChangeListener p)
public int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Icon
public void paintIcon(java.awt.Component comp,
java.awt.Graphics gg,
int x,
int y)
paintIcon in interface javax.swing.Iconcomp - - Component to draw icon to. This is ignored by SVGIcon, and can be set to null; only gg is used for drawing the icongg - - Graphics context to render SVG content tox - - X coordinate to draw icony - - Y coordinate to draw iconpublic SVGUniverse getSvgUniverse()
public void setSvgUniverse(SVGUniverse svgUniverse)
public java.net.URI getSvgURI()
public void setSvgURI(java.net.URI svgURI)
svgURI - - URI to load document frompublic void setSvgResourcePath(java.lang.String resourcePath)
resourcePath - - resource to loadpublic boolean isScaleToFit()
public void setScaleToFit(boolean scaleToFit)
public java.awt.Dimension getPreferredSize()
public void setPreferredSize(java.awt.Dimension preferredSize)
public boolean getUseAntiAlias()
public void setUseAntiAlias(boolean antiAlias)
antiAlias - true to use antiAliasing.public boolean getAntiAlias()
public void setAntiAlias(boolean antiAlias)
antiAlias - true to use antiAliasing.public boolean isClipToViewbox()
public void setClipToViewbox(boolean clipToViewbox)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||