/** * Returns NinePatchStatePainter which is read from the source. * * @param source one of possible sources: URL, String, File, Reader, InputStream * @return NinePatchStatePainter */ public static NinePatchStatePainter loadNinePatchStatePainter(final Object source) { return loadNinePatchStatePainter(XmlUtils.loadResourceMap(source)); }
/** * Returns NinePatchIconPainter which is read from the source. * * @param source one of possible sources: URL, String, File, Reader, InputStream * @return NinePatchIconPainter */ public static NinePatchIconPainter loadNinePatchIconPainter(final Object source) { return loadNinePatchIconPainter(XmlUtils.loadResourceFile(source)); }
/** * Returns NinePatchIcon which is read from specified ResourceFile. * * @param resource file description * @return NinePatchIcon */ public static NinePatchIcon loadNinePatchIcon(final ResourceFile resource) { return new NinePatchIcon(XmlUtils.loadImageIcon(resource)); }