# Class Item`Abstract`

Represents an Item object. This is an abstract class.

#### Implements

#### Hierarchy

- Item
  - ContentItem
  - Link

#### Implements

- IHasLabels

- Defined in flow.ts:2197

#####
Index

### Constructors

constructor

### Properties

fillStyle
flow
font
gradientFillStyle
isExcludedFromLayout
isHidden
isHitTestVisible
isSelectable
isShadowed
lineWidth
opacity
strokeStyle
tag
text
textFillStyle

### Accessors

isSelected
labels

### Methods

refresh

## Constructors

### constructor

- new Item(): Item

- #### Returns Item

  - Defined in flow.ts:2274

## Properties

### fillStyle

fillStyle: string

The color used to fill the item

- Defined in flow.ts:2231

### flow

flow: Flow = null

A reference of the AddFlow component containing this item

- Defined in flow.ts:2210

### font

font: string

The font used to display the text of the item

- Defined in flow.ts:2221

### gradientFillStyle

gradientFillStyle: string

The color used to create a gradient with the fillStyle color

- Defined in flow.ts:2234

### isExcludedFromLayout

isExcludedFromLayout: boolean

Determines whether the item is excluded by a layout algorithm

#### Default

    false

- Defined in flow.ts:2262

### isHidden

isHidden: boolean

Determines whether the item is hidden

#### Default

    false

- Defined in flow.ts:2258

### isHitTestVisible

isHitTestVisible: boolean

Determines whether the item can be hit tested

#### Default

    true

- Defined in flow.ts:2254

### isSelectable

isSelectable: boolean

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

#### Default

    true

- Defined in flow.ts:2250

### isShadowed

isShadowed: boolean

Determines whether a shadow is displayed for the item

#### Default

    false

- Defined in flow.ts:2225

### lineWidth

lineWidth: number

The thickness of the lines used to draw the item

#### Default

    1

- Defined in flow.ts:2241

### opacity

opacity: number

The opacity of the item

#### Default

    1

- Defined in flow.ts:2245

### strokeStyle

strokeStyle: string

The color used to draw the item

- Defined in flow.ts:2228

### tag

tag: any

Sets or returns a tag associated with the item.

#### Default

    null

- Defined in flow.ts:2272

### text

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.

- Defined in flow.ts:2268

### textFillStyle

textFillStyle: string

The color used to display the text of the item

- Defined in flow.ts:2237

## Accessors

### isSelected

- get isSelected(): boolean

- Returns/sets a flag indicating if the item is selected or not.

  #### Returns boolean

  - Defined in flow.ts:2298
- set isSelected(value): void

- #### Parameters

  - ##### value: boolean

  #### Returns void

  - Defined in flow.ts:2302

### labels

- get labels(): Label[]

- Returns the list of labels attached to this item.

  #### Returns Label[]

  Implementation of IHasLabels.labels

  - Defined in flow.ts:2216

## Methods

### refresh

- refresh(): void

- Cause the item to be updated.

  #### Returns void

  - Defined in flow.ts:2332

Generated using TypeDoc