|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dss.dataView.BaseComponentXML
oracle.dss.graph.BaseGraphComponent
oracle.dss.graph.BaseText
oracle.dss.graph.SliceLabel
public class SliceLabel
Describes a slice of a pie in a pie or ring graph. Each slice represents a data value.
Field Summary | |
---|---|
protected ViewFormat |
m_viewFormat
|
Fields inherited from class oracle.dss.graph.BaseText |
---|
m_font |
Fields inherited from class oracle.dss.dataView.BaseComponentXML |
---|
m_jsfHashMap |
Constructor Summary | |
---|---|
SliceLabel(CommonGraph graph)
|
Method Summary | |
---|---|
static int |
convertTextTypeToInt(java.lang.String string)
|
void |
formatChanged(int attributeId,
java.lang.String attributeName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
protected java.lang.String |
getComponentName()
|
boolean |
getNonstyleXML(boolean allProperties,
oracle.dss.util.xml.ObjectNode node)
Retrieves Non style properties of this component to XML returns whether if the node exists |
boolean |
getStyleXML(boolean allProperties,
oracle.dss.util.xml.ObjectNode node)
|
int |
getTextRotation()
Retrieves the rotation for the rectangle of this label. |
int |
getTextType()
Retrieves a text type for this label. |
ViewFormat |
getViewFormat()
Retrieves a ViewFormat object for this label. |
boolean |
isVisible()
Indicates whether slice labels appear in the graph. |
protected void |
resetStyle()
|
void |
resetToDefault()
|
boolean |
selectObject(int series,
int group)
Selects the label for an individual slice. |
void |
setNonstyleXML(oracle.dss.util.xml.ObjectNode node,
java.lang.String version,
int reset)
|
protected void |
setObjectId(oracle.dss.graph.pfj.draw.IdentObj id)
|
void |
setStyleXML(oracle.dss.util.xml.ObjectNode node)
|
void |
setTextRotation(int rotate)
Specifies the rotation of rectangle of this label. |
void |
setTextType(int i)
Specifies a text type of this label. |
void |
setViewFormat(ViewFormat viewFormat)
Specifies a ViewFormat object for this label. |
void |
setVisible(boolean yesNo)
Specifies whether slice labels appear in the graph. |
Methods inherited from class oracle.dss.graph.BaseText |
---|
_getGraphFont, getDataviewFont, getFont, getGraphFont, isFontSizeAbsolute, setFont, setFontSizeAbsolute, setNonstyleXML |
Methods inherited from class oracle.dss.dataView.BaseComponentXML |
---|
getStyleXML, getXML, setXML, setXML, setXML, setXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.dss.dataView.FontAttribute |
---|
getFont, setFont |
Methods inherited from interface oracle.dss.dataView.DataviewFontAttribute |
---|
getDataviewFont |
Field Detail |
---|
protected ViewFormat m_viewFormat
Constructor Detail |
---|
public SliceLabel(CommonGraph graph)
graph
- The graph that this object belongs to.Method Detail |
---|
public void resetToDefault()
ViewFormat
that
specifies number formatting for the slice labels in the graph.public boolean selectObject(int series, int group)
selectObject
in class BaseGraphComponent
series
- The series
of the slice label that you
want to select.group
- The group
of the slice label that you
want to select.
true
if successful, false
if not.public int getTextType()
BaseGraphComponent.LD_TEXT
,
BaseGraphComponent.LD_VALUE
,
BaseGraphComponent.LD_PERCENT
,
BaseGraphComponent.LD_TEXT_PERCENT
public void setTextType(int i)
i
- A constant that represents a text type of this label.BaseGraphComponent.LD_TEXT
,
BaseGraphComponent.LD_VALUE
,
BaseGraphComponent.LD_PERCENT
,
BaseGraphComponent.LD_TEXT_PERCENT
public int getTextRotation()
BaseGraphComponent.TR_HORIZ
,
BaseGraphComponent.TR_HORIZ_ROTATE_90
,
BaseGraphComponent.TR_HORIZ_ROTATE_270
public void setTextRotation(int rotate)
rotate
- A constant that represents the rotation of the rectangle
of this label. If you enter an invalid parameter value, the graph logs an
ErrorHandler
message and leaves the TextRotation
property unchanged.BaseGraphComponent.TR_HORIZ
,
BaseGraphComponent.TR_HORIZ_ROTATE_90
,
BaseGraphComponent.TR_HORIZ_ROTATE_270
public ViewFormat getViewFormat()
ViewFormat
object for this label.
The ViewFormat
objects allow you to format numbers.
getViewFormat
in interface Formattable
ViewFormat
object for this label.public void setViewFormat(ViewFormat viewFormat)
ViewFormat
object for this label.
The ViewFormat
objects allow you to format numbers.
setViewFormat
in interface Formattable
viewFormat
- A ViewFormat
object for this label.public void formatChanged(int attributeId, java.lang.String attributeName, java.lang.Object oldValue, java.lang.Object newValue)
formatChanged
in interface BaseViewFormatCallback
attributeId
- the static constant in ViewFormat that identifies the
attributeattributeName
- the name of the attribute that changedoldValue
- the old value of the attributenewValue
- the new value of the attributepublic boolean isVisible()
isVisible
in interface Visible
true
if it is visible, false
if it is
invisible.public void setVisible(boolean yesNo)
setVisible
in interface Visible
yesNo
- true
to display slice labels,
false
to hide them.protected java.lang.String getComponentName()
getComponentName
in class BaseComponentXML
protected void setObjectId(oracle.dss.graph.pfj.draw.IdentObj id)
public boolean getNonstyleXML(boolean allProperties, oracle.dss.util.xml.ObjectNode node)
BaseComponentXML
getNonstyleXML
in class BaseComponentXML
public boolean getStyleXML(boolean allProperties, oracle.dss.util.xml.ObjectNode node)
getStyleXML
in class BaseText
public void setNonstyleXML(oracle.dss.util.xml.ObjectNode node, java.lang.String version, int reset)
setNonstyleXML
in class BaseComponentXML
public void setStyleXML(oracle.dss.util.xml.ObjectNode node)
setStyleXML
in class BaseText
public static int convertTextTypeToInt(java.lang.String string)
protected void resetStyle()
resetStyle
in class BaseText
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |