com.vaadin.flow.component.charts.model.

Class DragDrop

All Implemented Interfaces:

Serializable

public class DragDrop extends AbstractConfigurationObject

See Also:

  • Constructor Details

    • DragDrop

      public DragDrop()
  • Method Details

    • getDraggableEnd

      public Boolean getDraggableEnd()

      See Also:

    • setDraggableEnd

      public void setDraggableEnd(Boolean draggableEnd)

      Supported only in Gantt chart: Allow end value to be dragged individually. Defaults to true.

      Parameters:

      draggableEnd -

    • getDraggableStart

      public Boolean getDraggableStart()

      See Also:

    • setDraggableStart

      public void setDraggableStart(Boolean draggableStart)

      Supported only in Gantt chart: Allow start value to be dragged individually. Defaults to true.

      Parameters:

      draggableStart -

    • getDraggableX

      public Boolean getDraggableX()

      See Also:

    • setDraggableX

      public void setDraggableX(Boolean draggableX)

      Enable dragging in the X dimension.

      Parameters:

      draggableX -

    • getDraggableX1

      public Boolean getDraggableX1()

      See Also:

    • setDraggableX1

      public void setDraggableX1(Boolean draggableX1)

      Allow X1 value to be dragged individually. Defaults to true.

      Parameters:

      draggableX1 -

    • getDraggableX2

      public Boolean getDraggableX2()

      See Also:

    • setDraggableX2

      public void setDraggableX2(Boolean draggableX2)

      Allow X2 value to be dragged individually. Defaults to true.

      Parameters:

      draggableX2 -

    • getDraggableY

      public Boolean getDraggableY()

      See Also:

    • setDraggableY

      public void setDraggableY(Boolean draggableY)

      Enable dragging in the Y dimension. Note that this is not supported for TreeGrid axes (the default axis type in Gantt charts).

      Parameters:

      draggableY -

    • getDragHandle

      public DragHandle getDragHandle()

      See Also:

    • setDragHandle

      public void setDragHandle(DragHandle dragHandle)

      Options for the drag handles.

      Parameters:

      dragHandle -

    • getDragMaxX

      public Number getDragMaxX()

      See Also:

    • setDragMaxX

      public void setDragMaxX(Number dragMaxX)

      Set the maximum X value the points can be moved to.

      Parameters:

      dragMaxX -

    • getDragMaxY

      public Number getDragMaxY()

      See Also:

    • setDragMaxY

      public void setDragMaxY(Number dragMaxY)

      Set the maximum Y value the points can be moved to.

      Parameters:

      dragMaxY -

    • getDragMinX

      public Number getDragMinX()

      See Also:

    • setDragMinX

      public void setDragMinX(Number dragMinX)

      Set the minimum X value the points can be moved to.

      Parameters:

      dragMinX -

    • getDragMinY

      public Number getDragMinY()

      See Also:

    • setDragMinY

      public void setDragMinY(Number dragMinY)

      Set the minimum Y value the points can be moved to.

      Parameters:

      dragMinY -

    • getDragPrecisionX

      public Number getDragPrecisionX()

      See Also:

    • setDragPrecisionX

      public void setDragPrecisionX(Number dragPrecisionX)

      The X precision value to drag to for this series. Set to 0 to disable. By default this is disabled, except for category axes, where the default is 1. Defaults to 0.

      Parameters:

      dragPrecisionX -

    • getDragPrecisionY

      public Number getDragPrecisionY()

      See Also:

    • setDragPrecisionY

      public void setDragPrecisionY(Number dragPrecisionY)

      The Y precision value to drag to for this series. Set to 0 to disable. By default this is disabled, except for category axes, where the default is 1. Defaults to 0.

      Parameters:

      dragPrecisionY -

    • getDragSensitivity

      public Number getDragSensitivity()

      See Also:

    • setDragSensitivity

      public void setDragSensitivity(Number dragSensitivity)

      The amount of pixels to drag the pointer before it counts as a drag operation. This prevents drag/drop to fire when just clicking or selecting points. Defaults to 2.

      Parameters:

      dragSensitivity -

    • getGroupBy

      public String getGroupBy()

      See Also:

    • setGroupBy

      public void setGroupBy(String groupBy)

      Group the points by a property. Points with the same property value will be grouped together when moving. Defaults to undefined.

      Parameters:

      groupBy -

    • getGuideBox

      public GuideBox getGuideBox()

      See Also:

    • setGuideBox

      public void setGuideBox(GuideBox guideBox)

      Style options for the guide box. The guide box has one state by default, the default state. Guide box is visible only when liveRedraw is false.

      Parameters:

      guideBox -

      See Also:

    • getLiveRedraw

      public Boolean getLiveRedraw()

      See Also:

    • setLiveRedraw

      public void setLiveRedraw(Boolean liveRedraw)

      Update points as they are dragged. If false, a guide box is drawn to illustrate the new point size. Defaults to true.

      Parameters:

      liveRedraw -