/** * Returns whether or not the cursor-mode is enabled. * * @return <code>true</code> if cursor-mode is enabled, thereby making all * defined cursors visible, <code>false</code> otherwise. */ public boolean isCursorMode() { return ( this.dataSet != null ) && this.dataSet.isCursorsEnabled(); }
final boolean cursorsEnabled = aDataSet.isCursorsEnabled();
/** * Creates a new DataSetImpl instance. * * @param aCapturedData * the captured data of this data set; * @param aOld * the old data set to template. */ public DataSetImpl( final AcquisitionResult aCapturedData, final DataSet aOld, final boolean aRetainAnnotations ) { this.propertyChangeSupport = new PropertyChangeSupport( this ); this.capturedData = aCapturedData; this.cursorsEnabled = aOld.isCursorsEnabled(); this.channels = createChannels( aCapturedData.getChannels(), aCapturedData.getEnabledChannels(), aRetainAnnotations, aOld.getChannels() ); this.cursors = createCursors( Ols.MAX_CURSORS, aOld.getCursors() ); }