|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectWidget
Control
Scrollable
Composite
MapLayerComposite
public class MapLayerComposite
Displays a list of the map layers in an associated JMapPane and provides controls to set the visibility, selection and style of each layer.
Implementation note: DefaultMapContext stores its list of MapLayer objects in rendering order, ie. the layer at index 0 is rendererd first, followed by index 1 etc. MapLayerTable stores its layers in the reverse order since it is more intuitive for the user to think of a layer being 'on top' of other layers.
Field Summary |
---|
Fields inherited from class Control |
---|
handle |
Constructor Summary | |
---|---|
MapLayerComposite(Composite parent,
int style)
Default constructor. |
Method Summary | |
---|---|
void |
onAddLayer(Layer layer)
Add a new layer to those listed in the table. |
void |
onRemoveLayer(Layer layer)
Remove a layer from those listed in the table. |
void |
repaint(Layer layer)
Repaint the list item associated with the specified MapLayer object |
void |
setMapPane(SwtMapPane pane)
Set the map pane that the MapLayerTable will service. |
Methods inherited from class Composite |
---|
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
Methods inherited from class Scrollable |
---|
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
Methods inherited from class Control |
---|
addControlListener, addDragDetectListener, addFocusListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getRegion, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update |
Methods inherited from class Widget |
---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MapLayerComposite(Composite parent, int style)
Method Detail |
---|
public void setMapPane(SwtMapPane pane)
pane
- the map panepublic void onAddLayer(Layer layer)
layer
- the map layerpublic void onRemoveLayer(Layer layer)
layer
- the map layerpublic void repaint(Layer layer)
layer
- the map layer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |