trace/traceviewer/com.nokia.traceviewer/src/com/nokia/traceviewer/dialog/treeitem/ColorTreeItem.java
changeset 11 5b9d4d8641ce
equal deleted inserted replaced
10:ed1c9f64298a 11:5b9d4d8641ce
       
     1 /*
       
     2  * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:
       
    15  *
       
    16  * Color Tree item interface
       
    17  *
       
    18  */
       
    19 package com.nokia.traceviewer.dialog.treeitem;
       
    20 
       
    21 import org.eclipse.swt.graphics.Color;
       
    22 
       
    23 /**
       
    24  * Color Tree item interface
       
    25  */
       
    26 public interface ColorTreeItem extends TreeItem {
       
    27 
       
    28 	/**
       
    29 	 * Rule type for color items
       
    30 	 */
       
    31 	public enum Rule {
       
    32 
       
    33 		/**
       
    34 		 * Text rule
       
    35 		 */
       
    36 		TEXT_RULE,
       
    37 
       
    38 		/**
       
    39 		 * Component rule
       
    40 		 */
       
    41 		COMPONENT_RULE,
       
    42 
       
    43 		/**
       
    44 		 * Group rule
       
    45 		 */
       
    46 		GROUP;
       
    47 	}
       
    48 
       
    49 	/**
       
    50 	 * Gets the type of the rule
       
    51 	 * 
       
    52 	 * @return the rule
       
    53 	 */
       
    54 	public Rule getRule();
       
    55 
       
    56 	/**
       
    57 	 * Gets the foreground color of the rule
       
    58 	 * 
       
    59 	 * @return foreground color
       
    60 	 */
       
    61 	public Color getForegroundColor();
       
    62 
       
    63 	/**
       
    64 	 * Gets the background color of the rule
       
    65 	 * 
       
    66 	 * @return background color
       
    67 	 */
       
    68 	public Color getBackgroundColor();
       
    69 }