@Dependent @Lienzo public class LienzoLayer extends AbstractLayer<LienzoLayer,ShapeView<?>,com.ait.lienzo.client.core.shape.Shape<?>>
Layer.URLDataType| Modifier and Type | Field and Description |
|---|---|
protected ViewEventHandlerManager |
eventHandlerManager |
protected com.ait.lienzo.client.core.shape.Layer |
layer |
| Constructor and Description |
|---|
LienzoLayer() |
| Modifier and Type | Method and Description |
|---|---|
LienzoLayer |
addHandler(ViewEventType type,
ViewHandler<? extends ViewEvent> eventHandler) |
LienzoLayer |
addShape(ShapeView<?> shape) |
void |
clear() |
void |
destroy() |
LienzoLayer |
disableHandlers() |
LienzoLayer |
enableHandlers() |
com.ait.lienzo.client.core.shape.Shape<?> |
getAttachableShape() |
com.ait.lienzo.client.core.shape.Layer |
getLienzoLayer() |
protected Point2D |
getScale() |
protected Point2D |
getTranslate() |
LienzoLayer |
initialize(Object view) |
void |
onAfterDraw(org.uberfire.mvp.Command callback) |
LienzoLayer |
removeHandler(ViewHandler<? extends ViewEvent> eventHandler) |
LienzoLayer |
removeShape(ShapeView<?> shape) |
void |
scale(double delta) |
void |
scale(double sx,
double sy) |
boolean |
supports(ViewEventType type) |
String |
toDataURL() |
String |
toDataURL(Layer.URLDataType type) |
void |
translate(double tx,
double ty) |
getTransformprotected ViewEventHandlerManager eventHandlerManager
protected com.ait.lienzo.client.core.shape.Layer layer
public LienzoLayer initialize(Object view)
public LienzoLayer addShape(ShapeView<?> shape)
public LienzoLayer removeShape(ShapeView<?> shape)
public void clear()
public String toDataURL()
public String toDataURL(Layer.URLDataType type)
public void onAfterDraw(org.uberfire.mvp.Command callback)
public void destroy()
public boolean supports(ViewEventType type)
public LienzoLayer addHandler(ViewEventType type, ViewHandler<? extends ViewEvent> eventHandler)
public LienzoLayer removeHandler(ViewHandler<? extends ViewEvent> eventHandler)
public LienzoLayer enableHandlers()
public LienzoLayer disableHandlers()
public com.ait.lienzo.client.core.shape.Shape<?> getAttachableShape()
public com.ait.lienzo.client.core.shape.Layer getLienzoLayer()
protected Point2D getTranslate()
getTranslate in class AbstractLayer<LienzoLayer,ShapeView<?>,com.ait.lienzo.client.core.shape.Shape<?>>protected Point2D getScale()
getScale in class AbstractLayer<LienzoLayer,ShapeView<?>,com.ait.lienzo.client.core.shape.Shape<?>>public void translate(double tx,
double ty)
public void scale(double sx,
double sy)
public void scale(double delta)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.