com.androidplot.ui
Class LayoutManager

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList<Type>
                  extended by com.androidplot.util.ZLinkedList<Widget>
                      extended by com.androidplot.ui.LayoutManager
All Implemented Interfaces:
android.view.View.OnTouchListener, Resizable, ZIndexable<Widget>, Serializable, Cloneable, Iterable<Widget>, Collection<Widget>, Deque<Widget>, List<Widget>, Queue<Widget>

public class LayoutManager
extends ZLinkedList<Widget>
implements android.view.View.OnTouchListener, Resizable

See Also:
Serialized Form

Constructor Summary
LayoutManager()
           
 
Method Summary
 void draw(android.graphics.Canvas canvas)
           
 android.graphics.Paint getMarginPaint()
           
 android.graphics.Paint getOutlinePaint()
           
 android.graphics.Paint getOutlineShadowPaint()
           
 android.graphics.Paint getPaddingPaint()
           
 boolean isDrawAnchorsEnabled()
           
 boolean isDrawMarginsEnabled()
           
 boolean isDrawOutlinesEnabled()
           
 boolean isDrawOutlineShadowsEnabled()
           
 boolean isDrawPaddingEnabled()
           
 void layout(DisplayDimensions dims)
          Called when a change to the class' dimensions is made.
 void onPostInit()
          Invoked immediately following XML configuration.
 boolean onTouch(android.view.View v, android.view.MotionEvent event)
           
 void refreshLayout()
          Recalculates layouts for all widgets using last set DisplayDimensions.
 void setDrawAnchorsEnabled(boolean drawAnchorsEnabled)
           
 void setDrawMarginsEnabled(boolean drawMarginsEnabled)
           
 void setDrawOutlinesEnabled(boolean drawOutlinesEnabled)
           
 void setDrawOutlineShadowsEnabled(boolean drawOutlineShadowsEnabled)
           
 void setDrawPaddingEnabled(boolean drawPaddingEnabled)
           
 void setMarginPaint(android.graphics.Paint marginPaint)
           
 void setMarkupEnabled(boolean enabled)
           
 void setOutlinePaint(android.graphics.Paint outlinePaint)
           
 void setOutlineShadowPaint(android.graphics.Paint outlineShadowPaint)
           
 void setPaddingPaint(android.graphics.Paint paddingPaint)
           
 
Methods inherited from class com.androidplot.util.ZLinkedList
addToBottom, addToTop, elements, moveAbove, moveBeneath, moveDown, moveToBottom, moveToTop, moveUp
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 
Methods inherited from interface java.util.Deque
iterator
 

Constructor Detail

LayoutManager

public LayoutManager()
Method Detail

onPostInit

public void onPostInit()
Invoked immediately following XML configuration.


setMarkupEnabled

public void setMarkupEnabled(boolean enabled)

draw

public void draw(android.graphics.Canvas canvas)
          throws PlotRenderException
Throws:
PlotRenderException

isDrawOutlinesEnabled

public boolean isDrawOutlinesEnabled()

setDrawOutlinesEnabled

public void setDrawOutlinesEnabled(boolean drawOutlinesEnabled)

getOutlinePaint

public android.graphics.Paint getOutlinePaint()

setOutlinePaint

public void setOutlinePaint(android.graphics.Paint outlinePaint)

isDrawAnchorsEnabled

public boolean isDrawAnchorsEnabled()

setDrawAnchorsEnabled

public void setDrawAnchorsEnabled(boolean drawAnchorsEnabled)

isDrawMarginsEnabled

public boolean isDrawMarginsEnabled()

setDrawMarginsEnabled

public void setDrawMarginsEnabled(boolean drawMarginsEnabled)

getMarginPaint

public android.graphics.Paint getMarginPaint()

setMarginPaint

public void setMarginPaint(android.graphics.Paint marginPaint)

isDrawPaddingEnabled

public boolean isDrawPaddingEnabled()

setDrawPaddingEnabled

public void setDrawPaddingEnabled(boolean drawPaddingEnabled)

getPaddingPaint

public android.graphics.Paint getPaddingPaint()

setPaddingPaint

public void setPaddingPaint(android.graphics.Paint paddingPaint)

isDrawOutlineShadowsEnabled

public boolean isDrawOutlineShadowsEnabled()

setDrawOutlineShadowsEnabled

public void setDrawOutlineShadowsEnabled(boolean drawOutlineShadowsEnabled)

getOutlineShadowPaint

public android.graphics.Paint getOutlineShadowPaint()

setOutlineShadowPaint

public void setOutlineShadowPaint(android.graphics.Paint outlineShadowPaint)

onTouch

public boolean onTouch(android.view.View v,
                       android.view.MotionEvent event)
Specified by:
onTouch in interface android.view.View.OnTouchListener

refreshLayout

public void refreshLayout()
Recalculates layouts for all widgets using last set DisplayDimensions. Care should be excersized when choosing when to call this method as it is a relatively slow operation.


layout

public void layout(DisplayDimensions dims)
Description copied from interface: Resizable
Called when a change to the class' dimensions is made. This method is responsible for cascading calls to update for any logical children of this class, for example the Plot class is responsible for updating the LayoutManager. Note that while dims is marked final in this interface, the compiler will not enforce it. Implementors of this method should take care not to make changes to dims as this will affect parent Resizables in likely undesired ways.

Specified by:
layout in interface Resizable


Copyright © 2010-2013 androidplot.com. All Rights Reserved.