Package | Description |
---|---|
jpicedt.format.input.util |
This package contains helper classes for building a parser based on the well-known RegExp scheme,
yet with a strong object-oriented approach in mind.
|
jpicedt.format.output.eepic |
Classes (formatter, view factory,...) related to the epic/eepic content-type.
|
jpicedt.format.output.latex |
Classes (formatter, view factory,...) related to the LaTeX (standard) content-type.
|
jpicedt.graphic |
jPicEdt library core classes and packages.
|
jpicedt.graphic.event |
Various events used for the communication between model, view and controler, as well as to
notify external receivers of changes
in the document structure, appearance,...
|
jpicedt.graphic.grid |
Grids for PECanvas.
|
jpicedt.graphic.io.formatter |
Interfaces and base classes useful to implement a formatter for a given format, for instance Pstricks.
|
jpicedt.graphic.model |
Document structure and graphic primitives.
|
jpicedt.graphic.toolkit |
Controller (document editing through UI actions)
|
jpicedt.graphic.view |
Document appearance.
|
jpicedt.ui |
Some classes and interfaces that help building concrete implementation of MDIManager's.
|
Modifier and Type | Method and Description |
---|---|
PicPoint |
PicPointExpression.getPicPoint()
Returns the parsed PicPoint
|
Modifier and Type | Method and Description |
---|---|
protected void |
EepicFormatter.appendDashLine(java.lang.StringBuffer buf,
PicPoint p1,
PicPoint p2,
double dash)
Append a \\dashline with the given points and dash value to the given buffer
|
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuffer |
LatexFormatter.arrowToLatexString(PicPoint loc,
PicPoint dir)
Create a string representation of an arrow in the LaTeX format using \\vector's.
|
java.lang.String |
LatexFormatter.lineToLatexString(PicPoint pt0,
PicPoint pt1,
Arrow leftArrow,
Arrow rightArrow,
double dash)
Computes a LaTeX string for a line segment, given its two end-points and
decoration parameters.
|
Modifier and Type | Class and Description |
---|---|
class |
PicVector
This class encapsulates a geometrical vector (ie it has absolutely no relation with java.util.Vector !).
|
Modifier and Type | Method and Description |
---|---|
static PicPoint[] |
PEToolKit.convertCubicBezierToQuad(java.awt.geom.Point2D p1,
java.awt.geom.Point2D pCtrl1,
java.awt.geom.Point2D pCtrl2,
java.awt.geom.Point2D p2)
Given four specification points of a cubic bezier spline, returns an array of five PicPoint's containing
the specification points of two quad bezier splines having the same geometry as the given curve.
|
static PicPoint[] |
PEToolKit.convertQuadBezierToCubic(java.awt.geom.Point2D p1,
java.awt.geom.Point2D pCtrl,
java.awt.geom.Point2D p2)
Given the three specification points of a quad bezier spline, returns an array of PicPoint's
containing the four specification points of a cubic spline having the same geometry.
|
static PicPoint |
PEToolKit.getDirector(double startPtX,
double startPtY,
double endPtX,
double endPtY,
PicPoint dest)
Deprecated.
|
static PicPoint |
PEToolKit.getDirector(PicPoint startPt,
PicPoint endPt)
Deprecated.
|
static PicPoint |
PEToolKit.getDirector(PicPoint startPt,
PicPoint endPt,
PicPoint dest)
Deprecated.
|
PicPoint |
PageFormat.getOrgPx(double zoom)
Return (x,y) double-precision pixel-coordinates of the (0,0) model origin.
|
static PicPoint |
PEToolKit.getOrthogonal(PicPoint startPt,
PicPoint endPt)
Deprecated.
|
PicPoint |
PECanvas.getSheetOrigin() |
PicPoint |
PicPoint.middle(PicPoint other)
Translate this point to the middle of the segment made of [this,other].
|
PicPoint |
PECanvas.modelToView(PicPoint src,
PicPoint dst)
Converts a point from the model-coordinate system to the pixel-coordinate system.
|
PicPoint |
PicPoint.project(PicPoint p1,
PicPoint p2)
Project this point onto the line joining p1 and p2.
|
PicPoint |
PicPoint.project(PicPoint p1,
PicPoint p2,
PicPoint dir)
Project this point onto the line joining p1 and p2.
|
PicPoint |
PicPoint.rotate(PicPoint ptOrg,
double angle)
Apply a rotation of center ptOrg and the given angle in radians to this PicPoint
Current implementation arranges for a very fast code if angle is Math.PI, Math.PI/2 or
-Math.PI/2.
|
PicPoint |
PicPoint.scale(double ptOrgX,
double ptOrgY,
double s)
Apply a scaling transform to this point.
|
PicPoint |
PicPoint.scale(double ptOrgX,
double ptOrgY,
double sx,
double sy)
Apply a scaling transform to this point.
|
PicPoint |
PicPoint.scale(PicPoint ptOrg,
double s)
Apply a scaling transform to this point.
|
PicPoint |
PicPoint.scale(PicPoint ptOrg,
double sx,
double sy)
Apply a scaling transform to this point.
|
PicPoint |
PicPoint.setCoordinates(PicPoint pt)
Set the coordinates of this point from the given point.
|
PicPoint |
PicPoint.shear(PicPoint ptOrg,
double shx,
double shy)
Apply a shearing transform of given parameters wrt to the given origin, to this PicPoint
|
PicPoint |
PicPoint.symmetry(PicPoint center)
Apply a central-symmetry wrt the given point
|
static PicPoint |
PicPoint.symmetry(PicPoint center,
PicPoint src)
Return a new PicPoint obtained by applying a central-symmetry with the given center to
the given src point.
|
PicPoint |
PicPoint.toMm(double unitLength)
Convert a PicPoint with coordinates expressed in the given unitlenth (expressed in mm),
to a new PicPoint in mm coordinates.
|
PicPoint |
PicPoint.toMm(double xUnit,
double yUnit)
Convert a PicPoint with coordinate expressed in the given unitlenths along X- and Y-axis (the latter being expressed in mm)
to a new PicPoint in mm coordinate.
|
PicPoint |
PicPoint.translate(double dx,
double dy)
translates this point by (dx,dy)
|
PicPoint |
PicPoint.translate(PicPoint p)
translates this point by (p.x, p.y), ie the given point is considered as a translation vector.
|
PicPoint |
PicPoint.translate(PicPoint p,
double a)
translates this point by a*(p.x, p.y), ie the given point is considered as a translation vector scaled
by the given double.
This method proves a useful when one wants to minimize object creation, since it avoids cloning a given PicPoint, scaling it by "a", then passing it to the translate(PicPoint) method. |
PicPoint |
PicPoint.translate(PicPoint p1,
PicPoint p2)
translates this point by (p2.x-p1.x, p2.y-p2.y), ie the given point is considered as a translation vector
build from the two given points.
|
PicPoint |
PicPoint.translate(PicPoint p1,
PicPoint p2,
double a)
translates this point by a*(p2.x-p1.x, p2.y-p2.y), ie the given point is considered as a translation vector
build from the two given points, then scaled by the given double.
|
PicPoint |
PECanvas.view2Model(PicPoint src,
PicPoint dst)
Converts a point from the pixel-coordinate system to the model-coordinate system.
|
Modifier and Type | Method and Description |
---|---|
static PicVector |
PEToolKit.computeTangentToPath(java.awt.Shape s,
PicPoint pt,
double maxDist)
Returns the tangent to the given path, computed at
the path-point which is closest to the given point "pt" than the given maximum distance
Return null otherwise (ie if pt is too far from the given shape).
|
protected void |
PECanvas.fireZoomUpdate(double oldZoom,
double newZoom,
PicPoint ptClick)
Notify all listeners that have registered interest for notification on this event type.
|
static PicPoint |
PEToolKit.getDirector(double startPtX,
double startPtY,
double endPtX,
double endPtY,
PicPoint dest)
Deprecated.
|
static PicPoint |
PEToolKit.getDirector(PicPoint startPt,
PicPoint endPt)
Deprecated.
|
static PicVector |
PicVector.getDirector(PicPoint startPt,
PicPoint endPt)
Return a unitary vector pointing from startPt to endPt
|
static PicPoint |
PEToolKit.getDirector(PicPoint startPt,
PicPoint endPt,
PicPoint dest)
Deprecated.
|
static PicVector |
PicVector.getDirector(PicPoint startPt,
PicPoint endPt,
PicVector dest)
Return a unitary vector pointing from startPt to endPt ; if dest is non-null, it's filled with the result
and returned for convenience ; otherwise, a new PicPoint gets allocated.
|
static PicPoint |
PEToolKit.getOrthogonal(PicPoint startPt,
PicPoint endPt)
Deprecated.
|
static PicVector |
PicVector.getOrthogonal(PicPoint startPt,
PicPoint endPt)
Return a UNITARY vector orthogonal to the vector pointing from startPt to endPt and
built by rotating this vector CCW.
|
PicPoint |
PicPoint.middle(PicPoint other)
Translate this point to the middle of the segment made of [this,other].
|
PicPoint |
PECanvas.modelToView(PicPoint src,
PicPoint dst)
Converts a point from the model-coordinate system to the pixel-coordinate system.
|
PicPoint |
PicPoint.project(PicPoint p1,
PicPoint p2)
Project this point onto the line joining p1 and p2.
|
PicPoint |
PicPoint.project(PicPoint p1,
PicPoint p2,
PicPoint dir)
Project this point onto the line joining p1 and p2.
|
PicPoint |
PicPoint.rotate(PicPoint ptOrg,
double angle)
Apply a rotation of center ptOrg and the given angle in radians to this PicPoint
Current implementation arranges for a very fast code if angle is Math.PI, Math.PI/2 or
-Math.PI/2.
|
PicPoint |
PicPoint.scale(PicPoint ptOrg,
double s)
Apply a scaling transform to this point.
|
PicPoint |
PicPoint.scale(PicPoint ptOrg,
double sx,
double sy)
Apply a scaling transform to this point.
|
PicPoint |
PicPoint.setCoordinates(PicPoint pt)
Set the coordinates of this point from the given point.
|
void |
PECanvas.setZoomFactor(double zoom,
PicPoint ptClick)
sets the current zoom factor to the given double,
then updates various properties (model <-> view transforms, dimension, preferredSize...), finally,
sources a ZoomEvent to give a chance to receiver to update their state accordingly (this may
be used e.g.
|
PicPoint |
PicPoint.shear(PicPoint ptOrg,
double shx,
double shy)
Apply a shearing transform of given parameters wrt to the given origin, to this PicPoint
|
PicPoint |
PicPoint.symmetry(PicPoint center)
Apply a central-symmetry wrt the given point
|
static PicPoint |
PicPoint.symmetry(PicPoint center,
PicPoint src)
Return a new PicPoint obtained by applying a central-symmetry with the given center to
the given src point.
|
static int |
PEToolKit.testDistanceToPath(java.awt.Shape s,
PicPoint pt,
double maxDist)
Return a positive integer if the given point "pt" lies closer to the given shape path (= stroke)
than the given maximum distance ; this integer indicates which segment/quad/cubic of the path,
starting from 0 (ie according to getPathIterator numbering scheme),
lies at the closest distance from "pt" ; -1 otherwise.
|
PicPoint |
PicPoint.translate(PicPoint p)
translates this point by (p.x, p.y), ie the given point is considered as a translation vector.
|
PicPoint |
PicPoint.translate(PicPoint p,
double a)
translates this point by a*(p.x, p.y), ie the given point is considered as a translation vector scaled
by the given double.
This method proves a useful when one wants to minimize object creation, since it avoids cloning a given PicPoint, scaling it by "a", then passing it to the translate(PicPoint) method. |
PicPoint |
PicPoint.translate(PicPoint p1,
PicPoint p2)
translates this point by (p2.x-p1.x, p2.y-p2.y), ie the given point is considered as a translation vector
build from the two given points.
|
PicPoint |
PicPoint.translate(PicPoint p1,
PicPoint p2,
double a)
translates this point by a*(p2.x-p1.x, p2.y-p2.y), ie the given point is considered as a translation vector
build from the two given points, then scaled by the given double.
|
PicPoint |
PECanvas.view2Model(PicPoint src,
PicPoint dst)
Converts a point from the pixel-coordinate system to the model-coordinate system.
|
Modifier and Type | Method and Description |
---|---|
PicPoint |
ZoomEvent.getCenterPoint()
Return the coordinates of the point that was at the center of the canvas before the zoom changed.
|
PicPoint |
PEMouseEvent.getPicPoint()
Return the coordinates of the mouse click point in model-coordinate ; returned value is NOT
guaranteed to remain unchaged over time ! Make a copy if you need an immutable value
(e.g.
|
Constructor and Description |
---|
PEMouseEvent(java.awt.event.MouseEvent awtEvent,
PECanvas source,
PicPoint pt) |
ZoomEvent(PECanvas source,
double oldZoom,
double newZoom,
PicPoint ptCenter)
a new ZoomEvent sourced from the given PECanvas
|
Modifier and Type | Method and Description |
---|---|
PicPoint |
Grid.nearestNeighbour(PicPoint srcPt,
PicPoint dstPt)
Compute the nearest-neighbour of the given src point on this grid, using the current snap-step value,
and store the result in dst.
|
Modifier and Type | Method and Description |
---|---|
PicPoint |
Grid.nearestNeighbour(PicPoint srcPt,
PicPoint dstPt)
Compute the nearest-neighbour of the given src point on this grid, using the current snap-step value,
and store the result in dst.
|
Modifier and Type | Method and Description |
---|---|
protected void |
XmlAttributeSet.putNameValuePair(java.lang.Object name,
PicPoint pt)
Given attribute name and value, append a name/value entry to the given map
|
protected void |
XmlAttributeSet.putNameValuePair(java.lang.Object name,
PicPoint[] values)
Given attribute name and an array of PicPoint's, append a name/value entry to the given map.
|
Modifier and Type | Method and Description |
---|---|
PicPoint |
PicParallelogram.getCenter(PicPoint src)
Return the parallelogram's centre
|
protected PicPoint |
PicCircleFrom3Points.getControlPoint(int i)
Returns a reference to the ith control-point in the
controlPts list. |
PicPoint |
PicNodeConnection.getEndPointA(PicPoint pt)
Returns the coordinates of the edge's end-point at node A
|
PicPoint |
PicNodeConnection.getEndPointB(PicPoint pt)
Returns the coordinates of the edge's end-point at node B
|
PicPoint[] |
PicPsCurve.getFinalControlCurve()
Returns the 4 Bezier points of the final prolongation of the PsCurve.
|
PicPoint[] |
PicPsCurve.getInitialControlCurve()
Returns the 4 Bezier points of the initial prolongation of the PsCurve.
|
PicPoint |
DefaultLeafElement.getPoint(int numPoint)
Convenience call to getPoint(numPoint,null), i.e., a new Point is allocated on the fly.
|
PicPoint |
BranchElement.getPoint(int numPoint,
PicPoint src)
Return the user-controlled point having the given index.
|
PicPoint |
DefaultLeafElement.getPoint(int numPoint,
PicPoint src)
Return the user-controlled point having the given index.
|
PicPoint |
Drawing.RootElement.getPoint(int numPoint,
PicPoint src)
return null
|
PicPoint |
Element.getPoint(int index,
PicPoint src)
Return the user-controlled point having the given index.
|
PicPoint |
PicCircleFrom3Points.getPoint(int numPoint,
PicPoint src)
Get the coordinate of the point indexed by "numPoint" to the given value.
|
PicPoint |
PicEllipse.getPoint(int numPoint,
PicPoint src)
Return the user-controlled point having the given index.
|
PicPoint |
PicNodeConnection.getPoint(int index,
PicPoint src) |
PicPoint |
PicParallelogram.getPoint(int numPoint,
PicPoint src)
Return the user-controlled point having the given index.
|
PicPoint |
PicPsCurve.getPoint(int numPoint,
PicPoint src)
Return the user-controlled point (ie a polygon point, not a bezier point) having the given index.
|
PicPoint |
PicSmoothPolygon.getPoint(int numPoint,
PicPoint src)
Return the user-controlled point (ie a polygon point, not a bezier point) having the given index.
|
protected PicPoint |
PicPsCurve.getPolygonPoint(int numPoint)
Return a reference on the polygon point with the given index.
|
protected PicPoint |
PicSmoothPolygon.getPolygonPoint(int numPoint)
Return a reference on the polygon point with the given index.
|
protected PicPoint |
AbstractCurve.getSpecificationPoint(int index)
Returns a reference on the specification point with the given index.
|
protected PicPoint |
DefaultLeafElement.getSpecificationPoint(int index)
Return a reference on the specification point with the given index.
|
PicPoint |
DefaultLeafElement.getSpecificationPoint(int index,
PicPoint src)
Return the specification-point having the given index.
|
PicPoint |
PicEllipse.getTangentAtAngleEnd(PicVector pt)
Utility for computing arrow direction.
|
PicPoint |
PicEllipse.getTangentAtAngleStart(PicVector pt)
Utility for computing arrow direction.
|
PicPoint |
DefaultLeafElement.nodeConnectionOrigin(double dx,
double dy) |
PicPoint |
PicText.nodeConnectionOrigin(double dx,
double dy) |
PicPoint |
DefaultLeafElement.nodeReferencePoint() |
PicPoint |
PicText.nodeReferencePoint() |
Modifier and Type | Method and Description |
---|---|
void |
PicPsCurve.addPoint(int ptIndex,
PicPoint pt)
Inserts the specified point at the specified index.
|
void |
PicSmoothPolygon.addPoint(int ptIndex,
PicPoint pt)
Adds the given polygon point at the given position, shifting ensuing point indices to the right.
|
void |
PicSmoothPolygon.addPoint(int ptIndex,
PicPoint pt,
double smoothCoeff)
Adds the given polygon point at the given position, shifting ensuing point indices to the right.
|
abstract void |
AbstractCurve.addPoint(PicPoint pt)
Adds the given point to the end of this curve.
|
void |
PicMultiCurve.addPoint(PicPoint pt)
Adds a new subdivision point to the end of this curve.
|
void |
PicPsCurve.addPoint(PicPoint pt)
adds the given point at the end of this pscurve.
|
void |
PicSmoothPolygon.addPoint(PicPoint pt)
adds the given point at the end of this PicSmoothPolygon.
|
void |
PicSmoothPolygon.addPoint(PicPoint pt,
double smoothCoeff)
adds the given point with the given smoothness-coefficient at the end of this PicSmoothPolygon.
|
void |
AbstractCurve.curveTo(PicPoint ptCtrl1,
PicPoint ptCtrl2,
PicPoint ptEnd)
If this curve if OPEN and NON-EMPTY,
adds the given points (2 control points and an endpoint) to the end of the curve.
If the curve is closed, use splitSegment instead. |
void |
PicMultiCurve.curveTo(PicPoint ptCtrl1,
PicPoint ptCtrl2,
PicPoint ptEnd)
If this curve if OPEN and NON-EMPTY,
adds the given points (2 control points and an endpoint) to the end of the curve, then
fire a GEOMETRY_CHANGE event.
If the curve is closed, you should use splitSegment instead, since this method does nothing
in this case ;-) |
PicPoint |
PicParallelogram.getCenter(PicPoint src)
Return the parallelogram's centre
|
PicPoint |
PicNodeConnection.getEndPointA(PicPoint pt)
Returns the coordinates of the edge's end-point at node A
|
PicPoint |
PicNodeConnection.getEndPointB(PicPoint pt)
Returns the coordinates of the edge's end-point at node B
|
PicPoint |
BranchElement.getPoint(int numPoint,
PicPoint src)
Return the user-controlled point having the given index.
|
PicPoint |
DefaultLeafElement.getPoint(int numPoint,
PicPoint src)
Return the user-controlled point having the given index.
|
PicPoint |
Drawing.RootElement.getPoint(int numPoint,
PicPoint src)
return null
|
PicPoint |
Element.getPoint(int index,
PicPoint src)
Return the user-controlled point having the given index.
|
PicPoint |
PicCircleFrom3Points.getPoint(int numPoint,
PicPoint src)
Get the coordinate of the point indexed by "numPoint" to the given value.
|
PicPoint |
PicEllipse.getPoint(int numPoint,
PicPoint src)
Return the user-controlled point having the given index.
|
PicPoint |
PicNodeConnection.getPoint(int index,
PicPoint src) |
PicPoint |
PicParallelogram.getPoint(int numPoint,
PicPoint src)
Return the user-controlled point having the given index.
|
PicPoint |
PicPsCurve.getPoint(int numPoint,
PicPoint src)
Return the user-controlled point (ie a polygon point, not a bezier point) having the given index.
|
PicPoint |
PicSmoothPolygon.getPoint(int numPoint,
PicPoint src)
Return the user-controlled point (ie a polygon point, not a bezier point) having the given index.
|
PicPoint |
DefaultLeafElement.getSpecificationPoint(int index,
PicPoint src)
Return the specification-point having the given index.
|
void |
AbstractCurve.lineTo(PicPoint pt)
Adds a STRAIGHT segment to the end of this curve, i.e.
|
void |
Arrow.paint(java.awt.Graphics2D g,
double linewidth,
double locX,
double locY,
PicPoint dir)
Paints this arrow (this implementation does nothing)
|
void |
Arrow.paint(java.awt.Graphics2D g,
double linewidth,
PicPoint loc,
PicPoint dir)
Paints this arrow.
|
void |
BranchElement.rotate(PicPoint ptOrg,
double angle)
Rotate this Element by the given angle along the given point
|
void |
DefaultLeafElement.rotate(PicPoint ptOrg,
double angle)
Rotate this Element by the given angle along the given point
|
void |
Element.rotate(PicPoint ptOrg,
double angle)
Rotate this Element by the given angle along the given point
|
void |
PicCircleFrom3Points.rotate(PicPoint ptOrg,
double angle)
Rotate this Element by the given angle along the given point
|
void |
PicEllipse.rotate(PicPoint ptOrg,
double angle)
Rotate this Element by the given angle along the given point
|
void |
PicNodeConnection.rotate(PicPoint ptOrg,
double angle)
Rotate this Element by the given angle along the given point
|
void |
PicParallelogram.rotate(PicPoint ptOrg,
double angle)
Rotate this Element by the given angle along the given point
|
void |
PicPsCurve.rotate(PicPoint ptOrg,
double angle)
Rotate this Element by the given angle along the given point
|
void |
PicSmoothPolygon.rotate(PicPoint ptOrg,
double angle)
Rotate this Element by the given angle along the given point
|
void |
AbstractElement.scale(PicPoint ptOrg,
double sx,
double sy)
Scale this object by (sx,sy) using ptOrg as origin
sx and sy can be negative.
|
void |
BranchElement.scale(PicPoint ptOrg,
double sx,
double sy)
Scale children by (sx,sy) using ptOrg as origin ; sx and sy can be negative.
|
void |
Element.scale(PicPoint ptOrg,
double sx,
double sy)
Scale this object by (sx,sy) using ptOrg as origin
sx and sy may be negative.
|
protected void |
PicCircleFrom3Points.setControlPoint(int i,
PicPoint pt)
Set the coordinates of ith control-point from the given point.
|
void |
BranchElement.setPoint(int index,
PicPoint pt)
Deprecated.
use setPoint(int, PicPoint, EditPointConstraint) instead.
|
void |
DefaultLeafElement.setPoint(int index,
PicPoint pt)
Deprecated.
use setPoint(index,pt,constraint) instead
|
void |
Drawing.RootElement.setPoint(int numPoint,
PicPoint src)
Deprecated.
use setPoint(int, PicPoint, EditPointConstraint) instead
|
void |
Element.setPoint(int index,
PicPoint pt)
Deprecated.
Use setPoint(int, PicPoint, EditPointConstraint)
|
void |
PicNodeConnection.setPoint(int index,
PicPoint pt) |
void |
AbstractCurve.setPoint(int index,
PicPoint pt,
EditPointConstraint c)
Set the coordinates of the Bezier point with the given index to the given location,
but doesn't fire any DrawingEvent.
|
void |
BranchElement.setPoint(int numPoint,
PicPoint pt,
EditPointConstraint c)
Set the point indexed by "numPoint" to the given value.
|
void |
DefaultLeafElement.setPoint(int index,
PicPoint pt,
EditPointConstraint constraint)
Set the user-controlled point indexed by "index" to the given value, using the specified geometrical constraint.
|
void |
Drawing.RootElement.setPoint(int numPoint,
PicPoint src,
EditPointConstraint c)
does nothing
|
void |
Element.setPoint(int index,
PicPoint pt,
EditPointConstraint constraint)
Set the user-controlled point indexed by "index" to the given value, using the specified geometrical constraint.
|
void |
PicCircleFrom3Points.setPoint(int numPoint,
PicPoint pt,
EditPointConstraint c)
Set the coordinate of the point indexed by "numPoint" to the given value.
|
void |
PicEllipse.setPoint(int numPoint,
PicPoint pt,
EditPointConstraint constraint)
Set the coordinate of the point indexed by "numPoint" to the given value.
|
void |
PicGroup.setPoint(int numPoint,
PicPoint ptNew,
EditPointConstraint constraint)
Set the point numbered by "numPoint" to the "pt" value, and scales inward object accordingly
|
void |
PicMultiCurve.setPoint(int index,
PicPoint pt,
EditPointConstraint constraint)
Set the coordinates of a Bezier point having the given index to the given location,
possibly moving other control-points according to the given constraint.
|
void |
PicNodeConnection.setPoint(int index,
PicPoint pt,
EditPointConstraint constraint) |
void |
PicParallelogram.setPoint(int numPoint,
PicPoint pt,
EditPointConstraint constraint)
Set the coordinate of the control-point indexed by "numPoint" to the given value.
|
void |
PicPsCurve.setPoint(int index,
PicPoint pt,
EditPointConstraint constraint)
Set the user-controlled point with the given index to the given value.
|
void |
PicSmoothPolygon.setPoint(int index,
PicPoint pt,
EditPointConstraint constraint)
Set the user-controlled point with the given index to the given value.
|
void |
PicText.setPoint(int index,
PicPoint pt,
EditPointConstraint constraint) |
protected void |
DefaultLeafElement.setSpecificationPoint(int index,
PicPoint pt)
set the specification point with the given index to the given location.
|
void |
BranchElement.shear(PicPoint ptOrg,
double shx,
double shy)
Shear this Element by the given params wrt to the given origin
|
void |
DefaultLeafElement.shear(PicPoint ptOrg,
double shx,
double shy)
Shear this Element by the given params wrt to the given origin
|
void |
Element.shear(PicPoint ptOrg,
double shx,
double shy)
Shear this Element by the given params wrt to the given origin
|
void |
PicCircleFrom3Points.shear(PicPoint ptOrg,
double shx,
double shy)
Shear this Element by the given params wrt to the given origin
|
void |
PicEllipse.shear(PicPoint ptOrg,
double shx,
double shy)
Shear this Element by the given params wrt to the given origin
|
void |
PicNodeConnection.shear(PicPoint ptOrg,
double shx,
double shy)
Shear this Element by the given params wrt to the given origin
|
void |
PicParallelogram.shear(PicPoint ptOrg,
double shx,
double shy)
Shear this Element by the given params wrt to the given origin
|
void |
PicPsCurve.shear(PicPoint ptOrg,
double shx,
double shy)
Shear this Element by the given params wrt to the given origin
|
void |
PicSmoothPolygon.shear(PicPoint ptOrg,
double shx,
double shy)
Shear this Element by the given params wrt to the given origin
|
abstract int |
AbstractCurve.splitSegment(int index,
PicPoint pt)
Split the segment having the given index.
|
int |
PicMultiCurve.splitSegment(int seg_idx,
PicPoint pt)
Adds a new point to a (maybe curved) segment then fires a changed-update.
|
int |
PicPsCurve.splitSegment(int segIdx,
PicPoint pt)
Split the given polygon segment (starting from 0),
by inserting a new polygon point at the appropriate position.
|
int |
PicSmoothPolygon.splitSegment(int segIdx,
PicPoint pt)
Split the given polygon segment (starting from 0),
by inserting a new polygon point at the appropriate position.
|
int |
PicSmoothPolygon.splitSegment(int segIdx,
PicPoint pt,
double smoothCoeff)
Split the given polygon segment (starting from 0),
by inserting a new polygon point at the appropriate position.
|
int |
AbstractCurve.splitSegment(int seg,
PicPoint ptleft,
PicPoint pt,
PicPoint ptright)
Split a segment (either straight or curved) at a given point using two additionnal control points given
as parameters.
|
protected PicVector |
PicParallelogram.toParalleloBasisCoordinates(PicPoint ptOrg,
PicPoint ptSrc,
PicVector ptDest)
Compute the contravariant coordinate of the given point "ptSrc" along the "l2r" and "b2t" vectors of
the parallelogram's basis, the origin of the basis being set at "ptOrg"
This simply reduces to a contravariant change of coordinates from the cartesian basis to the
(non-orthonormalized) parallelogram basis.
To wind up : denoting OM = vec(ptOrg -> ptSrc), (e1,e2) the cartesian basis (ie std model-coordinates), and (x',y') the new coords in the (l2r,b2t) basis, yields : OM = x e1 + y e2 = x' l2r + y' b2t. |
Constructor and Description |
---|
PicCircleFrom3Points(PicPoint pt1,
PicPoint pt2,
PicPoint pt3,
boolean plain,
int closure,
PicAttributeSet set)
Create a new arc or circle whose geometry is specified by the 3 given points, and
with the given attribute set.
|
PicCircleFrom3Points(PicPoint pt1,
PicPoint pt2,
PicPoint pt3,
PicAttributeSet set)
Create a new circle whose geometry is specificed by the the 3 given points, and
with the given attribute set.
|
PicEllipse(PicPoint p1,
PicPoint p2,
PicPoint p3,
int closure)
Create a new PicEllipse object using the 3 given points as 3 consecutive points of the
surrounding parallelogram, and a default attribute set.
|
PicEllipse(PicPoint p1,
PicPoint p2,
PicPoint p3,
int closure,
PicAttributeSet set)
Create a new PicEllipse object using the 3 given points as 3 consecutive points of the
surrounding parallelogram, and the given attribute set.
|
PicMultiCurve(PicPoint pt1)
Create a new open multi curve reduced to the given point, and a default attribute set.
|
PicMultiCurve(PicPoint[] pts,
PicAttributeSet set)
Create a new multi-curve filled with the given array of PicPoint's, each
segment being a curved Bezier segment.
|
PicMultiCurve(PicPoint pt1,
PicAttributeSet set)
Create a new open multi curve reduced to the given point, and the given attribute set
|
PicMultiCurve(PicPoint pt1,
PicPoint pt2)
Create a new line, i.e.
|
PicMultiCurve(PicPoint pt1,
PicPoint pt2,
PicAttributeSet set)
Create a new straight open multi curve with the two given points, and the given attribute set.
|
PicMultiCurve(PicPoint pt1,
PicPoint ctrl1,
PicPoint ctrl2,
PicPoint pt2)
Create an open single cubic bezier curve from the four given points, and a default attribute set
|
PicParallelogram(PicPoint pt,
PicAttributeSet set)
Create a new PicParallelogram reduced to a point located at the given position
|
PicParallelogram(PicPoint pt1,
PicPoint pt3)
Create a new rectangle with axes parallel to X- and Y-axes, using the 2 given points to build the diagonal,
and a default attribute set.
|
PicParallelogram(PicPoint pt1,
PicPoint pt2,
PicPoint pt3)
Create a new PicParallelogram object using the 3 given points as 3 consecutive points of the parallelogram,
and a default attribute set.
|
PicParallelogram(PicPoint pt1,
PicPoint pt2,
PicPoint pt3,
PicAttributeSet set)
Create a new PicParallelogram object using the 3 given points as 3 consecutive points of the parallelogram.
|
PicPsCurve(PicPoint[] polyPts,
boolean closed,
double a,
double b,
double c,
PicAttributeSet set)
Create a new pscurve initialized from the given array of PicPoint's.
|
PicPsCurve(PicPoint[] polygonPts,
boolean closed,
PicAttributeSet set)
Create a new pscurve initialized from the given array of PicPoint's, using the
default curvature values.
|
PicSmoothPolygon(PicPoint[] polygonPts,
boolean closed,
double[] smoothCoeffs,
PicAttributeSet set)
Create a new smooth polygon initialized from the given array of PicPoint's, using the
given array of smoothness values.
|
PicSmoothPolygon(PicPoint[] polyPts,
boolean closed,
double smoothCoeff,
PicAttributeSet set)
Create a new smooth polygon initialized from the given array of PicPoint's.
|
PicSmoothPolygon(PicPoint[] polygonPts,
boolean closed,
PicAttributeSet set)
Create a new smooth polygon initialized from the given array of PicPoint's, using the
default smoothness value.
|
PicText(PicPoint ptA,
PicAttributeSet set)
Creates a PicText object with the following default values :
empty string, frame and alignment according to the attribute set |
PicText(PicPoint ptA,
java.lang.String textString,
PicAttributeSet set)
Create a new PicText object with the whole bunch of parameters !
|
TextEditable(java.lang.String textString,
PicPoint anchorPoint)
Construct a new TextEditable with the given content and a default attribute set
|
TextEditable(java.lang.String textString,
PicPoint anchorPoint,
PicAttributeSet set)
Construct a new TextEditable with the given content and attribute set
|
Constructor and Description |
---|
_MoveElementTransform(BranchElement target,
int anchorChildIndex,
PicPoint clickPt,
Grid grid) |
_MoveElementTransform(Element target,
PicPoint clickPt,
Grid grid) |
MoveElementTransform(BranchElement target,
int anchorChildIndex,
PicPoint clickPt,
Grid grid) |
MoveElementTransform(Element target,
PicPoint clickPt,
Grid grid) |
Modifier and Type | Field and Description |
---|---|
protected PicPoint |
DefaultViewFactory.AbstractCurveView.arrow1Loc |
protected PicPoint |
DefaultViewFactory.PicNodeConnectionView.arrow1Loc |
protected PicPoint |
DefaultViewFactory.AbstractCurveView.arrow2Loc |
protected PicPoint |
DefaultViewFactory.PicNodeConnectionView.arrow2Loc |
protected PicPoint |
DefaultViewFactory.EllipseView.arrowEndDir |
protected PicPoint |
DefaultViewFactory.EllipseView.arrowStartDir |
protected PicPoint |
DefaultViewFactory.EllipseView.ptAngleEnd |
protected PicPoint |
DefaultViewFactory.EllipseView.ptAngleStart |
protected PicPoint |
DefaultHighlighterFactory.DefaultHighlighter.ptBuffer
buffer used by paint only ; may be safely used by subclasses as well
|
Modifier and Type | Method and Description |
---|---|
void |
PEDrawingBoard.StatusBar.showCoord(PicPoint pt)
Displays current mouse coordinates
|
Submit a bug : syd@jpicedt.org