Example usage for java.awt BorderLayout EAST

List of usage examples for java.awt BorderLayout EAST

Introduction

In this page you can find the example usage for java.awt BorderLayout EAST.

Prototype

String EAST

To view the source code for java.awt BorderLayout EAST.

Click Source Link

Document

The east layout constraint (right side of container).

Usage

From source file:org.apache.cayenne.modeler.CayenneModelerFrame.java

/** Initializes main toolbar. */
protected void initToolbar() {
    JToolBar toolBar = new JToolBar();

    toolBar.add(getAction(NewProjectAction.class).buildButton());
    toolBar.add(getAction(OpenProjectAction.class).buildButton());
    toolBar.add(getAction(SaveAction.class).buildButton());

    toolBar.addSeparator();/*from  ww  w. j ava  2  s .  c o  m*/
    toolBar.add(getAction(RemoveAction.class).buildButton());

    toolBar.addSeparator();

    toolBar.add(getAction(CutAction.class).buildButton());
    toolBar.add(getAction(CopyAction.class).buildButton());
    toolBar.add(getAction(PasteAction.class).buildButton());

    toolBar.addSeparator();

    toolBar.add(getAction(UndoAction.class).buildButton());
    toolBar.add(getAction(RedoAction.class).buildButton());

    toolBar.addSeparator();

    toolBar.add(getAction(CreateNodeAction.class).buildButton());
    toolBar.add(getAction(CreateDataMapAction.class).buildButton());

    toolBar.addSeparator();

    toolBar.add(getAction(CreateDbEntityAction.class).buildButton());
    toolBar.add(getAction(CreateProcedureAction.class).buildButton());

    toolBar.addSeparator();

    toolBar.add(getAction(CreateObjEntityAction.class).buildButton());
    toolBar.add(getAction(CreateEmbeddableAction.class).buildButton());
    toolBar.add(getAction(CreateQueryAction.class).buildButton());

    toolBar.addSeparator();

    toolBar.add(getAction(NavigateBackwardAction.class).buildButton());
    toolBar.add(getAction(NavigateForwardAction.class).buildButton());

    JPanel east = new JPanel(new BorderLayout()); // is used to place search feature
    // components the most right on a
    // toolbar
    final JTextField findField = new JTextField(10);
    findField.addKeyListener(new KeyListener() {

        public void keyPressed(KeyEvent e) {
            if (e.getKeyCode() != KeyEvent.VK_ENTER) {
                findField.setBackground(Color.white);
            }
        }

        public void keyReleased(KeyEvent e) {
        }

        public void keyTyped(KeyEvent e) {
        }

    });
    findField.setAction(getAction(FindAction.class));
    JLabel findLabel = new JLabel("Search:");
    findLabel.setLabelFor(findField);
    Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {

        public void eventDispatched(AWTEvent event) {

            if (event instanceof KeyEvent) {

                if (((KeyEvent) event).getModifiers() == Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()
                        && ((KeyEvent) event).getKeyCode() == KeyEvent.VK_F) {
                    findField.requestFocus();
                }
            }
        }

    }, AWTEvent.KEY_EVENT_MASK);

    JPanel box = new JPanel(); // is used to place label and text field one after
    // another
    box.setLayout(new BoxLayout(box, BoxLayout.X_AXIS));
    box.add(findLabel);
    box.add(findField);
    east.add(box, BorderLayout.EAST);
    toolBar.add(east);

    getContentPane().add(toolBar, BorderLayout.NORTH);
}

From source file:biz.wolschon.finance.jgnucash.widgets.TransactionSum.java

/**
 * Create the UI-components.//from  www.  j  a v a  2 s  .  c  o m
 * @param name the name to display left of the sum
 */
public void initializeUI(final String name) {
    this.setLayout(new BorderLayout());
    myNameLabel.setText(name);
    mySumLabel.setText("...");
    myDrilldownLabel.setText("");//TODO: implement drilldown
    this.add(myNameLabel, BorderLayout.WEST);
    this.add(mySumLabel, BorderLayout.CENTER);
    this.add(myDrilldownLabel, BorderLayout.EAST);
}

