MixedInk
A mixed ink swatch.
Go to Property Listing | Method Listing
Methods:
addEventListener, duplicate, extractLabel, getElements, insertLabel, merge, remove, removeEventListener, toSource, toSpecifier
Objects:
Boolean, ColorGroup, ColorModel, ColorSpace, EventListeners, Events, Ink, MixedInkGroup, Number, Object, String
Hierarchy:
Superclass: Swatch
Class: MixedInk
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
The mixed ink group that a mixed ink swatch is based on. |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
The unique ID of the MixedInk. |
||
readonly |
The index of the MixedInk within its containing object. |
||
readonly |
The component inks. |
||
read/write |
The array of tint percentages for inks in the ink list. Note: Specify a value for each ink. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
read/write |
A property that can be set to any string. |
||
read/write |
The color model. |
||
read/write |
The name of the MixedInk. |
||
readonly |
The parent of the MixedInk (a Application or Document). |
||
readonly |
The color group that a swatch belongs to |
||
read/write |
A property that allows setting of several properties at the same time. |
||
read/write |
The color space. |
Method Listing
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
The event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
MixedInk duplicate ()
Duplicates the MixedInk.
String extractLabel (key:String)
Gets the label value associated with the specified key.
Parameter |
Type |
Description |
---|---|---|
key |
The key. |
MixedInk getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
Swatch merge (with:Array of Varies Swatches Swatch String)
Merges the specified swatches with the swatch.
Parameter |
Type |
Description |
---|---|---|
with |
Array of Swatches |
The swatches to merge. Can accept: Array of Swatches, Swatch or String. |
undefined remove (replacingWith:Swatch)
Deletes the swatch.
Parameter |
Type |
Description |
---|---|---|
replacingWith |
The swatch to apply in place of the deleted swatch. (Optional) |
Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the MixedInk.
String toSpecifier ()
Retrieves the object specifier.
Object of
Event.parent
EventListener.parent
MutationEvent.parent
GradientStop.stopColor