| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum | ImageScalingHelper.
Enumeration for the types of painting this class can handle. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Insets | |
| pack-priv static final int | PAINT_ALL
Specifies that all regions should be painted. |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static void | drawChunk(Image
Image to render. image, Graphics Graphics to render to g, boolean Whether the image should be stretched or timed in the
provided space. stretch, int X origin to draw to dx1, int Y origin to draw to dy1, int End x location to draw to dx2, int End y location to draw to dy2, int X origin to draw from sx1, int Y origin to draw from sy1, int Max x location to draw from sx2, int Max y location to draw from sy2, boolean Used if the image is not stretched. If true it
indicates the image should be tiled along the x axis. xDirection)Draws a portion of an image, stretched or tiled. |
| private static void | |
| public static void | paint(Graphics
Graphics to render to g, int X-coordinate x, int Y-coordinate y, int Width to render to w, int Height to render to h, Image Image to render from, if image, Insets null this method will do nothingInsets specifying the portion of the image that will be stretched or tiled, if sInsets, Insets null
empty Insets will be used.Destination insets specifying the portion of the image will be stretched or tiled, if
dInsets, ImageScalingHelper.null empty Insets will be used.Specifies what type of algorithm to use in painting paintType,Specifies portion of image to render, if mask)PAINT_ALL is specified, any other regions
specified will not be painted, for example PAINT_ALL | PAINT_CENTER paints everything but the
center.Paints using the algorithm specified by |
| EMPTY_INSETS | back to summary |
|---|---|
| private static final Insets EMPTY_INSETS | |
| PAINT_ALL | back to summary |
|---|---|
| pack-priv static final int PAINT_ALL Specifies that all regions should be painted. If this is set any other regions specified will not be painted. For example PAINT_ALL | PAINT_CENTER will paint all but the center. | |
| PAINT_BOTTOM | back to summary |
|---|---|
| pack-priv static final int PAINT_BOTTOM | |
| PAINT_BOTTOM_LEFT | back to summary |
|---|---|
| pack-priv static final int PAINT_BOTTOM_LEFT | |
| PAINT_BOTTOM_RIGHT | back to summary |
|---|---|
| pack-priv static final int PAINT_BOTTOM_RIGHT | |
| PAINT_CENTER | back to summary |
|---|---|
| pack-priv static final int PAINT_CENTER | |
| PAINT_LEFT | back to summary |
|---|---|
| pack-priv static final int PAINT_LEFT | |
| PAINT_RIGHT | back to summary |
|---|---|
| pack-priv static final int PAINT_RIGHT | |
| PAINT_TOP | back to summary |
|---|---|
| pack-priv static final int PAINT_TOP | |
| PAINT_TOP_LEFT | back to summary |
|---|---|
| pack-priv static final int PAINT_TOP_LEFT | |
| PAINT_TOP_RIGHT | back to summary |
|---|---|
| pack-priv static final int PAINT_TOP_RIGHT | |
| ImageScalingHelper | back to summary |
|---|---|
| pack-priv ImageScalingHelper() | |
| drawChunk | back to summary |
|---|---|
| private static void drawChunk(Image image, Graphics g, boolean stretch, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, boolean xDirection) Draws a portion of an image, stretched or tiled.
| |
| drawImage | back to summary |
|---|---|
| private static void drawImage(Image image, Graphics g, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2) | |
| paint | back to summary |
|---|---|
| public static void paint(Graphics g, int x, int y, int w, int h, Image image, Insets sInsets, Insets dInsets, ImageScalingHelper. Paints using the algorithm specified by
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ImageScalingHelper. | CENTER
Painting type indicating the image should be centered in the space provided. |
| public static final ImageScalingHelper. | PAINT9_STRETCH
Painting type indicating the image should be split into nine regions with the top, left, bottom and right areas stretched. |
| public static final ImageScalingHelper. | PAINT9_TILE
Painting type indicating the image should be split into nine regions with the top, left, bottom and right areas tiled. |
| public static final ImageScalingHelper. | TILE
Painting type indicating the image should be tiled across the specified width and height. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ImageScalingHelper. | |
| public static ImageScalingHelper. |
| CENTER | back to summary |
|---|---|
| public static final ImageScalingHelper. Painting type indicating the image should be centered in the space provided. When used the | |
| PAINT9_STRETCH | back to summary |
|---|---|
| public static final ImageScalingHelper. Painting type indicating the image should be split into nine regions with the top, left, bottom and right areas stretched. | |
| PAINT9_TILE | back to summary |
|---|---|
| public static final ImageScalingHelper. Painting type indicating the image should be split into nine regions with the top, left, bottom and right areas tiled. | |
| TILE | back to summary |
|---|---|
| public static final ImageScalingHelper. Painting type indicating the image should be tiled across the specified width and height. When used the
| |
| PaintType | back to summary |
|---|---|
| private PaintType() | |
| valueOf | back to summary |
|---|---|
| public static ImageScalingHelper. | |
| values | back to summary |
|---|---|
| public static ImageScalingHelper. | |