本文整理了Java中com.ait.lienzo.client.core.shape.Rectangle.addNodeMouseEnterHandler
方法的一些代码示例,展示了Rectangle.addNodeMouseEnterHandler
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rectangle.addNodeMouseEnterHandler
方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Rectangle
类名称:Rectangle
方法名:addNodeMouseEnterHandler
暂无
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-charts
private void animate(final BarChartLabel label, final String text, final String cutText, final double originalRotation) {
final Rectangle labelContainer = label.getLabelContainer();
labelContainer.addNodeMouseEnterHandler(new NodeMouseEnterHandler() {
@Override
public void onNodeMouseEnter(NodeMouseEnterEvent event) {
GWT.log("label mouse enter at " + label.getLabel().getText());
highlight(label, text, cutText, originalRotation);
}
});
labelContainer.addNodeMouseExitHandler(new NodeMouseExitHandler() {
@Override
public void onNodeMouseExit(NodeMouseExitEvent event) {
GWT.log("label mouse exit at " + label.getLabel().getText());
unhighlight(label, text, cutText, originalRotation);
}
});
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-charts
barObject.addNodeMouseEnterHandler(new NodeMouseEnterHandler() {
@Override
public void onNodeMouseEnter(NodeMouseEnterEvent event) {
代码示例来源:origin: com.ahome-it/lienzo-charts
bar.addNodeMouseEnterHandler(new NodeMouseEnterHandler()
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-charts
barObject.addNodeMouseEnterHandler(new NodeMouseEnterHandler() {
@Override
public void onNodeMouseEnter(NodeMouseEnterEvent event) {
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo-extensions
public IPrimitive<?> build(final IPrimitive<?> item,
final double width,
final double height) {
decorator = createRectangle(width,
height);
this.add(decorator);
this.add(item);
decorator.setX(item.getX() - (padding / 4));
decorator.setY(item.getY() - (padding / 4));
decorator.addNodeMouseEnterHandler(nodeMouseEnterEvent -> show(nodeMouseEnterEvent.getMouseEvent().getClientX(),
nodeMouseEnterEvent.getMouseEvent().getClientY()));
decorator.addNodeMouseExitHandler(nodeMouseExitEvent -> hide());
decorator.addNodeMouseMoveHandler(nodeMouseMoveEvent -> timer.cancel());
item.setDraggable(false);
decorator.setDraggable(false).moveToTop();
return this;
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-charts
final Arrow resizeArrow4 = new Arrow(new Point2D(width / 2, height / 2), new Point2D(width / 2, 0), 0, 10, 10, 10, ArrowType.AT_END_TAPERED).setFillColor(ColorName.BLACK).setAlpha(0);
resizeRectangleButton.addNodeMouseEnterHandler(new NodeMouseEnterHandler() {
@Override
public void onNodeMouseEnter(NodeMouseEnterEvent event) {
代码示例来源:origin: com.ahome-it/lienzo-charts
final Text sizeText = new Text(buildSizeText(width, height)).setFontSize(SIZE_TEXT_FONT_SIZE).setFontFamily(SIZE_TEXT_FONT_FAMILY).setFontStyle(SIZE_TEXT_FONT_STYLE).setFillColor(ColorName.BLACK);
resizeRectangleButton.addNodeMouseEnterHandler(new NodeMouseEnterHandler()
内容来源于网络,如有侵权,请联系作者删除!