org.geotools.swt.styling.simple
Class StolenColorEditor

Object
  extended by StolenColorEditor

public class StolenColorEditor
extends Object

A "button" of a certain color determined by the color picker.


Constructor Summary
StolenColorEditor(Composite parent)
           
StolenColorEditor(Composite parent, SelectionListener parentListener)
           
 
Method Summary
protected  Point computeImageSize(Control window)
           
 Button getButton()
           
 Color getColor()
           
 RGB getColorValue()
           
 void setColor(Color color)
           
 void setColorValue(RGB rgb)
           
 void setEnabled(boolean isEnabled)
           
 void setListener(SelectionListener newListener)
           
protected  void updateColorImage()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StolenColorEditor

public StolenColorEditor(Composite parent)

StolenColorEditor

public StolenColorEditor(Composite parent,
                         SelectionListener parentListener)
Method Detail

setListener

public void setListener(SelectionListener newListener)

getColor

public Color getColor()

setColor

public void setColor(Color color)

setEnabled

public void setEnabled(boolean isEnabled)

getColorValue

public RGB getColorValue()

setColorValue

public void setColorValue(RGB rgb)

getButton

public Button getButton()

updateColorImage

protected void updateColorImage()

computeImageSize

protected Point computeImageSize(Control window)


Copyright © 1996-2014 Geotools. All Rights Reserved.