FractionNumberFormatSpecifier ffs = FractionNumberFormatSpecifierImpl.create( ); ( (MarkerLine) getAxisForProcessing( ).getMarkerLines( ) .get( getMarkerIndex( ) ) ).setFormatSpecifier( ffs );
MarkerLine line = (MarkerLine) getAxisForProcessing( ).getMarkerLines( ) .get( getMarkerIndex( ) ); if ( !( line.getFormatSpecifier( ) instanceof FractionNumberFormatSpecifier ) ) { FractionNumberFormatSpecifier ffs = FractionNumberFormatSpecifierImpl.create( ); line.setFormatSpecifier( ffs ); }
	public void handleEvent( Event event )	{		if ( event.widget.equals( lacLabel ) )		{			if ( this.lstMarkers.getSelection( ).length != 0 )			{				switch ( event.type )				{					case LabelAttributesComposite.VISIBILITY_CHANGED_EVENT :						getSelectedMarkerLabel( ).setVisible( ( (Boolean) event.data ).booleanValue( ) );						break;					case LabelAttributesComposite.FONT_CHANGED_EVENT :						getSelectedMarkerLabel( ).getCaption( )								.setFont( (FontDefinition) ( (Object[]) event.data )[0] );						getSelectedMarkerLabel( ).getCaption( )								.setColor( (ColorDefinition) ( (Object[]) event.data )[1] );						break;					case LabelAttributesComposite.BACKGROUND_CHANGED_EVENT :						getSelectedMarkerLabel( ).setBackground( (Fill) event.data );						break;					case LabelAttributesComposite.SHADOW_CHANGED_EVENT :						getSelectedMarkerLabel( ).setShadowColor( (ColorDefinition) event.data );						break;					case LabelAttributesComposite.OUTLINE_STYLE_CHANGED_EVENT :						getSelectedMarkerLabel( ).getOutline( )								.setStyle( (LineStyle) event.data );						break;					case LabelAttributesComposite.OUTLINE_WIDTH_CHANGED_EVENT :						getSelectedMarkerLabel( ).getOutline( )								.setThickness( ( (Integer) event.data ).intValue( ) );						break;					case LabelAttributesComposite.OUTLINE_COLOR_CHANGED_EVENT :						getSelectedMarkerLabel( ).getOutline( )								.setColor( (ColorDefinition) event.data );						break;					case LabelAttributesComposite.OUTLINE_VISIBILITY_CHANGED_EVENT :						getSelectedMarkerLabel( ).getOutline( )								.setVisible( ( (Boolean) event.data ).booleanValue( ) );						break;					case LabelAttributesComposite.INSETS_CHANGED_EVENT :						getSelectedMarkerLabel( ).setInsets( (Insets) event.data );						break;				}			}		}		else if ( event.widget.equals( fccRange ) )		{			( (MarkerRange) getAxisForProcessing( ).getMarkerRanges( )					.get( getMarkerIndex( ) ) ).setFill( (Fill) event.data );		}		else if ( event.widget.equals( txtValue ) )		{			if ( event.type == TextEditorComposite.TEXT_MODIFIED )			{				int iMarkerIndex = getMarkerIndex( );				( (MarkerLine) getAxisForProcessing( ).getMarkerLines( )						.get( iMarkerIndex ) ).setValue( this.getTypedDataElement( txtValue.getText( ) ) );			}			if ( event.type == TextEditorComposite.TEXT_FRACTION_CONVERTED )			{				// Change FormatSpecifier if the text is fraction and converted				FractionNumberFormatSpecifier ffs = FractionNumberFormatSpecifierImpl.create( );				( (MarkerLine) getAxisForProcessing( ).getMarkerLines( )						.get( getMarkerIndex( ) ) ).setFormatSpecifier( ffs );			}		}		else if ( event.widget.equals( txtStartValue ) )		{			int iMarkerIndex = getMarkerIndex( );			( (MarkerRange) getAxisForProcessing( ).getMarkerRanges( )					.get( iMarkerIndex ) ).setStartValue( this.getTypedDataElement( txtStartValue.getText( ) ) );		}		else if ( event.widget.equals( txtEndValue ) )		{			int iMarkerIndex = getMarkerIndex( );			( (MarkerRange) getAxisForProcessing( ).getMarkerRanges( )					.get( iMarkerIndex ) ).setEndValue( this.getTypedDataElement( txtEndValue.getText( ) ) );		}		else if ( event.widget.equals( liacMarkerLine ) )		{			if ( event.type == LineAttributesComposite.STYLE_CHANGED_EVENT )			{				( (MarkerLine) getAxisForProcessing( ).getMarkerLines( )						.get( getMarkerIndex( ) ) ).getLineAttributes( )						.setStyle( (LineStyle) event.data );			}			else if ( event.type == LineAttributesComposite.WIDTH_CHANGED_EVENT )			{				( (MarkerLine) getAxisForProcessing( ).getMarkerLines( )						.get( getMarkerIndex( ) ) ).getLineAttributes( )						.setThickness( ( (Integer) event.data ).intValue( ) );			}			else if ( event.type == LineAttributesComposite.COLOR_CHANGED_EVENT )			{				( (MarkerLine) getAxisForProcessing( ).getMarkerLines( )						.get( getMarkerIndex( ) ) ).getLineAttributes( )						.setColor( (ColorDefinition) event.data );			}			else			{				( (MarkerLine) getAxisForProcessing( ).getMarkerLines( )						.get( getMarkerIndex( ) ) ).getLineAttributes( )						.setVisible( ( (Boolean) event.data ).booleanValue( ) );			}		}		else if ( event.widget.equals( liacMarkerRange ) )		{			if ( event.type == LineAttributesComposite.STYLE_CHANGED_EVENT )			{				( (MarkerRange) getAxisForProcessing( ).getMarkerRanges( )						.get( getMarkerIndex( ) ) ).getOutline( )						.setStyle( (LineStyle) event.data );			}			else if ( event.type == LineAttributesComposite.WIDTH_CHANGED_EVENT )			{				( (MarkerRange) getAxisForProcessing( ).getMarkerRanges( )						.get( getMarkerIndex( ) ) ).getOutline( )						.setThickness( ( (Integer) event.data ).intValue( ) );			}			else if ( event.type == LineAttributesComposite.COLOR_CHANGED_EVENT )			{				( (MarkerRange) getAxisForProcessing( ).getMarkerRanges( )						.get( getMarkerIndex( ) ) ).getOutline( )						.setColor( (ColorDefinition) event.data );			}			else			{				( (MarkerRange) getAxisForProcessing( ).getMarkerRanges( )						.get( getMarkerIndex( ) ) ).getOutline( )						.setVisible( ( (Boolean) event.data ).booleanValue( ) );			}		}	}