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)); }
Shape s = textNode.getHighlightShape(); AffineTransform at; if (highlightCenterZoomButton.isSelected()) {
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)); }
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)); }
Shape s = textNode.getHighlightShape(); AffineTransform at; if (highlightCenterZoomButton.isSelected()) {