public class ImagePosition extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BOTTOM
图片底部.
|
private int |
boxPosX
图片中盒[左上角]的x坐标.
|
private int |
boxPosY
图片中盒[左上角]的y坐标.
|
static int |
CENTER
图片居中.
|
static int |
LEFT
图片左侧.
|
static int |
MIDDLE
图片中部.
|
private static int |
PADDING_HORI
横向边距,靠左或靠右时和边界的距离.
|
private static int |
PADDING_VERT
纵向边距,靠上或靠底时和边界的距离.
|
static int |
RIGHT
图片右侧.
|
static int |
TOP
图片顶部.
|
| 构造器和说明 |
|---|
ImagePosition(int width,
int height,
int boxWidth,
int boxHeight,
int style)
Instantiates a new image position.
|
public static final int TOP
public static final int MIDDLE
public static final int BOTTOM
public static final int LEFT
public static final int CENTER
public static final int RIGHT
private static final int PADDING_HORI
private static final int PADDING_VERT
private int boxPosX
private int boxPosY
Copyright © 2024. All rights reserved.