Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [gef-dev] Nodes

Hi,Petterson Henrique de Andrade
 
   public class NodeFigure extends RectangleFigure {
    private String name;
    private RectangleFigure rectangleFigure;
    private Label label;
 
    public NodeFigure() {
        this.rectangleFigure = new RectangleFigure();
        this.label = new Label();
        this.label.setForegroundColor(ColorConstants.yellow);
        this.add(label);
        this.setOpaque(true);
        this.setBackgroundColor(ColorConstants.blue);
       
    }
    
      .
      .
      .
}
  
Do you design like this?  This works very well.
 
 
 
======== 2005-11-05 02:17:06 您在来信中写道: ========
 
Hi all!
 
I have one problem with nodes.
I need set color in the node.
 
setBackGroundColor(ColorConstants.black);  isn�t ok!
 
what i do?


Yahoo! Acesso Gr�tis: Internet r�pida e gr�tis.
Instale o discador agora!

= = = = = = = = = = = = = = = = = = = = = =

        致
礼!

 
              裴 涛
              peit@xxxxxxxxxxx
               2005-11-05
 

Attachment: fox.gif
Description: GIF image


Back to the top