Package com.androidplot.ui
Class LayoutManager
-
- 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,java.util.SequencedCollection
public class LayoutManager extends LinkedLayerList<Widget> implements View.OnTouchListener, Resizable
-
-
Field Summary
Fields Modifier and Type Field Description public PaintoutlinePaintpublic PaintoutlineShadowPaintpublic PaintmarginPaintpublic PaintpaddingPaint
-
Constructor Summary
Constructors Constructor Description LayoutManager()
-
Method Summary
Modifier and Type Method Description PaintgetOutlinePaint()voidsetOutlinePaint(@NonNull() Paint outlinePaint)PaintgetOutlineShadowPaint()voidsetOutlineShadowPaint(@Nullable() Paint outlineShadowPaint)PaintgetMarginPaint()voidsetMarginPaint(@NonNull() Paint marginPaint)PaintgetPaddingPaint()voidsetPaddingPaint(@NonNull() Paint paddingPaint)synchronized voidonPostInit()Invoked immediately following XML configuration. voidsetMarkupEnabled(boolean enabled)voiddraw(@NonNull() Canvas canvas)booleanisDrawOutlinesEnabled()booleanisDrawAnchorsEnabled()booleanisDrawMarginsEnabled()booleanisDrawPaddingEnabled()booleanisDrawOutlineShadowsEnabled()booleanonTouch(View v, MotionEvent event)voidrefreshLayout()Recalculates layouts for all widgets using last set DisplayDimensions. voidlayout(@NonNull() DisplayDimensions dims)Called when a change to the class' dimensions is made. voidsetDrawOutlinesEnabled(boolean drawOutlinesEnabled)voidsetDrawAnchorsEnabled(boolean drawAnchorsEnabled)voidsetDrawMarginsEnabled(boolean drawMarginsEnabled)voidsetDrawPaddingEnabled(boolean drawPaddingEnabled)voidsetDrawOutlineShadowsEnabled(boolean drawOutlineShadowsEnabled)-
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, reversed, set, size, spliterator, toArray, toArray -
Methods inherited from class com.androidplot.util.Layerable
elements, moveAbove, moveBeneath, moveDown, moveToBottom, moveToTop, moveUp -
Methods inherited from class java.util.AbstractSequentialList
iterator -
Methods inherited from class java.util.Deque
reversed -
Methods inherited from class java.util.List
containsAll, copyOf, equals, hashCode, isEmpty, of, removeAll, replaceAll, retainAll, reversed, sort, subList -
Methods inherited from class java.util.AbstractCollection
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.SequencedCollection
reversed -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getOutlinePaint
@NonNull() Paint getOutlinePaint()
-
setOutlinePaint
void setOutlinePaint(@NonNull() Paint outlinePaint)
-
getOutlineShadowPaint
@Nullable() Paint getOutlineShadowPaint()
-
setOutlineShadowPaint
void setOutlineShadowPaint(@Nullable() Paint outlineShadowPaint)
-
getMarginPaint
@NonNull() Paint getMarginPaint()
-
setMarginPaint
void setMarginPaint(@NonNull() Paint marginPaint)
-
getPaddingPaint
@NonNull() Paint getPaddingPaint()
-
setPaddingPaint
void setPaddingPaint(@NonNull() 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 set DisplayDimensions. Care should be excersized when choosing when to call this method as it is a relatively slow operation.
-
layout
void layout(@NonNull() DisplayDimensions dims)
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.
-
setDrawOutlinesEnabled
void setDrawOutlinesEnabled(boolean drawOutlinesEnabled)
-
setDrawAnchorsEnabled
void setDrawAnchorsEnabled(boolean drawAnchorsEnabled)
-
setDrawMarginsEnabled
void setDrawMarginsEnabled(boolean drawMarginsEnabled)
-
setDrawPaddingEnabled
void setDrawPaddingEnabled(boolean drawPaddingEnabled)
-
setDrawOutlineShadowsEnabled
void setDrawOutlineShadowsEnabled(boolean drawOutlineShadowsEnabled)
-
-
-
-