public interface Browser
| Modifier and Type | Method and Description |
|---|---|
void |
addAreaSelectionListener(AreaSelectionListener listener)
Registers an area selection listener that is notified when the area selection changes.
|
void |
addInfoPanel(JComponent component,
double weighty)
Adds a new panel to the details area.
|
void |
addRectangleSelectionListener(RectangleSelectionListener listener)
Registers a rectangle selection listener that is notified when a new rectangle is selected.
|
void |
addStructurePanel(String title,
JComponent component)
Adds a new tab to the structure view tabs.
|
void |
addToolBar(JToolBar toolbar)
Adds a toolbar to the browser's toolbar area.
|
void |
addToolPanel(String title,
JComponent component)
Adds a new tab to the tool panel at the top of the window
|
void |
addTreeListener(TreeListener listener)
Registers an area selection listener that is notified when some tree is updated.
|
void |
clearSelection()
Clears the graphical selection.
|
void |
displayErrorMessage(String text)
Displays an error message dialog.
|
void |
displayInfoMessage(String text)
Displays an info message dialog.
|
AreaTree |
getAreaTree()
Gets the area tree of the current page
|
LogicalAreaTree |
getLogicalTree()
Gets the logical area tree of the actual page
|
OutputDisplay |
getOutputDisplay()
Gets the browser page output display.
|
Page |
getPage()
Gets the actual page model
|
Area |
getSelectedArea()
Gets the last selected visual area.
|
void |
redrawPage()
Redraws the page contents.
|
void |
refreshView()
Updates the tree views after some trees have been changed.
|
void |
removeRectangleSelectionListener(RectangleSelectionListener listener)
Unregisters a rectangle selection listener.
|
void |
setAreaTree(AreaTree areaTree)
Sets area tree from external source
|
void |
setLogicalTree(LogicalAreaTree logicalTree)
Sets logical area tree from external source
|
void |
setPage(Page page)
Sets page model from the external source
|
void |
setSelection(Rectangular rect)
Graphically selects a rectangular area in the browser window.
|
void |
updateDisplay()
Performs the output display refresh (when something has been
painted).
|
void addToolBar(JToolBar toolbar)
toolbar - the toolbar to be addedvoid addToolPanel(String title, JComponent component)
title - the tab titlecomponent - the component to be addedvoid addStructurePanel(String title, JComponent component)
title - the tab titlecomponent - the component to be addedvoid addInfoPanel(JComponent component, double weighty)
component - the component to be addedweighty - the resizing vertical weightOutputDisplay getOutputDisplay()
void updateDisplay()
void redrawPage()
Area getSelectedArea()
null when nothing is selectedvoid addAreaSelectionListener(AreaSelectionListener listener)
listener - the listener to be registeredvoid addTreeListener(TreeListener listener)
listener - the listener to be registeredvoid addRectangleSelectionListener(RectangleSelectionListener listener)
listener - the listener to be registeredvoid removeRectangleSelectionListener(RectangleSelectionListener listener)
listener - the listener to be unregisteredvoid setPage(Page page)
page - Page getPage()
AreaTree getAreaTree()
null if the tree has not been built yetLogicalAreaTree getLogicalTree()
null if the tree has not been built yetvoid setAreaTree(AreaTree areaTree)
void setLogicalTree(LogicalAreaTree logicalTree)
void refreshView()
void displayErrorMessage(String text)
text - the text do be displayedvoid displayInfoMessage(String text)
text - the text do be displayedvoid setSelection(Rectangular rect)
rect - The size and position of the selected area.void clearSelection()
Copyright © 2018. All rights reserved.