|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.idv.control.DisplayControlBase
ucar.unidata.idv.control.DisplayControlImpl
ucar.unidata.idv.control.ShapefileControl
public class ShapefileControl
A MetApps Display Control with Displayable and controls for one 3D isosurface display of one parameter.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
protected List |
allFields
All of the field names |
protected List |
filters
filters for showing data |
protected List |
selectedFields
Field names to show in the table |
protected List |
uniqueFields
Field names to show in the table |
| Fields inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, contourWidget, controlContext, ctw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayListUsesColor, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, noteTextArea, noteWrapper, paramName, requestProperties, selectRangeWidget, settingVisibility, sharables, showNoteText, skipSlider, version, viewManagers, ZFUDGE |
| Fields inherited from interface ucar.unidata.idv.DisplayControl |
|---|
BOTTOM_LEGEND, DEFAULT_PROBEFORMAT, PREF_PREFIX, PREF_PROBEFORMAT, PREF_REMOVEONWINDOWCLOSE, PREF_SAMPLING_MODE, PREF_STANDALONE_REMOVEONCLOSE, PREF_STANDALONE_REMOVEONCLOSE_ASK, PROP_LEGENDICON, RASTERMODE_SHOWALL, RASTERMODE_SHOWNONRASTER, RASTERMODE_SHOWRASTER, SIDE_LEGEND |
| Constructor Summary | |
|---|---|
ShapefileControl()
Create a new ShapefileControl; set the attributes |
|
| Method Summary | |
|---|---|
protected Container |
doMakeContents()
Make the gui |
void |
exportShapes()
Export the displayed shapes as our own xml format. |
void |
exportTable()
Export the table as csv |
String |
getColorWidgetLabel()
Get the label for the color widget. |
void |
getControlWidgets(List controlWidgets)
Get the control widgets for this control. |
MapProjection |
getDataProjection()
get MapProjection of data to display |
List |
getFilters()
Get the Filters property. |
boolean |
getFiltersEnabled()
Get the FiltersEnabled property. |
int |
getLineWidth()
Get the line width |
boolean |
getMatchAll()
Get the MatchAll property. |
protected void |
getSaveMenuItems(List items,
boolean forMenuBar)
Add the relevant file menu items into the list |
List |
getSelectedFields()
Get the SelectedFields property. |
List |
getUniqueFields()
Get the UniqueFields property. |
void |
handleFilterApply()
Handle the apply filter button |
boolean |
hasMapProjection()
We do have a map projection |
boolean |
init(DataChoice dataChoice)
Call to help make this kind of Display Control; also calls code to made the Displayable (empty of data thus far). |
protected boolean |
setData(DataChoice choice)
Set the data in this control. |
void |
setFilters(List value)
Set the Filters property. |
void |
setFiltersEnabled(boolean value)
Set the FiltersEnabled property. |
void |
setLineWidth(int width)
Set the line width. |
void |
setMatchAll(boolean value)
Set the MatchAll property. |
void |
setSelectedFields(List value)
Set the SelectedFields property. |
void |
setUniqueFields(List value)
Set the UniqueFields property. |
protected boolean |
shouldAddDisplayListener()
Signal base class to add this as a display listener |
void |
showFieldSelector()
Show the field selector window |
void |
showUniqueSelector()
Show the field selector window |
| Methods inherited from class ucar.unidata.idv.control.DisplayControlBase |
|---|
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getLabeledReal, getLevelReal, getScreenCenter, getSelectedStation, getTmpProperty, isLeftButtonDown, logException, logException, makeEarthLocation, putTmpProperty, removeTmpProperty, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.idv.DisplayControl |
|---|
getTmpProperty, putTmpProperty, removeTmpProperty |
| Methods inherited from interface ucar.unidata.collab.Sharable |
|---|
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime |
| Field Detail |
|---|
protected List filters
protected List allFields
protected List selectedFields
protected List uniqueFields
| Constructor Detail |
|---|
public ShapefileControl()
| Method Detail |
|---|
public boolean init(DataChoice dataChoice)
throws VisADException,
RemoteException
init in class DisplayControlImpldataChoice - the DataChoice of the moment.
RemoteException - Java RMI error
VisADException - VisAD Error
protected Container doMakeContents()
throws VisADException,
RemoteException
doMakeContents in class DisplayControlImplRemoteException - On badness
VisADException - On badnesspublic void showFieldSelector()
protected boolean shouldAddDisplayListener()
shouldAddDisplayListener in class DisplayControlImplpublic void showUniqueSelector()
protected void getSaveMenuItems(List items,
boolean forMenuBar)
getSaveMenuItems in class DisplayControlImplitems - List of menu itemsforMenuBar - Is this for the menu in the window's menu bar or
for a popup menu in the legendpublic void exportTable()
public void exportShapes()
public void handleFilterApply()
protected boolean setData(DataChoice choice)
throws VisADException,
RemoteException
setData in class DisplayControlImplchoice - choice describing data
RemoteException - Java RMI error
VisADException - VisAD Error
public void getControlWidgets(List controlWidgets)
throws VisADException,
RemoteException
getControlWidgets in class DisplayControlImplcontrolWidgets - list of controls to add to
RemoteException - Java RMI error
VisADException - VisAD Errorpublic String getColorWidgetLabel()
getColorWidgetLabel in class DisplayControlImplpublic void setLineWidth(int width)
setLineWidth in class DisplayControlImplwidth - line width (pixels)public int getLineWidth()
getLineWidth in class DisplayControlImplpublic void setFiltersEnabled(boolean value)
value - The new value for FiltersEnabledpublic boolean getFiltersEnabled()
public void setFilters(List value)
value - The new value for Filterspublic List getFilters()
public void setMatchAll(boolean value)
value - The new value for MatchAllpublic boolean getMatchAll()
public void setSelectedFields(List value)
value - The new value for SelectedFieldspublic List getSelectedFields()
public void setUniqueFields(List value)
value - The new value for UniqueFieldspublic List getUniqueFields()
public boolean hasMapProjection()
hasMapProjection in class DisplayControlImplpublic MapProjection getDataProjection()
getDataProjection in interface DisplayControlgetDataProjection in class DisplayControlImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||