public class MultiSpectralDisplay extends Object implements DisplayListener
Modifier and Type | Class and Description |
---|---|
static class |
MultiSpectralDisplay.DragLine |
private static class |
MultiSpectralDisplay.RubberBandBox |
Constructor and Description |
---|
MultiSpectralDisplay(DirectDataChoice dataChoice) |
MultiSpectralDisplay(HydraControl control) |
private static final org.slf4j.Logger logger
private static final String DISP_NAME
private static int cnt
private DirectDataChoice dataChoice
private ViewManager viewManager
private float[] initialRangeX
private float[] initialRangeY
private RealType domainType
private RealType uniqueRangeType
private LocalDisplay display
private boolean imageExpired
private MultiSpectralData data
private float waveNumber
private List<DataReference> displayedThings
private HashMap<String,DataReference> idToRef
private HashMap<DataReference,ConstantMap[]> colorMaps
private HydraControl displayControl
private DisplayableData imageDisplay
private Gridded1DSet domainSet
private JComboBox bandSelectComboBox
private final String channelSelector
private final Map<String,MultiSpectralDisplay.DragLine> selectors
public MultiSpectralDisplay(HydraControl control) throws VisADException, RemoteException
VisADException
RemoteException
public MultiSpectralDisplay(DirectDataChoice dataChoice) throws VisADException, RemoteException
VisADException
RemoteException
public FlatField getImageData()
public FlatField getImageDataFrom(float channel)
private FlatField changeRangeType(FlatField image, RealType newRangeType) throws VisADException, RemoteException
VisADException
RemoteException
public LocalDisplay getDisplay()
public Component getDisplayComponent()
public RealType getDomainType()
public RealType getRangeType()
public ViewManager getViewManager()
public MultiSpectralData getMultiSpectralData()
public Gridded1DSet getDomainSet()
private void init() throws VisADException, RemoteException
VisADException
RemoteException
public JComboBox getBandSelectComboBox()
public void setDisplayControl(HydraControl control)
public void displayChanged(DisplayEvent e) throws VisADException, RemoteException
displayChanged
in interface DisplayListener
VisADException
RemoteException
public DisplayableData getImageDisplay()
public float getWaveNumber()
public int getChannelIndex() throws Exception
Exception
public void refreshDisplay() throws VisADException, RemoteException
VisADException
RemoteException
public boolean hasNullData()
public void showChannelSelector()
public void hideChannelSelector()
public MultiSpectralDisplay.DragLine createSelector(String id, Color color) throws Exception
Exception
public MultiSpectralDisplay.DragLine createSelector(String id, ConstantMap[] color) throws Exception
Exception
public MultiSpectralDisplay.DragLine getSelector(String id)
public float getSelectorValue(String id)
public void setSelectorValue(String id, float value) throws VisADException, RemoteException
VisADException
RemoteException
public void updateControlSelector(String id, float value)
public MultiSpectralDisplay.DragLine removeSelector(String id)
public List<MultiSpectralDisplay.DragLine> getSelectors()
public boolean displayingChannel()
public void removeRef(DataReference thing) throws VisADException, RemoteException
VisADException
RemoteException
public void addRef(DataReference thing, Color color) throws VisADException, RemoteException
VisADException
RemoteException
public void updateRef(DataReference thing, Color color) throws VisADException, RemoteException
VisADException
RemoteException
public void reorderDataRefsById(List<String> dataRefIds)
public boolean setWaveNumber(float val)
public static ConstantMap[] makeColorMap(Color color) throws VisADException, RemoteException
color
.VisADException
RemoteException
private static void setDisplayMasterAttributes(XYDisplay master) throws VisADException, RemoteException
master
some sensible default attributes.VisADException
RemoteException
private static float[] getXRange(Gridded1DSet domain)
public static RealType getRangeType(FlatField spectrum)
private static RealType getDomainType(FlatField spectrum)