public abstract class AbstractReportElementDragHandler extends Object implements ReportElementDragHandler
Modifier and Type | Field and Description |
---|---|
protected static Float |
DEFAULT_HEIGHT |
protected static Float |
DEFAULT_WIDTH |
Constructor and Description |
---|
AbstractReportElementDragHandler() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.pentaho.reporting.engine.classic.core.Element |
createElement(org.pentaho.reporting.engine.classic.core.metadata.ElementMetaData elementMetaData,
String fieldName,
ReportDocumentContext context) |
void |
dragAborted(DropTargetEvent event,
ReportElementEditorContext dragContext) |
int |
dragStarted(DropTargetDragEvent event,
ReportElementEditorContext dragContext,
org.pentaho.reporting.engine.classic.core.metadata.ElementMetaData elementMetaData,
String fieldName) |
int |
dragUpdated(DropTargetDragEvent event,
ReportElementEditorContext dragContext,
org.pentaho.reporting.engine.classic.core.metadata.ElementMetaData elementMetaData,
String fieldName) |
void |
drop(DropTargetDropEvent event,
ReportElementEditorContext dragContext,
org.pentaho.reporting.engine.classic.core.metadata.ElementMetaData elementMetaData,
String fieldName) |
protected org.pentaho.reporting.engine.classic.core.Band |
getInsertionBand(DropTargetDropEvent event,
ReportElementEditorContext dragContext,
Point2D point) |
protected double |
getParentX(org.pentaho.reporting.engine.classic.core.Section band) |
protected double |
getParentY(org.pentaho.reporting.engine.classic.core.Section band) |
protected DndElementOverlay |
getRepresentation() |
protected boolean |
isFilteredDropZone(DropTargetEvent event,
ReportElementEditorContext dragContext,
org.pentaho.reporting.engine.classic.core.metadata.ElementMetaData elementMetaData,
Point2D point) |
protected void |
postProcessDrop(org.pentaho.reporting.engine.classic.core.Element visualElement,
org.pentaho.reporting.engine.classic.core.Band target,
ReportElementEditorContext dragContext,
Point2D point) |
protected static final Float DEFAULT_WIDTH
protected static final Float DEFAULT_HEIGHT
protected DndElementOverlay getRepresentation()
public int dragStarted(DropTargetDragEvent event, ReportElementEditorContext dragContext, org.pentaho.reporting.engine.classic.core.metadata.ElementMetaData elementMetaData, String fieldName)
dragStarted
in interface ReportElementDragHandler
protected boolean isFilteredDropZone(DropTargetEvent event, ReportElementEditorContext dragContext, org.pentaho.reporting.engine.classic.core.metadata.ElementMetaData elementMetaData, Point2D point)
public int dragUpdated(DropTargetDragEvent event, ReportElementEditorContext dragContext, org.pentaho.reporting.engine.classic.core.metadata.ElementMetaData elementMetaData, String fieldName)
dragUpdated
in interface ReportElementDragHandler
public void dragAborted(DropTargetEvent event, ReportElementEditorContext dragContext)
dragAborted
in interface ReportElementDragHandler
public void drop(DropTargetDropEvent event, ReportElementEditorContext dragContext, org.pentaho.reporting.engine.classic.core.metadata.ElementMetaData elementMetaData, String fieldName)
drop
in interface ReportElementDragHandler
protected void postProcessDrop(org.pentaho.reporting.engine.classic.core.Element visualElement, org.pentaho.reporting.engine.classic.core.Band target, ReportElementEditorContext dragContext, Point2D point)
protected abstract org.pentaho.reporting.engine.classic.core.Element createElement(org.pentaho.reporting.engine.classic.core.metadata.ElementMetaData elementMetaData, String fieldName, ReportDocumentContext context) throws InstantiationException
InstantiationException
protected org.pentaho.reporting.engine.classic.core.Band getInsertionBand(DropTargetDropEvent event, ReportElementEditorContext dragContext, Point2D point)
protected double getParentX(org.pentaho.reporting.engine.classic.core.Section band)
protected double getParentY(org.pentaho.reporting.engine.classic.core.Section band)
Copyright © 2017 Hitachi Vantara. All rights reserved.