Skip to content

Commit

Permalink
Added new suger method to place dimension on axis at arbitrary position.
Browse files Browse the repository at this point in the history
git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@266 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
lucboudreau committed Jul 20, 2009
1 parent b1cc206 commit ccf727d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/org/olap4j/query/QueryAxis.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,19 @@ public void addDimension(QueryDimension dimension) {
this.notifyAdd(dimension, index);
}

/**
* Places a {@link QueryDimension} object on this axis at
* a specific index.
* @param dimension The {@link QueryDimension} object to add
* to this axis.
* @param index The position (0 based) onto which to place
* the QueryDimension
*/
public void addDimension(int index, QueryDimension dimension) {
this.getDimensions().add(index, dimension);
this.notifyAdd(dimension, index);
}

/**
* Removes a {@link QueryDimension} object on this axis.
* @param dimension The {@link QueryDimension} object to remove
Expand Down

0 comments on commit ccf727d

Please sign in to comment.