Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.xerox.VTM.glyphs
Class VClippedPath  view VClippedPath download VClippedPath.java

java.lang.Object
  extended bycom.xerox.VTM.glyphs.Glyph
      extended bycom.xerox.VTM.glyphs.VPath
          extended bycom.xerox.VTM.glyphs.VClippedPath
All Implemented Interfaces:
java.lang.Cloneable

public class VClippedPath
extends VPath
implements java.lang.Cloneable

General path - similar to a VPath, but implements an experimental clipping algorithm that should enhance performances (quicker rendering) when only part of the path is actually seen (draw only curves/segments that are seen)


Field Summary
(package private)  com.xerox.VTM.engine.LongPoint firstPoint
           
(package private)  com.xerox.VTM.engine.LongPoint lastPoint
           
private  ClippedPathSeg[] segs
           
 
Fields inherited from class com.xerox.VTM.glyphs.VPath
at, drawingFactor, drawingRadius, forcedDrawing, lp, path, pc, realHotSpot
 
Fields inherited from class com.xerox.VTM.glyphs.Glyph
bColor, borderColor, cGlyph, coef, color, dashedContour, DEFAULT_STROKE_WIDTH, dependants, filled, font, fontSize, fontSizePolicy, HSV, HSVb, ID, mouseInsideColor, orient, owner, paintBorder, selected, selectedColor, sensit, size, stickedGlyphs, stickedTo, stroke, strokeWidth, text, textHeight, textPos, textWidth, type, visible, vsm, vx, vy, vz
 
Constructor Summary
VClippedPath()
           
VClippedPath(float z, java.awt.Color c, java.lang.String svg)
           
VClippedPath(long x, long y, float z, java.awt.Color c)
           
 
Method Summary
 void addCbCurve(long x, long y, long x1, long y1, long x2, long y2, boolean abs)
          add a new cubic curve to the path, from current point to point (x,y), with control points (x1,y1) and (x2,y2)
 void addQdCurve(long x, long y, long x1, long y1, boolean abs)
          add a new quadratic curve to the path, from current point to point (x,y), with control point (x1,y1)
private  void addSeg(com.xerox.VTM.engine.LongPoint p, short segType)
           
 void addSegment(long x, long y, boolean abs)
          add a new segment to the path, from current point to point (x,y)
 java.lang.Object clone()
          returns a clone of this object - not yet implemented for VClippedPath
(package private)  void constructVisiblePath()
           
 void draw(java.awt.Graphics2D g, int vW, int vH, int i, java.awt.Stroke stdS, java.awt.geom.AffineTransform stdT)
          draw glyph
 boolean drawMe(long w1, long h1, long w2, long h2, int i)
          used to find out if it is necessary to project and draw the glyph in the current view - override default method in Glyph
 void jump(long x, long y, boolean abs)
          "jump" to point (x,y) without drawing anything
(package private)  void printVis()
           
 void resetPath()
          new path, begins at (vx,vy)
private  boolean visibilityHasChanged()
           
 
Methods inherited from class com.xerox.VTM.glyphs.VPath
addCamera, computeSize, coordInside, duplicateVPath, fillsView, getJava2DGeneralPath, getJava2DPathIterator, getOrient, getPathLength, getSize, initCams, mouseInOut, orientTo, project, removeCamera, resetMouseIn, reSize, setDrawingFactor, setForcedDrawing, setSVGPath, sizeTo
 
Methods inherited from class com.xerox.VTM.glyphs.Glyph
addDependant, addHSVbColor, addHSVColor, getCGlyph, getColor, getColorb, getDependants, getFillStatus, getFont, getHSVbColor, getHSVColor, getID, getLocation, getOwner, getPaintBorderStatus, getStickedGlyphs, getStroke, getStrokeWidth, getText, getType, isSelected, isSensitive, isVisible, move, moveTo, propagateMove, removeDependant, select, setBorderColor, setCGlyph, setColor, setDashed, setFill, setFontSizePolicy, setHSVbColor, setHSVColor, setID, setMouseInsideColor, setOwner, setPaintBorder, setSelectedColor, setSensitivity, setSpecialFont, setStroke, setStrokeWidth, setText, setTextPos, setType, setVisible, setVSM, stick, toString, unstick, usesSpecialFont
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

segs

private ClippedPathSeg[] segs

firstPoint

com.xerox.VTM.engine.LongPoint firstPoint

lastPoint

com.xerox.VTM.engine.LongPoint lastPoint
Constructor Detail

VClippedPath

public VClippedPath()

VClippedPath

public VClippedPath(long x,
                    long y,
                    float z,
                    java.awt.Color c)

VClippedPath

public VClippedPath(float z,
                    java.awt.Color c,
                    java.lang.String svg)
Method Detail

addSeg

private void addSeg(com.xerox.VTM.engine.LongPoint p,
                    short segType)

resetPath

public void resetPath()
new path, begins at (vx,vy)

Overrides:
resetPath in class VPath

addSegment

public void addSegment(long x,
                       long y,
                       boolean abs)
add a new segment to the path, from current point to point (x,y)

Overrides:
addSegment in class VPath

addQdCurve

public void addQdCurve(long x,
                       long y,
                       long x1,
                       long y1,
                       boolean abs)
add a new quadratic curve to the path, from current point to point (x,y), with control point (x1,y1)

Overrides:
addQdCurve in class VPath

addCbCurve

public void addCbCurve(long x,
                       long y,
                       long x1,
                       long y1,
                       long x2,
                       long y2,
                       boolean abs)
add a new cubic curve to the path, from current point to point (x,y), with control points (x1,y1) and (x2,y2)

Overrides:
addCbCurve in class VPath

jump

public void jump(long x,
                 long y,
                 boolean abs)
"jump" to point (x,y) without drawing anything

Overrides:
jump in class VPath

draw

public void draw(java.awt.Graphics2D g,
                 int vW,
                 int vH,
                 int i,
                 java.awt.Stroke stdS,
                 java.awt.geom.AffineTransform stdT)
draw glyph

Overrides:
draw in class VPath

drawMe

public boolean drawMe(long w1,
                      long h1,
                      long w2,
                      long h2,
                      int i)
used to find out if it is necessary to project and draw the glyph in the current view - override default method in Glyph

Overrides:
drawMe in class VPath

printVis

void printVis()

visibilityHasChanged

private boolean visibilityHasChanged()

constructVisiblePath

void constructVisiblePath()

clone

public java.lang.Object clone()
returns a clone of this object - not yet implemented for VClippedPath

Overrides:
clone in class VPath