public class StreamPane
extends java.lang.Object
implements java.awt.event.ActionListener
Modifier and Type | Class and Description |
---|---|
private class |
StreamPane.DocumentCreator
A SwingWorker extended class that convert the stream to text loads in a document.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BEGIN_MARKED_CONTENT1
Deprecated.
|
static java.lang.String |
BEGIN_MARKED_CONTENT2
Deprecated.
|
static java.lang.String |
BEGIN_TEXT_OBJECT
Deprecated.
|
private static javax.swing.text.StyleContext |
CONTEXT |
static java.lang.String |
END_MARKED_CONTENT
Deprecated.
|
static java.lang.String |
END_TEXT_OBJECT
Deprecated.
|
private static javax.swing.text.Style |
ESCAPE_STYLE |
private HexView |
hexView |
static java.lang.String |
IMAGE_DATA
Deprecated.
|
static java.lang.String |
INLINE_IMAGE_BEGIN
Deprecated.
|
static java.lang.String |
INLINE_IMAGE_END
Deprecated.
|
private static javax.swing.text.Style |
INLINE_IMAGE_STYLE |
private boolean |
isContentStream |
private static org.apache.commons.logging.Log |
LOG |
private static javax.swing.text.Style |
NAME_STYLE |
private static javax.swing.text.Style |
NUMBER_STYLE |
private static javax.swing.text.Style |
OPERATOR_STYLE |
private javax.swing.JPanel |
panel |
private PDResources |
resources |
static java.lang.String |
RESTORE_GRAPHICS_STATE
Deprecated.
|
static java.lang.String |
SAVE_GRAPHICS_STATE
Deprecated.
|
private Stream |
stream |
private static javax.swing.text.Style |
STRING_STYLE |
private javax.swing.JTabbedPane |
tabbedPane |
private ToolTipController |
tTController |
private StreamPaneView |
view |
Constructor and Description |
---|
StreamPane(COSStream cosStream,
boolean isContentStream,
boolean isThumb,
COSDictionary resourcesDic)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvent) |
private javax.swing.JPanel |
createHeaderPanel(java.util.List<java.lang.String> availableFilters,
java.lang.String i,
java.awt.event.ActionListener actionListener) |
javax.swing.JComponent |
getPanel() |
private void |
requestImageShowing() |
private void |
requestStreamText(java.lang.String command) |
private static final org.apache.commons.logging.Log LOG
@Deprecated public static final java.lang.String BEGIN_TEXT_OBJECT
@Deprecated public static final java.lang.String END_TEXT_OBJECT
@Deprecated public static final java.lang.String SAVE_GRAPHICS_STATE
@Deprecated public static final java.lang.String RESTORE_GRAPHICS_STATE
@Deprecated public static final java.lang.String INLINE_IMAGE_BEGIN
@Deprecated public static final java.lang.String IMAGE_DATA
@Deprecated public static final java.lang.String INLINE_IMAGE_END
@Deprecated public static final java.lang.String BEGIN_MARKED_CONTENT1
@Deprecated public static final java.lang.String BEGIN_MARKED_CONTENT2
@Deprecated public static final java.lang.String END_MARKED_CONTENT
private static final javax.swing.text.StyleContext CONTEXT
private static final javax.swing.text.Style OPERATOR_STYLE
private static final javax.swing.text.Style NUMBER_STYLE
private static final javax.swing.text.Style STRING_STYLE
private static final javax.swing.text.Style ESCAPE_STYLE
private static final javax.swing.text.Style NAME_STYLE
private static final javax.swing.text.Style INLINE_IMAGE_STYLE
private final javax.swing.JPanel panel
private final HexView hexView
private final javax.swing.JTabbedPane tabbedPane
private final StreamPaneView view
private final Stream stream
private ToolTipController tTController
private PDResources resources
private final boolean isContentStream
public StreamPane(COSStream cosStream, boolean isContentStream, boolean isThumb, COSDictionary resourcesDic) throws java.io.IOException
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.java.io.IOException
- if there is an I/O error during internal data transfer.public javax.swing.JComponent getPanel()
private javax.swing.JPanel createHeaderPanel(java.util.List<java.lang.String> availableFilters, java.lang.String i, java.awt.event.ActionListener actionListener)
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
actionPerformed
in interface java.awt.event.ActionListener
private void requestImageShowing()
private void requestStreamText(java.lang.String command) throws java.io.IOException
java.io.IOException