Class AbstractMouseDragOperation
- java.lang.Object
-
- org.pentaho.reporting.designer.core.editor.report.drag.AbstractMouseDragOperation
-
- All Implemented Interfaces:
MouseDragOperation
- Direct Known Subclasses:
MoveDragOperation
,ResizeBottomDragOperation
,ResizeLeftDragOperation
,ResizeRightDragOperation
,ResizeTopDragOperation
public abstract class AbstractMouseDragOperation extends Object implements MouseDragOperation
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMouseDragOperation(List<org.pentaho.reporting.engine.classic.core.Element> selectedVisualElements, Point2D originPoint, SnapPositionsModel horizontalSnapModel, SnapPositionsModel verticalSnapModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long[]
getElementHeight()
long[]
getElementWidth()
long[]
getElementX()
long[]
getElementY()
SnapPositionsModel
getHorizontalSnapModel()
long
getOriginPointX()
long
getOriginPointY()
org.pentaho.reporting.engine.classic.core.Element[]
getSelectedVisualElements()
SnapPositionsModel
getVerticalSnapModel()
protected boolean
isCanvasElement(org.pentaho.reporting.engine.classic.core.Element reportElement)
protected boolean
isDescendant(org.pentaho.reporting.engine.classic.core.Element element, List<org.pentaho.reporting.engine.classic.core.Element> elements)
Tests, whether the array of elements contains a parent of the given element.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.reporting.designer.core.editor.report.drag.MouseDragOperation
finish, update
-
-
-
-
Constructor Detail
-
AbstractMouseDragOperation
protected AbstractMouseDragOperation(List<org.pentaho.reporting.engine.classic.core.Element> selectedVisualElements, Point2D originPoint, SnapPositionsModel horizontalSnapModel, SnapPositionsModel verticalSnapModel)
-
-
Method Detail
-
isDescendant
protected boolean isDescendant(org.pentaho.reporting.engine.classic.core.Element element, List<org.pentaho.reporting.engine.classic.core.Element> elements)
Tests, whether the array of elements contains a parent of the given element.- Parameters:
element
-elements
-- Returns:
-
getSelectedVisualElements
public org.pentaho.reporting.engine.classic.core.Element[] getSelectedVisualElements()
-
getElementX
public long[] getElementX()
-
getElementY
public long[] getElementY()
-
getElementWidth
public long[] getElementWidth()
-
getElementHeight
public long[] getElementHeight()
-
getHorizontalSnapModel
public SnapPositionsModel getHorizontalSnapModel()
-
getVerticalSnapModel
public SnapPositionsModel getVerticalSnapModel()
-
getOriginPointX
public long getOriginPointX()
-
getOriginPointY
public long getOriginPointY()
-
isCanvasElement
protected boolean isCanvasElement(org.pentaho.reporting.engine.classic.core.Element reportElement)
-
-