Source code: com/xerox/VTM/glyphs/ClippedPathSeg.java
1 /* FILE: ClippedPathSeg.java
2 * DATE OF CREATION: Wed Feb 05 12:47:14 2003
3 * AUTHOR : Emmanuel Pietriga (emmanuel@w3.org)
4 * MODIF: Wed Feb 05 13:45:46 2003 by Emmanuel Pietriga
5 * Copyright (c) Emmanuel Pietriga, 2002. All Rights Reserved
6 * Licensed under the GNU LGPL. For full terms see the file COPYING.
7 */
8
9
10 package com.xerox.VTM.glyphs;
11
12 /**
13 * Used to decompose VPath in segments
14 * @author Emmanuel Pietriga
15 **/
16
17 public class ClippedPathSeg extends PathSeg {
18
19 public static short SEG_TYPE_SEG=0;
20 public static short SEG_TYPE_QD1=1;
21 public static short SEG_TYPE_QD2=2;
22 public static short SEG_TYPE_CB1=3;
23 public static short SEG_TYPE_CB2=4;
24 public static short SEG_TYPE_CB3=5;
25 public static short SEG_TYPE_JMP=6;
26
27 protected boolean wasVisible=false;
28 protected boolean visible=false;
29
30 protected short type;
31
32 protected float java2Dx,java2Dy;
33
34 protected ClippedPathSeg(long xc,long yc,long wc,long hc,short segType,float x2d,float y2d){
35 super(xc,yc,wc,hc);
36 java2Dx=x2d;
37 java2Dy=y2d;
38 type=segType;
39 }
40
41 protected void setVisible(boolean b){
42 wasVisible=visible;
43 visible=b;
44 }
45
46 }