org.geotools.swt.styling.simple
Class StrokeViewer

Object
  extended by StrokeViewer

public class StrokeViewer
extends Object

Allows editing/viewing of a Style Layer Descriptor "Stroke".

Here is the pretty picture:


          +-+ +-------+ +------+ +------+
    Line: |x| | color | |size\/| |100%\/|
          +-+ +-------+ +------+ +------+
 

Workflow:

  1. createControl( parent ) - set up controls
  2. setStroke( stroke, mode ) - provide content from SimpleStyleConfigurator
    1. Symbolizer values copied into fields based on mode
    2. fields copied into controls
    3. controls enabled based on mode & fields
  3. Listener.widgetSelected/modifyText - User performs an "edit"
  4. Listener.sync( SelectionEvent ) - update fields with values of controls
  5. fire( SelectionSevent ) - notify SimpleStyleConfigurator of change
  6. getStroke( StyleBuilder ) - construct a Stroke based on fields

    Since:
    1.0.0
    Author:
    Jody Garnett

    Constructor Summary
    StrokeViewer()
               
     
    Method Summary
     void addListener(SelectionListener listener1)
              Accepts a listener that will be notified when content changes.
     Composite createControl(Composite parent, KeyListener klisten)
              TODO summary sentence for createControl ...
    protected  void fire(SelectionEvent event)
              TODO summary sentence for fire ...
     Stroke getStroke(StyleBuilder build)
              TODO summary sentence for getStroke ...
     void removeListener(SelectionListener listener1)
              Remove listener.
     void setStroke(Stroke aLine, Mode mode, Color defaultColor)
              TODO summary sentence for setStroke ...
     
    Methods inherited from class Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    StrokeViewer

    public StrokeViewer()
    Method Detail

    createControl

    public Composite createControl(Composite parent,
                                   KeyListener klisten)
    TODO summary sentence for createControl ...

    Parameters:
    parent -
    klisten -
    Returns:
    Generated composite

    addListener

    public void addListener(SelectionListener listener1)
    Accepts a listener that will be notified when content changes.

    Parameters:
    listener1 -

    removeListener

    public void removeListener(SelectionListener listener1)
    Remove listener.

    Parameters:
    listener1 -

    fire

    protected void fire(SelectionEvent event)
    TODO summary sentence for fire ...

    Parameters:
    event -

    setStroke

    public void setStroke(Stroke aLine,
                          Mode mode,
                          Color defaultColor)
    TODO summary sentence for setStroke ...

    Parameters:
    line -
    mode -
    defaultColor -

    getStroke

    public Stroke getStroke(StyleBuilder build)
    TODO summary sentence for getStroke ...

    Parameters:
    build -
    Returns:
    Stroke defined by this model


    Copyright © 1996-2014 Geotools. All Rights Reserved.