ASP.NET Pack Programmer's Guide
ScriptHelper Members
Constructors Methods
 


Provides helper methods to help accessing the JDiagram API from JavaScript. An instance of this class is returned by the getScriptHelper method.

The following tables list the members exposed by the ScriptHelper type.

 Public Constructors

  Name Description

ScriptHelper

 

 Public Methods

  Name Description

anchorPatternFromId

Gets the AnchorPattern object that has the specified ID.

createAeroEffect

Creates a new AeroEffect instance.

createAnchorPattern

Creates a new empty AnchorPattern with the specified identifier.

createAnchorPoint

Creates a new AnchorPoint instance by setting its relative position in nodes. The point will allow both outgoing and incoming links.

createAnnealLayout

Creates a new AnnealLayout instance.

createCascadeLayout

Creates a new CascadeLayout instance.

createChangeItemCmd

Creates a new ChangeItemCmd instance for the specified item.

createCircularLayout

Creates a new CircularLayout instance.

createColor

Creates a new java.awt.Color instance.

createFlowchartLayout

Creates a new FlowchartLayout instance.

createFont

Creates a Font object with the specified name and size.

createFontAttributes

Creates a font attributes map.

createFontEx

Creates a Font object with the specified name, size and attributes.

createGlassEffect

Creates a new GlassEffect instance.

createGradientBrush

Creates a new GradientBrush instance.

createGridLayout

Creates a new GridLayout instance.

createHierarchicalLayout

Creates a new HierarchicalLayout instance.

createLayeredLayout

Creates a new LayeredLayout instance.

createOneWayLayout

Creates a new OneWayLayout instance.

createOrthogonalLayout

Creates a new OrthogonalLayout instance.

createOrthogonalRouter

Creates a new OrthogonalRouter instance.

createPageFormat

Creates a java.awt.print.PageFormat instance.

createPaper

Creates a java.awt.print.Paper instance.

createPathFinder

Creates a new PathFinder instance.

createPen

Creates a new Pen instance.

createPoint

Creates a Point instance with the specified coordinates.

createPointF

Creates a Point2D.Float instance with the specified coordinates.

createRectangle

Creates a Rectangle instance with the specified coordinates.

createRectangleF

Creates a Rectangle2D.Float instance with the specified coordinates.

createSize

Creates a Dimension instance with the specified width and height.

createSizeF

Creates a Dimension2D instance with the specified width and height.

createSolidBrush

Overloaded.  

createSpringLayout

Creates a new SpringLayout instance.

createSwimlaneLayout

Creates a new SwimlaneLayout instance.

createTextFormat

Creates a TextFormat object.

createThickness

Creates a Thickness instance with the specified border sizes.

createTopologicalLayout

Creates a new TopologicalLayout instance.

createTreeLayout

Creates a new TreeLayout instance.

createTriangularLayout

Creates a new TriangularLayout instance.

getConstant

Provides access to constants (public static fields) defined in subpackages of com.mindfusion.diagramming. For example, to access DashFrame field of class com.mindfusion.diagramming.HandlesStyle, invoke getConstant("HandlesStyle", "SquareHandles").

getShapes

Gets the list of predefined shapes.

loadShapeLibrary

Loads a ShapeLibrary from the specified URL. The URL must be fully qualified, relative paths are not supported.

shapeFromId

Gets the predefined shape that has the specified ID.

 See Also

ScriptHelper Class
com.mindfusion.diagramming Namespace