Ellié Computing Home Page
My Shopping Cart

Your shopping cart is empty

Display Cart

Call us at +1 586 62 ELLIE / +1 586 62 35543 Office Opened
sales@elliecomputing.com - Contact us


BinaryDocument.ZoneOfInterest object

 

 

Prototype for BinaryDocument.ZoneOfInterest objects.

Syntax

You cannot create zones of interest. To access them inside a document you can do this:

if (doc instanceof BinaryDocument)
{
    for (var idxc=0; idxc<doc.zones_of_interest.length; ++idxc)
    {
          var my_conflict = doc.zones_of_interest[idxc];
        // do whatever you like!
    }
}

Parameters

 none.

Property Of

none.

Implemented In

ECMerge 2.4

Description

BinaryDocument.ZoneOfInterest objects give you information about which bytes of the contents are covered by a zone of interest.
A zone of interest corresponds to a band of binary texts which fits naturally in front of each other.

Properties

Property Description
conflicting Boolean. True if the zone cannot be solved automatically.

Methods

bytes 

Examples

Example 1.

Logs the start position in the text of the left side for the first zone of interest:

log (current_frame.coordinator.document.zones_of_interest[0].bytes('left').start);

See Also 

  BinaryDocument object

 

Method bytes

Syntax

function bytes ( side )
returns a LinearRange object

Parameters

side. Side string. Side for which the range of lines is requested

Method Of

BinaryDocument.ZoneOfInterest object.

Implemented In

ECMerge 2.4

Description

Returns the range of bytes which are covered by the conflict, in a given side.

Examples

Example 1.

Navigates to the start of first zone of interest in the current view:

var doc = current_frame.coordinator.document;
var side = current_frame.coordinator.current_view.role;
var content = doc.contents[side];
current_frame.coordinator.current_view.navigate ( content.position_from_line (doc.zones_of_interest[0].bytes(side).start) );

See Also 

BinaryDocument.ZoneOfInterest object, LinearRange object