public static Size narrowToSize(JSObject size){ return (size == null)?null:new Size(size); }
/** * Returns true when the size object argument has the same width and * height as the size object, and false otherwise. * * @param size - see {@link Size}. */ public boolean equals(Size size){ if(this == size){return true;} if(!this.getClassName().equals(size.getClassName())){ return false; } else { return SizeImpl.equals(this.getJSObject(), size.getJSObject()); } }
/** * */ public String toString(){ return SizeImpl.toString(getJSObject()); }
/** * @return the size of the box */ public Size getSize() { return Size.narrowToSize(BoundsImpl.getSize(getJSObject())); }
/** * */ public String toString(){ return SizeImpl.toString(getJSObject()); }
public Size getSize(){ return Size.narrowToSize(ImageImpl.getSize(getJSObject())); }
public float getHeight(){ return SizeImpl.getHeight(getJSObject()); }
public static Size narrowToSize(JSObject size){ return (size == null)?null:new Size(size); }
/** * Returns true when the size object argument has the same width and * height as the size object, and false otherwise. * * @param size - see {@link Size}. */ public boolean equals(Size size){ if(this == size){return true;} if(!this.getClassName().equals(size.getClassName())){ return false; } else { return SizeImpl.equals(this.getJSObject(), size.getJSObject()); } }
public Size getSize() { return Size.narrowToSize(ImageImpl.getSize(getJSObject())); }
public Icon(String url, Size size) { this(IconImpl.create(url, size.getJSObject())); }
public OpenlayersMarker(Coordinate coords, Timeseries ts) { super(coords); this.timeseries = ts; this.coords = coords; this.setIcon(new Icon(UNMARKED_IMG_RELPATH, new Size(25, 25))); init(); }
public void setWidth(float width){ SizeImpl.setWidth(getJSObject(), width); }
public Size getTileSize(){ return new Size(MapImpl.getTileSize(getJSObject())); }
public void setHeight(float height){ SizeImpl.setHeight(getJSObject(), height); }
@Override public void onHandle(EventObject eventObject) { if (OpenlayersMarker.this.popup != null) { map.removePopup(OpenlayersMarker.this.popup); } Pixel pixel = new Pixel(0, 0); Size size = new Size(300, 200); FramedCloud frame = new FramedCloud("marker-info", OpenlayersMarker.this.coords, size, OpenlayersMarker.this.infoTxt, new Icon("", new Size(0, 0), pixel), true); OpenlayersMarker.this.setPopup(frame); map.addPopup(OpenlayersMarker.this.popup); } };
public void setHeight(float height){ SizeImpl.setHeight(getJSObject(), height); }
public Size getSize(){ return new Size(MapImpl.getSize(getJSObject())); }
public float getWidth(){ return SizeImpl.getWidth(getJSObject()); }
public Size getTileSize() { return new Size(MapImpl.getTileSize(getJSObject())); }