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,
com.ait.lienzo.client.core.types.BoundingBox boundingBox) |
| 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 |
setTextWrapper(TextWrapperStrategy strategy) |
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 |
setTitleStrokeAlpha(double strokeAlpha) |
void |
setTitleStrokeColor(String color) |
void |
setTitleStrokeWidth(double strokeWidth) |
void |
setTitleXOffsetPosition(double xOffset) |
void |
setTitleYOffsetPosition(double yOffset) |
void |
update() |
public WiresTextDecorator(Supplier<ViewEventHandlerManager> eventHandlerManager, com.ait.lienzo.client.core.types.BoundingBox boundingBox)
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 setTitleXOffsetPosition(double xOffset)
public void setTitleYOffsetPosition(double yOffset)
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 setTitleStrokeAlpha(double strokeAlpha)
public void setTextWrapper(TextWrapperStrategy strategy)
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.