org.netxms.client.dashboards
Class DashboardElement

java.lang.Object
  extended by org.netxms.client.dashboards.DashboardElement

public class DashboardElement
extends java.lang.Object

Dashboard's element


Field Summary
static int BAR_CHART
           
static int BOTTOM
           
static int CENTER
           
static int FILL
           
static int LABEL
           
static int LEFT
           
static int LINE_CHART
           
static int PIE_CHART
           
static int RIGHT
           
static int STATUS_INDICATOR
           
static int TOP
           
 
Constructor Summary
DashboardElement(DashboardElement src)
          Copy constructor
DashboardElement(int type, java.lang.String data)
          Create dashboard element which takes 1 cell with FILL layout in both directions
DashboardElement(NXCPMessage msg, long baseId)
          Create dashboard element from NXCP message
 
Method Summary
 void fillMessage(NXCPMessage msg, long baseId)
          Fill NXCP message with element's data
 java.lang.String getData()
           
 int getHorizontalAlignment()
           
 int getHorizontalSpan()
           
 int getType()
           
 int getVerticalAlignment()
           
 int getVerticalSpan()
           
 void setData(java.lang.String data)
           
 void setHorizontalAlignment(int horizontalAlignment)
           
 void setHorizontalSpan(int horizontalSpan)
           
 void setVerticalAlignment(int verticalAlignment)
           
 void setVerticalSpan(int verticalSpan)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABEL

public static final int LABEL
See Also:
Constant Field Values

LINE_CHART

public static final int LINE_CHART
See Also:
Constant Field Values

BAR_CHART

public static final int BAR_CHART
See Also:
Constant Field Values

PIE_CHART

public static final int PIE_CHART
See Also:
Constant Field Values

STATUS_INDICATOR

public static final int STATUS_INDICATOR
See Also:
Constant Field Values

FILL

public static final int FILL
See Also:
Constant Field Values

CENTER

public static final int CENTER
See Also:
Constant Field Values

LEFT

public static final int LEFT
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

TOP

public static final int TOP
See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
See Also:
Constant Field Values
Constructor Detail

DashboardElement

public DashboardElement(int type,
                        java.lang.String data)
Create dashboard element which takes 1 cell with FILL layout in both directions

Parameters:
type - element's type
data - element's data

DashboardElement

public DashboardElement(NXCPMessage msg,
                        long baseId)
Create dashboard element from NXCP message

Parameters:
msg - NXCP message
baseId - base variable ID

DashboardElement

public DashboardElement(DashboardElement src)
Copy constructor

Parameters:
src - original element
Method Detail

fillMessage

public void fillMessage(NXCPMessage msg,
                        long baseId)
Fill NXCP message with element's data

Parameters:
msg - NXCP message
baseId - base variable ID

getData

public java.lang.String getData()
Returns:
the data

setData

public void setData(java.lang.String data)
Parameters:
data - the data to set

getHorizontalSpan

public int getHorizontalSpan()
Returns:
the horizontalSpan

setHorizontalSpan

public void setHorizontalSpan(int horizontalSpan)
Parameters:
horizontalSpan - the horizontalSpan to set

getVerticalSpan

public int getVerticalSpan()
Returns:
the verticalSpan

setVerticalSpan

public void setVerticalSpan(int verticalSpan)
Parameters:
verticalSpan - the verticalSpan to set

getHorizontalAlignment

public int getHorizontalAlignment()
Returns:
the horizontalAlignment

setHorizontalAlignment

public void setHorizontalAlignment(int horizontalAlignment)
Parameters:
horizontalAlignment - the horizontalAlignment to set

getVerticalAlignment

public int getVerticalAlignment()
Returns:
the verticalAlignment

setVerticalAlignment

public void setVerticalAlignment(int verticalAlignment)
Parameters:
verticalAlignment - the verticalAlignment to set

getType

public int getType()
Returns:
the type


Copyright © 2011. All Rights Reserved.