|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ikayaki.gui.ProjectComponent
ikayaki.gui.MeasurementSequencePanel
public class MeasurementSequencePanel
Shows the measurements of a project and provides controls for modifying the sequence.
Nested Class Summary | |
---|---|
private class |
MeasurementSequencePanel.HeaderPopupMenu
Popup menu for selecting which columns to show in the sequence table. |
private class |
MeasurementSequencePanel.MyFormatterFactory
Sets the format for the JFormattedTextFields of this panel. |
private class |
MeasurementSequencePanel.SequencePopupMenu
Popup menu for removing and adding steps from the sequence, and saving steps as a preset sequence. |
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private JButton |
addSequenceButton
|
private JPanel |
controlsPane
|
private MeasurementDetailsPanel |
detailsPanel
|
private JComboBox |
loadSequenceBox
|
private JLabel |
loadSequenceLabel
|
private JFormattedTextField |
sequenceStartField
|
private ComponentFlasher |
sequenceStartFieldFlasher
|
private JLabel |
sequenceStartLabel
|
private JFormattedTextField |
sequenceStepField
|
private ComponentFlasher |
sequenceStepFieldFlasher
|
private JLabel |
sequenceStepLabel
|
private JFormattedTextField |
sequenceStopField
|
private ComponentFlasher |
sequenceStopFieldFlasher
|
private JLabel |
sequenceStopLabel
|
private JTable |
sequenceTable
|
private MeasurementSequenceTableModel |
sequenceTableModel
|
private JLabel |
stepValueTypeLabel
|
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 | |
---|---|
MeasurementSequencePanel()
Creates default MeasurementSequencePanel. |
Method Summary | |
---|---|
private void |
$$$setupUI$$$()
Method generated by IntelliJ IDEA GUI Designer !!! |
private void |
addSequence()
Adds sequence determined by textfields to end of table. |
MeasurementDetailsPanel |
getDetailsPanel()
Returns the component that will show the details of the active measurement step. |
private double |
getLastPositiveStepValue()
Returns the latest stepValue which is greater than 0. |
private double |
getLastStepValue()
Returns the stepValue of the last step. |
JTable |
getSequenceTable()
Returns the table containing all displayed measurement sequence data. |
void |
measurementUpdated(MeasurementEvent event)
Does nothing; subclasses override this if they want to listen MeasurementEvents. |
void |
projectUpdated(ProjectEvent event)
Updates the sequence table on project data change. |
private void |
resetAddSequence()
Resets the values for the Start-Step-Stop fields. |
private void |
resetLoadSequenceBox()
Rebuilds the contents of the loadSequenceBox combobox by getting the saved sequences from the settings. |
private void |
scrollToRow(int rowIndex)
Scrolls the table to show the specified row. |
void |
setEnabled(boolean enabled)
Sets whether or not this component is enabled. |
void |
setProject(Project project)
Sets the project whose sequence is shown in the table. |
private void |
updateColumns()
Resize the table's columns to fit the content. |
Methods inherited from class ikayaki.gui.ProjectComponent |
---|
getParentFrame, getProject |
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 |
---|
private JTable sequenceTable
private MeasurementSequenceTableModel sequenceTableModel
private JFormattedTextField sequenceStartField
private JFormattedTextField sequenceStepField
private JFormattedTextField sequenceStopField
private ComponentFlasher sequenceStartFieldFlasher
private ComponentFlasher sequenceStepFieldFlasher
private ComponentFlasher sequenceStopFieldFlasher
private JButton addSequenceButton
private JComboBox loadSequenceBox
private JLabel stepValueTypeLabel
private JLabel sequenceStartLabel
private JLabel sequenceStepLabel
private JLabel sequenceStopLabel
private JLabel loadSequenceLabel
private JPanel controlsPane
private MeasurementDetailsPanel detailsPanel
Constructor Detail |
---|
public MeasurementSequencePanel()
Method Detail |
---|
public MeasurementDetailsPanel getDetailsPanel()
public JTable getSequenceTable()
private void resetLoadSequenceBox()
private void updateColumns()
private double getLastPositiveStepValue()
private double getLastStepValue()
private void resetAddSequence()
private void addSequence()
public void setEnabled(boolean enabled)
setEnabled
in class JComponent
enabled
- true if this component should be enabled, false otherwisepublic void setProject(Project project)
setProject
in class ProjectComponent
project
- new active project, or null to make no project active.private void scrollToRow(int rowIndex)
public void projectUpdated(ProjectEvent event)
projectUpdated
in interface ProjectListener
projectUpdated
in class ProjectComponent
event
- ProjectEvent received.public void measurementUpdated(MeasurementEvent event)
ProjectComponent
measurementUpdated
in interface MeasurementListener
measurementUpdated
in class ProjectComponent
event
- MeasurementEvent received.private void $$$setupUI$$$()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |