Class Index

Classes


Namespace motigon.FigureContainer

Defines a figure container.

FigureContainer

Class Summary
 
Instantiates a new figure container model.
Method Summary
void
addFigure(figure)
Adds a figure to the figure container.
void
addTickCallback(callback)
Adds a tick callback. Tick callbacks receive an event when the draw area are redrawn.
void
Appends the figure container to the web page container root.
void
Connect all lines to the connection close to their position.
Context
Gets the context.
Figure[]
Gets a list of all figures within this container.
boolean
Checks if the figure container has been changed.
void
Resets the dirty state of the container.
void
Sets the active tool.
void
setActiveTool(tool, parameter)
Sets the active tool.
void
setActiveTool(tool, parameter, fireListeners)
Sets the active tool.
void
setReadOnly(readOnly)
Sets the container read only mode.
Class Detail
motigon.FigureContainer()
Instantiates a new figure container model.
Method Detail
addFigure(figure)
Adds a figure to the figure container.
Parameters:
{AbstractFigureJs} figure
the figure to add
Returns:
{void}

addTickCallback(callback)
Adds a tick callback. Tick callbacks receive an event when the draw area are redrawn.
Parameters:
{function(delta)} callback
the callback
Returns:
{void}

appendToRoot()
Appends the figure container to the web page container root.
Returns:
{void}

connectLines()
Connect all lines to the connection close to their position.
Returns:
{void}

getContext()
Gets the context.
Returns:
{Context}

getFigures()
Gets a list of all figures within this container.
Returns:
{Figure[]}

isDirty()
Checks if the figure container has been changed.
Returns:
{boolean}

resetDirty()
Resets the dirty state of the container.
Returns:
{void}

setActiveTool(tool)
Sets the active tool.
Parameters:
{String} tool
the new active tool
Returns:
{void}

setActiveTool(tool, parameter)
Sets the active tool.
Parameters:
{String} tool
the tool
{String} parameter
the tool specific parameter
Returns:
{void}

setActiveTool(tool, parameter, fireListeners)
Sets the active tool.
Parameters:
{String} tool
the tool
{String} parameter
the tool specific parameter
{boolean} fireListeners
should attached listeners be fired
Returns:
{void}

setReadOnly(readOnly)
Sets the container read only mode.
Parameters:
{boolean} readOnly
the new read only state
Returns:
{void}