|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
uk.ac.starlink.splat.iface.SplatSelectedProperties
public class SplatSelectedProperties
SplatSelectedProperties defines objects for viewing the image symbolic and full names, data type, and display properties of a list of selected spectra. When more than one spectrum is selected the current properties shown are those of the first, but modifications of any properties are applied to all spectra.
Instances of this class also offer the ability to save the current rendering settings as the defaults. These can be used when opening new spectra and will be restored between sessions.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected JComboBox |
alphaValue
|
protected static String[] |
COMPOSITE_NAMES
Names for the possible composite values. |
protected JComboBox |
coordColumn
|
protected JComboBox |
dataColumn
|
protected JComboBox |
errorColumn
|
protected JComboBox |
errorFrequency
|
protected JCheckBox |
errors
|
protected JComboBox |
errorScale
|
protected JButton |
errorsColour
|
protected uk.ac.starlink.ast.gui.ColourIcon |
errorsColourIcon
|
protected JLabel |
format
|
protected JLabel |
fullName
|
protected GlobalSpecPlotList |
globalList
Reference to GlobalSpecPlotList object. |
protected boolean |
inhibitChanges
Stop updates of properties from propagating to other listeners and controls. |
protected JButton |
lineColour
|
protected uk.ac.starlink.ast.gui.ColourIcon |
linesColourIcon
|
protected uk.ac.starlink.ast.gui.AstStyleBox |
lineStyle
Various components used in the interface. |
protected PlotStyleBox |
lineType
|
protected JComboBox |
pointSize
|
protected PointTypeBox |
pointType
|
protected JButton |
resetProp
|
protected JButton |
saveProp
|
protected JTextField |
shortName
|
protected JList |
specList
The JList containing names of all the available spectra. |
protected JComboBox |
thickness
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
SplatSelectedProperties(JList specList)
Creates an instance. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
|
protected void |
applyProperty(int[] indices,
int what,
Number value)
Apply a "known" property value to a list of spectra. |
void |
applyRenderingProps(SpecData spectrum)
Apply the current default rendering properties to a spectrum. |
protected double |
getAlpha()
Get the alpha componsite value. |
int |
getErrorColour()
Get the error bar colour. |
int |
getErrorFrequency()
Get the frequency used for drawing error bars. |
int |
getErrorScale()
Get the number of sigma displayed when drawing a spectrum. |
int |
getLineColour()
Get the line colour. |
double |
getLineStyle()
Get the line style. |
int |
getPlotStyle()
Get the plot style. |
double |
getPointSize()
Get the point size. |
int |
getPointType()
Get point type. |
int |
getThickness()
Get the line thickness. |
protected void |
initUI()
Add all the components for display the spectrum properties. |
void |
resetRenderingProps()
Reset the current rendering properties to the defaults. |
void |
restoreRenderingProps()
Restore the saved rendering properties from backing store, or create some defaults. |
void |
saveRenderingProps()
Save the current rendering properties, making them the defaults to be applied to new spectra if required and preserving between sessions. |
void |
update()
Update all values to reflect those of the selected spectrum. |
protected void |
update(ListSelectionEvent e)
Update the value of all components to reflect the values of the first selected spectrum. |
protected void |
updateAlpha()
Change the alpha composite value. |
protected void |
updateCoordColumn()
Set the column used for the coordinate values. |
protected void |
updateDataColumn()
Set the column used for the data values. |
protected void |
updateErrorColour()
Change the error bar colour, allow user to select using JColorChooser dialog. |
protected void |
updateErrorColumn()
Set the column used for the data errors. |
protected void |
updateErrorFrequency()
Change the frequency used for drawing error bars. |
protected void |
updateErrors()
Update whether we're displaying data errorbars or not. |
protected void |
updateErrorScale()
Change the number of sigma plotted for the selected spectra. |
protected void |
updateLineColour()
Change the line colour, allow user to select using JColorChooser dialog. |
protected void |
updateLineStyle()
Change the line style (dashed etc.). |
protected void |
updatePlotStyle()
Change the plot style (type of connection, polyline, histogram, point). |
protected void |
updatePointSize()
Change the point size of all selected spectra. |
protected void |
updatePointType()
Change the point type of all selected spectra. |
void |
updateShortName()
Set the short name of the selected spectra. |
protected void |
updateThickness()
Change the line thickness of all selected spectra. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected GlobalSpecPlotList globalList
protected JList specList
protected uk.ac.starlink.ast.gui.AstStyleBox lineStyle
protected uk.ac.starlink.ast.gui.ColourIcon errorsColourIcon
protected uk.ac.starlink.ast.gui.ColourIcon linesColourIcon
protected JButton errorsColour
protected JButton lineColour
protected JButton saveProp
protected JButton resetProp
protected JCheckBox errors
protected JComboBox coordColumn
protected JComboBox dataColumn
protected JComboBox errorColumn
protected JComboBox errorFrequency
protected JComboBox errorScale
protected JComboBox pointSize
protected JComboBox thickness
protected JLabel format
protected JLabel fullName
protected JTextField shortName
protected PlotStyleBox lineType
protected PointTypeBox pointType
protected boolean inhibitChanges
protected static final String[] COMPOSITE_NAMES
protected JComboBox alphaValue
Constructor Detail |
---|
public SplatSelectedProperties(JList specList)
Method Detail |
---|
protected void initUI()
protected void update(ListSelectionEvent e)
public void update()
public void updateShortName()
protected void updateThickness()
public int getThickness()
protected void updatePointType()
public int getPointType()
protected void updatePointSize()
public double getPointSize()
protected void updateLineStyle()
public double getLineStyle()
protected void updatePlotStyle()
public int getPlotStyle()
protected void updateLineColour()
public int getLineColour()
protected void updateErrorColour()
public int getErrorColour()
protected void updateAlpha()
protected double getAlpha()
protected void applyProperty(int[] indices, int what, Number value)
protected void updateErrors()
protected void updateErrorScale()
public int getErrorScale()
protected void updateErrorFrequency()
public int getErrorFrequency()
protected void updateCoordColumn()
protected void updateDataColumn()
protected void updateErrorColumn()
public void saveRenderingProps()
public void restoreRenderingProps()
public void resetRenderingProps()
public void applyRenderingProps(SpecData spectrum)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |