protected internal AbstractDialLayer() { base.\u002Ector(); AbstractDialLayer abstractDialLayer = this; this.visible = true; this.listenerList = new EventListenerList(); }
protected internal AbstractDataset() { base.\u002Ector(); AbstractDataset abstractDataset = this; this.group = new DatasetGroup(); this.listenerList = new EventListenerList(); }
/// <summary> /// Creates an attached event member with custom logic. /// </summary> public static INotifiableAttachedBindingMemberInfo <TTarget, object> CreateEvent <TTarget>([NotNull] string path, Action <TTarget, MemberAttachedEventArgs> memberAttachedHandler = null) { var eventMember = new AttachedBindingMemberInfo <TTarget, object>(path, typeof(Delegate), memberAttachedHandler, null, null, GetBindingMemberValue, (info, target, arg3) => { return(EventListenerList.GetOrAdd(target, ((IAttachedBindingMemberInternal)info).Id).AddWithUnsubscriber((IEventListener)arg3[0])); }, null, null, BindingMemberType.Event); eventMember.RaiseAction = (@internal, target, arg3) => EventListenerList.Raise(target, @internal.Id, arg3); return(eventMember); }
public bool OnMenuItemClick(IMenuItem item) { #if API8SUPPORT item = _item; #endif if (item.IsCheckable) { IsCheckedMenuItemMember.SetValue(item, !item.IsChecked); } EventListenerList.Raise(item, Key, EventArgs.Empty); return(true); }
public bool OnMenuItemClick(IMenuItem item) { if (_item == null) { return(false); } item = _item; if (item.IsCheckable) { item.SetBindingMemberValue(AttachedMembers.MenuItem.IsChecked, !item.IsChecked); } EventListenerList.Raise(item, Key, EventArgs.Empty); return(true); }
public static IDisposable Listen(FrameworkElement control, IEventListener listener) { var value = (EventListenerList)control.GetValue(DataContextListenerProperty); if (value == null) { value = new EventListenerList(); control.SetValue(DataContextListenerProperty, value); control.SetBinding(InternalDataContextProperty, new BindingEx { ValidatesOnDataErrors = false, NotifyOnValidationError = false, ValidatesOnNotifyDataErrors = false, ValidatesOnExceptions = false }); } return(value.AddWithUnsubscriber(listener)); }
protected internal Series(IComparable key, string description) { base.\u002Ector(); Series series = this; if (key == null) { string str = "Null 'key' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else { this.key = key; this.description = description; this.listeners = new EventListenerList(); this.propertyChangeSupport = new PropertyChangeSupport((object) this); this.notify = true; } }
public static void Raise(IBindingMemberInfo m, TTarget target, object arg3) { EventListenerList.Raise(target, GetMemberPath((IAttachedBindingMemberInternal)m), arg3); }
public IDisposable ObserveMember(IBindingMemberInfo arg1, TTarget arg2, IEventListener arg3) { return(EventListenerList .GetOrAdd(arg2, GetMemberPath((IAttachedBindingMemberInternal)arg1)) .AddWithUnsubscriber(arg3)); }
private static EventListenerList CreateContextListener(object src, object state) { var context = (IBindingContext)state; var listenerInternal = new EventListenerList(); context.ValueChanged += listenerInternal.Raise; return listenerInternal; }
public JFreeChart(string title, Font titleFont, Plot plot, bool createLegend) { int num = createLegend ? 1 : 0; base.\u002Ector(); JFreeChart jfreeChart = this; this.backgroundImageAlignment = 15; this.backgroundImageAlpha = 0.5f; if (plot == null) { string str = "Null 'plot' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new NullPointerException(str); } else { this.progressListeners = new EventListenerList(); this.changeListeners = new EventListenerList(); this.notify = true; RenderingHints.__\u003Cclinit\u003E(); this.renderingHints = new RenderingHints((RenderingHints.Key) RenderingHints.KEY_ANTIALIASING, (object) RenderingHints.VALUE_ANTIALIAS_ON); this.borderVisible = false; this.borderStroke = (Stroke) new BasicStroke(1f); this.borderPaint = (Paint) Color.black; this.padding = RectangleInsets.__\u003C\u003EZERO_INSETS; this.plot = plot; plot.addChangeListener((PlotChangeListener) this); this.subtitles = (List) new ArrayList(); if (num != 0) { LegendTitle.__\u003Cclinit\u003E(); LegendTitle legendTitle = new LegendTitle((LegendItemSource) this.plot); legendTitle.setMargin(new RectangleInsets(1.0, 1.0, 1.0, 1.0)); legendTitle.setFrame((BlockFrame) new LineBorder()); legendTitle.setBackgroundPaint((Paint) Color.white); legendTitle.setPosition(RectangleEdge.__\u003C\u003EBOTTOM); this.subtitles.add((object) legendTitle); legendTitle.addChangeListener((TitleChangeListener) this); } if (title != null) { if (titleFont == null) titleFont = JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT; this.title = new TextTitle(title, titleFont); this.title.addChangeListener((TitleChangeListener) this); } this.backgroundPaint = JFreeChart.__\u003C\u003EDEFAULT_BACKGROUND_PAINT; this.backgroundImage = JFreeChart.__\u003C\u003EDEFAULT_BACKGROUND_IMAGE; this.backgroundImageAlignment = 15; this.backgroundImageAlpha = 0.5f; } }
private static IDisposable ObserveErrors(IBindingMemberInfo bindingMemberInfo, DependencyObject dependencyObject, IEventListener arg3) { return(EventListenerList.GetOrAdd(dependencyObject, ErrorsObserverKey).AddWithUnsubscriber(arg3)); }
protected internal Title(RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding) { Title title = this; if (position == null) { string str = "Null 'position' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else if (horizontalAlignment == null) { string str = "Null 'horizontalAlignment' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else if (verticalAlignment == null) { string str = "Null 'verticalAlignment' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else if (padding == null) { string str = "Null 'spacer' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else { this.visible = true; this.position = position; this.horizontalAlignment = horizontalAlignment; this.verticalAlignment = verticalAlignment; this.setPadding(padding); this.listenerList = new EventListenerList(); this.notify = true; } }
private static void RaiseTextChanged(IBindingMemberInfo info, object field, object arg3) { EventListenerList.GetOrAdd(field, TextChangedEvent).Raise(field, arg3); }
private static EventListenerList CreateWeakListener(object target, object state) { var eventInfo = (EventInfo)state; var listenerInternal = new EventListenerList(); object handler = eventInfo.EventHandlerType == typeof(EventHandler) ? new EventHandler(listenerInternal.Raise) : ServiceProvider.ReflectionManager.TryCreateDelegate(eventInfo.EventHandlerType, listenerInternal, EventListenerList.RaiseMethod); if (handler == null) return EventListenerList.EmptyListener; #if PCL_WINRT var addMethod = eventInfo.AddMethod; #else var addMethod = eventInfo.GetAddMethod(true); #endif if (addMethod == null) return EventListenerList.EmptyListener; addMethod.InvokeEx(target, handler); return listenerInternal; }
private static void Raise(IMenuItem item) { EventListenerList.Raise(item, Key, EventArgs.Empty); }
private static void Raise(DatePicker picker) { EventListenerList.Raise(picker, Key, EventArgs.Empty); }
public static IDisposable AddDateChangedListener(DatePicker datePicker, IEventListener listener) { return(EventListenerList.GetOrAdd(datePicker, Key).AddWithUnsubscriber(listener)); }
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(); }
protected internal Plot() { base.\u002Ector(); Plot plot = this; this.backgroundImageAlignment = 15; this.backgroundImageAlpha = 0.5f; this.parent = (Plot) null; this.insets = Plot.__\u003C\u003EDEFAULT_INSETS; this.backgroundPaint = Plot.__\u003C\u003EDEFAULT_BACKGROUND_PAINT; this.backgroundAlpha = 1f; this.backgroundImage = (Image) null; this.outlineVisible = true; this.outlineStroke = Plot.__\u003C\u003EDEFAULT_OUTLINE_STROKE; this.outlinePaint = Plot.__\u003C\u003EDEFAULT_OUTLINE_PAINT; this.foregroundAlpha = 1f; this.noDataMessage = (string) null; this.noDataMessageFont = new Font("SansSerif", 0, 12); this.noDataMessagePaint = (Paint) Color.black; this.drawingSupplier = (DrawingSupplier) new DefaultDrawingSupplier(); this.notify = true; this.listenerList = new EventListenerList(); }
public static IDisposable AddExpandListener(IMenuItem menuItem, IEventListener listener) { return(EventListenerList.GetOrAdd(menuItem, Key).AddWithUnsubscriber(listener)); }
public AbstractRenderer() { base.\u002Ector(); AbstractRenderer abstractRenderer = this; this.itemLabelAnchorOffset = 2.0; this.dataBoundsIncludesVisibleSeriesOnly = true; this.seriesVisible = (Boolean) null; this.seriesVisibleList = new BooleanList(); this.baseSeriesVisible = true; this.seriesVisibleInLegend = (Boolean) null; this.seriesVisibleInLegendList = new BooleanList(); this.baseSeriesVisibleInLegend = true; this.paint = (Paint) null; this.paintList = new PaintList(); this.basePaint = AbstractRenderer.__\u003C\u003EDEFAULT_PAINT; this.autoPopulateSeriesPaint = true; this.fillPaint = (Paint) null; this.fillPaintList = new PaintList(); this.baseFillPaint = (Paint) Color.white; this.autoPopulateSeriesFillPaint = false; this.outlinePaint = (Paint) null; this.outlinePaintList = new PaintList(); this.baseOutlinePaint = AbstractRenderer.__\u003C\u003EDEFAULT_OUTLINE_PAINT; this.autoPopulateSeriesOutlinePaint = false; this.stroke = (Stroke) null; this.strokeList = new StrokeList(); this.baseStroke = AbstractRenderer.__\u003C\u003EDEFAULT_STROKE; this.autoPopulateSeriesStroke = true; this.outlineStroke = (Stroke) null; this.outlineStrokeList = new StrokeList(); this.baseOutlineStroke = AbstractRenderer.__\u003C\u003EDEFAULT_OUTLINE_STROKE; this.autoPopulateSeriesOutlineStroke = false; this.shape = (Shape) null; this.shapeList = new ShapeList(); this.baseShape = AbstractRenderer.__\u003C\u003EDEFAULT_SHAPE; this.autoPopulateSeriesShape = true; this.itemLabelsVisible = (Boolean) null; this.itemLabelsVisibleList = new BooleanList(); this.baseItemLabelsVisible = (Boolean) Boolean.FALSE; this.itemLabelFont = (Font) null; this.itemLabelFontList = new ObjectList(); this.baseItemLabelFont = new Font("SansSerif", 0, 10); this.itemLabelPaint = (Paint) null; this.itemLabelPaintList = new PaintList(); this.baseItemLabelPaint = (Paint) Color.black; this.positiveItemLabelPosition = (ItemLabelPosition) null; this.positiveItemLabelPositionList = new ObjectList(); this.basePositiveItemLabelPosition = new ItemLabelPosition(ItemLabelAnchor.__\u003C\u003EOUTSIDE12, TextAnchor.__\u003C\u003EBOTTOM_CENTER); this.negativeItemLabelPosition = (ItemLabelPosition) null; this.negativeItemLabelPositionList = new ObjectList(); this.baseNegativeItemLabelPosition = new ItemLabelPosition(ItemLabelAnchor.__\u003C\u003EOUTSIDE6, TextAnchor.__\u003C\u003ETOP_CENTER); this.createEntities = (Boolean) null; this.createEntitiesList = new BooleanList(); this.baseCreateEntities = true; this.defaultEntityRadius = 3; this.legendShape = new ShapeList(); this.baseLegendShape = (Shape) null; this.legendTextFont = new ObjectList(); this.baseLegendTextFont = (Font) null; this.legendTextPaint = new PaintList(); this.baseLegendTextPaint = (Paint) null; this.listenerList = new EventListenerList(); }
private void readObject([In] ObjectInputStream obj0) { obj0.defaultReadObject(); this.listenerList = new EventListenerList(); }
protected internal Marker(Paint paint, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha) { base.\u002Ector(); Marker marker = this; this.label = (string) null; if (paint == null) { string str = "Null 'paint' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else if (stroke == null) { string str = "Null 'stroke' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else if ((double) alpha < 0.0 || (double) alpha > 1.0) { string str = "The 'alpha' value must be in the range 0.0f to 1.0f"; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else { this.paint = paint; this.stroke = stroke; this.outlinePaint = outlinePaint; this.outlineStroke = outlineStroke; this.alpha = alpha; this.labelFont = new Font("SansSerif", 0, 9); this.labelPaint = (Paint) Color.black; this.labelAnchor = RectangleAnchor.__\u003C\u003ETOP_LEFT; this.labelOffset = new RectangleInsets(3.0, 3.0, 3.0, 3.0); this.labelOffsetType = LengthAdjustmentType.__\u003C\u003ECONTRACT; this.labelTextAnchor = TextAnchor.__\u003C\u003ECENTER; this.listenerList = new EventListenerList(); } }
private static IDisposable SetTextFieldTextChanged(IBindingMemberInfo bindingMemberInfo, NSObject item, IEventListener arg3) { return(EventListenerList.GetOrAdd(item, TextChangedEvent).AddWithUnsubscriber(arg3)); }
private static void OnErrorsChanged(DependencyObject sender, ICollection <object> errors) { EventListenerList.Raise(sender, ErrorsObserverKey, EventArgs.Empty); }
private static void TextDidChangeNotification(NSNotification nsNotification) { EventListenerList.Raise(nsNotification.Object, TextChangedEvent, EventArgs.Empty); }
public AbstractOverlay() { base.\u002Ector(); AbstractOverlay abstractOverlay = this; this.changeListeners = new EventListenerList(); }