Adobe InCopy CS6 (8.0) Object Model JS: PathPoint

InCopy CS6

Class

PathPoint

 A path point of a path.

QuickLinks

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Hierarchy

Path
PathPoint
Event | EventListener | MutationEvent

Properties

PropertyTypeAccessDescription
anchor Array of Measurement Unit (Number or String) readonlyThe location of the path point on the page, in the format [x, y].
eventListenersEventListeners EventListener readonlyA collection of event listeners.
eventsEvents Event readonlyA collection of events.
indexnumber readonlyThe index of the PathPoint within its containing object.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
leftDirection Array of Measurement Unit (Number or String) readonlyThe left-direction point, which controls the curve of the line segment preceding the path point on the path, in the format [x, y].
parentPath readonlyThe parent of the PathPoint (a Path).
pointTypePointType:
PointType.SMOOTH
PointType.CORNER
PointType.PLAIN
PointType.SYMMETRICAL
readonlyThe path point type.
propertiesObject r/wA property that allows setting of several properties at the same time.
rightDirection Array of Measurement Unit (Number or String) readonlyThe right-direction point, which controls the curve of the line segment following the path point on the path, in the format [x, y].

Methods

Instances

EventListener addEventListener (eventType: string, handler: varies[, captures: bool=false])
Adds an event listener.

ParameterTypeDescription
eventTypestringThe event type.
handlerFile
JavaScript Function
The event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

Array of PathPoint getElements ()
Resolves the object specifier, creating an array of object references.

bool removeEventListener (eventType: string, handler: varies[, captures: bool=false])
Removes the event listener.

ParameterTypeDescription
eventTypestringThe registered event type.
handlerFile
JavaScript Function
The registered event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

string toSource ()
Generates a string which, if executed, will return the PathPoint.

string toSpecifier ()
Retrieves the object specifier.

Used in:

PathPoint PathPoints.nextItem (obj: PathPoint)

PathPoint PathPoints.previousItem (obj: PathPoint)

Return

Array of PathPoint PathPoint.getElements ()

PathPoint PathPoints.[] (index: number)

PathPoint PathPoints.anyItem ()

Array of PathPoint PathPoints.everyItem ()

PathPoint PathPoints.firstItem ()

PathPoint PathPoints.item (index: varies)

Array of PathPoint PathPoints.itemByRange (from: varies, to: varies)

PathPoint PathPoints.lastItem ()

PathPoint PathPoints.middleItem ()

PathPoint PathPoints.nextItem (obj: PathPoint)

PathPoint PathPoints.previousItem (obj: PathPoint)

Jongware, 29-Apr-2012 v3.0.3iContents :: Index