[jboss-cvs] jboss-seam/examples/itext/src/org/jboss/seam/example/pdf ...

Norman Richards norman.richards at jboss.com
Fri Jun 29 01:27:29 EDT 2007


  User: nrichards
  Date: 07/06/29 01:27:29

  Modified:    examples/itext/src/org/jboss/seam/example/pdf  
                        DynamicChart.java
  Added:       examples/itext/src/org/jboss/seam/example/pdf   Colors.java
  Log:
  a few more controls
  
  Revision  Changes    Path
  1.2       +48 -1     jboss-seam/examples/itext/src/org/jboss/seam/example/pdf/DynamicChart.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: DynamicChart.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/itext/src/org/jboss/seam/example/pdf/DynamicChart.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- DynamicChart.java	28 Jun 2007 22:27:58 -0000	1.1
  +++ DynamicChart.java	29 Jun 2007 05:27:29 -0000	1.2
  @@ -9,9 +9,16 @@
       boolean is3d = false;
       boolean legend = true;
       
  +    String title = "Dynamic Chart";
       String categoryAxisLabel = "Default Category Label"; 
       String valueAxisLabel = "Default Value Label";
  -    String title = "Dynamic Chart";
  +    
  +    String orientation = "vertical";
  +    String plotBackgroundPaint;
  +    String plotOutlinePaint;
  +    String borderPaint;
  +    String borderBackgroundPaint;
  +    
       
       float height = 300;
       float width  = 400;    
  @@ -82,5 +89,45 @@
           this.title = title;
       }
   
  +    public String getOrientation() {
  +        return orientation;
  +    }
  +
  +    public void setOrientation(String orientation) {
  +        this.orientation = orientation;
  +    }
  +
  +    public String getBorderBackgroundPaint() {
  +        return borderBackgroundPaint;
  +    }
  +
  +    public void setBorderBackgroundPaint(String borderBackgroundPaint) {
  +        this.borderBackgroundPaint = borderBackgroundPaint;
  +    }
  +
  +    public String getBorderPaint() {
  +        return borderPaint;
  +    }
  +
  +    public void setBorderPaint(String borderPaint) {
  +        this.borderPaint = borderPaint;
  +    }
  +
  +    public String getPlotBackgroundPaint() {
  +        return plotBackgroundPaint;
  +    }
  +
  +    public void setPlotBackgroundPaint(String plotBackgroundPaint) {
  +        this.plotBackgroundPaint = plotBackgroundPaint;
  +    }
  +
  +    public String getPlotOutlinePaint() {
  +        return plotOutlinePaint;
  +    }
  +
  +    public void setPlotOutlinePaint(String plotOutlinePaint) {
  +        this.plotOutlinePaint = plotOutlinePaint;
  +    }
  +
   
   }
  
  
  
  1.1      date: 2007/06/29 05:27:29;  author: nrichards;  state: Exp;jboss-seam/examples/itext/src/org/jboss/seam/example/pdf/Colors.java
  
  Index: Colors.java
  ===================================================================
  package org.jboss.seam.example.pdf;
  
  import java.util.ArrayList;
  import java.util.List;
  
  import org.jboss.seam.ScopeType;
  import org.jboss.seam.annotations.Name;
  import org.jboss.seam.annotations.Scope;
  import org.jboss.seam.annotations.Unwrap;
  
  
  @Name("colors")
  @Scope(ScopeType.SESSION)
  public class Colors {
  
     
      @Unwrap
      public List getAll() {
          List<String> colors = new ArrayList<String>();
          
          colors.add("red");
          colors.add("blue");
          colors.add("green");
          colors.add("black");
          colors.add("white");
          
          return colors;        
      }
      
  }
  
  
  



More information about the jboss-cvs-commits mailing list