META-INF/
META-INF/MANIFEST.MF
com/
com/android/
com/android/ninepatch/
com/android/ninepatch/GraphicsUtilities.classGraphicsUtilities.java
package com.android.ninepatch
public com.android.ninepatch.GraphicsUtilities extends java.lang.Object {
public void ()
public static java.awt.image.BufferedImage loadCompatibleImage (java.net.URL) throws java.io.IOException
java.net.URL resource
java.awt.image.BufferedImage image
public static java.awt.image.BufferedImage loadCompatibleImage (java.io.InputStream) throws java.io.IOException
java.io.InputStream stream
java.awt.image.BufferedImage image
public static java.awt.image.BufferedImage createCompatibleImage (int, int)
int width
int height
public static java.awt.image.BufferedImage toCompatibleImage (java.awt.image.BufferedImage)
java.awt.image.BufferedImage image
java.awt.image.BufferedImage compatibleImage
java.awt.Graphics g
public static java.awt.image.BufferedImage createCompatibleImage (java.awt.image.BufferedImage, int, int)
java.awt.image.BufferedImage image
int width
int height
private static java.awt.GraphicsConfiguration getGraphicsConfiguration ()
java.awt.GraphicsEnvironment environment
private static boolean isHeadless ()
public static java.awt.image.BufferedImage createTranslucentCompatibleImage (int, int)
int width
int height
public static int[] getPixels (java.awt.image.BufferedImage, int, int, int, int, int[])
java.awt.image.Raster raster
java.awt.image.BufferedImage img
int x
int y
int w
int h
int[] pixels
int imageType
}
com/android/ninepatch/NinePatchChunk$Pair.classNinePatchChunk.java
package com.android.ninepatch
com.android.ninepatch.NinePatchChunk$Pair extends java.lang.Object implements java.io.Serializable {
private static final long serialVersionUID
Object mFirst
Object mSecond
void (java.lang.Object, java.lang.Object)
Object first
Object second
public java.lang.String toString ()
}
com/android/ninepatch/NinePatchChunk$DrawingData.classNinePatchChunk.java
package com.android.ninepatch
final com.android.ninepatch.NinePatchChunk$DrawingData extends java.lang.Object {
private int mRemainderHorizontal
private int mRemainderVertical
private float mHorizontalPatchesSum
private float mVerticalPatchesSum
void ()
static int access$000 (com.android.ninepatch.NinePatchChunk$DrawingData)
com.android.ninepatch.NinePatchChunk$DrawingData x0
static int access$100 (com.android.ninepatch.NinePatchChunk$DrawingData)
com.android.ninepatch.NinePatchChunk$DrawingData x0
static float access$200 (com.android.ninepatch.NinePatchChunk$DrawingData)
com.android.ninepatch.NinePatchChunk$DrawingData x0
static float access$300 (com.android.ninepatch.NinePatchChunk$DrawingData)
com.android.ninepatch.NinePatchChunk$DrawingData x0
static int access$102 (com.android.ninepatch.NinePatchChunk$DrawingData, int)
com.android.ninepatch.NinePatchChunk$DrawingData x0
int x1
static int access$002 (com.android.ninepatch.NinePatchChunk$DrawingData, int)
com.android.ninepatch.NinePatchChunk$DrawingData x0
int x1
static float access$202 (com.android.ninepatch.NinePatchChunk$DrawingData, float)
com.android.ninepatch.NinePatchChunk$DrawingData x0
float x1
static float access$302 (com.android.ninepatch.NinePatchChunk$DrawingData, float)
com.android.ninepatch.NinePatchChunk$DrawingData x0
float x1
}
com/android/ninepatch/NinePatchChunk.classNinePatchChunk.java
package com.android.ninepatch
public com.android.ninepatch.NinePatchChunk extends java.lang.Object implements java.io.Serializable {
private static final long serialVersionUID
private static final int[] sPaddingRect
private boolean mVerticalStartWithPatch
private boolean mHorizontalStartWithPatch
private java.util.List mFixed
private java.util.List mPatches
private java.util.List mHorizontalPatches
private java.util.List mVerticalPatches
private com.android.ninepatch.NinePatchChunk$Pair mHorizontalPadding
private com.android.ninepatch.NinePatchChunk$Pair mVerticalPadding
public void ()
public static com.android.ninepatch.NinePatchChunk create (java.awt.image.BufferedImage)
java.awt.image.BufferedImage image
com.android.ninepatch.NinePatchChunk chunk
public void draw (java.awt.image.BufferedImage, java.awt.Graphics2D, int, int, int, int, int, int)
float densityScale
java.awt.image.BufferedImage image
java.awt.Graphics2D graphics2D
int x
int y
int scaledWidth
int scaledHeight
int destDensity
int srcDensity
boolean scaling
private void draw (java.awt.image.BufferedImage, java.awt.Graphics2D, int, int, int, int)
float extra
int width
java.awt.Rectangle r
java.awt.Rectangle r
float extra
int width
java.awt.Rectangle r
java.awt.Rectangle r
int height
float vExtra
float hWeightSum
float hRemainder
com.android.ninepatch.NinePatchChunk$DrawingData data
int fixedIndex
int horizontalIndex
int verticalIndex
int patchIndex
boolean hStretch
boolean vStretch
float vWeightSum
float vRemainder
java.awt.image.BufferedImage image
java.awt.Graphics2D graphics2D
int x
int y
int scaledWidth
int scaledHeight
java.awt.Graphics2D g
public void getPadding (int[])
int[] padding
public int[] getPadding ()
private com.android.ninepatch.NinePatchChunk$DrawingData computePatches (int, int)
java.awt.Rectangle rect
int start
java.awt.Rectangle rect
java.awt.Rectangle rect
java.awt.Rectangle rect
int start
java.awt.Rectangle rect
int start
java.awt.Rectangle rect
int start
java.awt.Rectangle rect
int start
int scaledWidth
int scaledHeight
com.android.ninepatch.NinePatchChunk$DrawingData data
boolean measuredWidth
boolean endRow
int remainderHorizontal
int remainderVertical
private void findPatches (java.awt.image.BufferedImage)
java.awt.image.BufferedImage image
int width
int height
int[] row
int[] column
boolean[] result
com.android.ninepatch.NinePatchChunk$Pair left
com.android.ninepatch.NinePatchChunk$Pair top
private java.util.List getVerticalRectangles (int, java.util.List)
int x
int width
com.android.ninepatch.NinePatchChunk$Pair top
int imageHeight
java.util.List topPairs
java.util.List rectangles
private java.util.List getHorizontalRectangles (int, java.util.List)
int y
int height
com.android.ninepatch.NinePatchChunk$Pair left
int imageWidth
java.util.List leftPairs
java.util.List rectangles
private com.android.ninepatch.NinePatchChunk$Pair getPadding (java.util.List)
int index
java.util.List pairs
private java.util.List getRectangles (java.util.List, java.util.List)
int x
int width
com.android.ninepatch.NinePatchChunk$Pair top
int y
int height
com.android.ninepatch.NinePatchChunk$Pair left
java.util.List leftPairs
java.util.List topPairs
java.util.List rectangles
private com.android.ninepatch.NinePatchChunk$Pair getPatches (int[], boolean[])
int pixel
int i
int[] pixels
boolean[] startWithPatch
int lastIndex
int lastPixel
boolean first
java.util.List fixed
java.util.List patches
static void ()
}
com/android/ninepatch/NinePatch.classNinePatch.java
package com.android.ninepatch
public com.android.ninepatch.NinePatch extends java.lang.Object {
public static final String EXTENSION_9PATCH
private java.awt.image.BufferedImage mImage
private com.android.ninepatch.NinePatchChunk mChunk
public java.awt.image.BufferedImage getImage ()
public com.android.ninepatch.NinePatchChunk getChunk ()
public static com.android.ninepatch.NinePatch load (java.net.URL, boolean) throws java.io.IOException
java.net.MalformedURLException e
java.net.URL fileUrl
boolean convert
java.awt.image.BufferedImage image
boolean is9Patch
public static com.android.ninepatch.NinePatch load (java.io.InputStream, boolean, boolean) throws java.io.IOException
java.net.MalformedURLException e
java.io.InputStream stream
boolean is9Patch
boolean convert
java.awt.image.BufferedImage image
public static com.android.ninepatch.NinePatch load (java.awt.image.BufferedImage, boolean, boolean)
java.awt.image.BufferedImage image
boolean is9Patch
boolean convert
public int getWidth ()
public int getHeight ()
public boolean getPadding (int[])
int[] padding
public void draw (java.awt.Graphics2D, int, int, int, int)
java.awt.Graphics2D graphics2D
int x
int y
int scaledWidth
int scaledHeight
private void (java.awt.image.BufferedImage)
java.awt.image.BufferedImage image
private static void ensure9Patch (java.awt.image.BufferedImage)
int pixel
int i
int pixel
int i
java.awt.image.BufferedImage image
int width
int height
private static java.awt.image.BufferedImage convertTo9Patch (java.awt.image.BufferedImage)
java.awt.image.BufferedImage image
java.awt.image.BufferedImage buffer
java.awt.Graphics2D g2
private java.awt.image.BufferedImage extractBitmapContent (java.awt.image.BufferedImage)
java.awt.image.BufferedImage image
}