| Home >> All >> com >> xerox >> VTM >> [ glyphs Javadoc ] |
com.xerox.VTM.glyphs: Javadoc index of package com.xerox.VTM.glyphs.
Package Samples:
com.xerox.VTM.glyphs
Classes:
VCbCurve: Cubic Curve - can be reoriented - CANNOT DETECT ENTRY/EXIT in curves, even when filled (they look as, but are not, closed shapes) a cubic curve is a curved segment that has two endpoints and two control points. Each control point determines the shape of the curve by controlling one of the endpoint tangent vectors. for this particular glyph, vx and vy correspond to the center of the imaginary segment linking the curve's start and end points the coordinates of the control points are expressed respectively w.r.t start and end points in polar coordinates (orient=0 on segment linking start and end points, ...
VQdCurve: Quadratic Curve - can be reoriented - CANNOT DETECT ENTRY/EXIT in curves, even when filled (they look as, but are not, closed shapes) a quadratic curve is a curved segment that has two endpoints and one control point. The control point determines the shape of the curve by controlling both of the endpoint tangent vectors for this particular glyph, vx and vy correspond to the center of the imaginary segment linking the curve's start and end points the coordinates of the control point are expressed w.r.t this point in polar coordinates (orient=0 on segment linking start and end points, meaning that ...
VTextOr: Standalone Text (font properties are set in the view, but can be changed for each VText using setSpecialFont()) - can be reoriented. orientation NOT STABLE (causes the VTM to hang sometimes) USE AT YOUR OWN RISK! - things seem to go much better since I've changed the order in which I apply AffineTranforms vx and vy are coordinates of lower-left corner of String because it would be too time-consuming to compute the String's center (needs to be computed at each repaint: it requires access to Graphics2D) (besides it makes the VTM unstable)
VPath: General path - cannot be resized nor reoriented (for now) - does not follow the standard object model - (vx,vy) are the coordinates of the path's first point - can detect mouse overlapping path by explicitely calling VCursor.interesctsPath(VPath p), but no event is automatically fired by the event handler when the mouse is above a VPath (if you really want to do that, you can call VCursor.getIntersectingPaths() in mouseMoved in your event handler, but this probably will be time consuming)
FPolygon: Custom polygon - CANNOT be resized nor reoriented. This is the old implementation of VPolygon, as found in zvtm 0.8.2. The new version of VPolygon can be resized, but at some cost from the efficiency point of view, so the old version is still provided here and can be used by people who do not intend to resize their Polygon instances (this implementation uses longs instead of doubles for its internal representation of the vertices, see VPolygon for other details)
VPolygon: Custom polygon - can now be resized. This new implementation of VPolygon models vertices as doubles internally to allow resizing without loss of precision (and thus resizing to small sizes does not temper with the shape aspect). It might be more memory consuming, and less efficient, so the old implementation is still offered (class FPolygon), for people who do not care about resizing VPolygon instances - cannot be reoriented for now
VText: Standalone Text (font properties are set in the view, but can be changed for each VText using setSpecialFont()) vx and vy are coordinates of lower-left corner of String because it would be too time-consuming to compute the String's center (needs to be computed at each repaint: it requires access to Graphics2D) (besides it makes the VTM unstable)
VShape: Custom shape implementing Jean-Yves Vion-Dury's model - defined by its N vertices (every vertex is between 0 (distance from shape's center=0) and 1.0 (distance from shape's center equals bounding circle radius)) - angle between each vertices is 2*Pi/N - can be reoriented
VCirShape: Circle containing a custom shape - defined by its N vertices (every vertex is between 0 (distance from shape's center=0) and 1.0 (distance from shape's center equals bounding circle radius)) - angle between each vertices is 2*Pi/N - can be reoriented
VShapeST: Custom shape - defined by its N vertices (every vertex is between 0 (distance from shape's center=0) and 1.0 (distance from shape's center equals bounding circle radius)) - angle between each vertices is 2*Pi/N - can be reoriented - transparency
VClippedPath: 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)
VBoolShape: Boolean shape - defined by a main glyph and a list of boolean operations (applied according to their order in the constructor's array) -right now we only support RectangularShape derivatives (Ellipse, Rectangle)
VRoundRectST: Round Rectangle - cannot be reoriented - the corners are approximated to a plain rectangle for some operations like computing mouse enter/exit events (performance reasons) - transparency
VRoundRect: Round Rectangle - cannot be reoriented - the corners are approximated to a plain rectangle for some operations like computing mouse enter/exit events (performance reasons)
RectangleNR: RectangleNR - not sensitive to zoom (will keep its size no matter the camera's altitude) - cannot be reoriented used for instance to create resizing handles
BooleanOps: class used to store a boolean operation to be run on an appropriate glyph - right now we only support RectangularShape derivatives (Ellipse, Rectangle)
Transparent: Transparency interface - implemented by all V[xxx]ST glyphs. Opacity is between 0.0 (fully transparent) and 1.0 (fully opaque)
VDiamondST: Diamond (losange with height equal to width) - cannot be reoriented - transparency
VDiamondOrST: Diamond (losange with height equal to width) - can be reoriented - transparency
VOctagonST: Octagon (eight "almost" regular edges) - cannot be reoriented - transparency
VOctagonOrST: Octagon (eight "almost" regular edges) - can be reoriented - transparency
ProjectedCoords: project coordinates - parent class of all projected coordinates objects
RectangularShape: Rectangular shape interface - implemented by rectangles and ellipses
VDiamond: Diamond (losange with height equal to width) cannot be reoriented
VDiamondOr: Diamond (losange with height equal to width) - can be reoriented
| Home | Contact Us | Privacy Policy | Terms of Service |