public class Annotation extends BaseTextComponent
| Modifier and Type | Field and Description |
|---|---|
static org.apache.myfaces.trinidad.bean.PropertyKey |
BORDER_COLOR_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
FILL_COLOR_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
GROUP_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
HORZ_ALIGN_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
LOCATION_KEY |
protected java.awt.Color |
m_defaultFontColor |
protected int |
m_defaultFontSize |
protected int |
m_defaultFontStyle |
protected java.lang.String |
m_defaultFontTypeface |
static org.apache.myfaces.trinidad.bean.PropertyKey |
POSITION_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
RENDERED_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
SERIES_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
TEXT_KEY |
static org.apache.myfaces.trinidad.bean.FacesBean.Type |
TYPE |
static org.apache.myfaces.trinidad.bean.PropertyKey |
VERT_ALIGN_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
XVALUE_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
YVALUE_KEY |
GRAPH_FONT_KEYID_KEY, m_parent, TRANSIENT_KEY| Constructor and Description |
|---|
Annotation() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.myfaces.trinidad.bean.FacesBean.Type |
getBeanType() |
java.awt.Color |
getBorderColor()
Retrieves the color of the annotation.
|
java.awt.Color |
getFillColor()
Retrieves the color of the annotation.
|
int |
getGroup()
Retrieves the Group associated with this annotation.
|
int |
getHorizontalAlignment()
Retrieves the horizontal alignment for the annotation.
|
java.lang.String |
getLocation()
Returns the location of the annotation relative to the markers in the
plot area.
|
java.lang.String |
getPosition()
Retrieves the position for the annotation.
|
int |
getSeries()
Retrieves the Series associated with this annotation.
|
java.lang.String |
getText()
Retrieves the text for the annotation.
|
int |
getVerticalAlignment()
Retrieves the vertical alignment for the annotation.
|
double |
getXValue()
Returns the x value of the annotation.
|
double |
getYValue()
Returns the y value of the annotation.
|
boolean |
isRendered()
Indicates whether the annotation is rendered.
|
void |
setBorderColor(java.awt.Color newColor)
Specifies the color of the annotation.
|
void |
setFillColor(java.awt.Color newColor)
Specifies the color of the annotation.
|
void |
setGroup(int index)
Specifies the Group associated with this annotation.
|
void |
setHorizontalAlignment(int align)
Sets the horizontal alignment for the annotation.
|
void |
setHorizontalAlignment(java.lang.String align)
Specifies the horizontal positioning of the annotation.
|
void |
setLocation(java.lang.String str)
Specifies the location of the annotation relative to the markers in the
plot area.
|
void |
setPosition(java.lang.String str)
Specifies the position for the annotation.
|
void |
setRendered(boolean rendered)
Specifies whether the annotation is rendered.
|
void |
setSeries(int index)
Specifies the Series associated with this annotation.
|
void |
setText(java.lang.String str)
Specifies the text of the annotation.
|
void |
setVerticalAlignment(int align)
Sets the vertical alignment for the annotation.
|
void |
setVerticalAlignment(java.lang.String align)
Specifies the vertical positioning of the annotation.
|
void |
setXValue(double value)
Set the x value of the annotation.
|
void |
setYValue(double value)
Set the y value of the annotation.
|
getGraphFont, setGraphFontapplyProperties, getBooleanProperty, getFacesBean, getId, getParent, getProperty, getPropertyKey, getSetAttributeIndex, isTransient, isUpdated, processSetAttribute, processSetAttributeAndAdd, registerAttachedObjectKey, restoreState, saveState, setBooleanProperty, setId, setParent, setProperty, setTransient, setUpdatedprotected java.lang.String m_defaultFontTypeface
protected int m_defaultFontStyle
protected int m_defaultFontSize
protected java.awt.Color m_defaultFontColor
public static final org.apache.myfaces.trinidad.bean.FacesBean.Type TYPE
public static final org.apache.myfaces.trinidad.bean.PropertyKey FILL_COLOR_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey BORDER_COLOR_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey TEXT_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey HORZ_ALIGN_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey VERT_ALIGN_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey RENDERED_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey SERIES_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey GROUP_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey XVALUE_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey YVALUE_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey POSITION_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey LOCATION_KEY
public void setSeries(int index)
index - public int getSeries()
public void setGroup(int index)
index - public int getGroup()
public void setXValue(double value)
value - the x value of the annotationpublic double getXValue()
public void setYValue(double value)
value - the y value of the annotationpublic double getYValue()
public java.awt.Color getFillColor()
public void setFillColor(java.awt.Color newColor)
newColor - The color for the annotation. The default
is Red (0xffcc0000)public java.awt.Color getBorderColor()
public void setBorderColor(java.awt.Color newColor)
newColor - The color for the annotation. The default
is Red (0xffcc0000)public java.lang.String getText()
public void setText(java.lang.String str)
str - The text of the annotation.public java.lang.String getPosition()
public void setPosition(java.lang.String str)
str - the position for the annotation.public int getHorizontalAlignment()
SwingConstants.LEFT,
SwingConstants.CENTER,
SwingConstants.RIGHT,
and SwingConstants.LEADING.public void setHorizontalAlignment(int align)
SwingConstants.LEFT,
SwingConstants.CENTER,
SwingConstants.RIGHT,
and SwingConstants.LEADING.align - a constant that represents the horizontal alignmentpublic void setHorizontalAlignment(java.lang.String align)
align - Valid values are: public int getVerticalAlignment()
SwingConstants.TOP,
SwingConstants.CENTER, and
SwingConstants.BOTTOM.public void setVerticalAlignment(int align)
SwingConstants.TOP,
SwingConstants.CENTER, and
SwingConstants.BOTTOM.align - a constant that represents the vertical alignmentpublic void setVerticalAlignment(java.lang.String align)
align - Valid values are:
public boolean isRendered()
true if it is rendered, false if it is
not rendered.public void setRendered(boolean rendered)
rendered - true to make it rendered, false
to make it not rendered.public java.lang.String getLocation()
public void setLocation(java.lang.String str)
str - the position of the annotationprotected org.apache.myfaces.trinidad.bean.FacesBean.Type getBeanType()
getBeanType in class BIComplexAttributeBase