|
kitfox-svg-core 1.0.0-build001 / 2012-04-07T15:40:49.711-0500 |
|||||||||
| 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 int |
INTERP_BICUBIC
|
static int |
INTERP_BILINEAR
|
static int |
INTERP_NEAREST_NEIGHBOR
|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
SVGIcon()
Creates a new instance of SVGIcon |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener p)
|
boolean |
getAntiAlias()
|
int |
getIconHeight()
|
int |
getIconWidth()
|
int |
getInterpolation()
|
Dimension |
getPreferredSize()
|
SVGUniverse |
getSvgUniverse()
|
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(Component comp,
Graphics gg,
int x,
int y)
Draws the icon to the specified component. |
void |
removePropertyChangeListener(PropertyChangeListener p)
|
void |
setAntiAlias(boolean antiAlias)
|
void |
setClipToViewbox(boolean clipToViewbox)
|
void |
setInterpolation(int interpolation)
|
void |
setPreferredSize(Dimension preferredSize)
|
void |
setScaleToFit(boolean scaleToFit)
|
void |
setSvgResourcePath(String resourcePath)
Loads an SVG document from the classpath. |
void |
setSvgUniverse(SVGUniverse svgUniverse)
|
void |
setSvgURI(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
public static final int INTERP_NEAREST_NEIGHBOR
public static final int INTERP_BILINEAR
public static final int INTERP_BICUBIC
| Constructor Detail |
|---|
public SVGIcon()
| Method Detail |
|---|
public void addPropertyChangeListener(PropertyChangeListener p)
public void removePropertyChangeListener(PropertyChangeListener p)
public int getIconHeight()
getIconHeight in interface Iconpublic int getIconWidth()
getIconWidth in interface Icon
public void paintIcon(Component comp,
Graphics gg,
int x,
int y)
paintIcon in interface 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 URI getSvgURI()
public void setSvgURI(URI svgURI)
svgURI - - URI to load document frompublic void setSvgResourcePath(String resourcePath)
resourcePath - - resource to loadpublic boolean isScaleToFit()
public void setScaleToFit(boolean scaleToFit)
public Dimension getPreferredSize()
public void setPreferredSize(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 int getInterpolation()
public void setInterpolation(int interpolation)
interpolation - Interpolation value used in rescaling images.
Should be one of
INTERP_NEAREST_NEIGHBOR - Fastest, one pixel resampling, poor quality
INTERP_BILINEAR - four pixel resampling
INTERP_BICUBIC - Slowest, nine pixel resampling, best qualitypublic boolean isClipToViewbox()
public void setClipToViewbox(boolean clipToViewbox)
|
kitfox-svg-core 1.0.0-build001 / 2012-04-07T15:40:49.711-0500 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||