boolean bEnabled = !( getAxisForProcessing( ).isCategoryAxis( ) || sType == AxisType.TEXT_LITERAL ); lblMin.setEnabled( bEnabled ); txtScaleMin.setEnabled( bEnabled ); lblMax.setEnabled( bEnabled ); txtScaleMax.setEnabled( bEnabled ); lblStep.setEnabled( bEnabled ); txtScaleStep.setEnabled( bEnabled );   if ( sType == AxisType.DATE_TIME_LITERAL ) { lblUnit.setEnabled( bEnabled ); cmbScaleUnit.setEnabled( bEnabled ); }
boolean bEnabled = !( getAxisForProcessing( ).isCategoryAxis( ) || getAxisForProcessing( ).getType( ) == AxisType.TEXT_LITERAL ); setState( bEnabled );
	private void setState( AxisType sType )	{		// Bugzilla#103961 Marker line and range only work for non-category		// style X-axis,		boolean bEnabled = !( getAxisForProcessing( ).isCategoryAxis( ) || sType == AxisType.TEXT_LITERAL );		lblMin.setEnabled( bEnabled );		txtScaleMin.setEnabled( bEnabled );		lblMax.setEnabled( bEnabled );		txtScaleMax.setEnabled( bEnabled );		lblStep.setEnabled( bEnabled );		txtScaleStep.setEnabled( bEnabled );		// Unit is only valid in DateTime type		if ( sType == AxisType.DATE_TIME_LITERAL )		{			lblUnit.setEnabled( bEnabled );			cmbScaleUnit.setEnabled( bEnabled );		}	}