public class WiresTextDecorator extends Object
HasText
type, can be reused for shapes or connectors.
It also decorates a text instance with a rectangle, which by default
is not fill and so not visible, but provides an area to listen for
mouse events and it can be updated and displayed as some point
as well, if necessary.| Constructor and Description |
|---|
WiresTextDecorator(ViewEventHandlerManager eventHandlerManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
com.ait.lienzo.client.core.shape.wires.LayoutContainer.Layout |
getLayout() |
com.ait.lienzo.client.core.shape.IPrimitive<?> |
getView() |
void |
moveTitleToTop() |
void |
setTextClickHandler(ViewHandler<TextClickEvent> textClickEventViewHandler) |
void |
setTextDblClickHandler(ViewHandler<TextDoubleClickEvent> textDblClickEventViewHandler) |
void |
setTextEnterHandler(ViewHandler<TextEnterEvent> textOverHandlerViewHandler) |
void |
setTextExitHandler(ViewHandler<TextExitEvent> textOutEventViewHandler) |
void |
setTitle(String title) |
void |
setTitleAlpha(double alpha) |
void |
setTitleFontFamily(String fontFamily) |
void |
setTitleFontSize(double fontSize) |
boolean |
setTitlePosition(HasTitle.Position position) |
void |
setTitleRotation(double degrees) |
void |
setTitleStrokeColor(String color) |
void |
setTitleStrokeWidth(double strokeWidth) |
public WiresTextDecorator(ViewEventHandlerManager eventHandlerManager)
public void setTextClickHandler(ViewHandler<TextClickEvent> textClickEventViewHandler)
public void setTextDblClickHandler(ViewHandler<TextDoubleClickEvent> textDblClickEventViewHandler)
public void setTextEnterHandler(ViewHandler<TextEnterEvent> textOverHandlerViewHandler)
public void setTextExitHandler(ViewHandler<TextExitEvent> textOutEventViewHandler)
public void setTitle(String title)
public boolean setTitlePosition(HasTitle.Position position)
public void setTitleRotation(double degrees)
public void setTitleStrokeColor(String color)
public void setTitleFontFamily(String fontFamily)
public void setTitleFontSize(double fontSize)
public void setTitleAlpha(double alpha)
public void setTitleStrokeWidth(double strokeWidth)
public void moveTitleToTop()
public com.ait.lienzo.client.core.shape.IPrimitive<?> getView()
public com.ait.lienzo.client.core.shape.wires.LayoutContainer.Layout getLayout()
public void destroy()
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.