Logo Search packages:      
Sourcecode: wims version File versions

ptolemy::plot::PlotBox::PlotBox (  )  [inline]

Construct a plot box with a default configuration.

Definition at line 256 of file PlotBox.java.

                     {
        // If we make this transparent, the background shows through.
        // However, we assume that the user will set the background.
        // NOTE: A component is transparent by default (?).
        // setOpaque(false);
        setOpaque(true);

        // Create a right-justified layout with spacing of 2 pixels.
        setLayout(new FlowLayout(FlowLayout.RIGHT, 2, 2));
        addMouseListener(new ZoomListener());
        addKeyListener(new CommandListener());
        addMouseMotionListener(new DragListener());

        // This is something we want to do only once...
        _measureFonts();

        // Request the focus so that key events are heard.
        // NOTE: no longer needed?
        // requestFocus();
    }


Generated by  Doxygen 1.6.0   Back to index