Ejemplo n.º 1
0
 /**
  * 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));
 }
Ejemplo n.º 2
0
 /**
  * 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));
 }
Ejemplo n.º 3
0
 /**
  * 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));
 }