From source file:org.apache.jmeter.protocol.http.config.gui.UrlConfigGuiClassifier.java

/**
 * Create a panel containing the proxy server details
 *
 * @return the panel/*from   www. j  ava  2 s.  c  o m*/
 */
protected final JPanel getProxyServerPanel() {
    JPanel proxyServer = new HorizontalPanel();
    proxyServer.add(getProxyHostPanel(), BorderLayout.CENTER);
    proxyServer.add(getProxyPortPanel(), BorderLayout.EAST);

    JPanel proxyLogin = new HorizontalPanel();
    proxyLogin.add(getProxyUserPanel());
    proxyLogin.add(getProxyPassPanel());

    JPanel proxyServerPanel = new HorizontalPanel();
    proxyServerPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
            JMeterUtils.getResString("web_proxy_server_title"))); // $NON-NLS-1$
    proxyServerPanel.add(proxyServer, BorderLayout.CENTER);
    proxyServerPanel.add(proxyLogin, BorderLayout.EAST);

    return proxyServerPanel;
}

From source file:com.haulmont.cuba.desktop.App.java

protected JComponent createBottomPane() {
    JPanel panel = new JPanel(new BorderLayout());
    panel.setBorder(BorderFactory.createLineBorder(Color.gray));
    panel.setPreferredSize(new Dimension(0, 20));

    ServerSelector serverSelector = AppBeans.get(ServerSelector.NAME);
    String url = serverSelector.getUrl(serverSelector.initContext());
    if (url == null)
        url = "?";

    final JLabel connectionStateLab = new JLabel(
            messages.formatMainMessage("statusBar.connected", getUserFriendlyConnectionUrl(url)));

    panel.add(connectionStateLab, BorderLayout.WEST);

    JPanel rightPanel = new JPanel();
    BoxLayout rightLayout = new BoxLayout(rightPanel, BoxLayout.LINE_AXIS);
    rightPanel.setLayout(rightLayout);//from w w  w  .j av a2 s.  c  om

    UserSession session = connection.getSession();

    JLabel userInfoLabel = new JLabel();
    String userInfo = messages.formatMainMessage("statusBar.user", session.getUser().getName(),
            session.getUser().getLogin());
    userInfoLabel.setText(userInfo);

    rightPanel.add(userInfoLabel);

    JLabel timeZoneLabel = null;
    if (session.getTimeZone() != null) {
        timeZoneLabel = new JLabel();
        String timeZone = messages.formatMainMessage("statusBar.timeZone",
                AppBeans.get(TimeZones.class).getDisplayNameShort(session.getTimeZone()));
        timeZoneLabel.setText(timeZone);

        rightPanel.add(Box.createRigidArea(new Dimension(5, 0)));
        rightPanel.add(timeZoneLabel);
    }

    panel.add(rightPanel, BorderLayout.EAST);

    if (isTestMode()) {
        panel.setName("bottomPane");
        userInfoLabel.setName("userInfoLabel");
        if (timeZoneLabel != null)
            timeZoneLabel.setName("timeZoneLabel");
        connectionStateLab.setName("connectionStateLab");
    }

    return panel;
}

From source file:PickTest.java

public void init() {
    setLayout(new BorderLayout());
    Canvas3D c = new Canvas3D(SimpleUniverse.getPreferredConfiguration());
    add("Center", c);

    JPanel guiPanel = new JPanel();
    setupGUI(guiPanel);/*from  ww w .  j  a v a 2 s.  c  om*/
    add(guiPanel, BorderLayout.EAST);

    // Create a scene and attach it to the virtual universe
    BranchGroup scene = createSceneGraph(c);
    u = new SimpleUniverse(c);

    // This will move the ViewPlatform back a bit so the
    // objects in the scene can be viewed.
    u.getViewingPlatform().setNominalViewingTransform();
    view = u.getViewer().getView();

    u.addBranchGraph(scene);
}

From source file:samples.graph.PluggableRendererDemo.java

/**
 * @param jp    panel to which controls will be added
 *//* w  w  w  . j  a va2 s  .  c  o  m*/
