Class DirectionalLine
- java.lang.Object
-
- com.ait.lienzo.client.core.shape.Node<T>
-
- com.ait.lienzo.client.core.shape.Shape<T>
-
- com.ait.lienzo.client.core.shape.AbstractMultiPointShape<T>
-
- com.ait.lienzo.client.core.shape.AbstractOffsetMultiPointShape<T>
-
- com.ait.lienzo.client.core.shape.AbstractDirectionalMultiPointShape<DirectionalLine>
-
- org.kie.workbench.common.dmn.client.shape.view.DirectionalLine
-
- All Implemented Interfaces:
com.ait.lienzo.client.core.shape.IDirectionalMultiPointShape<DirectionalLine>,com.ait.lienzo.client.core.shape.IDrawable<DirectionalLine>,com.ait.lienzo.client.core.shape.IMultiPointShape<DirectionalLine>,com.ait.lienzo.client.core.shape.IOffsetMultiPointShape<DirectionalLine>,com.ait.lienzo.client.core.shape.IPrimitive<DirectionalLine>,com.ait.lienzo.client.core.shape.json.IJSONSerializable<DirectionalLine>,com.ait.lienzo.client.core.shape.wires.IControlHandleFactory,com.ait.tooling.nativetools.client.NObjectOnWire
public class DirectionalLine extends com.ait.lienzo.client.core.shape.AbstractDirectionalMultiPointShape<DirectionalLine>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.ait.lienzo.client.core.shape.AbstractDirectionalMultiPointShape
com.ait.lienzo.client.core.shape.AbstractDirectionalMultiPointShape.AbstractDirectionalMultiPointShapeFactory<T extends com.ait.lienzo.client.core.shape.AbstractDirectionalMultiPointShape<T>>
-
Nested classes/interfaces inherited from class com.ait.lienzo.client.core.shape.AbstractOffsetMultiPointShape
com.ait.lienzo.client.core.shape.AbstractOffsetMultiPointShape.AbstractOffsetMultiPointShapeFactory<T extends com.ait.lienzo.client.core.shape.AbstractOffsetMultiPointShape<T>>
-
Nested classes/interfaces inherited from class com.ait.lienzo.client.core.shape.AbstractMultiPointShape
com.ait.lienzo.client.core.shape.AbstractMultiPointShape.ControlXorYChanged, com.ait.lienzo.client.core.shape.AbstractMultiPointShape.DefaultMultiPointShapeHandleFactory, com.ait.lienzo.client.core.shape.AbstractMultiPointShape.ShapeXorYChanged
-
-
Constructor Summary
Constructors Constructor Description DirectionalLine(double x1, double y1, double x2, double y2)DirectionalLine(com.ait.lienzo.client.core.types.Point2DArray points)DirectionalLine(com.ait.lienzo.client.core.types.Point2D start, com.ait.lienzo.client.core.types.Point2D end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ait.lienzo.client.core.types.Point2DadjustPoint(double x, double y, double deltaX, double deltaY)protected booleanfill(com.ait.lienzo.client.core.Context2D context, com.ait.lienzo.client.core.shape.Attributes attr, double alpha)com.ait.lienzo.client.core.types.BoundingBoxgetBoundingBox()List<com.ait.lienzo.client.core.Attribute>getBoundingBoxAttributes()com.ait.lienzo.client.core.types.Point2DArraygetControlPoints()com.ait.lienzo.client.core.types.Point2DgetHeadOffsetPoint()com.ait.lienzo.client.core.types.Point2DArraygetPoint2DArray()com.ait.lienzo.client.core.types.Point2DgetTailOffsetPoint()booleanisControlPointShape()booleanparse(com.ait.lienzo.client.core.shape.Attributes attr)DirectionalLinerefresh()DirectionalLinesetControlPoints(com.ait.lienzo.client.core.types.Point2DArray points)DirectionalLinesetPoint2DArray(com.ait.lienzo.client.core.types.Point2DArray points)-
Methods inherited from class com.ait.lienzo.client.core.shape.AbstractDirectionalMultiPointShape
asDirectionalMultiPointShape, getBoundingBoxAttributesComposed, getCorrectionOffset, getHeadDirection, getTailDirection, setCorrectionOffset, setHeadDirection, setTailDirection
-
Methods inherited from class com.ait.lienzo.client.core.shape.AbstractOffsetMultiPointShape
asOffsetMultiPointShape, getBoundingBoxAttributesComposed, getHeadOffset, getTailOffset, isPathPartListPrepared, prepare, setHeadOffset, setTailOffset
-
Methods inherited from class com.ait.lienzo.client.core.shape.AbstractMultiPointShape
asMultiPointShape, getControlHandleFactory, getPathPartList
-
Methods inherited from class com.ait.lienzo.client.core.shape.Shape
asPrimitive, asShape, attachToLayerColorMap, batch, copy, detachFromLayerColorMap, doApplyShadow, dofillBoundsForSelection, doStrokeExtraProperties, draw, drawWithoutTransforms, fill, getAlpha, getColorKey, getControlHandles, getControlHandles, getDashArray, getDashOffset, getDragBounds, getDragConstraint, getDragConstraints, getDragMode, getEventPropagationMode, getFactory, getFillAlpha, getFillColor, getFillGradient, getLineCap, getLineJoin, getLocation, getMiterLimit, getOffset, getRotation, getRotationDegrees, getScale, getSelectionBoundsOffset, getSelectionStrokeOffset, getShadow, getShapeType, getShear, getStrokeAlpha, getStrokeColor, getStrokeWidth, getTransformingAttributes, getX, getY, isAppliedShadow, isDraggable, isDragging, isEditable, isFillBoundsForSelection, isFillShapeForSelection, moveDown, moveToBottom, moveToTop, moveUp, removeFromParent, setAlpha, setAppliedShadow, setColorKey, setControlHandleFactory, setDashArray, setDashArray, setDashOffset, setDragBounds, setDragConstraint, setDragConstraints, setDraggable, setDragging, setDragMode, setEditable, setEventPropagationMode, setFillAlpha, setFillBoundsForSelection, setFillColor, setFillColor, setFillGradient, setFillGradient, setFillGradient, setFillShapeForSelection, setLineCap, setLineJoin, setLocation, setMiterLimit, setOffset, setOffset, setOffset, setRotation, setRotationDegrees, setScale, setScale, setScale, setSelectionBoundsOffset, setSelectionStrokeOffset, setShadow, setShapeType, setShear, setShear, setStrokeAlpha, setStrokeColor, setStrokeColor, setStrokeParams, setStrokeWidth, setX, setY, stroke, stroke, toJSONObject
-
Methods inherited from class com.ait.lienzo.client.core.shape.Node
addAttributesChangedHandler, addEnsureHandler, addNodeDragEndHandler, addNodeDragMoveHandler, addNodeDragStartHandler, addNodeGestureChangeHandler, addNodeGestureEndHandler, addNodeGestureStartHandler, addNodeMouseClickHandler, addNodeMouseDoubleClickHandler, addNodeMouseDownHandler, addNodeMouseEnterHandler, addNodeMouseExitHandler, addNodeMouseMoveHandler, addNodeMouseOutHandler, addNodeMouseOverHandler, addNodeMouseUpHandler, addNodeMouseWheelHandler, addNodeTouchCancelHandler, addNodeTouchEndHandler, addNodeTouchMoveHandler, addNodeTouchStartHandler, addParentsLocations, animate, animate, asAttributes, asAttributes, asContainer, asContainerNode, asGroup, asGroupOf, asGuide, asLayer, asList, asNode, asScene, asViewport, cancelAttributesChangedBatcher, cast, copyUnchecked, doAnimating, drawWithTransforms, drawWithTransforms, equals, fireEvent, getAbsoluteLocation, getAbsoluteTransform, getAttributes, getAttributeSheet, getBoundingPoints, getBoundingPoints, getComputedBoundingPoints, getComputedLocation, getID, getLayer, getMetaData, getName, getNodeType, getOverLayer, getParent, getPossibleNodeTransform, getRequiredAttributes, getScene, getScratchPad, getUserData, getViewport, hashCode, hasMetaData, isAnimating, isEventHandled, isEventHandledGlobally, isListening, isVisible, onWire, setAttributesChangedBatcher, setID, setListening, setName, setNodeType, setParent, setUserData, setVisible, toJSONString, toString, unAnimating, uuid
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.ait.lienzo.client.core.shape.wires.IControlHandleFactory
getControlHandles, getControlHandles
-
Methods inherited from interface com.ait.lienzo.client.core.shape.IDirectionalMultiPointShape
isPathPartListPrepared
-
Methods inherited from interface com.ait.lienzo.client.core.shape.IDrawable
addAttributesChangedHandler, addNodeDragEndHandler, addNodeDragMoveHandler, addNodeDragStartHandler, addNodeGestureChangeHandler, addNodeGestureEndHandler, addNodeGestureStartHandler, addNodeMouseClickHandler, addNodeMouseDoubleClickHandler, addNodeMouseDownHandler, addNodeMouseEnterHandler, addNodeMouseExitHandler, addNodeMouseMoveHandler, addNodeMouseOutHandler, addNodeMouseOverHandler, addNodeMouseUpHandler, addNodeMouseWheelHandler, addNodeTouchCancelHandler, addNodeTouchEndHandler, addNodeTouchMoveHandler, addNodeTouchStartHandler, animate, animate, asContainer, asContainerNode, asGroup, asGroupOf, asGuide, asLayer, asMultiPointShape, asNode, asPrimitive, asScene, asShape, asViewport, batch, cancelAttributesChangedBatcher, copy, draw, drawWithTransforms, fireEvent, getAbsoluteLocation, getAbsoluteTransform, getAttributes, getAttributeSheet, getBoundingPoints, getComputedBoundingPoints, getComputedLocation, getID, getLayer, getMetaData, getName, getNodeType, getOverLayer, getParent, getRequiredAttributes, getScene, getScratchPad, getTransformingAttributes, getUserData, getViewport, hasMetaData, isEventHandled, isListening, isVisible, moveDown, moveToBottom, moveToTop, moveUp, removeFromParent, setAttributesChangedBatcher, setID, setListening, setName, setUserData, setVisible, uuid
-
Methods inherited from interface com.ait.lienzo.client.core.shape.json.IJSONSerializable
getFactory, toJSONObject, toJSONString
-
Methods inherited from interface com.ait.lienzo.client.core.shape.IMultiPointShape
asOffsetMultiPointShape
-
Methods inherited from interface com.ait.lienzo.client.core.shape.IOffsetMultiPointShape
getHeadOffset, getTailOffset, setHeadOffset, setTailOffset
-
Methods inherited from interface com.ait.lienzo.client.core.shape.IPrimitive
attachToLayerColorMap, detachFromLayerColorMap, getAlpha, getControlHandleFactory, getDragBounds, getDragConstraint, getDragConstraints, getDragMode, getEventPropagationMode, getFillAlpha, getLocation, getOffset, getRotation, getRotationDegrees, getScale, getShear, getStrokeAlpha, getX, getY, isDraggable, isDragging, isEditable, setAlpha, setControlHandleFactory, setDragBounds, setDragConstraint, setDragConstraints, setDraggable, setDragging, setDragMode, setEditable, setEventPropagationMode, setFillAlpha, setLocation, setOffset, setOffset, setOffset, setRotation, setRotationDegrees, setScale, setScale, setScale, setShear, setShear, setStrokeAlpha, setX, setY
-
-
-
-
Constructor Detail
-
DirectionalLine
public DirectionalLine(double x1, double y1, double x2, double y2)
-
DirectionalLine
public DirectionalLine(com.ait.lienzo.client.core.types.Point2D start, com.ait.lienzo.client.core.types.Point2D end)
-
DirectionalLine
public DirectionalLine(com.ait.lienzo.client.core.types.Point2DArray points)
-
-
Method Detail
-
setControlPoints
public DirectionalLine setControlPoints(com.ait.lienzo.client.core.types.Point2DArray points)
-
getControlPoints
public com.ait.lienzo.client.core.types.Point2DArray getControlPoints()
-
refresh
public DirectionalLine refresh()
- Specified by:
refreshin interfacecom.ait.lienzo.client.core.shape.IDrawable<DirectionalLine>- Overrides:
refreshin classcom.ait.lienzo.client.core.shape.AbstractMultiPointShape<DirectionalLine>
-
adjustPoint
public com.ait.lienzo.client.core.types.Point2D adjustPoint(double x, double y, double deltaX, double deltaY)- Specified by:
adjustPointin interfacecom.ait.lienzo.client.core.shape.IDirectionalMultiPointShape<DirectionalLine>- Overrides:
adjustPointin classcom.ait.lienzo.client.core.shape.AbstractDirectionalMultiPointShape<DirectionalLine>
-
isControlPointShape
public boolean isControlPointShape()
- Specified by:
isControlPointShapein interfacecom.ait.lienzo.client.core.shape.IMultiPointShape<DirectionalLine>- Overrides:
isControlPointShapein classcom.ait.lienzo.client.core.shape.AbstractMultiPointShape<DirectionalLine>
-
fill
protected boolean fill(com.ait.lienzo.client.core.Context2D context, com.ait.lienzo.client.core.shape.Attributes attr, double alpha)- Overrides:
fillin classcom.ait.lienzo.client.core.shape.Shape<DirectionalLine>
-
parse
public boolean parse(com.ait.lienzo.client.core.shape.Attributes attr)
- Specified by:
parsein classcom.ait.lienzo.client.core.shape.AbstractOffsetMultiPointShape<DirectionalLine>
-
getTailOffsetPoint
public com.ait.lienzo.client.core.types.Point2D getTailOffsetPoint()
-
getHeadOffsetPoint
public com.ait.lienzo.client.core.types.Point2D getHeadOffsetPoint()
-
setPoint2DArray
public DirectionalLine setPoint2DArray(com.ait.lienzo.client.core.types.Point2DArray points)
-
getPoint2DArray
public com.ait.lienzo.client.core.types.Point2DArray getPoint2DArray()
-
getBoundingBoxAttributes
public List<com.ait.lienzo.client.core.Attribute> getBoundingBoxAttributes()
-
getBoundingBox
public com.ait.lienzo.client.core.types.BoundingBox getBoundingBox()
-
-