*
* todo XDIME-CP fix this
*/
public void notestRenderTemporalFormatIteratorFixedTimeValues()
throws Exception {
TemporalFormatIterator temporal = createTemporalFormatIterator();
// Set three time values
temporal.setAttribute(
TemporalFormatIterator.TEMPORAL_ITERATOR_CLOCK_VALUES,
"1,2,3");
// ... and 5 elements. Last 2 duration values should be last
// timeValue (3))
temporal.setAttribute(
TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT,"5");
temporal.setAttribute(
TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS,"fixed");
activateTemporal(temporal);
//Create a new pane
Pane pane = (Pane) createPane();
//Pretend to get the buffers for two different format instances
int[] idx = { 2 };
PaneInstance ctx2 = (PaneInstance) dlContext.getFormatInstance(pane,
new NDimensionalIndex(idx));
ctx2.getCurrentBuffer().writeText("non-empty");
idx[0] = 5;
PaneInstance ctx5 = (PaneInstance) dlContext.getFormatInstance(pane,
new NDimensionalIndex(idx));
ctx5.getCurrentBuffer().writeText("non-empty");
temporal.setChildAt(pane, 0);
//Render the format
TemporalFormatIteratorInstance sfi =
new TemporalFormatIteratorInstance(
NDimensionalIndex.ZERO_DIMENSIONS);
sfi.setFormat(temporal);