DamakuViewinfo.java
1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package com.cnlive.goldenline.model;
import android.widget.TextView;
import java.io.Serializable;
/**
* Created by Dean.Zhang on 2016-08-24.
*/
public class DamakuViewinfo implements Serializable {
public TextView textView;
public int textColor;
public String text;
public int textSize;
public int moveSpeed;//移动速度
public int verticalPos;//垂直方向显示的位置
public int textMeasuredWidth;//字体显示占据的宽度
public DamakuViewinfo() {
}
public DamakuViewinfo(int textColor, String text, int verticalPos) {
this.textColor = textColor;
this.text = text;
this.verticalPos = verticalPos;
}
public TextView getTextView() {
return textView;
}
public void setTextView(TextView textView) {
this.textView = textView;
}
public int getTextColor() {
return textColor;
}
public void setTextColor(int textColor) {
this.textColor = textColor;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public int getTextSize() {
return textSize;
}
public void setTextSize(int textSize) {
this.textSize = textSize;
}
public int getMoveSpeed() {
return moveSpeed;
}
public void setMoveSpeed(int moveSpeed) {
this.moveSpeed = moveSpeed;
}
public int getVerticalPos() {
return verticalPos;
}
public void setVerticalPos(int verticalPos) {
this.verticalPos = verticalPos;
}
public int getTextMeasuredWidth() {
return textMeasuredWidth;
}
public void setTextMeasuredWidth(int textMeasuredWidth) {
this.textMeasuredWidth = textMeasuredWidth;
}
}