Summ:  Nested Constr. Methods    Details:  Constr. Methods      Class:  Prev Next
com.artfulbits.aiCharts.Base
Class ChartLayoutElement

java.lang.Object com.artfulbits.aiCharts.Base.ChartLayoutElement

Declaration: public abstract class ChartLayoutElement extends Object
implements ILayout.IElement
All Interfaces: ILayout.IElement
Direct Subclasses: ChartLegend, ChartTitle

 

Represents base class for all chart elements that intend to be docked or aligned to the chart.

 

Since: 1.0

 

 

Nested Members Summary
static enum ChartLayoutElement.Alignment
    
Represents chart element's alignment.
static enum ChartLayoutElement.Dock
    
Represents chart element's dock.

 

 

Constructors Summary
ChartLayoutElement()
    
Sole constructor.

 

 

Methods Summary
ChartLayoutElement.Alignment getAlignment()
    
Gets alignment for this element.
android.graphics.Rect getBounds()
    
Gets area occupied by this element.
ChartLayoutElement.Dock getDock()
    
Gets current dock mode for the legend.
int getMeasuredHeight()
    
Gets height calculated during measure pass.
int getMeasureWidth()
    
Gets width calculated during measure pass.
boolean isVisible()
    
Gets the visibility state for this element.
void layout(android.graphics.Rect inOutBounds)
    
Sets bounds for this element.
void measure(android.graphics.Point inOutSize)
    
Measures the element.
void setAlignment(ChartLayoutElement.Alignment alignment)
    
Sets alignment for this element.
void setDock(ChartLayoutElement.Dock dock)
    
Sets docking mode for the legend.
void setVisible(boolean value)
    
Sets visibility of this element on parent ChartView.

 

Methods inherited from class: java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

 

 

 

ChartLayoutElement

 

public ChartLayoutElement( )

 

Sole constructor. (For invocation by subclass constructors, typically implicit.)

 

Since: 1.0

 

 

 

 

layout

 

public void layout( android.graphics.Rect inOutBounds)

 

[ description from ILayout.IElement.layout(android.graphics.Rect) ]
 
Sets bounds for this element.

 

Implements: ILayout.IElement.layout(Rect)

 

 

 

measure

 

public void measure( android.graphics.Point inOutSize)

 

[ description from ILayout.IElement.measure(android.graphics.Point) ]
 
Measures the element.

 

Implements: ILayout.IElement.measure(Point)

 

 

 

getDock

 

public ChartLayoutElement.Dock getDock( )

 

Gets current dock mode for the legend.

 

Returns:
instance of ChartLayoutElement.Dock enumeration.

 

Since: 1.0

 

 

 

setDock

 

public void setDock( ChartLayoutElement.Dock dock)

 

Sets docking mode for the legend.

 

Parameters:
dock-
instance of ChartLayoutElement.Dock enumeration.

 

Since: 1.0

 

 

 

setVisible

 

public void setVisible( boolean value)

 

Sets visibility of this element on parent ChartView.

 

Parameters:
value-
true if element should be visible, otherwise false.

 

Since: 1.0

 

 

 

isVisible

 

public boolean isVisible( )

 

Gets the visibility state for this element.

 

Returns:
true if element is visible, otherwise false.

 

Since: 1.0

 

 

 

setAlignment

 

public void setAlignment( ChartLayoutElement.Alignment alignment)

 

Sets alignment for this element.

 

Parameters:
alignment-
value of desired alignment.

 

Since: 1.0

 

 

 

getAlignment

 

public ChartLayoutElement.Alignment getAlignment( )

 

Gets alignment for this element.

 

Returns:
value of currently applied alignment.

 

Since: 1.0

 

 

 

getMeasureWidth

 

public int getMeasureWidth( )

 

Gets width calculated during measure pass.

 

Returns:
value of measured width.

 

Since: 1.0

 

 

 

getMeasuredHeight

 

public int getMeasuredHeight( )

 

Gets height calculated during measure pass.

 

Returns:
value of measured height.

 

Since: 1.0

 

 

 

getBounds

 

public android.graphics.Rect getBounds( )

 

Gets area occupied by this element.

 

Returns:
instance of android.graphics.Rect class representing current bounds.

 

Since: 1.0

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.