protected void addBottomControls(final JPanel jp) {
    final JPanel control_panel = new JPanel();
    jp.add(control_panel, BorderLayout.SOUTH);
    control_panel.setLayout(new BorderLayout());
    final Box vertex_panel = Box.createVerticalBox();
    vertex_panel.setBorder(BorderFactory.createTitledBorder("Vertices"));
    final Box edge_panel = Box.createVerticalBox();
    edge_panel.setBorder(BorderFactory.createTitledBorder("Edges"));
    final Box both_panel = Box.createVerticalBox();

    control_panel.add(vertex_panel, BorderLayout.WEST);
    control_panel.add(edge_panel, BorderLayout.EAST);
    control_panel.add(both_panel, BorderLayout.CENTER);

    // set up vertex controls
    v_color = new JCheckBox("vertex seed coloring");
    v_color.addActionListener(this);
    v_stroke = new JCheckBox("<html>vertex selection<p>stroke highlighting</html>");
    v_stroke.addActionListener(this);
    v_labels = new JCheckBox("show vertex ranks (voltages)");
    v_labels.addActionListener(this);
    v_shape = new JCheckBox("vertex degree shapes");
    v_shape.addActionListener(this);
    v_size = new JCheckBox("vertex voltage size");
    v_size.addActionListener(this);
    v_size.setSelected(true);
    v_aspect = new JCheckBox("vertex degree ratio stretch");
    v_aspect.addActionListener(this);
    v_small = new JCheckBox("filter vertices of degree < " + VertexDisplayPredicate.MIN_DEGREE);
    v_small.addActionListener(this);

    vertex_panel.add(v_color);
    vertex_panel.add(v_stroke);
    vertex_panel.add(v_labels);
    vertex_panel.add(v_shape);
    vertex_panel.add(v_size);
    vertex_panel.add(v_aspect);
    vertex_panel.add(v_small);

    // set up edge controls
    JPanel gradient_panel = new JPanel(new GridLayout(1, 0));
    gradient_panel.setBorder(BorderFactory.createTitledBorder("Edge paint"));
    no_gradient = new JRadioButton("Solid color");
    no_gradient.addActionListener(this);
    no_gradient.setSelected(true);
    //      gradient_absolute = new JRadioButton("Absolute gradient");
    //      gradient_absolute.addActionListener(this);
    gradient_relative = new JRadioButton("Gradient");
    gradient_relative.addActionListener(this);
    ButtonGroup bg_grad = new ButtonGroup();
    bg_grad.add(no_gradient);
    bg_grad.add(gradient_relative);
    //bg_grad.add(gradient_absolute);
    gradient_panel.add(no_gradient);
    //gradientGrid.add(gradient_absolute);
    gradient_panel.add(gradient_relative);

    JPanel shape_panel = new JPanel(new GridLayout(3, 2));
    shape_panel.setBorder(BorderFactory.createTitledBorder("Edge shape"));
    e_line = new JRadioButton("line");
    e_line.addActionListener(this);
    e_line.setSelected(true);
    //        e_bent = new JRadioButton("bent line");
    //        e_bent.addActionListener(this);
    e_wedge = new JRadioButton("wedge");
    e_wedge.addActionListener(this);
    e_quad = new JRadioButton("quad curve");
    e_quad.addActionListener(this);
    e_cubic = new JRadioButton("cubic curve");
    e_cubic.addActionListener(this);
    ButtonGroup bg_shape = new ButtonGroup();
    bg_shape.add(e_line);
    //        bg.add(e_bent);
    bg_shape.add(e_wedge);
    bg_shape.add(e_quad);
    bg_shape.add(e_cubic);
    shape_panel.add(e_line);
    //        shape_panel.add(e_bent);
    shape_panel.add(e_wedge);
    shape_panel.add(e_quad);
    shape_panel.add(e_cubic);
    fill_edges = new JCheckBox("fill edge shapes");
    fill_edges.setSelected(false);
    fill_edges.addActionListener(this);
    shape_panel.add(fill_edges);
    shape_panel.setOpaque(true);
    e_color = new JCheckBox("edge weight highlighting");
    e_color.addActionListener(this);
    e_labels = new JCheckBox("show edge weights");
    e_labels.addActionListener(this);
    e_uarrow_pred = new JCheckBox("undirected");
    e_uarrow_pred.addActionListener(this);
    e_darrow_pred = new JCheckBox("directed");
    e_darrow_pred.addActionListener(this);
    e_darrow_pred.setSelected(true);
    JPanel arrow_panel = new JPanel(new GridLayout(1, 0));
    arrow_panel.setBorder(BorderFactory.createTitledBorder("Show arrows"));
    arrow_panel.add(e_uarrow_pred);
    arrow_panel.add(e_darrow_pred);

    e_show_d = new JCheckBox("directed");
    e_show_d.addActionListener(this);
    e_show_d.setSelected(true);
    e_show_u = new JCheckBox("undirected");
    e_show_u.addActionListener(this);
    e_show_u.setSelected(true);
    JPanel show_edge_panel = new JPanel(new GridLayout(1, 0));
    show_edge_panel.setBorder(BorderFactory.createTitledBorder("Show edges"));
    show_edge_panel.add(e_show_u);
    show_edge_panel.add(e_show_d);

    shape_panel.setAlignmentX(Component.LEFT_ALIGNMENT);
    edge_panel.add(shape_panel);
    gradient_panel.setAlignmentX(Component.LEFT_ALIGNMENT);
    edge_panel.add(gradient_panel);
    show_edge_panel.setAlignmentX(Component.LEFT_ALIGNMENT);
    edge_panel.add(show_edge_panel);
    arrow_panel.setAlignmentX(Component.LEFT_ALIGNMENT);
    edge_panel.add(arrow_panel);

    e_color.setAlignmentX(Component.LEFT_ALIGNMENT);
    edge_panel.add(e_color);
    e_labels.setAlignmentX(Component.LEFT_ALIGNMENT);
    edge_panel.add(e_labels);

    // set up zoom controls
    zoom_at_mouse = new JCheckBox("<html><center>zoom at mouse<p>(wheel only)</center></html>");
    zoom_at_mouse.addActionListener(this);

    final ScalingControl scaler = new CrossoverScalingControl();

    JButton plus = new JButton("+");
    plus.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            scaler.scale(vv, 1.1f, vv.getCenter());
        }
    });
    JButton minus = new JButton("-");
    minus.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            scaler.scale(vv, 1 / 1.1f, vv.getCenter());
        }
    });

    Box zoomPanel = Box.createVerticalBox();
    zoomPanel.setBorder(BorderFactory.createTitledBorder("Zoom"));
    plus.setAlignmentX(Component.CENTER_ALIGNMENT);
    zoomPanel.add(plus);
    minus.setAlignmentX(Component.CENTER_ALIGNMENT);
    zoomPanel.add(minus);
    zoom_at_mouse.setAlignmentX(Component.CENTER_ALIGNMENT);
    zoomPanel.add(zoom_at_mouse);

    // add font and zoom controls to center panel
    font = new JCheckBox("bold text");
    font.addActionListener(this);
    font.setAlignmentX(Component.CENTER_ALIGNMENT);

    both_panel.add(zoomPanel);
    both_panel.add(font);

    JComboBox modeBox = gm.getModeComboBox();
    modeBox.setAlignmentX(Component.CENTER_ALIGNMENT);
    JPanel modePanel = new JPanel(new BorderLayout()) {
        public Dimension getMaximumSize() {
            return getPreferredSize();
        }
    };
    modePanel.setBorder(BorderFactory.createTitledBorder("Mouse Mode"));
    modePanel.add(modeBox);
    both_panel.add(modePanel);
}

