blob: 987ba83c80e257fb88f8876f4317624a63b8db2b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation and Others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Junji MAEDA - initial API and implementation
*******************************************************************************/
package org.eclipse.actf.visualization.internal.engines.lowvision.problem;
import org.eclipse.actf.visualization.engines.lowvision.LowVisionType;
import org.eclipse.actf.visualization.internal.engines.lowvision.Messages;
import org.eclipse.actf.visualization.internal.engines.lowvision.PageElement;
//FixedSizeFontProblem and SmallFontProblem
public class FixedSmallFontProblem extends LowVisionProblem{
public FixedSmallFontProblem( PageElement _pe, LowVisionType _lvType, double _proba ) throws LowVisionProblemException{
super( LOWVISION_FIXED_SMALL_FONT_PROBLEM, _lvType, Messages.FixedSmallFontProblem_This_text_is_too_small_and_its_font_size_is_fixed__1, _pe, _proba );
// fontSize = _pe.getFontSize();
setRecommendations();
}
protected void setRecommendations() throws LowVisionProblemException{
numRecommendations = 2;
recommendations = new LowVisionRecommendation[numRecommendations];
recommendations[0] = new EnlargeTextRecommendation( this );
recommendations[1] = new ChangableFontRecommendation( this );
}
}