Copyright (c) Xoetrope 2001-2006, see license.txt for more details
9596979899100101102103104105
public Image getImage( String imagePath, boolean convert ) { try { if ( painter == null ) painter = new XSvgPainter( context.getComponent() ); if ( image != null ) return image; if ( convert ) {
30313233343536
public XSvgButton() { setModel( new DefaultButtonModel()); addMouseListener( this ); addComponentListener( this ); svgPainter = new XSvgPainter( this ); }
8081828384858687
} public void setImage( URL image ) { if ( svgPainter == null ) svgPainter = new XSvgPainter( this ); svgPainter.setImage( image ); }