Examples of paintHovered()


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

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

    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

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

      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

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

  public void paintHovered(Graphics clipg) {
    JPanel jpanel = (JPanel) adaptable.getWidget();
    LayoutManager layout = jpanel.getLayout();
    if (layout != null) {
      LayoutAdapter layoutAdapter = ((CompositeAdapter)adaptable).getLayoutAdapter();
      layoutAdapter.paintHovered(clipg);
    }
    clipg.setColor(Color.lightGray);
    clipg.drawRect(0, 0, jpanel.getWidth() -1 , jpanel.getHeight() - 1);
  }
  @Override
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.