|
org.netbeans.api.visual 2.10 | |||||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
Visual Library API | |
---|---|
org.netbeans.api.visual.action |
This package contains ActionFactory class which is factory of all built-in widget-actions provided by the library. |
org.netbeans.api.visual.anchor |
This package contains Anchor interface which is used by ConnectionWidget for defining its source and target point. |
org.netbeans.api.visual.animator |
This package contains SceneAnimator classes which is used for controlling animations on a scene. |
org.netbeans.api.visual.border |
This package contains Border interface which is used for supplying a border graphics for a widget. |
org.netbeans.api.visual.graph | This package contains built-in graph-oriented models. |
org.netbeans.api.visual.graph.layout | This package contains built-in graph-oriented layout algorithms. |
org.netbeans.api.visual.laf |
This package contains LookFeel class with style definition for colors and borders. |
org.netbeans.api.visual.layout |
This package contains Layout interface which defines a widget-layout. |
org.netbeans.api.visual.model |
This package contains ObjectScene class which is a scene with ability to register model-objects with widgets on the scene. |
org.netbeans.api.visual.router |
This package contains Router interface which defines a router for ConnectionWidget . |
org.netbeans.api.visual.vmd | This package contains a VMD visualization style. |
org.netbeans.api.visual.widget |
This package contains Widget class. |
org.netbeans.api.visual.widget.general | This package contains general high-level widgets. |
VisualLibraryAPI
The API provides a set of reusable pieces - widgets. By composing them you are creating a visualization. Each widget has various properties including layout, border, assigned actions, ... The library contains a set of pre-defined widgets that can be extended. All pluggable pieces are declared as interfaces or abstract classes - WidgetAction, Anchor, AnchorShape, PointShape, Animator, Border, GraphLayout, LookFeel, Layout, SceneLayout, Router, CollisionsCollector. Also they all have their built-in implementation.
ConnectionWidget allows to specify routing policy. The policy defines behaviour of path routing in ConnectionWidget. There are 4 values: Always-route, Update-end-points-only, Disable-routing-until-end-point-is-moved, Disable-routing. AddRemoveControlPointAction and MoveControlPointAction has new factory methods for automatic assignment of routing policy.
Missing Anchor.notifyRevalidate method has been added. Now the Anchor should receive all necessary notification. It is used by VMDNodeAnchor too.
LabelWidget now has useGlyphVector property. If true then the text in a LabelWidget is converted into glyph-vector (a shape) that is rendered. This allows accurate rendering independently on zoom-factor of a scene. Note that the glyph-vector rendering is slower than regular rendering.
Scene.validate(Graphics2D) method has been added. It allows to validate a scene without having a main scene view created and shown on screen. See test.view.OffscreenRenderingTest example for usage.
AlignWithMoveAction and AlignWithResizeAction allow checking client area of widget (widget boundary without border insets). There are 4 new methods in ActionFactory class introduces to allow specifying outerBounds parameter.
WheelPanAction has been added to allow vertical and horizontal scrolling of a scene view using mouse wheel.
Bird view is a window that is always under your mouse-cursor and shows the scene with a specified zoom factor. A bird view can be created using Scene.createBirdView method. To enable bird view you need to call the BirdViewController.show method on returned controller instance.
The GraphLayouSupport.setTreeGraphLayoutProperties method allows change properties of tree graph layout i.e. originX, originY, verticalGap, horizontalGap, vertical.
See documentation for complete set of use-cases.
The sources for the module are in the NetBeans Mercurial repositories.
No. Just set a normal project dependency on org.netbeans.api.visual (spec no.: 2.0) module.
Read more about the implementation in the answers to architecture questions.
|
org.netbeans.api.visual 2.10 | |||||||||
PREV NEXT | FRAMES NO FRAMES |