JAVA Tech VERSION 3.0 Marine Radio User Manual


 
54
5454
54
Labels
initializeLabels(numLabels)
setLabel(pageLabel, pageLabelColor, thumbLabel, thumbLabelColor,
labelNum)
useLabels()
clearLabels()
E.g.
ViewONE.initializeLabels(3);
ViewONE.setLabel(“Page label 1”, null, “thumb 1”, null, 0);
ViewONE.setLabel(“Page label 2”, null, “thumb 2”, null, 1);
ViewONE.setLabel(“Page label 3”, “223,223,255”, “thumb 3”, “255,223,223”, 2);
ViewONE.useLabels();
ViewONE.openFile(“mydocument.tif”, 1);
This method group specifies the number files (labels) in a list, then specifies each label.
Each one representing a successive page of the document and specifying the label to be
displayed for the full-page area and the corresponding thumbnail. It then sets the labels in
use by calling the useLabels() method.
Label colors are specified using the standard RGB values and where no color is specified
(i.e. null) then the default color is white.
Notes:
The label array begins at array element zero.
Labels will remain visible until the document is closed or the clearLabels() method is
called.
If you do not want to define a label for either the full-page area or a thumbnail then specify
the label as a null string e.g…
ViewONE.setLabel(null, null, “thumb 1”, null, 0);
This example sets up a label for the thumbnail for the first page.
Method
Group: