org.geotools.swt.styling.simple
Class FillViewer

Object
  extended by FillViewer

public class FillViewer
extends Object

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

Here is the pretty picture:


          +-+ +-------+ +------+             
    Fill: |x| | color | | 90%\/| 
          +-+ +-------+ +------+
 

Workflow:

  1. createControl( parent ) - set up controls
  2. setFill( 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. getFill( StyleBuilder ) - construct a Fill based on fields

    Since:
    1.0.0
    Author:
    Jody Garnett

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

    Constructor Detail

    FillViewer

    public FillViewer()
    Method Detail

    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 -

    createControl

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

    Parameters:
    parent -
    kListener -
    Returns:
    Generated composite

    getFill

    public Fill getFill(StyleBuilder build)
    TODO summary sentence for getFill ...

    Parameters:
    build -
    Returns:
    Fill defined by this model

    setFill

    public void setFill(Fill fill2,
                        Mode mode,
                        Color defaultColor)
    TODO summary sentence for setFill ...

    Parameters:
    fill -
    mode -
    enabled -


    Copyright © 1996-2014 Geotools. All Rights Reserved.