-
- All Implemented Interfaces:
-
android.view.View.OnTouchListener,com.androidplot.ui.Resizable,com.androidplot.util.Layerable,java.io.Serializable,java.lang.Cloneable,java.lang.Iterable,java.util.Collection,java.util.Deque,java.util.List,java.util.Queue
public class LayoutManager extends LinkedLayerList<Widget> implements View.OnTouchListener, Resizable
-
-
Field Summary
Fields Modifier and Type Field Description private booleandrawAnchorsEnabledprivate booleandrawOutlinesEnabledprivate PaintoutlinePaintprivate booleandrawOutlineShadowsEnabledprivate PaintoutlineShadowPaintprivate booleandrawMarginsEnabledprivate PaintmarginPaintprivate booleandrawPaddingEnabledprivate PaintpaddingPaint
-
Constructor Summary
Constructors Constructor Description LayoutManager()
-
Method Summary
Modifier and Type Method Description voidsetDrawAnchorsEnabled(boolean drawAnchorsEnabled)voidsetDrawOutlinesEnabled(boolean drawOutlinesEnabled)PaintgetOutlinePaint()voidsetOutlinePaint(Paint outlinePaint)voidsetDrawOutlineShadowsEnabled(boolean drawOutlineShadowsEnabled)PaintgetOutlineShadowPaint()voidsetOutlineShadowPaint(Paint outlineShadowPaint)voidsetDrawMarginsEnabled(boolean drawMarginsEnabled)PaintgetMarginPaint()voidsetMarginPaint(Paint marginPaint)voidsetDrawPaddingEnabled(boolean drawPaddingEnabled)PaintgetPaddingPaint()voidsetPaddingPaint(Paint paddingPaint)synchronized voidonPostInit()Invoked immediately following XML configuration. voidsetMarkupEnabled(boolean enabled)voiddraw(Canvas canvas)booleanisDrawOutlinesEnabled()booleanisDrawAnchorsEnabled()booleanisDrawMarginsEnabled()booleanisDrawPaddingEnabled()booleanisDrawOutlineShadowsEnabled()booleanonTouch(View v, MotionEvent event)voidrefreshLayout()Recalculates layouts for all widgets using last setDisplayDimensions. voidlayout(DisplayDimensions dims)Called when a change to the class' dimensions is made. -
Methods inherited from class com.androidplot.util.LinkedLayerList
addToBottom, addToTop, elements, moveAbove, moveBeneath, moveDown, moveToBottom, moveToTop, moveUp -
Methods inherited from class java.util.LinkedList
add, add, 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, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray -
Methods inherited from class java.util.AbstractSequentialList
iterator -
Methods inherited from class java.util.AbstractList
equals, hashCode, subList -
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString -
Methods inherited from class java.util.Collection
parallelStream, removeIf, stream -
Methods inherited from class java.lang.Iterable
forEach, iterator, spliterator -
Methods inherited from class java.util.List
copyOf, of, replaceAll, sort -
Methods inherited from class com.androidplot.util.Layerable
elements, moveAbove, moveBeneath, moveDown, moveToBottom, moveToTop, moveUp -
Methods inherited from class android.view.View.OnTouchListener
onTouch -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setDrawAnchorsEnabled
void setDrawAnchorsEnabled(boolean drawAnchorsEnabled)
-
setDrawOutlinesEnabled
void setDrawOutlinesEnabled(boolean drawOutlinesEnabled)
-
getOutlinePaint
Paint getOutlinePaint()
-
setOutlinePaint
void setOutlinePaint(Paint outlinePaint)
-
setDrawOutlineShadowsEnabled
void setDrawOutlineShadowsEnabled(boolean drawOutlineShadowsEnabled)
-
getOutlineShadowPaint
Paint getOutlineShadowPaint()
-
setOutlineShadowPaint
void setOutlineShadowPaint(Paint outlineShadowPaint)
-
setDrawMarginsEnabled
void setDrawMarginsEnabled(boolean drawMarginsEnabled)
-
getMarginPaint
Paint getMarginPaint()
-
setMarginPaint
void setMarginPaint(Paint marginPaint)
-
setDrawPaddingEnabled
void setDrawPaddingEnabled(boolean drawPaddingEnabled)
-
getPaddingPaint
Paint getPaddingPaint()
-
setPaddingPaint
void setPaddingPaint(Paint paddingPaint)
-
onPostInit
synchronized void onPostInit()
Invoked immediately following XML configuration.
-
setMarkupEnabled
void setMarkupEnabled(boolean enabled)
-
isDrawOutlinesEnabled
boolean isDrawOutlinesEnabled()
-
isDrawAnchorsEnabled
boolean isDrawAnchorsEnabled()
-
isDrawMarginsEnabled
boolean isDrawMarginsEnabled()
-
isDrawPaddingEnabled
boolean isDrawPaddingEnabled()
-
isDrawOutlineShadowsEnabled
boolean isDrawOutlineShadowsEnabled()
-
onTouch
boolean onTouch(View v, MotionEvent event)
-
refreshLayout
void refreshLayout()
Recalculates layouts for all widgets using last setDisplayDimensions. Care should be excersized when choosing whento call this method as it is a relatively slow operation.
-
layout
void layout(DisplayDimensions dims)
Called when a change to the class' dimensions is made. This method is responsiblefor cascading calls to update for any logical children of this class, for examplethe Plot class is responsible for updating the LayoutManager. Note that while dimsis marked final in this interface, the compiler will not enforce it. Implementors ofthis method should take care not to make changes to dims as this will affect parentResizables in likely undesired ways.
-
-
-
-