Top Fields Constructors Methods
org.apache.pdfbox.debugger.streampane

pack-priv Class StreamTextView

extends Object
implements MouseMotionListener, AncestorListener
Class Inheritance
All Implemented Interfaces
javax.swing.event.AncestorListener, java.util.EventListener, java.awt.event.MouseMotionListener
Imports
java.awt.Font, java.awt.event.MouseEvent, .MouseMotionListener, javax.swing.BoxLayout, .JComponent, .JPanel, .JScrollPane, .JTextPane, .SwingUtilities, javax.swing.event.AncestorEvent, .AncestorListener, javax.swing.text.StyledDocument, org.apache.pdfbox.debugger.PDFDebugger, org.apache.pdfbox.debugger.streampane.tooltip.ToolTipController, org.apache.pdfbox.debugger.ui.textsearcher.Searcher

Author
Khyrul Bashar A class that provides the container for the texts when stream is shown in stream pane.

Field Summary

Modifier and TypeField and Description
private JPanel
private Searcher
private JTextPane
private final ToolTipController

Constructor Summary

AccessConstructor and Description
pack-priv
StreamTextView(StyledDocument
StyledDocument instance which is supposed to be shown in the pane.
document
,
ToolTipController
ToolTipController instance.
controller
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public void
ancestorAdded(AncestorEvent
an AncestorEvent signifying a change in an ancestor-component's display-status
ancestorEvent
)

Implements javax.swing.event.AncestorListener.ancestorAdded.

Called when the source or one of its ancestors is made visible either by setVisible(true) being called or by its being added to the component hierarchy.

public void
ancestorMoved(AncestorEvent
an AncestorEvent signifying a change in an ancestor-component's display-status
ancestorEvent
)

Implements javax.swing.event.AncestorListener.ancestorMoved.

Called when either the source or one of its ancestors is moved.

public void
ancestorRemoved(AncestorEvent
an AncestorEvent signifying a change in an ancestor-component's display-status
ancestorEvent
)

Implements javax.swing.event.AncestorListener.ancestorRemoved.

Called when the source or one of its ancestors is made invisible either by setVisible(false) being called or by its being removed from the component hierarchy.

pack-priv JComponent
private void
public void
mouseDragged(MouseEvent
the event to be processed
mouseEvent
)

Implements java.awt.event.MouseMotionListener.mouseDragged.

Invoked when a mouse button is pressed on a component and then dragged.

public void
mouseMoved(MouseEvent
the event to be processed
mouseEvent
)

Implements java.awt.event.MouseMotionListener.mouseMoved.

Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mainPanelback to summary
private JPanel mainPanel
searcherback to summary
private Searcher searcher
textPaneback to summary
private JTextPane textPane
tTControllerback to summary
private final ToolTipController tTController

Constructor Detail

StreamTextViewback to summary
pack-priv StreamTextView(StyledDocument document, ToolTipController controller)

Constructor.

Parameters
document:StyledDocument

StyledDocument instance which is supposed to be shown in the pane.

controller:ToolTipController

ToolTipController instance.

Method Detail

ancestorAddedback to summary
public void ancestorAdded(AncestorEvent ancestorEvent)

Implements javax.swing.event.AncestorListener.ancestorAdded.

Doc from javax.swing.event.AncestorListener.ancestorAdded.

Called when the source or one of its ancestors is made visible either by setVisible(true) being called or by its being added to the component hierarchy. The method is only called if the source has actually become visible. For this to be true all its parents must be visible and it must be in a hierarchy rooted at a Window

Parameters
ancestorEvent:AncestorEvent

an AncestorEvent signifying a change in an ancestor-component's display-status

Annotations
@Override
ancestorMovedback to summary
public void ancestorMoved(AncestorEvent ancestorEvent)

Implements javax.swing.event.AncestorListener.ancestorMoved.

Doc from javax.swing.event.AncestorListener.ancestorMoved.

Called when either the source or one of its ancestors is moved.

Parameters
ancestorEvent:AncestorEvent

an AncestorEvent signifying a change in an ancestor-component's display-status

Annotations
@Override
ancestorRemovedback to summary
public void ancestorRemoved(AncestorEvent ancestorEvent)

Implements javax.swing.event.AncestorListener.ancestorRemoved.

Doc from javax.swing.event.AncestorListener.ancestorRemoved.

Called when the source or one of its ancestors is made invisible either by setVisible(false) being called or by its being removed from the component hierarchy. The method is only called if the source has actually become invisible. For this to be true at least one of its parents must by invisible or it is not in a hierarchy rooted at a Window

Parameters
ancestorEvent:AncestorEvent

an AncestorEvent signifying a change in an ancestor-component's display-status

Annotations
@Override
getViewback to summary
pack-priv JComponent getView()
initUIback to summary
private void initUI(StyledDocument document)
mouseDraggedback to summary
public void mouseDragged(MouseEvent mouseEvent)

Implements java.awt.event.MouseMotionListener.mouseDragged.

Doc from java.awt.event.MouseMotionListener.mouseDragged.

Invoked when a mouse button is pressed on a component and then dragged. MOUSE_DRAGGED events will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).

Due to platform-dependent Drag&Drop implementations, MOUSE_DRAGGED events may not be delivered during a native Drag&Drop operation.

Parameters
mouseEvent:MouseEvent

the event to be processed

Annotations
@Override
mouseMovedback to summary
public void mouseMoved(MouseEvent mouseEvent)

Implements java.awt.event.MouseMotionListener.mouseMoved.

Doc from java.awt.event.MouseMotionListener.mouseMoved.

Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.

Parameters
mouseEvent:MouseEvent

the event to be processed

Annotations
@Override