From source file:org.apache.jmeter.protocol.http.config.gui.UrlConfigGui.java

/**
 * Create a panel containing the webserver (domain+port) and timeouts (connect+request).
 *
 * @return the panel//from   w w w . j ava 2s  . co  m
 */
protected final JPanel getWebServerTimeoutPanel() {
    // WEB SERVER PANEL
    JPanel webServerPanel = new HorizontalPanel();
    webServerPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
            JMeterUtils.getResString("web_server"))); // $NON-NLS-1$
    final JPanel domainPanel = getDomainPanel();
    final JPanel portPanel = getPortPanel();
    webServerPanel.add(domainPanel, BorderLayout.CENTER);
    webServerPanel.add(portPanel, BorderLayout.EAST);

    JPanel timeOut = new HorizontalPanel();
    timeOut.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
            JMeterUtils.getResString("web_server_timeout_title"))); // $NON-NLS-1$
    final JPanel connPanel = getConnectTimeOutPanel();
    final JPanel reqPanel = getResponseTimeOutPanel();
    timeOut.add(connPanel);
    timeOut.add(reqPanel);

    JPanel webServerTimeoutPanel = new VerticalPanel();
    webServerTimeoutPanel.add(webServerPanel, BorderLayout.CENTER);
    webServerTimeoutPanel.add(timeOut, BorderLayout.EAST);

    JPanel bigPanel = new VerticalPanel();
    bigPanel.add(webServerTimeoutPanel);
    return bigPanel;
}

