Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Tooltip

Represents the content of a tooltip overlay.

Hierarchy

  • Tooltip

Implements

  • Serializable

Index

Constructors

constructor

  • Initializes a new instance of the Tooltip class.

    Parameters

    • Optional content: string | MeasurementValue | InspectionPlanItem | Measurement

      The primary content of the tooltip. When specifying a measurement value or an inspection plan item, PiWeb will generate a generic tooltip for the entity.

    Returns Tooltip

Methods

addCharacteristicInformations

  • Generates a generic tooltip for the specified inspection plan item and adds the lines to the current tooltip.

    Parameters

    Returns void

addCollapsableText

  • addCollapsableText(text: string, className: string): void
  • Adds a new collapsable line to the tooltip.

    Parameters

    • text: string

      The content of the tooltip line.

    • className: string

      The group to which the line belongs.

    Returns void

addDefectInformations

  • Generates a generic tooltip for the specified defect and adds the lines to the current tooltip.

    version

    1.3

    Parameters

    • defect: Defect

      The defect.

    • Optional image: Bitmap

      The image on which the defect is displayed.

    • Optional direction: VolumeDirection

      The direction in which the defect is projected onto the image.

    Returns void

addDrawingInformations

  • addDrawingInformations(name: string, drawing: Drawing): void
  • Generates a tooltip for the specified drawing and adds the lines to the current tooltip.

    version

    1.3

    Parameters

    • name: string

      The title of the drawing.

    • drawing: Drawing

    Returns void

addFallbackText

  • addFallbackText(text: string): void
  • Adds a fallback text line to the tooltip.

    Parameters

    • text: string

      Content of the fallback text line.

    Returns void

addImageInformations

  • addImageInformations(name: string, image: Bitmap): void
  • Generates a tooltip for the specified image and adds the lines to the current tooltip.

    version

    1.3

    Parameters

    • name: string

      The title of the image.

    • image: Bitmap

      The image.

    Returns void

addMeasurementInformations

  • addMeasurementInformations(measurement: Measurement): void
  • Generates a generic tooltip for the specified measurement and adds the lines to the current tooltip.

    version

    1.3

    Parameters

    Returns void

addMeasurementValueInformations

  • Generates a generic tooltip for the specified measurement value and adds the lines to the current tooltip.

    Parameters

    Returns void

addPartInformations

  • Generates a generic tooltip for the specified inspection plan item and adds the lines to the current tooltip.

    version

    1.3

    Parameters

    Returns void

addText

  • addText(text: string): void
  • Adds a new line to the tooltip.

    Parameters

    • text: string

      The content of the tooltip line.

    Returns void

Private serialize

  • serialize(target: BufferWriter): void
  • Parameters

    • target: BufferWriter

    Returns void

Generated using TypeDoc