|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.csslayout.CSSRenderer
| Field Summary | |
static boolean |
antiAlias
should we do antializing |
protected java.util.Vector |
componentsToBeRemoved
ComponentView will do delayed removal using this vector. |
protected boolean |
dirty
|
protected ContentFocusPointsProvider |
fpProvider
|
protected java.awt.Dimension |
lastSize
|
static short |
LAYOUT_DONE
|
static short |
LAYOUT_IN_PROGRESS
|
int |
layouts
|
protected short |
layoutState
|
static int |
minAlias
|
protected MLFC |
mlfc
|
protected boolean |
redoLayout
|
protected boolean |
refreshScheduled
only one refreshImmediately will be scheduled |
protected RendererComponent |
renderer
|
protected java.awt.Container |
rootContainer
this is the root, which is e.g. |
protected java.awt.Dimension |
size
|
protected boolean |
transactionInProgress
|
protected ExternalWindow |
window
this is used if this renderer is part of anouther renderer, which wants to show part of DOM in external window |
| Constructor Summary | |
CSSRenderer(MLFC m,
boolean isInWindow)
Creates a new instance of CSSRenderer |
|
| Method Summary | |
void |
addLayoutComponent(java.lang.String arg0,
java.awt.Component arg1)
THESE METHODS ARE FOR LAYOUTING THE CONTAINER WHEN THE PARENT SIZE CHANGES |
void |
addWindow(ExternalWindow frame)
|
void |
cancelComponentRemoval(java.awt.Component comp)
|
void |
closePopup(StylableElement elem)
|
void |
commit()
|
void |
createRootContainer()
|
void |
createViews()
|
void |
createWindow(org.w3c.dom.Node node,
java.lang.String display,
java.lang.String containertype)
|
java.awt.Container |
getComponent()
|
ComponentFactory |
getComponentFactory()
|
org.w3c.dom.Document |
getDocument()
|
java.awt.Graphics |
getGraphicsContext()
|
MLFC |
getMLFC()
|
RootView |
getRootView()
|
protected void |
invokeLater(java.lang.Runnable run)
|
boolean |
isInWindow()
|
void |
layoutContainer(java.awt.Container arg0)
|
void |
layoutRenderer()
this is called internally to layout the rootView and all other views e.g. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container arg0)
|
void |
mouseClicked(java.awt.event.MouseEvent event)
|
void |
mouseClicked(View view,
java.awt.event.MouseEvent event)
|
void |
mouseDragged(java.awt.event.MouseEvent arg0)
|
void |
mouseEntered(java.awt.event.MouseEvent arg0)
|
void |
mouseExited(java.awt.event.MouseEvent arg0)
|
void |
mouseMoved(java.awt.event.MouseEvent event)
|
void |
mouseMoved(View view,
java.awt.event.MouseEvent event)
|
void |
mousePressed(java.awt.event.MouseEvent event)
|
void |
mouseReleased(java.awt.event.MouseEvent event)
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container arg0)
|
void |
recreateViews()
this is called from the MLFC when the zoom is changed |
void |
refresh()
|
void |
refresh(View view)
Refresh only given view if its size hasn't been changed. |
void |
removeAllDelayedComponents()
|
void |
removeComponentDelayed(java.awt.Component comp)
|
void |
removeLayoutComponent(java.awt.Component arg0)
|
void |
repaint(java.awt.Rectangle rect)
|
void |
setDocument(org.w3c.dom.Document adoc)
|
protected void |
setFocusComponent()
|
void |
setInitialSize(java.awt.Dimension size)
|
void |
setRootView(RootView root)
|
void |
setZoom(double zoom)
to set the zoom, for instance by the UI |
void |
showAsPopup(StylableElement elem,
java.lang.String containerType)
|
void |
startTransaction()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected RendererComponent renderer
protected MLFC mlfc
public int layouts
protected java.awt.Container rootContainer
protected java.awt.Dimension size
protected ExternalWindow window
public static boolean antiAlias
public static int minAlias
protected boolean dirty
protected boolean refreshScheduled
protected ContentFocusPointsProvider fpProvider
protected java.util.Vector componentsToBeRemoved
protected java.awt.Dimension lastSize
public static final short LAYOUT_DONE
public static final short LAYOUT_IN_PROGRESS
protected short layoutState
protected boolean redoLayout
protected boolean transactionInProgress
| Constructor Detail |
public CSSRenderer(MLFC m,
boolean isInWindow)
| Method Detail |
public void removeComponentDelayed(java.awt.Component comp)
public void cancelComponentRemoval(java.awt.Component comp)
public void removeAllDelayedComponents()
public void setZoom(double zoom)
public ComponentFactory getComponentFactory()
public java.awt.Container getComponent()
public void createRootContainer()
public void recreateViews()
public void layoutRenderer()
public void setDocument(org.w3c.dom.Document adoc)
public org.w3c.dom.Document getDocument()
protected void setFocusComponent()
public void setInitialSize(java.awt.Dimension size)
public RootView getRootView()
public void setRootView(RootView root)
public void createViews()
public void createWindow(org.w3c.dom.Node node,
java.lang.String display,
java.lang.String containertype)
public void addWindow(ExternalWindow frame)
public MLFC getMLFC()
public boolean isInWindow()
public java.awt.Graphics getGraphicsContext()
public void startTransaction()
public void commit()
protected void invokeLater(java.lang.Runnable run)
public void repaint(java.awt.Rectangle rect)
public void refresh()
public void refresh(View view)
view - public void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved in interface java.awt.event.MouseMotionListener
public void mouseMoved(View view,
java.awt.event.MouseEvent event)
public void mouseClicked(View view,
java.awt.event.MouseEvent event)
public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent arg0)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent arg0)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent event)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseDragged(java.awt.event.MouseEvent arg0)
mouseDragged in interface java.awt.event.MouseMotionListener
public void addLayoutComponent(java.lang.String arg0,
java.awt.Component arg1)
addLayoutComponent in interface java.awt.LayoutManagerpublic void removeLayoutComponent(java.awt.Component arg0)
removeLayoutComponent in interface java.awt.LayoutManagerpublic java.awt.Dimension preferredLayoutSize(java.awt.Container arg0)
preferredLayoutSize in interface java.awt.LayoutManagerpublic java.awt.Dimension minimumLayoutSize(java.awt.Container arg0)
minimumLayoutSize in interface java.awt.LayoutManagerpublic void layoutContainer(java.awt.Container arg0)
layoutContainer in interface java.awt.LayoutManager
public void showAsPopup(StylableElement elem,
java.lang.String containerType)
showAsPopup in interface PopupHandlerpublic void closePopup(StylableElement elem)
closePopup in interface PopupHandler
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||