View Javadoc

1   /*
2    *  File: IBorderConfiguration.java 
3    *  Copyright (c) 2004-2007  Peter Kliem (Peter.Kliem@jaret.de)
4    *  A commercial license is available, see http://www.jaret.de.
5    *
6    * All rights reserved. This program and the accompanying materials
7    * are made available under the terms of the Common Public License v1.0
8    * which accompanies this distribution, and is available at
9    * http://www.eclipse.org/legal/cpl-v10.html
10   */
11  package de.jaret.util.ui.table.renderer;
12  
13  /***
14   * Interface describing a border to be rendered around a cell.
15   * 
16   * @author Peter Kliem
17   * @version $Id: IBorderConfiguration.java 347 2007-04-07 15:01:10Z olk $
18   */
19  public interface IBorderConfiguration {
20      /***
21       * Get left border width.
22       * 
23       * @return border width in pixels
24       */
25      int getBorderLeft();
26  
27      /***
28       * Get right border width.
29       * 
30       * @return border width in pixels
31       */
32      int getBorderRight();
33  
34      /***
35       * Get top border width.
36       * 
37       * @return border width in pixels
38       */
39      int getBorderTop();
40  
41      /***
42       * Get bottom border width.
43       * 
44       * @return border width in pixels
45       */
46      int getBorderBottom();
47  
48      /***
49       * Produce a copy of this border configuration.
50       * 
51       * @return copy of the configuration
52       */
53      IBorderConfiguration copy();
54  }