Class StreamPane
- java.lang.Object
-
- org.apache.pdfbox.debugger.streampane.StreamPane
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.util.EventListener
public class StreamPane extends java.lang.Object implements java.awt.event.ActionListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classStreamPane.DocumentCreatorA SwingWorker extended class that convert the stream to text loads in a document.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEGIN_MARKED_CONTENT1Deprecated.static java.lang.StringBEGIN_MARKED_CONTENT2Deprecated.static java.lang.StringBEGIN_TEXT_OBJECTDeprecated.private static javax.swing.text.StyleContextCONTEXTstatic java.lang.StringEND_MARKED_CONTENTDeprecated.static java.lang.StringEND_TEXT_OBJECTDeprecated.private static javax.swing.text.StyleESCAPE_STYLEprivate HexViewhexViewstatic java.lang.StringIMAGE_DATADeprecated.static java.lang.StringINLINE_IMAGE_BEGINDeprecated.static java.lang.StringINLINE_IMAGE_ENDDeprecated.private static javax.swing.text.StyleINLINE_IMAGE_STYLEprivate static org.apache.commons.logging.LogLOGprivate static javax.swing.text.StyleNAME_STYLEprivate StreamPaneViewniceViewprivate static javax.swing.text.StyleNUMBER_STYLEprivate static javax.swing.text.StyleOPERATOR_STYLEprivate javax.swing.JPanelpanelprivate StreamPaneViewrawViewprivate PDResourcesresourcesstatic java.lang.StringRESTORE_GRAPHICS_STATEDeprecated.static java.lang.StringSAVE_GRAPHICS_STATEDeprecated.private Streamstreamprivate static javax.swing.text.StyleSTRING_STYLEprivate javax.swing.JTabbedPanetabbedPaneprivate ToolTipControllertTController
-
Constructor Summary
Constructors Constructor Description StreamPane(COSStream cosStream, boolean isContentStream, boolean isThumb, COSDictionary resourcesDic)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent actionEvent)private javax.swing.JPanelcreateHeaderPanel(java.util.List<java.lang.String> availableFilters, java.lang.String i, java.awt.event.ActionListener actionListener)javax.swing.JComponentgetPanel()private voidrequestImageShowing()private voidrequestStreamText(java.lang.String command)
-
-
-
Field Detail
-
LOG
private static final org.apache.commons.logging.Log LOG
-
BEGIN_TEXT_OBJECT
@Deprecated public static final java.lang.String BEGIN_TEXT_OBJECT
Deprecated.- See Also:
- Constant Field Values
-
END_TEXT_OBJECT
@Deprecated public static final java.lang.String END_TEXT_OBJECT
Deprecated.- See Also:
- Constant Field Values
-
SAVE_GRAPHICS_STATE
@Deprecated public static final java.lang.String SAVE_GRAPHICS_STATE
Deprecated.- See Also:
- Constant Field Values
-
RESTORE_GRAPHICS_STATE
@Deprecated public static final java.lang.String RESTORE_GRAPHICS_STATE
Deprecated.- See Also:
- Constant Field Values
-
INLINE_IMAGE_BEGIN
@Deprecated public static final java.lang.String INLINE_IMAGE_BEGIN
Deprecated.- See Also:
- Constant Field Values
-
IMAGE_DATA
@Deprecated public static final java.lang.String IMAGE_DATA
Deprecated.- See Also:
- Constant Field Values
-
INLINE_IMAGE_END
@Deprecated public static final java.lang.String INLINE_IMAGE_END
Deprecated.- See Also:
- Constant Field Values
-
BEGIN_MARKED_CONTENT1
@Deprecated public static final java.lang.String BEGIN_MARKED_CONTENT1
Deprecated.- See Also:
- Constant Field Values
-
BEGIN_MARKED_CONTENT2
@Deprecated public static final java.lang.String BEGIN_MARKED_CONTENT2
Deprecated.- See Also:
- Constant Field Values
-
END_MARKED_CONTENT
@Deprecated public static final java.lang.String END_MARKED_CONTENT
Deprecated.- See Also:
- Constant Field Values
-
CONTEXT
private static final javax.swing.text.StyleContext CONTEXT
-
OPERATOR_STYLE
private static final javax.swing.text.Style OPERATOR_STYLE
-
NUMBER_STYLE
private static final javax.swing.text.Style NUMBER_STYLE
-
STRING_STYLE
private static final javax.swing.text.Style STRING_STYLE
-
ESCAPE_STYLE
private static final javax.swing.text.Style ESCAPE_STYLE
-
NAME_STYLE
private static final javax.swing.text.Style NAME_STYLE
-
INLINE_IMAGE_STYLE
private static final javax.swing.text.Style INLINE_IMAGE_STYLE
-
panel
private final javax.swing.JPanel panel
-
hexView
private final HexView hexView
-
tabbedPane
private final javax.swing.JTabbedPane tabbedPane
-
rawView
private final StreamPaneView rawView
-
niceView
private final StreamPaneView niceView
-
stream
private final Stream stream
-
tTController
private ToolTipController tTController
-
resources
private PDResources resources
-
-
Constructor Detail
-
StreamPane
public StreamPane(COSStream cosStream, boolean isContentStream, boolean isThumb, COSDictionary resourcesDic) throws java.io.IOException
Constructor.- Parameters:
cosStream- COSStream instance.isContentStream- boolean instance. This says if a stream is content stream or not.isThumb- This says if a stream is an thumbnail image or not.resourcesDic- COSDictionary instance that holds the resource dictionary for the stream.- Throws:
java.io.IOException- if there is an I/O error during internal data transfer.
-
-
Method Detail
-
getPanel
public javax.swing.JComponent getPanel()
-
createHeaderPanel
private javax.swing.JPanel createHeaderPanel(java.util.List<java.lang.String> availableFilters, java.lang.String i, java.awt.event.ActionListener actionListener)
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
requestImageShowing
private void requestImageShowing()
-
requestStreamText
private void requestStreamText(java.lang.String command) throws java.io.IOException- Throws:
java.io.IOException
-
-