public class PivotEvent extends DataviewEvent
Dataview.
This event also describes reorders in Crosstab measures
and in the Table column header.| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_PIVOT
PivotType: Pivot.
|
static int |
TYPE_REORDER
PivotType: Reorder.
|
consumed| Constructor and Description |
|---|
PivotEvent(java.lang.Object source,
int fromEdge,
int toEdge)
Constructor for an edge swap.
|
PivotEvent(java.lang.Object source,
int fromEdge,
int toEdge,
int fromLayer,
int toLayer,
int _flags)
Constructor.
|
PivotEvent(java.lang.Object source,
int fromEdge,
int toEdge,
int fromLayer,
int toLayer,
int fromSlice,
int toSlice,
int _flags,
int pivotType) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFromDimension()
Retrieves the from dimension.
|
int |
getFromEdge()
Retrieves the from edge.
|
int |
getFromSlice()
Retrieves the from slice.
|
int |
getPivotType()
Retrieves the type (pivot or reorder) of this pivot event.
|
int |
getToDimension()
Retrieves the to dimension.
|
int |
getToEdge()
Retrieves the to edge.
|
int |
getToSlice()
Retrieves the to slice.
|
boolean |
isDimensionSwap()
Indicates whether dimensions (layers) are being swapped.
|
boolean |
isEdgeSwap()
Indicates whether edges are being swapped.
|
boolean |
isMoveAfter()
Indicates whether a dimension or item is being moved after another.
|
boolean |
isMoveBefore()
Indicates whether a dimension or item is being moved before another.
|
consume, isConsumedpublic static final int TYPE_PIVOT
public static final int TYPE_REORDER
Crosstab measure reordering and
Table column reordering.public PivotEvent(java.lang.Object source,
int fromEdge,
int toEdge,
int fromLayer,
int toLayer,
int _flags)
source - The source of the event.fromEdge - The edge from which an item is being pivoted.toEdge - The edge to which an item is being pivoted.fromLayer - The layer (dimension) from which an item is being pivoted.toLayer - the layer (dimension) to which an item is being pivoted._flags - A constant that identifies the nature of the pivot action.
Valid constants are listed
in the See Also section.DataDirector.PIVOT_MOVE_AFTER,
DataDirector.PIVOT_MOVE_BEFORE,
DataDirector.PIVOT_MOVE_TO,
DataDirector.PIVOT_SWAP,
DataDirector.PIVOT_EDGESpublic PivotEvent(java.lang.Object source,
int fromEdge,
int toEdge)
DataDirector.PIVOT_EDGES.source - The source of the event.fromEdge - The first edge.toEdge - The edge to swap with fromEdge.DataDirector.PIVOT_EDGESpublic PivotEvent(java.lang.Object source,
int fromEdge,
int toEdge,
int fromLayer,
int toLayer,
int fromSlice,
int toSlice,
int _flags,
int pivotType)
source - the event sourcefromEdge - the edge pivoting fromtoEdge - the edge pivoting tofromLayer - the layer (dimension) pivoting fromtoLayer - the layer (dimension) pivoting tofromSlice - the slice reordering fromtoLayer - the slice reordering to_flags - enumerated flag value indicating the type of
pivot (move before, move after, swap, edge)pivotType - indicates if this is a pivot or a reorderTYPE_PIVOT,
TYPE_REORDERpublic int getFromEdge()
public int getToEdge()
public int getFromDimension()
public int getToDimension()
public int getFromSlice()
getPivotType()public int getToSlice()
getPivotType()public boolean isEdgeSwap()
true if the nature of the pivot is DataDirector.PIVOT_EDGES,
false if it is not.DataDirector.PIVOT_EDGESpublic boolean isDimensionSwap()
true if the nature of the pivot is DataDirector.PIVOT_SWAP,
false if it is not.DataDirector.PIVOT_SWAPpublic boolean isMoveAfter()
true if the nature of the pivot is
DataDirector.PIVOT_MOVE_AFTER,
false if it is not.DataDirector.PIVOT_MOVE_AFTERpublic boolean isMoveBefore()
true if the nature of the pivot is
DataDirector.PIVOT_MOVE_BEFORE,
false if it is not.DataDirector.PIVOT_MOVE_BEFOREpublic int getPivotType()
TYPE_PIVOT.TYPE_REORDER for Crosstab measure
reordering and Table column reordering,
otherwise TYPE_PIVOT.TYPE_PIVOT,
TYPE_REORDER