Modifier and Type | Field and Description |
---|---|
static BlockBrowser |
browser |
static float |
TAG_PROBABILITY_THRESHOLD |
Constructor and Description |
---|
BlockBrowser() |
Modifier and Type | Method and Description |
---|---|
void |
addAreaSelectionListener(AreaSelectionListener listener)
Registers an area selection listener that is called when the area selection changes.
|
void |
addInfoPanel(javax.swing.JComponent component,
double weighty)
Adds a new panel to the details area.
|
void |
addStructurePanel(java.lang.String title,
javax.swing.JComponent component)
Adds a new tab to the structure view tabs.
|
void |
addToolBar(javax.swing.JToolBar toolbar)
Adds a toolbar to the browser's toolbar area.
|
void |
addToolPanel(java.lang.String title,
javax.swing.JComponent component)
Adds a new tab to the tool panel at the top of the window
|
void |
displayURL(java.lang.String urlstring) |
AreaTree |
getAreaTree()
Gets the area tree of the current page
|
org.fit.cssbox.layout.BrowserCanvas |
getBrowserCanvas() |
boolean |
getLoadImages() |
java.lang.String |
getLocation() |
protected javax.swing.JCheckBox |
getLogicalAutorunCheckbox() |
LogicalAreaTree |
getLogicalTree()
Gets the logical area tree of the actual page
|
javax.swing.JFrame |
getMainWindow()
This method initializes jFrame
|
OutputDisplay |
getOutputDisplay()
Gets the browser page output display.
|
Page |
getPage()
Gets the actual page model
|
GUIProcessor |
getProcessor() |
protected javax.swing.JCheckBox |
getSegmAutorunCheckbox() |
Area |
getSelectedArea()
Gets the last selected visual area.
|
void |
initPlugins() |
static void |
main(java.lang.String[] args) |
void |
refresh()
Refresh the trees.
|
void |
setAreaTree(AreaTree areaTree)
Sets area tree from external source
|
void |
setLoadImages(boolean b) |
void |
setLocation(java.lang.String url) |
void |
setLogicalTree(LogicalAreaTree logicalTree)
Sets logical area tree from external source
|
void |
setPage(Page page)
Sets page model from the external source
|
void |
showAreas(Area root,
java.lang.String name) |
void |
updateDisplay()
Performs the output display refresh (when something has been
painted).
|
public static BlockBrowser browser
public static final float TAG_PROBABILITY_THRESHOLD
public void setLocation(java.lang.String url)
public java.lang.String getLocation()
public void setLoadImages(boolean b)
public boolean getLoadImages()
public void refresh()
public void addToolBar(javax.swing.JToolBar toolbar)
Browser
addToolBar
in interface Browser
toolbar
- the toolbar to be addedpublic void addToolPanel(java.lang.String title, javax.swing.JComponent component)
Browser
addToolPanel
in interface Browser
title
- the tab titlecomponent
- the component to be addedpublic void addStructurePanel(java.lang.String title, javax.swing.JComponent component)
Browser
addStructurePanel
in interface Browser
title
- the tab titlecomponent
- the component to be addedpublic void addInfoPanel(javax.swing.JComponent component, double weighty)
Browser
addInfoPanel
in interface Browser
component
- the component to be addedweighty
- the resizing vertical weightpublic OutputDisplay getOutputDisplay()
Browser
getOutputDisplay
in interface Browser
public void updateDisplay()
Browser
updateDisplay
in interface Browser
public Area getSelectedArea()
Browser
getSelectedArea
in interface Browser
null
when nothing is selectedpublic void addAreaSelectionListener(AreaSelectionListener listener)
Browser
addAreaSelectionListener
in interface Browser
listener
- the listener to be registeredpublic void setPage(Page page)
Browser
public AreaTree getAreaTree()
Browser
getAreaTree
in interface Browser
null
if the tree has not been built yetpublic LogicalAreaTree getLogicalTree()
Browser
getLogicalTree
in interface Browser
null
if the tree has not been built yetpublic void setAreaTree(AreaTree areaTree)
Browser
setAreaTree
in interface Browser
public void setLogicalTree(LogicalAreaTree logicalTree)
Browser
setLogicalTree
in interface Browser
public GUIProcessor getProcessor()
public void displayURL(java.lang.String urlstring)
public void showAreas(Area root, java.lang.String name)
public org.fit.cssbox.layout.BrowserCanvas getBrowserCanvas()
public void initPlugins()
public javax.swing.JFrame getMainWindow()
protected javax.swing.JCheckBox getSegmAutorunCheckbox()
protected javax.swing.JCheckBox getLogicalAutorunCheckbox()
public static void main(java.lang.String[] args)