PMA.UI Documentation by Pathomation

AssociatedImage

PMA.UI.View.Controls AssociatedImage

Displays an interface with an associated image for a slide, barcode, macro or label.

Constructor

new AssociatedImage(opt_options)

Source:
Parameters:
Name Type Description
opt_options object Options to initialize
Properties
Name Type Attributes Description
pmaViewport Viewport <optional>
Viewport instance this control belongs to
rotation number <optional>
The initial rotation for this associated image
collapsed boolean <optional>
Whether the control starts collapsed
imageType "barcode" | "macro" | "label" <optional>
The type of associated image to show
tipLabel string <optional>
The label of the button
stateManager Object <optional>
The state manager to keep settings in sync

Methods

getCollapsed() → {boolean}

Source:
Gets the collapsed state of the control
Returns:
True if the control is currently collapsed
Type
boolean

getRotation(rotation)

Source:
Gets the current rotation for this image
Parameters:
Name Type Description
rotation Number The current rotation for this in degrees

setCollapsed(collapsed)

Source:
Sets the collapsed state of the control
Parameters:
Name Type Description
collapsed boolean True to collapse the control, otherwise false

setRotation()

Source:
Sets the rotation for this image