public class

TimelineLineView

extends View
java.lang.Object
   ↳ android.view.View
     ↳ com.sap.cloud.mobile.fiori.timelineview.views.TimelineLineView

Summary

Nested Classes
enum TimelineLineView.LineOrientation Enum representing the type of the Line  
enum TimelineLineView.LineType Enum representing the type of the Line  
[Expand]
Inherited Constants
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
TimelineLineView(Context context)
TimelineLineView(Context context, AttributeSet attrs)
TimelineLineView(Context context, AttributeSet attrs, int defStyleAttr)
TimelineLineView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
TimelineLineView.LineOrientation getLineOrientation()
Get the orientation of the line
static TimelineLineView.LineType getTimeLineViewType(int position, int total_size)
Gets timeline view type.
int getTimelineEndVisibility()
Drawable getTimelineNode()
Get the timeline node
int getTimelineNodeVisibility()
int getTimelineStartVisibility()
void initLine(TimelineLineView.LineType lineType)
Initialize line
boolean isTimelineNodeInCenter()
void setEndLine(int color, TimelineLineView.LineType viewType)
Sets end line.
void setLineOrientation(TimelineLineView.LineOrientation mLineOrientation)
Set the orientation of the line
void setLinePadding(int padding)
Sets line padding
void setLineSize(int lineSize)
Sets line size.
void setNodeSize(int nodeSize)
Sets Node size.
void setStartLine(int color, TimelineLineView.LineType viewType)
Sets start line.
void setTimelineNode(Drawable node)
Sets Node.
void setTimelineNode(Drawable node, int color)
Set the timeline node
void setTimelineNodeColor(int color)
Sets Node color.
void setTimelineNodeDrawable(Drawable nodeDrawable)
Set the node of the line
void setTimelineNodeInCenter(boolean inCenter)
Set timeline node in center
Protected Methods
void onDraw(Canvas canvas)
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
void onSizeChanged(int w, int h, int oldw, int oldh)
[Expand]
Inherited Methods
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public TimelineLineView (Context context)

public TimelineLineView (Context context, AttributeSet attrs)

public TimelineLineView (Context context, AttributeSet attrs, int defStyleAttr)

public TimelineLineView (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Public Methods

public TimelineLineView.LineOrientation getLineOrientation ()

Get the orientation of the line

Returns
  • int

public static TimelineLineView.LineType getTimeLineViewType (int position, int total_size)

Gets timeline view type.

Parameters
position the position
total_size the total size
Returns
  • the time line view type

public int getTimelineEndVisibility ()

public Drawable getTimelineNode ()

Get the timeline node

public int getTimelineNodeVisibility ()

public int getTimelineStartVisibility ()

public void initLine (TimelineLineView.LineType lineType)

Initialize line

Parameters
lineType the view type

public boolean isTimelineNodeInCenter ()

public void setEndLine (int color, TimelineLineView.LineType viewType)

Sets end line.

Parameters
color the color
viewType the view type

public void setLineOrientation (TimelineLineView.LineOrientation mLineOrientation)

Set the orientation of the line

Parameters
mLineOrientation int

public void setLinePadding (int padding)

Sets line padding

Parameters
padding the line padding

public void setLineSize (int lineSize)

Sets line size.

Parameters
lineSize the line size

public void setNodeSize (int nodeSize)

Sets Node size.

Parameters
nodeSize the Node size

public void setStartLine (int color, TimelineLineView.LineType viewType)

Sets start line.

Parameters
color the color
viewType the view type

public void setTimelineNode (Drawable node)

Sets Node.

Parameters
node will set Node drawable to timeline

public void setTimelineNode (Drawable node, int color)

Set the timeline node

Parameters
node will set Node drawable to timeline
color with a color

public void setTimelineNodeColor (int color)

Sets Node color.

Parameters
color the color

public void setTimelineNodeDrawable (Drawable nodeDrawable)

Set the node of the line

Parameters
nodeDrawable Drawable

public void setTimelineNodeInCenter (boolean inCenter)

Set timeline node in center

Parameters
inCenter boolean

Protected Methods

protected void onDraw (Canvas canvas)

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)

protected void onSizeChanged (int w, int h, int oldw, int oldh)