Tabnine Logo
EventListenerList.getEventListeners
Code IndexAdd Tabnine to your IDE (free)

How to use
getEventListeners
method
in
org.apache.batik.dom.events.EventListenerList

Best Java code snippets using org.apache.batik.dom.events.EventListenerList.getEventListeners (Showing top 12 results out of 315)

origin: org.apache.xmlgraphics/batik-dom

/**
 * Returns an array of EventListeners that match the given namespace URI.
 */
public Entry[] getEventListeners(String namespaceURI) {
  if (namespaceURI == null) {
    return getEventListeners();
  }
  Entry[] ls = (Entry[]) listenersNS.get(namespaceURI);
  if (ls != null) {
    return ls;
  }
  int count = counts.get(namespaceURI);
  if (count == 0) {
    return null;
  }
  ls = new Entry[count];
  listenersNS.put(namespaceURI, ls);
  int i = 0;
  for (Entry e = head; i < count; e = e.next) {
    if (namespaceURI.equals(e.namespaceURI)) {
      ls[i++] = e;
    }
  }
  return ls;
}
origin: apache/batik

/**
 * Returns an array of EventListeners that match the given namespace URI.
 */
public Entry[] getEventListeners(String namespaceURI) {
  if (namespaceURI == null) {
    return getEventListeners();
  }
  Entry[] ls = (Entry[]) listenersNS.get(namespaceURI);
  if (ls != null) {
    return ls;
  }
  int count = counts.get(namespaceURI);
  if (count == 0) {
    return null;
  }
  ls = new Entry[count];
  listenersNS.put(namespaceURI, ls);
  int i = 0;
  for (Entry e = head; i < count; e = e.next) {
    if (namespaceURI.equals(e.namespaceURI)) {
      ls[i++] = e;
    }
  }
  return ls;
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns an array of EventListeners that match the given namespace URI.
 */
public Entry[] getEventListeners(String namespaceURI) {
  if (namespaceURI == null) {
    return getEventListeners();
  }
  Entry[] ls = (Entry[]) listenersNS.get(namespaceURI);
  if (ls != null) {
    return ls;
  }
  int count = counts.get(namespaceURI);
  if (count == 0) {
    return null;
  }
  ls = new Entry[count];
  listenersNS.put(namespaceURI, ls);
  int i = 0;
  for (Entry e = head; i < count; e = e.next) {
    if (namespaceURI.equals(e.namespaceURI)) {
      ls[i++] = e;
    }
  }
  return ls;
}
origin: org.apache.xmlgraphics/batik-anim

EventListenerList.Entry[] listeners = list.getEventListeners();
fireEventListeners(node, e, listeners, stoppedGroups,
          toBeStoppedGroups);
origin: fr.avianey.apache-xmlgraphics/batik

EventListenerList.Entry[] listeners = list.getEventListeners();
fireEventListeners(node, e, listeners, stoppedGroups,
          toBeStoppedGroups);
origin: apache/batik

EventListenerList.Entry[] listeners = list.getEventListeners();
fireEventListeners(node, e, listeners, stoppedGroups,
          toBeStoppedGroups);
origin: apache/batik

  /**
   * Fires the registered implementation listeners on the given event
   * target.
   */
  protected void fireImplementationEventListeners(NodeEventTarget node, 
                          AbstractEvent e,
                          boolean useCapture) {
    String type = e.getType();
    XBLEventSupport support = (XBLEventSupport) node.getEventSupport();
    // check if the event support has been instantiated
    if (support == null) {
      return;
    }
    EventListenerList list =
      support.getImplementationEventListeners(type, useCapture);
    // check if the event listeners list is not empty
    if (list == null) {
      return;
    }
    // dump event listeners, we get the registered listeners NOW
    EventListenerList.Entry[] listeners = list.getEventListeners();
    fireEventListeners(node, e, listeners, null, null);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Fires the registered listeners on the given event target.
 */
protected void fireEventListeners(NodeEventTarget node,
                 AbstractEvent e,
                 boolean useCapture,
                 HashSet stoppedGroups,
                 HashSet toBeStoppedGroups) {
  String type = e.getType();
  EventSupport support = node.getEventSupport();
  // check if the event support has been instantiated
  if (support == null) {
    return;
  }
  EventListenerList list = support.getEventListeners(type, useCapture);
  // check if the event listeners list is not empty
  if (list == null) {
    return;
  }
  // dump event listeners, we get the registered listeners NOW
  EventListenerList.Entry[] listeners = list.getEventListeners();
  fireEventListeners(node, e, listeners, stoppedGroups,
            toBeStoppedGroups);
}
origin: org.apache.xmlgraphics/batik-dom

/**
 * Fires the registered listeners on the given event target.
 */
protected void fireEventListeners(NodeEventTarget node,
                 AbstractEvent e,
                 boolean useCapture,
                 HashSet stoppedGroups,
                 HashSet toBeStoppedGroups) {
  String type = e.getType();
  EventSupport support = node.getEventSupport();
  // check if the event support has been instantiated
  if (support == null) {
    return;
  }
  EventListenerList list = support.getEventListeners(type, useCapture);
  // check if the event listeners list is not empty
  if (list == null) {
    return;
  }
  // dump event listeners, we get the registered listeners NOW
  EventListenerList.Entry[] listeners = list.getEventListeners();
  fireEventListeners(node, e, listeners, stoppedGroups,
            toBeStoppedGroups);
}
origin: org.apache.xmlgraphics/batik-anim

  /**
   * Fires the registered implementation listeners on the given event
   * target.
   */
  protected void fireImplementationEventListeners(NodeEventTarget node, 
                          AbstractEvent e,
                          boolean useCapture) {
    String type = e.getType();
    XBLEventSupport support = (XBLEventSupport) node.getEventSupport();
    // check if the event support has been instantiated
    if (support == null) {
      return;
    }
    EventListenerList list =
      support.getImplementationEventListeners(type, useCapture);
    // check if the event listeners list is not empty
    if (list == null) {
      return;
    }
    // dump event listeners, we get the registered listeners NOW
    EventListenerList.Entry[] listeners = list.getEventListeners();
    fireEventListeners(node, e, listeners, null, null);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

  /**
   * Fires the registered implementation listeners on the given event
   * target.
   */
  protected void fireImplementationEventListeners(NodeEventTarget node, 
                          AbstractEvent e,
                          boolean useCapture) {
    String type = e.getType();
    XBLEventSupport support = (XBLEventSupport) node.getEventSupport();
    // check if the event support has been instantiated
    if (support == null) {
      return;
    }
    EventListenerList list =
      support.getImplementationEventListeners(type, useCapture);
    // check if the event listeners list is not empty
    if (list == null) {
      return;
    }
    // dump event listeners, we get the registered listeners NOW
    EventListenerList.Entry[] listeners = list.getEventListeners();
    fireEventListeners(node, e, listeners, null, null);
  }
}
origin: apache/batik

/**
 * Fires the registered listeners on the given event target.
 */
protected void fireEventListeners(NodeEventTarget node,
                 AbstractEvent e,
                 boolean useCapture,
                 HashSet stoppedGroups,
                 HashSet toBeStoppedGroups) {
  String type = e.getType();
  EventSupport support = node.getEventSupport();
  // check if the event support has been instantiated
  if (support == null) {
    return;
  }
  EventListenerList list = support.getEventListeners(type, useCapture);
  // check if the event listeners list is not empty
  if (list == null) {
    return;
  }
  // dump event listeners, we get the registered listeners NOW
  EventListenerList.Entry[] listeners = list.getEventListeners();
  fireEventListeners(node, e, listeners, stoppedGroups,
            toBeStoppedGroups);
}
org.apache.batik.dom.eventsEventListenerListgetEventListeners

Javadoc

Returns an array containing all event listener entries.

Popular methods of EventListenerList

  • <init>
  • addListener
    Adds a listener.
  • removeListener
    Removes a listener.
  • size
    Returns the number of event listeners stored in this object.
  • hasEventListener
    Returns whether there is an event listener for the given namespace URI.

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now