private static Container createDefaultContainer() { //TODO: All this default container creation stuff should be in the UI //delegate. Not enough time at the moment for me to do this right. JXPanel p = new JXPanel(); p.setOpaque(false); return p; }
/** * {@inheritDoc} * <p> * Internals of JXCollasiplePane are designed to be opaque because some Look and Feel * implementations having painting issues otherwise. JXCollapsiblePane and its internals will * respect {@code setOpaque}, calling this method will not only update the collapsible pane, but * also all internals. This method does not modify the {@link #getContentPane() content pane}, * as it is not considered an internal. */ @Override public void setOpaque(boolean opaque) { super.setOpaque(opaque); if (wrapper != null) { wrapper.setOpaque(opaque); } }
/** * {@inheritDoc} * <p> * Internals of JXCollasiplePane are designed to be opaque because some Look and Feel * implementations having painting issues otherwise. JXCollapsiblePane and its internals will * respect {@code setOpaque}, calling this method will not only update the collapsible pane, but * also all internals. This method does not modify the {@link #getContentPane() content pane}, * as it is not considered an internal. */ @Override public void setOpaque(boolean opaque) { super.setOpaque(opaque); if (wrapper != null) { wrapper.setOpaque(opaque); } }
/** * {@inheritDoc} * <p> * Internals of JXCollasiplePane are designed to be opaque because some Look and Feel * implementations having painting issues otherwise. JXCollapsiblePane and its internals will * respect {@code setOpaque}, calling this method will not only update the collapsible pane, but * also all internals. This method does not modify the {@link #getContentPane() content pane}, * as it is not considered an internal. */ @Override public void setOpaque(boolean opaque) { super.setOpaque(opaque); if (wrapper != null) { wrapper.setOpaque(opaque); } }
/** * {@inheritDoc} * <p> * Internals of JXCollasiplePane are designed to be opaque because some Look and Feel * implementations having painting issues otherwise. JXCollapsiblePane and its internals will * respect {@code setOpaque}, calling this method will not only update the collapsible pane, but * also all internals. This method does not modify the {@link #getContentPane() content pane}, * as it is not considered an internal. */ @Override public void setOpaque(boolean opaque) { super.setOpaque(opaque); if (wrapper != null) { wrapper.setOpaque(opaque); } }
protected JXPanel createAndConfigureTopPanel(JXTitledPanel titledPanel) { JXPanel topPanel = new JXPanel(); topPanel.setBackgroundPainter(titledPanel.getTitlePainter()); topPanel.setBorder(BorderFactory.createEmptyBorder()); topPanel.setLayout(new GridBagLayout()); topPanel.setOpaque(false); return topPanel; }
protected JXPanel createAndConfigureTopPanel(JXTitledPanel titledPanel) { JXPanel topPanel = new JXPanel(); topPanel.setBackgroundPainter(titledPanel.getTitlePainter()); topPanel.setBorder(BorderFactory.createEmptyBorder()); topPanel.setLayout(new GridBagLayout()); topPanel.setOpaque(false); return topPanel; }
protected JXPanel createAndConfigureTopPanel(JXTitledPanel titledPanel) { JXPanel topPanel = new JXPanel(); topPanel.setBackgroundPainter(titledPanel.getTitlePainter()); topPanel.setBorder(BorderFactory.createEmptyBorder()); topPanel.setLayout(new GridBagLayout()); topPanel.setOpaque(false); return topPanel; }
protected JXPanel createAndConfigureTopPanel(JXTitledPanel titledPanel) { JXPanel topPanel = new JXPanel(); topPanel.setBackgroundPainter(titledPanel.getTitlePainter()); topPanel.setBorder(BorderFactory.createEmptyBorder()); topPanel.setLayout(new GridBagLayout()); topPanel.setOpaque(false); return topPanel; }
protected JXPanel createAndConfigureTopPanel(JXTitledPanel titledPanel) { JXPanel topPanel = new JXPanel(); topPanel.setBackgroundPainter(titledPanel.getTitlePainter()); topPanel.setBorder(BorderFactory.createEmptyBorder()); topPanel.setLayout(new GridBagLayout()); topPanel.setOpaque(false); return topPanel; }
public UniformityMeasurementsPanel() { try { assert EventQueue.isDispatchThread(); backgroundImage = ImageIO.read(getClass().getResource(IMAGE_RESOURCE)); painter = new ImagePainter(backgroundImage); painter.setScaleToFit(true); displayPanel.setOpaque(false); displayPanel.setBackgroundPainter(painter); final double imageAspectRatio = (double)backgroundImage.getWidth() / backgroundImage.getHeight(); setLayout(new FixedAspectRatioLayout(imageAspectRatio)); add(displayPanel); displayPanel.add(innerPanel); setOpaque(false); } catch (IOException e) { throw new RuntimeException(e); } }
public UniformityMeasurementsPanel() { try { assert EventQueue.isDispatchThread(); backgroundImage = ImageIO.read(getClass().getResource(IMAGE_RESOURCE)); painter = new ImagePainter(backgroundImage); painter.setScaleToFit(true); displayPanel.setOpaque(false); displayPanel.setBackgroundPainter(painter); final double imageAspectRatio = (double)backgroundImage.getWidth() / backgroundImage.getHeight(); setLayout(new FixedAspectRatioLayout(imageAspectRatio)); add(displayPanel); displayPanel.add(innerPanel); setOpaque(false); } catch (IOException e) { throw new RuntimeException(e); } }
public JXLoginFrame(JXLoginPane p) { super(UIManagerExt.getString(CLASS_NAME + ".titleString", p.getLocale())); JXPanel cp = new JXPanel(); cp.setOpaque(true); setContentPane(cp); this.panel = p; initWindow(this, panel); }
public JXLoginFrame(JXLoginPane p) { super(UIManagerExt.getString(CLASS_NAME + ".titleString", p.getLocale())); JXPanel cp = new JXPanel(); cp.setOpaque(true); setContentPane(cp); this.panel = p; initWindow(this, panel); }
public JXLoginFrame(JXLoginPane p) { super(UIManagerExt.getString(CLASS_NAME + ".titleString", p.getLocale())); JXPanel cp = new JXPanel(); cp.setOpaque(true); setContentPane(cp); this.panel = p; initWindow(this, panel); }
public JXLoginFrame(JXLoginPane p) { super(UIManagerExt.getString(CLASS_NAME + ".titleString", p.getLocale())); JXPanel cp = new JXPanel(); cp.setOpaque(true); setContentPane(cp); this.panel = p; initWindow(this, panel); }
public JXLoginFrame(JXLoginPane p) { super(UIManagerExt.getString(CLASS_NAME + ".titleString", p.getLocale())); JXPanel cp = new JXPanel(); cp.setOpaque(true); setContentPane(cp); this.panel = p; initWindow(this, panel); }
public SimpleExplorerPanel() { assert EventQueue.isDispatchThread(); setLayout(new OverlayLayout(this)); busyLabel.setText("Loading..."); busyLabel.setHorizontalAlignment(SwingConstants.CENTER); final MattePainter painter = new MattePainter(new Color(255, 255, 255, 128)); // painter.setFilters(new GaussianBlurFilter(10)); shadingPanel.setVisible(false); shadingPanel.setOpaque(false); shadingPanel.setBackgroundPainter(painter); shadingPanel.add(busyLabel, BorderLayout.CENTER); add(shadingPanel); final ActionMap actionMap = getActionMap(); actionMap.put(DefaultEditorKit.copyAction, ExplorerUtils.actionCopy(explorerManager)); actionMap.put(DefaultEditorKit.cutAction, ExplorerUtils.actionCut(explorerManager)); actionMap.put(DefaultEditorKit.pasteAction, ExplorerUtils.actionPaste(explorerManager)); actionMap.put("delete", ExplorerUtils.actionDelete(explorerManager, true)); explorerManager.addPropertyChangeListener(pcl); }
public SimpleExplorerPanel() { assert EventQueue.isDispatchThread(); setLayout(new OverlayLayout(this)); busyLabel.setText("Loading..."); busyLabel.setHorizontalAlignment(SwingConstants.CENTER); final MattePainter painter = new MattePainter(new Color(255, 255, 255, 128)); // painter.setFilters(new GaussianBlurFilter(10)); shadingPanel.setVisible(false); shadingPanel.setOpaque(false); shadingPanel.setBackgroundPainter(painter); shadingPanel.add(busyLabel, BorderLayout.CENTER); add(shadingPanel); final ActionMap actionMap = getActionMap(); actionMap.put(DefaultEditorKit.copyAction, ExplorerUtils.actionCopy(explorerManager)); actionMap.put(DefaultEditorKit.cutAction, ExplorerUtils.actionCut(explorerManager)); actionMap.put(DefaultEditorKit.pasteAction, ExplorerUtils.actionPaste(explorerManager)); actionMap.put("delete", ExplorerUtils.actionDelete(explorerManager, true)); explorerManager.addPropertyChangeListener(pcl); }
public DrawingController(JXMapViewer mapPanel) { this.drawingPanel = new DrawingPanel(mapPanel); this.toolsPanel = new JXPanel(); toolsPanel.setOpaque(false); toolsPanel.setLayout(new BorderLayout()); drawingPanel.addNodeListener(rootNodeListener); // listen for edit requests: GuiEventBus.addListener(editLayerEventListener); GuiEventBus.addListener(splitLayerEventListener); //measure GuiEventBus.addListener(measureLengthEventListener); GuiEventBus.addListener(measureAreaEventListener); }