| /******************************************************************************* |
| * Copyright (c) 2003, 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.engines.lowvision.problem; |
| |
| import org.eclipse.actf.visualization.engines.lowvision.LowVisionType; |
| import org.eclipse.actf.visualization.engines.lowvision.PageElement; |
| import org.eclipse.actf.visualization.engines.lowvision.image.PageComponent; |
| import org.eclipse.actf.visualization.engines.lowvision.internal.Messages; |
| |
| public class BlurProblem extends LowVisionProblem { |
| public BlurProblem(PageComponent _pc, LowVisionType _lvType, double _proba) |
| throws LowVisionProblemException { |
| super( |
| LOWVISION_BLUR_PROBLEM, |
| _lvType, |
| Messages |
| .getString("BlurProblem.It_is_difficult_for_weak-sighted_to_read_these_characters._1"), |
| _pc, _proba); |
| setRecommendations(); |
| } |
| |
| public BlurProblem(PageElement _pe, LowVisionType _lvType, double _proba) |
| throws LowVisionProblemException { |
| super( |
| LOWVISION_BLUR_PROBLEM, |
| _lvType, |
| Messages |
| .getString("BlurProblem.It_is_difficult_for_weak-sighted_to_read_these_characters._1"), |
| _pe, _proba); |
| setRecommendations(); |
| } |
| |
| protected void setRecommendations() throws LowVisionProblemException { |
| numRecommendations = 2; |
| recommendations = new LowVisionRecommendation[numRecommendations]; |
| recommendations[0] = new EnlargeTextRecommendation(this); |
| recommendations[1] = new EnlargeLineRecommendation(this); |
| } |
| } |