-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathEditor.java
More file actions
174 lines (146 loc) · 5.59 KB
/
Editor.java
File metadata and controls
174 lines (146 loc) · 5.59 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
package JAVARuntime;
import android.view.View;
import android.view.ViewGroup;
//
/**
* @Author Lucas Leandro (ITsMagic Founder)
*/
@ClassCategory(cat ={"Editor"})
public final class Editor {
private Editor() {}
@JRDoc_EN("Indicates whether it's in editor mode, useful for editor-only logic.")
@JRDoc_PT("Indica se está no editor, útil para lógica exclusiva do modo editor.")
public static boolean isEditor(){
//
return false;
//
//
}
@JRDoc_EN("Returns the selected object in the editor.")
@JRDoc_PT("Retorna o objeto selecionado no editor.")
public static SpatialObject getSelectedObject(){
//
return null;
//
//
}
@JRDoc_EN("Sets the selected object in the editor.")
@JRDoc_PT("Define o objeto selecionado no editor.")
public static void setSelectedObject(SpatialObject object){
//
}
public enum AnchorSide{
Left, Above, Below, Right
}
@JRDoc_EN("Creates a floating panel anchored to the specified view.")
@JRDoc_PT("Cria um painel flutuante ancorado à view especificada.")
public static FloatingPanelArea inflateAnchoredFloatingPanel(View anchor, AnchorSide anchorSide, EditorPanel editorPanel){
//
return null;
//
//
}
@JRDoc_EN("Creates a floating panel anchored to the specified view, with the given width and height (0.0f - 1.0f).")
@JRDoc_PT("Cria um painel flutuante ancorado à view especificada, com a largura e altura (0.0f - 1.0f).")
public static FloatingPanelArea inflateAnchoredFloatingPanel(View anchor, AnchorSide anchorSide, EditorPanel editorPanel, float w, float h){
//
return null;
//
//
}
@JRDoc_EN("Creates a floating panel anchored to the specified view, with the given width and height in dp.")
@JRDoc_PT("Cria um painel flutuante ancorado à view especificada, com a largura e altura em dp.")
public static FloatingPanelArea inflateAnchoredFloatingPanelInDP(View anchor, AnchorSide anchorSide, EditorPanel editorPanel, int dpW, int dpH){
//
return null;
//
//
}
@JRDoc_EN("Creates a floating panel at the specified position with given width and height (0.0f - 1.0f).")
@JRDoc_PT("Cria um painel flutuante na posição especificada com a largura e altura (0.0f - 1.0f).")
public static FloatingPanelArea inflateFloatingPanel(EditorPanel editorPanel, float x, float y, float w, float h){
//
return null;
//
//
}
@JRDoc_EN("Creates a centered floating panel with the specified width and height (0.0f - 1.0f).")
@JRDoc_PT("Cria um painel flutuante centralizado com a largura e altura (0.0f - 1.0f).")
public static FloatingPanelArea inflateFloatingPanel(EditorPanel editorPanel, float w, float h){
//
return null;
//
//
}
@JRDoc_EN("Creates a floating panel at the specified position with given width and height in dp.")
@JRDoc_PT("Cria um painel flutuante na posição especificada com a largura e altura em dp.")
public static FloatingPanelArea inflateFloatingPanelInDP(EditorPanel editorPanel, int x, int y, int w, int h){
//
return null;
//
//
}
@JRDoc_EN("Creates a centered floating panel with the specified width and height in dp.")
@JRDoc_PT("Cria um painel flutuante centralizado com a largura e altura em dp.")
public static FloatingPanelArea inflateFloatingPanelInDP(EditorPanel editorPanel, int w, int h){
//
return null;
//
//
}
@JRDoc_EN("Converts dp value to width percentage (0.0f - 1.0f) based on screen size.")
@JRDoc_PT("Converte o valor em dp para porcentagem de largura (0.0f - 1.0f) com base no tamanho da tela.")
public static float dpToWidthPercentage(int dp){
//
return 0;
//
//
}
@JRDoc_EN("Converts dp value to height percentage (0.0f - 1.0f) based on screen size.")
@JRDoc_PT("Converte o valor em dp para porcentagem de altura (0.0f - 1.0f) com base no tamanho da tela.")
public static float dpToHeightPercentage(int dp){
//
return 0;
//
//
}
@JRDoc_EN("Converts px value to width percentage (0.0f - 1.0f) based on screen size.")
@JRDoc_PT("Converte o valor em px para porcentagem de largura (0.0f - 1.0f) com base no tamanho da tela.")
public static float pxToWidthPercentage(int px){
//
return 0;
//
//
}
@JRDoc_EN("Converts px value to height percentage (0.0f - 1.0f) based on screen size.")
@JRDoc_PT("Converte o valor em px para porcentagem de altura (0.0f - 1.0f) com base no tamanho da tela.")
public static float pxToHeightPercentage(int px){
//
return 0;
//
//
}
@JRDoc_EN("Finds a child view with the given ID inside the specified view hierarchy.")
@JRDoc_PT("Procura uma view filha com o ID especificado dentro da hierarquia da view.")
@MethodArgs({"view","id"})
public static <T extends View> T findViewByID(View view, String id) {
//
return null;
//
//
}
@JRDoc_EN("Returns the given object casted as a View.")
@JRDoc_PT("Retorna o objeto fornecido convertido como uma View.")
public static View toView(Object o){
return (View) o;
}
@JRDoc_EN("Returns the ID of the view (without prefix).")
@JRDoc_PT("Retorna o ID da view (sem o prefixo).")
@MethodArgs({"view"})
public static String getIdOf(View v){
//
return null;
//
//
}
}