The style api has three major extension points (defined by the net.refractions.udig.project plug-in):
- StyleBlackboard : a persisted blackboard of all the user supplied rendering settings for a layer
- StyleContent : this is used to hold any object you wish on the style blackboard. Methods exist to load / save your object, and create a default object.
- For the org.geotools.styling.Style object (representing an SLD file) the value is managed by the class SLDContent .
- StyleConfigurator : This the the user interface responsible for editing a style on the style blackboard.
The uDig application will use the entire style blackboard, as well as all known Renderers when choosing how to draw what is on the screen. RenderMetricsFactory and RenderingMetrics are both used to inspect the style blackboard. The renderer that is able to understand the most styles on the blackboard is chosen to draw what is on the screen.
三个扩展
StyleBlackboard : 用户为一个图层提供的所有渲染设置的持久性存储