drag button should be extended for left swipe

This commit is contained in:
Sergey Solovyev 2011-12-07 18:31:53 +04:00
parent 04b7fcfd4c
commit ec47b94f42

View File

@ -28,26 +28,51 @@ public class DirectionDragButton extends DragButton {
@NotNull
private final static Float DEFAULT_DIRECTION_TEXT_SCALE = 0.33f;
@Nullable
private String textUp;
@Nullable
private String textDown;
@Nullable
private String textMiddle;
@NotNull
private Point2d textUpPosition;
private static class DirectionTextData {
@NotNull
private Point2d textDownPosition;
private String text;
@NotNull
private TextPaint upTextPaint;
private Point2d position;
@NotNull
private TextPaint downTextPaint;
private TextPaint paint;
private DirectionTextData(@NotNull String text) {
this.text = text;
}
@NotNull
public String getText() {
return text;
}
public void setText(@NotNull String text) {
this.text = text;
}
@NotNull
public Point2d getPosition() {
return position;
}
public void setPosition(@NotNull Point2d position) {
this.position = position;
}
@NotNull
public TextPaint getPaint() {
return paint;
}
public void setPaint(@NotNull TextPaint paint) {
this.paint = paint;
}
}
@Nullable
private Float directionTextScale = DEFAULT_DIRECTION_TEXT_SCALE;