blob: 6e77f32a076213e9986f7fbd3ce7fb774de5fb19 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jface.viewers;
import org.eclipse.jface.resource.ImageDescriptor;
/**
* Defines the result of decorating an element.
*
* This interface is not meant to be implemented and will
* be provided to instances of <code>ILightweightLabelDecorator</code>.
*/
public interface IDecoration {
/**
* Constants for placement of image decorations.
*/
public static final int TOP_LEFT = 0;
public static final int TOP_RIGHT = 1;
public static final int BOTTOM_LEFT = 2;
public static final int BOTTOM_RIGHT = 3;
public static final int UNDERLAY = 4;
/**
* Adds a prefix to the element's label.
*
* @param prefix the prefix
*/
public void addPrefix(String prefix);
/**
* Adds a suffix to the element's label.
*
* @param suffix the suffix
*/
public void addSuffix(String suffix);
/**
* Adds an overlay to the element's image.
*
* @param overlay the overlay image descriptor
*/
public void addOverlay(ImageDescriptor overlay);
/**
* Adds an overlay to the element's image.
*
* @param overlay the overlay image descriptor
*/
public void addOverlay(ImageDescriptor overlay, int quadrant);
}