TextAlignment ta = TextAlignmentImpl.create( ); ta.setVerticalAlignment( VerticalAlignment.CENTER_LITERAL ); ta.setHorizontalAlignment( HorizontalAlignment.CENTER_LITERAL ); la.getCaption( ).getFont( ).setAlignment( ta );
	protected final void initialize( int iAxisType )	{		// AXIS LABEL COLOR, FONT, OUTLINE, FILLCOLOR, TEXTALIGNMENT, FORMAT		// SPECIFIER		setLabel( LabelImpl.create( ) );		// AXIS LINE		LineAttributes lia = LineAttributesImpl.create( ColorDefinitionImpl.BLACK( ),				LineStyle.SOLID_LITERAL,				1 );		setLineAttributes( lia );		// INTERSECTION VALUE		AxisOrigin ao = AttributeFactory.eINSTANCE.createAxisOrigin( );		ao.setType( IntersectionType.MIN_LITERAL );		ao.setValue( null );		setOrigin( ao );		// PRIMARY AXIS		setPrimaryAxis( false );		// AXIS TITLE		Label la = LabelImpl.create( );		la.getCaption( ).setValue( "Axis Title" ); //$NON-NLS-1$		la.getCaption( ).getFont( ).setSize( 14 );		la.getCaption( ).getFont( ).setBold( true );		la.setVisible( false );		setTitle( la );		// MAJOR GRID		Grid gr = ComponentFactory.eINSTANCE.createGrid( );		lia = LineAttributesImpl.create( ColorDefinitionImpl.create( 196,				196,				196 ), LineStyle.SOLID_LITERAL, 1 );		lia.setVisible( false );		gr.setLineAttributes( lia );		lia = LineAttributesImpl.create( ColorDefinitionImpl.create( 196,				196,				196 ), LineStyle.SOLID_LITERAL, 1 );		gr.setTickAttributes( lia );		gr.setTickStyle( TickStyle.ACROSS_LITERAL );		setMajorGrid( gr );		// MINOR GRID		gr = ComponentFactory.eINSTANCE.createGrid( );		lia = LineAttributesImpl.create( ColorDefinitionImpl.create( 225,				225,				225 ), LineStyle.SOLID_LITERAL, 1 );		lia.setVisible( false );		gr.setLineAttributes( lia );		lia = LineAttributesImpl.create( ColorDefinitionImpl.create( 225,				225,				225 ), LineStyle.SOLID_LITERAL, 1 );		lia.setVisible( false );		gr.setTickAttributes( lia );		gr.setTickStyle( TickStyle.ACROSS_LITERAL );		setMinorGrid( gr );		// SCALE		Scale sc = ComponentFactory.eINSTANCE.createScale( );		sc.setMinorGridsPerUnit( 5 );		setScale( sc );		setPercent( false );		if ( iAxisType == Axis.BASE )		{			setOrientation( Orientation.HORIZONTAL_LITERAL );			setLabelPosition( Position.ABOVE_LITERAL );		}		else if ( iAxisType == Axis.ORTHOGONAL )		{			setOrientation( Orientation.VERTICAL_LITERAL );			setLabelPosition( Position.RIGHT_LITERAL );		}		setOrigin( AxisOriginImpl.create( IntersectionType.MAX_LITERAL, null ) );	}