@Test public void testCreateTitleLabel() { System.out.println("createTitleLabel"); AbstractGraphPanelVisualizer instance = new AbstractGraphPanelVisualizerImpl(); Component result = instance.createTitleLabel(); }
@Override protected Component createTitleLabel() { JPanel pan = new JPanel(new GridBagLayout()); JLabel titleLabel = new JLabel(getStaticLabel()); Font curFont = titleLabel.getFont(); titleLabel.setFont(curFont.deriveFont((float) curFont.getSize() + 4)); GridBagConstraints labelConstraints = new GridBagConstraints(); labelConstraints.weightx = 1.0; labelConstraints.fill = GridBagConstraints.HORIZONTAL; labelConstraints.gridx = 0; labelConstraints.gridy = 0; pan.add(titleLabel, labelConstraints); GridBagConstraints buttonConstraints = new GridBagConstraints(); buttonConstraints.gridx = 1; buttonConstraints.gridy = 0; buttonConstraints.insets = new java.awt.Insets(0, 0, 0, 1); maximizeButton = new JButton(new javax.swing.ImageIcon(getClass().getResource("/kg/apc/jmeter/img/maximize.png"))); maximizeButton.setFocusable(false); maximizeButton.setPreferredSize(new java.awt.Dimension(20, 20)); maximizeButton.setToolTipText("Maximize Panel"); maximizeButton.addActionListener(new MaximizeAction()); pan.add(maximizeButton, buttonConstraints); return pan; }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { @Override protected Component createTitleLabel() { JPanel pan = new JPanel(new GridBagLayout()); JLabel titleLabel = new JLabel(getStaticLabel()); Font curFont = titleLabel.getFont(); titleLabel.setFont(curFont.deriveFont((float) curFont.getSize() + 4)); GridBagConstraints labelConstraints = new GridBagConstraints(); labelConstraints.weightx = 1.0; labelConstraints.fill = GridBagConstraints.HORIZONTAL; labelConstraints.gridx = 0; labelConstraints.gridy = 0; pan.add(titleLabel, labelConstraints); GridBagConstraints buttonConstraints = new GridBagConstraints(); buttonConstraints.gridx = 1; buttonConstraints.gridy = 0; buttonConstraints.insets = new java.awt.Insets(0, 0, 0, 1); maximizeButton = new JButton(new javax.swing.ImageIcon(getClass().getResource("/kg/apc/jmeter/img/maximize.png"))); maximizeButton.setFocusable(false); maximizeButton.setPreferredSize(new java.awt.Dimension(20, 20)); maximizeButton.setToolTipText("Maximize Panel"); maximizeButton.addActionListener(new MaximizeAction()); pan.add(maximizeButton, buttonConstraints); return pan; } }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { @Override protected Component createTitleLabel() { JPanel pan = new JPanel(new GridBagLayout()); JLabel titleLabel = new JLabel(getStaticLabel()); Font curFont = titleLabel.getFont(); titleLabel.setFont(curFont.deriveFont((float) curFont.getSize() + 4)); GridBagConstraints labelConstraints = new GridBagConstraints(); labelConstraints.weightx = 1.0; labelConstraints.fill = GridBagConstraints.HORIZONTAL; labelConstraints.gridx = 0; labelConstraints.gridy = 0; pan.add(titleLabel, labelConstraints); GridBagConstraints buttonConstraints = new GridBagConstraints(); buttonConstraints.gridx = 1; buttonConstraints.gridy = 0; buttonConstraints.insets = new java.awt.Insets(0, 0, 0, 1); maximizeButton = new JButton(new javax.swing.ImageIcon(getClass().getResource("/kg/apc/jmeter/img/maximize.png"))); maximizeButton.setFocusable(false); maximizeButton.setPreferredSize(new java.awt.Dimension(20, 20)); maximizeButton.setToolTipText("Maximize Panel"); maximizeButton.addActionListener(new MaximizeAction()); pan.add(maximizeButton, buttonConstraints); return pan; } AbstractGraphPanelVisualizer(); }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { @Override protected Component createTitleLabel() { JPanel pan = new JPanel(new GridBagLayout()); JLabel titleLabel = new JLabel(getStaticLabel()); Font curFont = titleLabel.getFont(); titleLabel.setFont(curFont.deriveFont((float) curFont.getSize() + 4)); GridBagConstraints labelConstraints = new GridBagConstraints(); labelConstraints.weightx = 1.0; labelConstraints.fill = GridBagConstraints.HORIZONTAL; labelConstraints.gridx = 0; labelConstraints.gridy = 0; pan.add(titleLabel, labelConstraints); GridBagConstraints buttonConstraints = new GridBagConstraints(); buttonConstraints.gridx = 1; buttonConstraints.gridy = 0; buttonConstraints.insets = new java.awt.Insets(0, 0, 0, 1); maximizeButton = new JButton(new javax.swing.ImageIcon(getClass().getResource("/kg/apc/jmeter/img/maximize.png"))); maximizeButton.setFocusable(false); maximizeButton.setPreferredSize(new java.awt.Dimension(20, 20)); maximizeButton.setToolTipText("Maximize Panel"); maximizeButton.addActionListener(new MaximizeAction()); pan.add(maximizeButton, buttonConstraints); return pan; } AbstractGraphPanelVisualizer(); @Override abstract String getStaticLabel(); void updateGui(Sample sample); void updateGui(); @Override void clearData(); @Override Image getImage(); @Override int getGranulation(); @Override void setGranulation(int granulation); @Override void stateChanged(ChangeEvent e); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override GraphPanelChart getGraphPanelChart(); @Override void switchModel(boolean aggregate); JSettingsPanel getSettingsPanel(); void setUpFiltering(CorrectedResultCollector rc); void setIgnoreCurrentTestStartTime(); boolean isIgnoreCurrentTestStartTime(); @Override void clearGui(); }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { @Override protected Component createTitleLabel() { JPanel pan = new JPanel(new GridBagLayout()); JLabel titleLabel = new JLabel(getStaticLabel()); Font curFont = titleLabel.getFont(); titleLabel.setFont(curFont.deriveFont((float) curFont.getSize() + 4)); GridBagConstraints labelConstraints = new GridBagConstraints(); labelConstraints.weightx = 1.0; labelConstraints.fill = GridBagConstraints.HORIZONTAL; labelConstraints.gridx = 0; labelConstraints.gridy = 0; pan.add(titleLabel, labelConstraints); GridBagConstraints buttonConstraints = new GridBagConstraints(); buttonConstraints.gridx = 1; buttonConstraints.gridy = 0; buttonConstraints.insets = new java.awt.Insets(0, 0, 0, 1); maximizeButton = new JButton(new javax.swing.ImageIcon(getClass().getResource("/kg/apc/jmeter/img/maximize.png"))); maximizeButton.setFocusable(false); maximizeButton.setPreferredSize(new java.awt.Dimension(20, 20)); maximizeButton.setToolTipText("Maximize Panel"); maximizeButton.addActionListener(new MaximizeAction()); pan.add(maximizeButton, buttonConstraints); return pan; } AbstractGraphPanelVisualizer(); @Override abstract String getStaticLabel(); void updateGui(Sample sample); void updateGui(); @Override void clearData(); @Override Image getImage(); @Override int getGranulation(); @Override void setGranulation(int granulation); @Override void stateChanged(ChangeEvent e); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override GraphPanelChart getGraphPanelChart(); @Override void switchModel(boolean aggregate); JSettingsPanel getSettingsPanel(); void setUpFiltering(CorrectedResultCollector rc); void setIgnoreCurrentTestStartTime(); boolean isIgnoreCurrentTestStartTime(); @Override void clearGui(); static final String INTERVAL_PROPERTY; static final String GRAPH_AGGREGATED; }