Class ItemAbstract

Represents an Item object. This is an abstract class.

Implements

Hierarchy

Implements

Constructors

  • Returns Item

Properties

fillStyle: string

The color used to fill the item

flow: Flow = null

A reference of the AddFlow component containing this item

font: string

The font used to display the text of the item

gradientFillStyle: string

The color used to create a gradient with the fillStyle color

isExcludedFromLayout: boolean

Determines whether the item is excluded by a layout algorithm

Default

false
isHidden: boolean

Determines whether the item is hidden

Default

false
isHitTestVisible: boolean

Determines whether the item can be hit tested

Default

true
isSelectable: boolean

Determines whether the item is selectable by clicking on it with the mouse or unselectable (readonly or inactive)

Default

true
isShadowed: boolean

Determines whether a shadow is displayed for the item

Default

false
lineWidth: number

The thickness of the lines used to draw the item

Default

1
opacity: number

The opacity of the item

Default

1
strokeStyle: string

The color used to draw the item

tag: any

Sets or returns a tag associated with the item.

Default

null
text: string

Sets or returns the text associated with the item. If the item is a node, the text is displayed inside the node. It is a multiline display. The text is wrapped automatically inside the node. Linefeed and carriage return characters are allowed.

textFillStyle: string

The color used to display the text of the item

Accessors

  • get isSelected(): boolean
  • Returns/sets a flag indicating if the item is selected or not.

    Returns boolean

  • set isSelected(value): void
  • Parameters

    • value: boolean

    Returns void

  • get labels(): Label[]
  • Returns the list of labels attached to this item.

    Returns Label[]

Methods

  • Cause the item to be updated.

    Returns void

Generated using TypeDoc