~ubuntu-branches/ubuntu/utopic/figtree/utopic

« back to all changes in this revision

Viewing changes to src/figtree/treeviewer/decorators/Decorator.java

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-02-21 08:17:38 UTC
  • Revision ID: james.westby@ubuntu.com-20110221081738-80pe2ulo8rg7up10
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package figtree.treeviewer.decorators;
 
2
 
 
3
import jebl.evolution.taxa.Taxon;
 
4
 
 
5
import java.awt.*;
 
6
import java.awt.geom.Point2D;
 
7
 
 
8
/**
 
9
 * @author Andrew Rambaut
 
10
 * @version $Id: Decorator.java 433 2006-08-27 19:34:13Z rambaut $
 
11
 */
 
12
public interface Decorator {
 
13
 
 
14
    boolean isGradient();
 
15
    
 
16
    void setItem(Object item);
 
17
    void setItems(Object item1, Object item2);
 
18
 
 
19
    Paint getPaint(Paint paint);
 
20
 
 
21
    /**
 
22
     * Get stroke paint for a gradient between two point in colour scale
 
23
     * @param paint
 
24
     * @param point1
 
25
     * @param point2
 
26
     * @return
 
27
     */
 
28
    Paint getPaint(Paint paint, Point2D point1, Point2D point2);
 
29
 
 
30
    Paint getFillPaint(Paint paint);
 
31
 
 
32
    /**
 
33
     * Get fill paint for a gradient between two point in colour scale
 
34
     * @param paint
 
35
     * @param point1
 
36
     * @param point2
 
37
     * @return
 
38
     */
 
39
    Paint getFillPaint(Paint paint, Point2D point1, Point2D point2);
 
40
 
 
41
    Stroke getStroke(Stroke stroke);
 
42
    Font getFont(Font font);
 
43
}