예제 #1
0
 internal GlassPane([In] DashboardFrame obj0, [In] DashboardPanel obj1)
 {
   base.\u002Ector();
   GlassPane glassPane1 = this;
   this.dragType = -1;
   this.areas = (Map) new HashMap();
   this.showGrid = false;
   this.frame = obj0;
   this.panel = obj1;
   this.elementMenu = new JPopupMenu();
   JPopupMenu jpopupMenu1 = this.elementMenu;
   GlassPane glassPane2 = this;
   JMenu jmenu1 = new JMenu("Change to...");
   JMenu jmenu2 = jmenu1;
   this.changeToMenu = jmenu1;
   jpopupMenu1.add((JMenuItem) jmenu2);
   JPopupMenu jpopupMenu2 = this.elementMenu;
   JMenuItem.__\u003Cclinit\u003E();
   JMenuItem jmenuItem1 = new JMenuItem((Action) new GlassPane.PropertiesItemAction(this, "Properties...", (GlassPane\u00241) null));
   jpopupMenu2.add(jmenuItem1);
   JPopupMenu jpopupMenu3 = this.elementMenu;
   JMenuItem.__\u003Cclinit\u003E();
   JMenuItem jmenuItem2 = new JMenuItem((Action) new GlassPane.MoveToBackAction(this, "Send to Back", (GlassPane\u00241) null));
   jpopupMenu3.add(jmenuItem2);
   JPopupMenu jpopupMenu4 = this.elementMenu;
   GlassPane glassPane3 = this;
   JMenuItem.__\u003Cclinit\u003E();
   JMenuItem jmenuItem3 = new JMenuItem((Action) new GlassPane.ResetSizeAction(this, (GlassPane\u00241) null));
   JMenuItem jmenuItem4 = jmenuItem3;
   this.resizeMenu = jmenuItem3;
   jpopupMenu4.add(jmenuItem4);
   JPopupMenu jpopupMenu5 = this.elementMenu;
   JMenuItem.__\u003Cclinit\u003E();
   JMenuItem jmenuItem5 = new JMenuItem((Action) new GlassPane.DeleteItemAction(this));
   jpopupMenu5.add(jmenuItem5);
   ((Component) this).addComponentListener((ComponentListener) new GlassPane\u00241(this));
   ((Component) this).addKeyListener((KeyListener) new GlassPane\u00242(this));
   ((JComponent) this).setOpaque(false);
   ((Component) this).setFocusable(true);
   GlassPane.GlassMouseListener glassMouseListener = new GlassPane.GlassMouseListener(this, (GlassPane\u00241) null);
   ((Component) this).addMouseListener((MouseListener) glassMouseListener);
   ((Component) this).addMouseMotionListener((MouseMotionListener) glassMouseListener);
 }
예제 #2
0
		/// <summary>
		/// Returns the <code>Popup</code> that will be responsible for
		/// displaying the <code>JPopupMenu</code>.
		/// </summary>
		public Popup getPopup(JPopupMenu @popup, int @x, int @y)
		{
			return default(Popup);
		}
예제 #3
0
		/// <summary>
		/// Creates a window-closing listener for the popup.
		/// </summary>
		public JMenu.WinListener createWinListener(JPopupMenu @p)
		{
			return default(JMenu.WinListener);
		}
예제 #4
0
 /// <summary>
 /// Creates a window-closing listener for the popup.
 /// </summary>
 public JMenu.WinListener createWinListener(JPopupMenu @p)
 {
     return(default(JMenu.WinListener));
 }
예제 #5
0
 public ChartPanel(JFreeChart chart, int width, int height, int minimumDrawWidth, int minimumDrawHeight, int maximumDrawWidth, int maximumDrawHeight, bool useBuffer, bool properties, bool copy, bool save, bool print, bool zoom, bool tooltips)
 {
   int num1 = useBuffer ? 1 : 0;
   int num2 = properties ? 1 : 0;
   int num3 = copy ? 1 : 0;
   int num4 = save ? 1 : 0;
   int num5 = print ? 1 : 0;
   int num6 = zoom ? 1 : 0;
   int num7 = tooltips ? 1 : 0;
   base.\u002Ector();
   ChartPanel chartPanel = this;
   this.orientation = PlotOrientation.__\u003C\u003EVERTICAL;
   this.domainZoomable = false;
   this.rangeZoomable = false;
   this.zoomPoint = (Point2D) null;
   this.zoomRectangle = (Rectangle2D) null;
   this.fillZoomRectangle = true;
   this.horizontalAxisTrace = false;
   this.verticalAxisTrace = false;
   this.zoomInFactor = 0.5;
   this.zoomOutFactor = 2.0;
   this.panMask = 2;
   this.setChart(chart);
   this.chartMouseListeners = new EventListenerList();
   this.info = new ChartRenderingInfo();
   ((JComponent) this).setPreferredSize(new Dimension(width, height));
   this.useBuffer = num1 != 0;
   this.refreshBuffer = false;
   this.minimumDrawWidth = minimumDrawWidth;
   this.minimumDrawHeight = minimumDrawHeight;
   this.maximumDrawWidth = maximumDrawWidth;
   this.maximumDrawHeight = maximumDrawHeight;
   this.zoomTriggerDistance = 10;
   this.popup = (JPopupMenu) null;
   if (num2 != 0 || num3 != 0 || (num4 != 0 || num5 != 0) || num6 != 0)
     this.popup = this.createPopupMenu(num2 != 0, num3 != 0, num4 != 0, num5 != 0, num6 != 0);
   ((Component) this).enableEvents(16L);
   ((Component) this).enableEvents(32L);
   this.setDisplayToolTips(num7 != 0);
   ((Component) this).addMouseListener((MouseListener) this);
   ((Component) this).addMouseMotionListener((MouseMotionListener) this);
   this.defaultDirectoryForSaveAs = (File) null;
   this.enforceFileExtensions = true;
   ToolTipManager toolTipManager = ToolTipManager.sharedInstance();
   this.ownToolTipInitialDelay = toolTipManager.getInitialDelay();
   this.ownToolTipDismissDelay = toolTipManager.getDismissDelay();
   this.ownToolTipReshowDelay = toolTipManager.getReshowDelay();
   this.zoomAroundAnchor = false;
   this.zoomOutlinePaint = (Paint) Color.blue;
   this.zoomFillPaint = (Paint) new Color(0, 0, (int) byte.MaxValue, 63);
   this.panMask = 2;
   if (String.instancehelper_startsWith(String.instancehelper_toLowerCase(System.getProperty("os.name")), "mac os x"))
     this.panMask = 8;
   this.overlays = (List) new ArrayList();
 }