Add more methods to debug
This commit is contained in:
parent
2b4648dec1
commit
b0f87db897
1 changed files with 24 additions and 2 deletions
|
@ -176,10 +176,14 @@ public class NativeLibrary {
|
||||||
|
|
||||||
protected static native boolean initFontType(byte[] byteData, String name, boolean bold, boolean italic);
|
protected static native boolean initFontType(byte[] byteData, String name, boolean bold, boolean italic);
|
||||||
|
|
||||||
protected static native RenderedObject[] searchRenderedObjects(RenderingContext context, int x, int y);
|
protected static native RenderedObject[] searchRenderedObjects(RenderingContext context, int x, int y, boolean notvisible);
|
||||||
|
|
||||||
public RenderedObject[] searchRenderedObjectsFromContext(RenderingContext context, int x, int y) {
|
public RenderedObject[] searchRenderedObjectsFromContext(RenderingContext context, int x, int y) {
|
||||||
return searchRenderedObjects(context, x, y);
|
return searchRenderedObjects(context, x, y, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public RenderedObject[] searchRenderedObjectsFromContext(RenderingContext context, int x, int y, boolean notvisible) {
|
||||||
|
return searchRenderedObjects(context, x, y, notvisible);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**/
|
/**/
|
||||||
|
@ -354,6 +358,8 @@ public class NativeLibrary {
|
||||||
private TIntArrayList x = new TIntArrayList();
|
private TIntArrayList x = new TIntArrayList();
|
||||||
private TIntArrayList y = new TIntArrayList();
|
private TIntArrayList y = new TIntArrayList();
|
||||||
private String iconRes;
|
private String iconRes;
|
||||||
|
private int order;
|
||||||
|
private boolean visible;
|
||||||
|
|
||||||
public Map<String, String> getTags() {
|
public Map<String, String> getTags() {
|
||||||
return tags;
|
return tags;
|
||||||
|
@ -363,6 +369,14 @@ public class NativeLibrary {
|
||||||
return !getName().isEmpty();
|
return !getName().isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getOrder() {
|
||||||
|
return order;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrder(int order) {
|
||||||
|
this.order = order;
|
||||||
|
}
|
||||||
|
|
||||||
public void addLocation(int x, int y) {
|
public void addLocation(int x, int y) {
|
||||||
this.x.add(x);
|
this.x.add(x);
|
||||||
this.y.add(y);
|
this.y.add(y);
|
||||||
|
@ -380,6 +394,14 @@ public class NativeLibrary {
|
||||||
this.iconRes = iconRes;
|
this.iconRes = iconRes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setVisible(boolean visible) {
|
||||||
|
this.visible = visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isVisible() {
|
||||||
|
return visible;
|
||||||
|
}
|
||||||
|
|
||||||
public TIntArrayList getY() {
|
public TIntArrayList getY() {
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue