public class WiresTextDecorator extends Object
It handles common logic for ShapeViews that implement HasText
type, can be reused for shapes or connectors.
| Constructor and Description |
|---|
WiresTextDecorator(Supplier<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 |
resize(double width,
double height) |
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 |
setTitleFontColor(String fillColor) |
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) |
void |
update() |
public WiresTextDecorator(Supplier<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 setTitleFontColor(String fillColor)
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 update()
public void resize(double width,
double height)
public void destroy()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.