Class: Feature

Feature

new Feature()

Instances of features are connected to one another to make a chain of responsibility for handling all the input to the hypergrid.

Members

currentHoverCell :Point

the cell location where the cursor is currently

Type:
Default Value:
  • null

cursor :string

the cursor I want to be displayed

Type:
  • string
Default Value:
  • null

detached :Feature

a temporary holding field for my next feature when I'm in a disconnected state

Type:
Default Value:
  • null

next :Feature

the next feature to be given a chance to handle incoming events

Type:
Default Value:
  • null

Methods

attachChain()

reattach my child from the detached reference

detachChain()

disconnect my child

isFirstFixedColumn(grid, event)

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details

isFirstFixedRow(grid, event)

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details

isFixedColumn(grid, event)

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details

isFixedRow(grid, event)

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details

isTopLeft(grid, event)

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details