/[fenfire]/fenfire/org/fenfire/view/TextHandler.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/TextHandler.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mudyc, Wed Apr 23 19:34:20 2003 UTC revision 1.3 by mudyc, Wed Apr 23 20:24:57 2003 UTC
# Line 6  import org.nongnu.libvob.*; Line 6  import org.nongnu.libvob.*;
6    
7  import org.nongnu.alph.*;  import org.nongnu.alph.*;
8  import java.awt.Color;  import java.awt.Color;
 import com.hp.hpl.mesa.rdf.jena.model.*;  
9    
10  public abstract class TextHandler implements ContentHandler, TextState { //, TextContext  public abstract class TextHandler implements ContentHandler, TextState { //, TextContext
11    
12      public void place(VobScene vs, int box, Enfilade1D enf) {}      public void place(VobScene vs, int box, Enfilade1D enf) {}
13      public void getSize(Enfilade1D enf, float[] size) {}      public void getSize(Enfilade1D enf, float[] size) {}
14    
15        public TextHandler() {
16            setColor(java.awt.Color.black);
17            setScale(1);
18            setCursorOffset(-1);
19            setStyle(GraphicsAPI.getInstance().getTextStyle("sans", 0, 24));
20        }
21    
22    
23      protected Color color;      protected Color color;
24      public Color getColor() { return color; }      public Color getColor() { return color; }
25      public void setColor(Color c) { color = c; }      public void setColor(Color c) { color = c; }
26    
27      protected float fontSize;      protected float scale;
28      public float getFontSize() { return fontSize; }      public float getScale() { return scale; }
29      public void setFontSize(float size) { fontSize = size; }      public void setScale(float fontScale) { scale = fontScale; }
30    
31        protected TextStyle style;
32        public void setStyle(TextStyle fontStyle) { style = fontStyle; }
33        public TextStyle getStyle() { return style; }
34    
35        protected int cursorOffset;
36        public int getCursorOffset() { return cursorOffset; }
37        public void setCursorOffset(int offset) { cursorOffset = offset; }
38  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26