Show
Ignore:
Timestamp:
03/04/10 12:19:02 (2 years ago)
Author:
mathieu.leclaire
Message:

Task selection and preference class implementation.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/simexplorer-ide/simexplorer-ide-ant/org.openmole.ui/src/org/openmole/ui/workflow/implementation/paint/BorderedRectangularProvider.java

    r2972 r3142  
    1515 *  along with this program.  If not, see <http://www.gnu.org/licenses/>. 
    1616 */ 
    17  
    1817package org.openmole.ui.workflow.implementation.paint; 
    1918 
     
    2524 * @author mathieu 
    2625 */ 
    27 public class BorderedRectangularProvider implements IBorderedRectangularProvider{ 
     26public class BorderedRectangularProvider implements IBorderedRectangularProvider { 
    2827 
    2928    public static final int ARROW_PIN_WIDTH = 15; 
    30    // public static final int MARGIN_SE_ROUNDED_RECTANGLE = ARROW_PIN_WIDTH * 77 / 100; 
     29    // public static final int MARGIN_SE_ROUNDED_RECTANGLE = ARROW_PIN_WIDTH * 77 / 100; 
    3130    public static final int MARGIN_SE_ROUNDED_RECTANGLE = -1; 
    32  
    3331    private Rectangle clipRect; 
    3432    private Color backgroundColor; 
     
    3735    boolean roundBorder; 
    3836 
    39     public BorderedRectangularProvider(Rectangle rArea,Color baColor, Color boColor, boolean rBorder) { 
     37    public BorderedRectangularProvider(Rectangle rArea, Color baColor, Color boColor, boolean rBorder) { 
    4038        backgroundColor = baColor; 
    4139        borderColor = boColor; 
     
    4644    @Override 
    4745    public Color getBorderColor() { 
    48                 return borderColor; 
     46        return borderColor; 
    4947    } 
    5048 
    5149    @Override 
    5250    public Color getBackgroundColor() { 
    53                 return backgroundColor; 
     51          return backgroundColor; 
     52    } 
     53 
     54    @Override 
     55    public void setBackgroundColor(Color col) { 
     56 
     57        backgroundColor = col; 
     58    } 
     59 
     60    @Override 
     61    public void setBorderColor(Color col) { 
     62        borderColor = col; 
    5463    } 
    5564 
     
    6170    @Override 
    6271    public Rectangle getClipRect() { 
    63                // Rectangle clientArea = containerWidget.getClientArea(); 
    64                 Rectangle gradientRect = new Rectangle(); 
     72        // Rectangle clientArea = containerWidget.getClientArea(); 
     73        Rectangle gradientRect = new Rectangle(); 
    6574 
    66                 gradientRect.x = clientArea.x + MARGIN_SE_ROUNDED_RECTANGLE; 
    67                 gradientRect.y = clientArea.y; 
    68                 gradientRect.width = clientArea.width - MARGIN_SE_ROUNDED_RECTANGLE - MARGIN_SE_ROUNDED_RECTANGLE; 
    69                 gradientRect.height = clientArea.height; 
     75        gradientRect.x = clientArea.x + MARGIN_SE_ROUNDED_RECTANGLE; 
     76        gradientRect.y = clientArea.y; 
     77        gradientRect.width = clientArea.width - MARGIN_SE_ROUNDED_RECTANGLE - MARGIN_SE_ROUNDED_RECTANGLE; 
     78        gradientRect.height = clientArea.height; 
    7079 
    71                 clipRect = gradientRect; 
    72                 return gradientRect; 
    73             } 
     80        clipRect = gradientRect; 
     81        return gradientRect; 
     82    } 
    7483 
    75     public Rectangle getClientArea(){ 
     84    public Rectangle getClientArea() { 
    7685        return clientArea; 
    7786    } 
    78      
    79     } 
     87} 

logo cemagref

logo iscpif

logo lifegrid

logo region auvergne

logo patres project