com.androidplot.ui
Class LayoutManager
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<Type>
com.androidplot.util.ZLinkedList<Widget>
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
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 |
LayoutManager
public LayoutManager()
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.