blob: ec3542ada5f176c41d00456fd666195623dcb6eb [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006 Sybase, Inc. 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:
* Sybase, Inc. - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.pagedesigner.css2.color;
/**
* @author mengbo
*/
public class CSSColorManager {
private static CSSColorManager _instance;
private CSSColorManager() {
}
public static CSSColorManager getInstance() {
if (_instance == null) {
_instance = new CSSColorManager();
}
return _instance;
}
/**
* return Color or RGB. If return color, then the returned color is system
* color, caller should NOT dispose the returned color
*
* @param cssText
* @return
*/
public Object getColor(String cssText) {
return CSSColorConverter.getInstantce().getCSSColor(cssText);
}
}