Package org.dyno.visual.swing.plugin.spi

Examples of org.dyno.visual.swing.plugin.spi.IPainter.paintHovered()


      JPopupMenu popup = jmenu.getPopupMenu();
      CompositeAdapter adapter = (CompositeAdapter) WidgetAdapter.getWidgetAdapter(popup);
      if (adapter == null)
        adapter = (CompositeAdapter) ExtensionRegistry.createWidgetAdapter(popup);
      IPainter painter = (IPainter) adapter.getAdapter(IPainter.class);
      painter.paintHovered(clipg);
    } else {
      if (((JMenuDesignOperation)getOperation()).getDropStatus()== JMenuDesignOperation.DROPPING_FORBIDDEN) {
        JMenu jmenu = (JMenu) adaptable.getWidget();
        Graphics2D g2d = (Graphics2D) clipg;
        g2d.setStroke(STROKE);
View Full Code Here


    Component jpar = hovered.getWidget();
    if (hovered.isRoot())
      jpar = hovered.getRootPane();
    IPainter painter = (IPainter) hovered.getAdapter(IPainter.class);
    if (hovered.needGlobalGraphics()) {
      painter.paintHovered(g);
    } else {
      Rectangle local = SwingUtilities.getLocalBounds(jpar);
      Rectangle pub = SwingUtilities.convertRectangle(jpar, local, designer);
      Graphics clipg = g.create(pub.x, pub.y, pub.width + 1, pub.height + 1);
      painter.paintHovered(clipg);
View Full Code Here

      painter.paintHovered(g);
    } else {
      Rectangle local = SwingUtilities.getLocalBounds(jpar);
      Rectangle pub = SwingUtilities.convertRectangle(jpar, local, designer);
      Graphics clipg = g.create(pub.x, pub.y, pub.width + 1, pub.height + 1);
      painter.paintHovered(clipg);
      clipg.dispose();
    }
  }

  private void paintMascot(Graphics g, JComponent c) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.