Class: D3JSShape

olympe.df.debug.d3. D3JSShape


new D3JSShape()

Members


dblClickOca :function

Type:
  • function

index :number

Index in the table of the shapeView SHOULD NOT BE USED

Type:
  • number

mouseOutOca :function

Type:
  • function

mouseOverOca :function

Type:
  • function

outsideShape :olympe.df.debug.d3.D3JSShape

Type:

parentShape :olympe.df.debug.d3.D3JSShape

Type:

shapeView :olympe.df.debug.d3.ShapeView

Defines on which shapeView it belongs.

Type:

useConnetors :boolean

Defines whether or not, the links will be connected to connectors

Type:
  • boolean

Methods


addConnector(connector)

Parameters:
Name Type Description
connector olympe.df.debug.d3.D3JSConnector

addInsideShape(shape)

Parameters:
Name Type Description
shape olympe.df.debug.d3.D3JSShape

addSubShape(shape)

Parameters:
Name Type Description
shape olympe.df.debug.d3.D3JSShape

dblClick()


getAbsX()

Returns:
Type
number

getAbsY()

Returns:
Type
number

getColor()

Returns:
Type
olympe.df.debug.d3.D3JSColor

getConnector(connectorId, output)

Parameters:
Name Type Description
connectorId string
output boolean
Returns:
Type
olympe.df.debug.d3.D3JSConnector

getDiag()

Returns:
Type
number

getDiagAngle()

Returns:
Type
number

getFooter()

Returns:
Type
string

getHeight()

Returns:
Type
number

getHeightExt()

Returns:
Type
number

getId()

Returns:
Type
string | undefined

getIntersectionLength(theta)

Parameters:
Name Type Description
theta number
Returns:
Type
number

getMainShape()

Returns:
Type
olympe.df.debug.d3.D3JSShape

getMaxRadius()

Returns:
Type
number

getNames()

Returns:
Type
Array.<string>

getNbConnectors(output)

Parameters:
Name Type Description
output boolean
Returns:
Type
number

getTitle()

Returns:
Type
string

getWidth()

Returns:
Type
number

getWidthExt()

Returns:
Type
number

getX()

Returns:
Type
number

getY()

Returns:
Type
number

isEllipse()

Returns:
Type
boolean

isHeightAuto()

Returns:
Type
boolean

isPinned()

Returns:
Type
boolean

isWidthAuto()

Returns:
Type
boolean

mouseOut()

Function called when user click on the shape


mouseOver()

Function called when user click on the shape


redraw(d3Node)

Parameters:
Name Type Description
d3Node *

registerDblClick(oca)

Parameters:
Name Type Description
oca function

registerMouseOut(oca)

Parameters:
Name Type Description
oca function

registerMouseOver(oca)

Parameters:
Name Type Description
oca function

savePos()


setColorAlpha(alpha)

Parameters:
Name Type Description
alpha number

setHeight(height)

Parameters:
Name Type Description
height number

setId(id)

Parameters:
Name Type Description
id string

setShapeView(sv)

Parameters:
Name Type Description
sv olympe.df.debug.d3.ShapeView

setWidth(width)

Parameters:
Name Type Description
width number

setX(newX)

Parameters:
Name Type Description
newX number

setY(newY)

Parameters:
Name Type Description
newY number

update( [id] [, color] [, title] [, names] [, footer] [, x] [, y] [, width] [, height] [, charge] [, ellipse])

Parameters:
Name Type Argument Description
id String <optional>
color Object <optional>
title String <optional>
names Array <optional>
footer String <optional>
x Number <optional>
y Number <optional>
width Number <optional>
height Number <optional>
charge Number <optional>
ellipse Boolean <optional>