From source file:lu.lippmann.cdb.graph.GraphViewImpl.java

/**
 * {@inheritDoc}//from w  w  w .j a  v  a  2s. co  m
 */
@Override
public void setCGraph(final CGraph cgraph) {
    if (cgraph != null) {
        Component center = ((BorderLayout) getLayout()).getLayoutComponent(BorderLayout.CENTER);
        if (center == aboutPanel) {
            Component east = ((BorderLayout) getLayout()).getLayoutComponent(BorderLayout.EAST);
            remove(aboutPanel);
            remove(east);
            add(east, BorderLayout.CENTER);
        }
    }

    this.vv.setVisible(cgraph != null);
    this.metaInfosPanel.setVisible(cgraph != null);
    this.sharedLabel.setVisible(cgraph != null);

    if (cgraph == null)
        return;

    this.vv.setGraphLayout(cgraph.getInternalLayout());
    this.vv.updateUI();

    //Refresh the history view the first time 
    eventPublisher.publish(new GraphStructureChangedEvent());

    /** initialize listeners */
    final GraphWithOperations gwo = ((GraphWithOperations) cgraph.getInternalGraph());

    //node moved
    gwo.addNodeMovedListener(new Listener<CNodePosition>() {
        @Override
        public void onAction(CNodePosition parameter) {
            getVisualisationViewer().getGraphLayout().setLocation(parameter.getNode(), parameter.getPoint());
        }
    });
    //layout changed
    gwo.addLayoutChangedListener(new Listener<CLayoutTransition>() {
        @Override
        public void onAction(CLayoutTransition parameter) {
            eventPublisher.publish(new LayoutChangedEvent(getUniqueId(), parameter));
        }
    });
    //structure changed
    gwo.addStructureChangeListener(new Listener<Operation>() {
        @Override
        public void onAction(Operation parameter) {
            if (parameter == null) {
                eventPublisher.publish(new GraphStructureChangedEvent());
            } else {
                eventPublisher.publish(new GraphStructureChangedEvent(parameter));
            }
        }
    });

}

From source file:de.erdesignerng.visual.common.OutlineComponent.java

private void initialize() {

    tree = new DefaultTree();
    tree.setCellRenderer(new OutlineTreeCellRenderer());
    tree.addMouseListener(new OutlineMouseListener());
    tree.addTreeSelectionListener(new OutlineSelectionListener());
    tree.setModel(new DefaultTreeModel(new DefaultMutableTreeNode(TreeGroupingElement.MODEL)));

    setLayout(new BorderLayout());
    add(tree.getScrollPane(), BorderLayout.CENTER);

    filterField = new DefaultTextField();
    filterField.setColumns(255);/*from   www .  j a  va 2  s  . c  o  m*/
    filterField.addKeyListener(new OutlineKeyAdapter());
    DefaultButton disableFilterButton = new DefaultButton();
    disableFilterButton.setIcon(IconFactory.getCancelIcon());
    disableFilterButton.setMaximumSize(new Dimension(21, 21));
    disableFilterButton.setMinimumSize(new Dimension(21, 21));
    disableFilterButton.setPreferredSize(new Dimension(21, 21));
    disableFilterButton.addActionListener(new OutlineDisableFilterActionListener());

    JPanel theFilterPanel = new JPanel();
    theFilterPanel.setLayout(new BorderLayout());
    theFilterPanel.add(filterField, BorderLayout.CENTER);
    theFilterPanel.add(disableFilterButton, BorderLayout.EAST);

    add(theFilterPanel, BorderLayout.NORTH);

    tree.addTreeExpansionListener(new OutlineTreeExpansionListener());
}

