filenet.vw.api

Class VWTextAnnotationDefinition

  • java.lang.Object
    • filenet.vw.api.VWTextAnnotationDefinition
    • Method Detail

      • getId

        public int getId()
                  throws VWException
        Gets the value of the id property associated with this annotation.
        Returns:
        An integer identifying the id.
        Throws:
        VWException
      • getLocation

        public java.awt.Point getLocation()
                                   throws VWException
        Gets the value of the location property associated with this annotation.
        Returns:
        A Point object identifying the location of this annotation; null if there is no value set.
        Throws:
        VWException
      • setLocation

        public void setLocation(java.awt.Point location)
                         throws VWException
        Sets the value of the location property associated with this annotation.
        Parameters:
        location - A Point object specifying the location of this annotation.
        Throws:
        VWException
      • getMessage

        public java.lang.String getMessage()
                                    throws VWException
        Gets the value of the message property associated with this annotation.
        Returns:
        A String containing the message.
        Throws:
        VWException
      • setMessage

        public void setMessage(java.lang.String message)
                        throws VWException
        Sets the value of the message property associated with this annotation.
        Parameters:
        message - A String containing he message to set.
        Throws:
        VWException
      • getName

        public java.lang.String getName()
                                 throws VWException
        Gets the value of the name property associated with this annotation.
        Returns:
        A String containing the name.
        Throws:
        VWException
      • setName

        public void setName(java.lang.String name)
                     throws VWException
        Sets the value of the name property associated with this annotation.
        Parameters:
        name - A String containing the name to set.
        Throws:
        VWException
      • toString

        public java.lang.String toString()
        Gets the String representation of this instance.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A String containing the id and the message text.
      • validate

        public void validate(java.util.Vector EDefVector)
                      throws VWException
        Validates this instance, appending any validation errors found to the specified Vector. Although this method does not return a value, EDefVector will be updated to contain any validation errors found.
        Parameters:
        EDefVector - A Vector to which will be added a VWValidationError object for each validation error found. This can be null; in this case, a new Vector is used.

        Note: Because validate methods having EDefVector in the signature also occur on other classes, the existing Vector can contain validation errors from previous validation calls.

        Throws:
        VWException - Thrown if an error occurs during the validation.
        See Also:
        VWValidationError
      • deleteAllAssociations

        public void deleteAllAssociations()
                                   throws VWException
        Delete all associations from this text annotation.
        Throws:
        VWException
      • getDimension

        public java.awt.Dimension getDimension()
        Gets the display dimension attribute of this annotation. This is persisted to a PEP file, and may be used by the UI when displaying this text annotation.
        Returns:
        A Dimension object for the dimension attribute of this annotation, or null if undefined.
      • setDimension

        public void setDimension(java.awt.Dimension dim)
        Sets the display dimension attribute of this annotation. This is persisted to a PEP file, and may be used by the UI when displaying this text annotation. This can be null.
        Parameters:
        dim - A Dimension object for the dimension to set, or null if unused.
      • isMinimized

        public boolean isMinimized()
        Indicates whether this annotation is displayed as minimized. This is persisted to a PEP file, and may be used by the UI when displaying this text annotation.
        Returns:
        A boolean value of true if this annotation is minimized; otherwise false.
      • setMinimized

        public void setMinimized(boolean minimized)
        Enables the minimized display of this annotation. This is persisted to a PEP file, and may be used by the UI when displaying this text annotation.
        Parameters:
        minimized - A boolean value of true if this annotation is to be minimized; otherwise false.
      • getBgColor

        public java.awt.Color getBgColor()
        Gets the color display attributes of this annotation. This is persisted to a PEP file, and may be used by the UI when displaying this text annotation.
        Returns:
        A Color object specifying the color attribute for this annotation, or null if undefined.
      • setBgColor

        public void setBgColor(java.awt.Color color)
        Sets the color display attribute of this annotation. This is persisted to a PEP file, and may be used by the UI when displaying this text annotation. This can be null.
        Parameters:
        color - A Color object specifying the color attribute for this annotation, or null if unused.

© Copyright IBM Corporation 2002, 2019. All rights reserved.