Tabnine Logo
ConcreteTextSelector.getSelection
Code IndexAdd Tabnine to your IDE (free)

How to use
getSelection
method
in
org.apache.batik.bridge.ConcreteTextSelector

Best Java code snippets using org.apache.batik.bridge.ConcreteTextSelector.getSelection (Showing top 12 results out of 315)

origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Reports whether the current selection contains any objects.
 */
public boolean isEmpty() {
  return (getSelection() == null);
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Reports whether the current selection contains any objects.
 */
public boolean isEmpty() {
  return (getSelection() == null);
}
origin: apache/batik

/**
 * Reports whether the current selection contains any objects.
 */
public boolean isEmpty() {
  return (getSelection() == null);
}
origin: apache/batik

public void changeCompleted (GraphicsNodeChangeEvent gnce) {
  if (selectionNode == null) {
    return;
  }
  Shape newShape =
    ((Selectable)selectionNode).getHighlightShape();
  dispatchSelectionEvent
    (new SelectionEvent(getSelection(),
              SelectionEvent.SELECTION_CHANGED,
              newShape));
}
origin: org.apache.xmlgraphics/batik-bridge

public void changeCompleted (GraphicsNodeChangeEvent gnce) {
  if (selectionNode == null) {
    return;
  }
  Shape newShape =
    ((Selectable)selectionNode).getHighlightShape();
  dispatchSelectionEvent
    (new SelectionEvent(getSelection(),
              SelectionEvent.SELECTION_CHANGED,
              newShape));
}
origin: fr.avianey.apache-xmlgraphics/batik

public void changeCompleted (GraphicsNodeChangeEvent gnce) {
  if (selectionNode == null) {
    return;
  }
  Shape newShape =
    ((Selectable)selectionNode).getHighlightShape();
  dispatchSelectionEvent
    (new SelectionEvent(getSelection(),
              SelectionEvent.SELECTION_CHANGED,
              newShape));
}
origin: fr.avianey.apache-xmlgraphics/batik

public void setSelection(Mark begin, Mark end) {
  TextNode node = begin.getTextNode();
  if (node != end.getTextNode()) {
    throw new Error("Markers not from same TextNode");
  }
  node.setSelection(begin, end);
  selectionNode = node;
  selectionNodeRoot = node.getRoot();
  Object selection = getSelection();
  Shape  shape     = node.getHighlightShape();
  dispatchSelectionEvent(new SelectionEvent
    (selection, SelectionEvent.SELECTION_DONE, shape));
}
origin: org.apache.xmlgraphics/batik-bridge

public void setSelection(Mark begin, Mark end) {
  TextNode node = begin.getTextNode();
  if (node != end.getTextNode()) {
    throw new RuntimeException("Markers not from same TextNode");
  }
  node.setSelection(begin, end);
  selectionNode = node;
  selectionNodeRoot = node.getRoot();
  Object selection = getSelection();
  Shape  shape     = node.getHighlightShape();
  dispatchSelectionEvent(new SelectionEvent
    (selection, SelectionEvent.SELECTION_DONE, shape));
}
origin: apache/batik

public void setSelection(Mark begin, Mark end) {
  TextNode node = begin.getTextNode();
  if (node != end.getTextNode()) {
    throw new RuntimeException("Markers not from same TextNode");
  }
  node.setSelection(begin, end);
  selectionNode = node;
  selectionNodeRoot = node.getRoot();
  Object selection = getSelection();
  Shape  shape     = node.getHighlightShape();
  dispatchSelectionEvent(new SelectionEvent
    (selection, SelectionEvent.SELECTION_DONE, shape));
}
origin: fr.avianey.apache-xmlgraphics/batik

  ((Selectable) source).selectTo(p.getX(), p.getY());
Object oldSelection = getSelection();
if (selectionNode != null) {
  Shape newShape;
Object oldSelection = getSelection();
Shape newShape =
  ((Selectable) source).getHighlightShape();
origin: apache/batik

  ((Selectable) source).selectTo(p.getX(), p.getY());
Object oldSelection = getSelection();
if (selectionNode != null) {
  Shape newShape;
Object oldSelection = getSelection();
Shape newShape =
  ((Selectable) source).getHighlightShape();
origin: org.apache.xmlgraphics/batik-bridge

  ((Selectable) source).selectTo(p.getX(), p.getY());
Object oldSelection = getSelection();
if (selectionNode != null) {
  Shape newShape;
Object oldSelection = getSelection();
Shape newShape =
  ((Selectable) source).getHighlightShape();
org.apache.batik.bridgeConcreteTextSelectorgetSelection

Popular methods of ConcreteTextSelector

  • clearSelection
  • <init>
  • addSelectionListener
    Add a SelectionListener to this Selector's notification list.
  • checkSelectGesture
  • dispatchSelectionEvent
    Reports whether the current selection contains any objects.
  • isDeselectGesture
  • isSelectAllGesture
  • isSelectContinueGesture
  • isSelectEndGesture
  • isSelectStartGesture
  • mouseClicked
  • mouseDragged
  • mouseClicked,
  • mouseDragged,
  • mouseEntered,
  • mouseExited,
  • mousePressed,
  • mouseReleased,
  • removeSelectionListener,
  • report,
  • setSelection

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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