Skip navigation links 
 
oracle.dss.gauge
Class TopLabel
java.lang.Object
  
oracle.dss.gauge.BaseGaugeComponent
      
oracle.dss.gauge.BaseText
          
oracle.dss.gauge.BaseLabel
              
oracle.dss.gauge.TopLabel
- All Implemented Interfaces:
 
- FontAttribute
 
- 
public class TopLabel
 
- extends BaseLabel
 
- Since:
 
- 11.0
 
 
 
| Fields inherited from class oracle.dss.gauge.BaseLabel | 
a_aboveGauge, a_belowGauge, a_insideGauge, a_insideGaugeLeft, a_insideGaugeRight, a_none, a_withBottomLabel, lp_abovegauge, lp_belowgauge, lp_insidegauge, lp_insidegauge_left, lp_insidegauge_right, lp_none, lp_withbottomlabel, m_defaultPosition, m_positionKey | 
 
 
  
 
  
 
| Method Summary | 
 int | 
getPosition() 
          Returns the position of the label. | 
 java.lang.String | 
getText() 
          Retrieves the text for the TopLabel. | 
 java.lang.String | 
getText(int index) 
          Retrieves the top label override for the gauge at the specified index of a gauge set. | 
 void | 
setPosition(int position) 
          Specifies the position of the label. | 
 void | 
setText(int index, java.lang.String label) 
          Specifies the top label override for the gauge at the specified index of a gauge set. | 
 void | 
setText(java.lang.String str) 
          Specifies the text for the TopLabel. | 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
TopLabel
public TopLabel(CommonGauge gauge)
getText
public java.lang.String getText()
- Retrieves the text for the TopLabel.
 
- 
- Returns:
 
- String The text of this TopLabel.
 
 
setText
public void setText(java.lang.String str)
- Specifies the text for the TopLabel.
 
- 
- Parameters:
 
str - The text of this TopLabel. 
 
setText
public void setText(int index,
                    java.lang.String label)
- Specifies the top label override for the gauge at the specified index of a gauge set.
 
- 
- Parameters:
 
index - The index of the top label to override in a gauge set. 
label - The label to to apply. 
 
getText
public java.lang.String getText(int index)
- Retrieves the top label override for the gauge at the specified index of a gauge set.
 
- 
- Parameters:
 
index - The index of the top label to return. 
- Returns:
 
- String The label at the passed in index. null if unspecified.
 
 
getPosition
public int getPosition()
- Returns the position of the label.
 
- 
- Overrides:
 
getPosition in class BaseLabel 
 
- 
- Returns:
 
- the integer constant that represents where the label is placed: 
GaugeAttributes.LP_NONE, GaugeAttributes.LP_ABOVE_GAUGE, GaugeAttributes.LP_INSIDE_GAUGE. 
 
setPosition
public void setPosition(int position)
- Specifies the position of the label.
 
- 
- Overrides:
 
setPosition in class BaseLabel 
 
- 
- Parameters:
 
position - the integer constant that represents where the label is placed: GaugeAttributes.LP_NONE, GaugeAttributes.LP_ABOVE_GAUGE, GaugeAttributes.LP_INSIDE_GAUGE. 
 
Skip navigation links 
 
Copyright © 1997, 2015, Oracle. All rights reserved.