}
else
{
- frame = new JInternalFrame();
- frame.setContentPane(this);
+ frame = new JInternalFrame();
+ frame.setContentPane(this);
Rectangle bounds = af.getFeatureSettingsGeometry();
String title;
if (af.getAlignPanels().size() > 1 || Desktop.getAlignmentPanels(
frame.setBounds(bounds);
frame.setVisible(true);
}
- frame.setMinimumSize(new Dimension(MIN_WIDTH, MIN_HEIGHT));
+ frame.setMinimumSize(new Dimension(MIN_WIDTH, MIN_HEIGHT));
- frame.addInternalFrameListener(
- new javax.swing.event.InternalFrameAdapter()
+ frame.addInternalFrameListener(
+ new javax.swing.event.InternalFrameAdapter()
+ {
+ @Override
+ public void internalFrameClosed(
+ javax.swing.event.InternalFrameEvent evt)
{
- @Override
- public void internalFrameClosed(
- javax.swing.event.InternalFrameEvent evt)
- {
featureSettings_isClosed();
};
- });
- frame.setLayer(JLayeredPane.PALETTE_LAYER);
+ });
+ frame.setLayer(JLayeredPane.PALETTE_LAYER);
}
- inConstruction = false;
- }
+ inConstruction = false;
+ }
/**
* Sets the state of buttons to show complement features from viewport
/**
* Constructs and shows a popup menu of possible actions on the selected row and
* feature type
- *
- * @param rowSelected
- * @param type
- * @param typeCol
- * @param pt
- */
+ *
+ * @param rowSelected
+ * @param type
+ * @param typeCol
+ * @param pt
+ */
protected void showPopupMenu(final int rowSelected, final String type, final Object typeCol, final Point pt)
{
JPopupMenu men = new JPopupMenu(MessageManager
{
if (e.getSource() == variableColourCB)
{
- // BH 2018 for JavaScript because this is a checkbox
- men.setVisible(true);
+ // BH 2018 for JavaScript because this is a checkbox
+ men.setVisible(true);
men.setVisible(false);
if (featureColour.isSimpleColour())
{
men.add(scr);
scr.addActionListener(new ActionListener()
{
+
@Override
public void actionPerformed(ActionEvent e)
{
MessageManager.getString("label.sort_by_density"));
dens.addActionListener(new ActionListener()
{
+
@Override
public void actionPerformed(ActionEvent e)
{
if (frame != null)
{
af.setFeatureSettingsGeometry(frame.getBounds());
- frame.setClosed(true);
+ frame.setClosed(true);
}
else
{
{
if (!hasComplement)
{
- close();
- }
+ close();
+ }
else
{
storeOriginalSettings();
*
* @param fcol
* @param withHint
- * if true include 'click to edit' and similar text
+ * if true include 'click to edit' and similar text
* @return
*/
public static String getColorTooltip(FeatureColourI fcol,