| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| private final JPopupMenu |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | addPopupMenuItems(TreePath
is instance of TreePath of the specified Node. nodePath)Produce the popup menu items depending on the node of a certain TreePath. |
| private String | getFileExtensionForStream(final COSStream cosStream, final TreePath nodePath)
Returns the recommended file extension for the given cos stream. |
| private JMenuItem | getFileOpenMenu(final COSStream cosStream, final TreePath nodePath)
Produce JMenuItem that opens the stream with the system's default app. |
| private String | |
| private List | Returns: JMenuItems for saving partially decoded streamsstream to save cosStream)produce possible partially decoded stream saving menu items |
| private JMenuItem | |
| public Point | getPopupLocation(MouseEvent
the event)MouseEvent that triggered the popup to be
shown, or null if the popup is not being shown as the
result of a mouse eventOverrides javax. Returns the preferred location to display the popup menu in this component's coordinate system. |
| private JMenuItem | Returns: JMenuItem for saving the raw streamstream to save cosStream)Produce JMenuItem that saves the raw stream |
| private JMenuItem | Returns: JMenuItem for saving streamstream to save cosStream, final TreePath nodePath)Produce JMenuItem that saves the stream |
| private JMenuItem | Returns: Menu Itemthe TreePath instance path)Produce the JMenuItem that gives way to copy tree path string to clipboard |
| private void | saveStream(byte[]
byte array of the stream. bytes, FileFilter an optional FileFilter filter, String extension)Save the stream. |
| rootNode | back to summary |
|---|---|
| private final Object rootNode | |
| treePopupMenu | back to summary |
|---|---|
| private final JPopupMenu treePopupMenu | |
| Tree | back to summary |
|---|---|
| public Tree() Constructor. | |
| addPopupMenuItems | back to summary |
|---|---|
| private void addPopupMenuItems(TreePath nodePath) Produce the popup menu items depending on the node of a certain TreePath.
| |
| getFileExtensionForStream | back to summary |
|---|---|
| private String getFileExtensionForStream(final COSStream cosStream, final TreePath nodePath) Returns the recommended file extension for the given cos stream. | |
| getFileOpenMenu | back to summary |
|---|---|
| private JMenuItem getFileOpenMenu(final COSStream cosStream, final TreePath nodePath) Produce JMenuItem that opens the stream with the system's default app. | |
| getFilters | back to summary |
|---|---|
| private String getFilters(COSStream cosStream) Returns the filters used by the given stream. | |
| getPartiallyDecodedStreamSaveMenu | back to summary |
|---|---|
| private List produce possible partially decoded stream saving menu items | |
| getPartialStreamSavingMenuItem | back to summary |
|---|---|
| private JMenuItem getPartialStreamSavingMenuItem(final int indexOfStopFilter, final PDStream stream) | |
| getPopupLocation | back to summary |
|---|---|
| public Point getPopupLocation(MouseEvent event) Overrides javax. Doc from javax. Returns the preferred location to display the popup menu in this
component's coordinate system. It is up to the look and feel to
honor this property, some may choose to ignore it.
If
| |
| getRawStreamSaveMenu | back to summary |
|---|---|
| private JMenuItem getRawStreamSaveMenu(final COSStream cosStream) Produce JMenuItem that saves the raw stream | |
| getStreamSaveMenu | back to summary |
|---|---|
| private JMenuItem getStreamSaveMenu(final COSStream cosStream, final TreePath nodePath) Produce JMenuItem that saves the stream | |
| getTreePathMenuItem | back to summary |
|---|---|
| private JMenuItem getTreePathMenuItem(final TreePath path) Produce the JMenuItem that gives way to copy tree path string to clipboard | |
| saveStream | back to summary |
|---|---|
| private void saveStream(byte[] bytes, FileFilter filter, String extension) throws IOException Save the stream.
| |