From source file:com.att.aro.ui.view.diagnostictab.GraphPanel.java

/**
 * Initializes a new instance of the GraphPanel class.
 *//*from w w w. ja  va2  s.  co  m*/
public GraphPanel(IAROView aroview, DiagnosticsTab parent) {

    if (statemachinefactory == null) {
        statemachinefactory = ContextAware.getAROConfigContext().getBean(IRrcStateMachineFactory.class);
    }
    if (burstcollectionanalyzer == null) {
        burstcollectionanalyzer = ContextAware.getAROConfigContext().getBean(IBurstCollectionAnalysis.class);
    }
    if (packetanalyzer == null) {
        packetanalyzer = ContextAware.getAROConfigContext().getBean(IPacketAnalyzer.class);
    }
    if (graphHelper == null) {
        graphHelper = new GraphPanelHelper();
    }
    if (guiPreferences == null) {
        guiPreferences = GUIPreferences.getInstance();
    }
    if (barPlot == null) {
        barPlot = new CreateBarPlot();
    }

    this.parent = parent;
    subplotMap.put(ChartPlotOptions.THROUGHPUT, new GraphPanelPlotLabels(
            ResourceBundleHelper.getMessageString("chart.throughput"), getBarPlot().drawXYItemPlot(), 2));
    subplotMap.put(ChartPlotOptions.BURSTS,
            new GraphPanelPlotLabels(ResourceBundleHelper.getMessageString("chart.bursts"),
                    getBarPlot().drawXYBarPlot(Color.gray, false), 1));
    subplotMap.put(ChartPlotOptions.USER_INPUT,
            new GraphPanelPlotLabels(ResourceBundleHelper.getMessageString("chart.userInput"),
                    getBarPlot().drawXYBarPlot(Color.gray, false), 1));
    subplotMap.put(ChartPlotOptions.RRC,
            new GraphPanelPlotLabels(ResourceBundleHelper.getMessageString("chart.rrc"),
                    getBarPlot().drawXYBarPlot(Color.gray, false), 1));
    subplotMap.put(ChartPlotOptions.ALARM,
            new GraphPanelPlotLabels(ResourceBundleHelper.getMessageString("chart.alarm"),
                    getBarPlot().drawXYBarPlot(Color.gray, true), 2));
    subplotMap.put(ChartPlotOptions.GPS,
            new GraphPanelPlotLabels(ResourceBundleHelper.getMessageString("chart.gps"),
                    getBarPlot().drawXYBarPlot(Color.gray, false), 1));
    subplotMap.put(ChartPlotOptions.BUFFER_OCCUPANCY, new GraphPanelPlotLabels(
            ResourceBundleHelper.getMessageString("chart.buffer.occupancy"), getBarPlot().drawXYItemPlot(), 1));
    subplotMap.put(ChartPlotOptions.VIDEO_CHUNKS, new GraphPanelPlotLabels(
            ResourceBundleHelper.getMessageString("chart.video.chunks"), getBarPlot().drawYIntervalPlot(), 1));
    subplotMap.put(ChartPlotOptions.RADIO,
            new GraphPanelPlotLabels(ResourceBundleHelper.getMessageString("chart.radio"),
                    getBarPlot().drawStandardXYPlot(DEFAULT_POINT_SHAPE, Color.red, MIN_SIGNAL, MAX_SIGNAL),
                    2));
    subplotMap.put(ChartPlotOptions.BLUETOOTH,
            new GraphPanelPlotLabels(ResourceBundleHelper.getMessageString("chart.bluetooth"),
                    getBarPlot().drawXYBarPlot(Color.gray, false), 1));
    subplotMap.put(ChartPlotOptions.CAMERA,
            new GraphPanelPlotLabels(ResourceBundleHelper.getMessageString("chart.camera"),
                    getBarPlot().drawXYBarPlot(Color.gray, false), 1));
    subplotMap.put(ChartPlotOptions.SCREEN,
            new GraphPanelPlotLabels(ResourceBundleHelper.getMessageString("chart.screen"),
                    getBarPlot().drawXYBarPlot(new Color(34, 177, 76), false), 1));
    subplotMap.put(ChartPlotOptions.BATTERY,
            new GraphPanelPlotLabels(ResourceBundleHelper.getMessageString("chart.battery"),
                    getBarPlot().drawStandardXYPlot(DEFAULT_POINT_SHAPE, Color.red, MIN_BATTERY, MAX_BATTERY),
                    2));
    subplotMap.put(ChartPlotOptions.TEMPERATURE,
            new GraphPanelPlotLabels(ResourceBundleHelper.getMessageString("chart.temperature"), getBarPlot()
                    .drawStandardXYPlot(DEFAULT_POINT_SHAPE, Color.green, MIN_TEMPERATURE, MAX_TEMPERATURE),
                    2));
    subplotMap.put(ChartPlotOptions.WAKELOCK,
            new GraphPanelPlotLabels(ResourceBundleHelper.getMessageString("chart.wakelock"),
                    getBarPlot().drawXYBarPlot(Color.yellow, false), 1));
    subplotMap.put(ChartPlotOptions.WIFI,
            new GraphPanelPlotLabels(ResourceBundleHelper.getMessageString("chart.wifi"),
                    getBarPlot().drawXYBarPlot(Color.gray, false), 1));
    subplotMap.put(ChartPlotOptions.NETWORK_TYPE,
            new GraphPanelPlotLabels(ResourceBundleHelper.getMessageString("chart.networkType"),
                    getBarPlot().drawXYBarPlot(Color.gray, false), 1));
    subplotMap.put(ChartPlotOptions.CPU, new GraphPanelPlotLabels(
            ResourceBundleHelper.getMessageString("chart.cpu"),
            getBarPlot().drawStandardXYPlot(CPU_PLOT_POINT_SHAPE, Color.black, MIN_CPU_USAGE, MAX_CPU_USAGE),
            1));
    subplotMap.put(ChartPlotOptions.UL_PACKETS, new GraphPanelPlotLabels(
            ResourceBundleHelper.getMessageString("chart.ul"), getBarPlot().drawYIntervalPlot(), 1));
    subplotMap.put(ChartPlotOptions.DL_PACKETS, new GraphPanelPlotLabels(
            ResourceBundleHelper.getMessageString("chart.dl"), getBarPlot().drawYIntervalPlot(), 1));
    subplotMap.put(ChartPlotOptions.BUFFER_TIME_OCCUPANCY,
            new GraphPanelPlotLabels(ResourceBundleHelper.getMessageString("chart.bufferTime.occupancy"),
                    getBarPlot().drawXYItemPlot(), 1));

    subplotMap.put(ChartPlotOptions.ATTENUATION, new GraphPanelPlotLabels(
            ResourceBundleHelper.getMessageString("chart.attenuation"), getBarPlot().drawStepChartPlot(), 2));

    subplotMap.put(ChartPlotOptions.SPEED_THROTTLE, new GraphPanelPlotLabels(
            ResourceBundleHelper.getMessageString("chart.attenuation"), getBarPlot().drawStepChartPlot(), 2));

    setLayout(new BorderLayout());
    setMinimumSize(new Dimension(300, 280));
    add(getZoomSavePanel(), BorderLayout.EAST);
    add(getPane(), BorderLayout.CENTER);
    setGraphPanelBorder(true);
    setChartOptions(guiPreferences.getChartPlotOptions());
}