Add more methods to debug

This commit is contained in:
Victor Shcherb 2016-11-28 09:04:07 +01:00
parent 2b4648dec1
commit b0f87db897

View file

@ -176,10 +176,14 @@ public class NativeLibrary {
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) {
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 y = new TIntArrayList();
private String iconRes;
private int order;
private boolean visible;
public Map<String, String> getTags() {
return tags;
@ -363,6 +369,14 @@ public class NativeLibrary {
return !getName().isEmpty();
}
public int getOrder() {
return order;
}
public void setOrder(int order) {
this.order = order;
}
public void addLocation(int x, int y) {
this.x.add(x);
this.y.add(y);
@ -380,6 +394,14 @@ public class NativeLibrary {
this.iconRes = iconRes;
}
public void setVisible(boolean visible) {
this.visible = visible;
}
public boolean isVisible() {
return visible;
}
public TIntArrayList getY() {
return y;
}