@Override public PrimitivePopup hide() { clearTimers(); return super.hide(); }
@Override public PrimitivePopup remove() { clearTimers(); return super.remove(); }
@Override public void run() { PrimitiveTooltip.this.hide(); } };
MouseUpHandler getMouseUpHandler(final Callback callback) { return mouseUpEvent -> { if (isAttached()) { timer.cancel(); final int x = relativeX(getXDiff() + mouseUpEvent.getX()); final int y = relativeY(getYDiff() + mouseUpEvent.getY()); clear(); callback.onComplete(x, y); } }; }
@Override public void clear() { if (null != this.proxy) { this.proxy.clear(); } }
public PrimitiveTooltip show(final String text, final Point2D location, final Direction direction) { return this.show(null, text, location, 0, 0, direction); }
@Override public void destroy() { if (null != this.proxy) { this.proxy.destroy(); this.proxy = null; } this.layer = null; }
private boolean isWest(final Direction direction) { return Direction.WEST.equals(direction); }
@Override public void destroy() { tooltip.remove(); } }
public PrimitiveTooltip() { setzIndex(100); }
public PrimitivePopup() { attach(); }
public LienzoTextTooltip() { this.tooltip = new PrimitiveTooltip(); }
public PrimitivePopup show(final double width, final double height, final double x, final double y) { doShow(null, width, height, x, y); lienzoPanel.draw(); return this; }
protected void reset() { this.clear(); canvasLayer = new Layer(); lienzoPanel = null; } }
@Override protected void addToLayer(final Layer layer, final WiresConnector shape) { getWiresManager(layer).register(shape); }
@Override public void hide() { tooltip.hide(); }
public void destroy() { clear(); this.timer = null; this.layer = null; this.shapeProxy = null; }
@Override public void destroy() { if (null != this.proxy) { this.proxy.destroy(); this.proxy = null; } this.layer = null; } }
private boolean isNorth(final Direction direction) { return Direction.NORTH.equals(direction); }