com.ephox.editlive.view
Interface ViewInfo


public interface ViewInfo

Simple data object to encapsulate information about views. Use ViewManager.getViewInfo(Element) to create one.

NOTE: Do not hang on to these for very long - remember Views are lightweight and replaced easily. Retained references to this class are memory leaks.


Method Summary
 Rectangle getAllocation()
          Complete area this view is allocated on screen.
 Rectangle getInsideAllocation()
          Actual size of the view content (minus insets).
 View getView()
          Underlying View object
 

Method Detail

getView

View getView()
Underlying View object


getAllocation

Rectangle getAllocation()
Complete area this view is allocated on screen.


getInsideAllocation

Rectangle getInsideAllocation()
Actual size of the view content (minus insets). This is a wrapper to CompositeView.getInsideAllocation(Shape). If the view does not extend CompositeView then this returns null.


Copyright (c) 2005-2012 Ephox Pty Ltd. All rights reserved.