edu.washington.cs.supple.wlib.java2
Class SimpleMapWidget

java.lang.Object
  extended byedu.washington.cs.supple.render.AbstractWidget
      extended byedu.washington.cs.supple.render.SimpleWidget
          extended byedu.washington.cs.supple.wlib.java2.AbstractImageBasedWidget
              extended byedu.washington.cs.supple.wlib.java2.SimpleMapWidget
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener, SwingWidget, UnwrappedWidget, Widget

public class SimpleMapWidget
extends AbstractImageBasedWidget

Author:
kgajos

Field Summary
protected  MapLocationType mapLocationType
           
 
Fields inherited from class edu.washington.cs.supple.wlib.java2.AbstractImageBasedWidget
curImage, curImageIcon, desiredHeight, desiredWidth, downsample, DOWNSAMPLE_PROPERTY, height, IMAGE_NOT_AVAILABLE, imageHeight, imageLabel, imageWidth, width
 
Fields inherited from class edu.washington.cs.supple.render.AbstractWidget
bag, cost, engaged, object, parent, stateVar, textLabel, type, widgetDescriptor, wrapper
 
Fields inherited from interface edu.washington.cs.supple.render.Widget
MAX_HINT, NO_BORDER, NO_NAME, TOP_LEVEL_WIDGET
 
Constructor Summary
SimpleMapWidget(UiObject object, int width, int height)
           
SimpleMapWidget(UiObject object, WidgetDescriptor wd, WidgetFactory f)
           
 
Method Summary
protected  void anotherPropertyChanged(java.beans.PropertyChangeEvent evt)
          If some widgets are looking for other properties, I would prefer them to override this method rather than overriding propertyChange(); this method gets called when the property change event cannot be assigned to any of the known classes
 javax.swing.JComponent getSwingComponent(int hints)
           
static boolean rendersObject(UiObject object)
          A static method for testing the applicability of the widget given a type of the UI component to be rendered
 java.lang.String toString()
           
protected  void updatePosition(java.awt.Point point)
           
 
Methods inherited from class edu.washington.cs.supple.wlib.java2.AbstractImageBasedWidget
createImageLabel, generateWidgetDescriptor, getDownsample, setCurImage, setCurImage, updateImage
 
Methods inherited from class edu.washington.cs.supple.render.SimpleWidget
childIterator, getEffortEstimate, hasChildren
 
Methods inherited from class edu.washington.cs.supple.render.AbstractWidget
clone, clone, disengage, dismissCurrentView, displayDynamic, engage, equals, executeAction, getBag, getConcreteWidget, getConcreteWidget, getCost, getParent, getPath, getSize, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, getWidgetProperties, indexChanged, isEngaged, isEquivalent, legalValuesChanged, likelyValuesChanged, propertyChange, reportActionExecutionEvent, reportValueChangedEvent, setBag, setCost, setEnabled, setParent, setSizeCache, setValue, setWrapper, unwrapWidget, valueChanged
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.washington.cs.supple.render.Widget
childIterator, clone, clone, disengage, engage, getBag, getConcreteWidget, getConcreteWidget, getCost, getEffortEstimate, getPath, getSize, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, getWidgetProperties, hasChildren, isEngaged, isEquivalent, setBag, setCost, setEnabled, setParent, setSizeCache, setWrapper, unwrapWidget
 

Field Detail

mapLocationType

protected MapLocationType mapLocationType
Constructor Detail

SimpleMapWidget

public SimpleMapWidget(UiObject object,
                       int width,
                       int height)
Parameters:
object -
width -
height -

SimpleMapWidget

public SimpleMapWidget(UiObject object,
                       WidgetDescriptor wd,
                       WidgetFactory f)
Method Detail

rendersObject

public static boolean rendersObject(UiObject object)
Description copied from class: AbstractWidget
A static method for testing the applicability of the widget given a type of the UI component to be rendered


getSwingComponent

public javax.swing.JComponent getSwingComponent(int hints)
Parameters:
hints - specifies the variant of the widget to be rendered
Returns:
a renderable component

updatePosition

protected void updatePosition(java.awt.Point point)

anotherPropertyChanged

protected void anotherPropertyChanged(java.beans.PropertyChangeEvent evt)
Description copied from class: AbstractWidget
If some widgets are looking for other properties, I would prefer them to override this method rather than overriding propertyChange(); this method gets called when the property change event cannot be assigned to any of the known classes

Overrides:
anotherPropertyChanged in class AbstractWidget
Parameters:
evt -

toString

public java.lang.String toString()
Overrides:
toString in class AbstractImageBasedWidget