|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.report.core.internal.DItem
org.eclipse.tptp.platform.report.core.internal.DItemContainer
org.eclipse.tptp.platform.report.core.internal.DAxis
org.eclipse.tptp.platform.report.birt).
public class DAxis
Axis is used to store coordinates in point. Axis are child or DGraphic. For example two dimensional graphic displaying XY curve, contains two axis (one for x, one for y). Point coordinate can't be defined without axis, that's why even for simple graphics like histograms, an axis is required. Axis is named: expected to be unic for all axis of a graphic (name means identifier). Axis have a title and a unit that can be displayed to user. Axis can use linear or logarythmic scale. Axis can use float (or integer) values or java.util.Date values. Axis contains properties like min/max values (after a document update), or steps (line,unit,dot) for display purpose. For a logarythmic scaled axis steps must be in ]0..10[ and configure which line (unit,dot) is displayed for this decade 1..10, others are known by multiplying (dividing) by 10. For example a step_unit of 5 means the followings units text will be used 1,5,10,50,100,500,1000,.... For a date axis steps can be long (delay in milliseconds), or an instance of CalendarField to express usual steps like "every 6 month".
DPoint,
DCoord,
DCurve,
DGraphic| Field Summary | |
|---|---|
static java.lang.String |
P_DATA_CLASS
Deprecated. property key for a Class that set data type for this axis, float by default. |
static java.lang.String |
P_DATA_SCALE_PROVIDER
Deprecated. property key for a IScaleProvider you can set to instanciate particular IScale. |
static java.lang.String |
P_HISTORS_UNIT
Deprecated. property key for an IDAlignment object used only to render P_STEP_UNIT for T_HISTORS graphics. |
static java.lang.String |
P_HISTORS_UNIT_OPAQUE
Deprecated. property key for a Boolean object used only to render P_STEP_UNIT for T_HISTORS graphics. |
static java.lang.String |
P_LABEL_ALIGNMENT
Deprecated. property key for an IDAlignment object used only to align label on T_HISTOGRAM and T_HISTOGRAM_IM graphics. |
static java.lang.String |
P_LABEL_FORMAT
Deprecated. property key for a string object which defines the pattern used to draw the axis label By default the value is null Only activated for the SVG generation |
static java.lang.String |
P_LABEL_FORMATTYPE
Deprecated. property key for a string object which defines the label type (number, date) the axis label By default the value is null Only activated for the SVG generation |
static java.lang.String |
P_LABEL_ROTATION
Deprecated. property key for a string which defines the rotation angle for the axis label. |
static java.lang.String |
P_LINE_COLOR
Deprecated. property key for a IDColor instance that configure color used to render STEP_LINE in a different color than axis's style foreground. |
static java.lang.String |
P_MAJUNIT_SHOWGRID
Deprecated. property key for a boolean to show or not the grid line for the major unit. |
static java.lang.String |
P_MAJUNIT_SHOWTICK
Deprecated. property key for a boolean to show or not the tick on the axis for the major unit. |
static java.lang.String |
P_MAJUNIT_VALUE
Deprecated. property key for an object compatible with the value contained in the P_DATA_CLASS property. |
static java.lang.String |
P_MAX
Deprecated. property key, after document update, store max coordinate on axis. |
static java.lang.String |
P_MAX_HINT
Deprecated. property key, max. coordinate value asked for axis. |
static java.lang.String |
P_MIN
Deprecated. property key, after document update, store min. value value on this axis. |
static java.lang.String |
P_MIN_HINT
Deprecated. property key, min. coordinate value asked for axis. |
static java.lang.String |
P_MINUNIT_SHOWGRID
Deprecated. property key for a boolean to show or not the grid line for the minor unit. |
static java.lang.String |
P_MINUNIT_SHOWTICK
Deprecated. property key for a boolean to show or not the tick on the axis for the minor unit. |
static java.lang.String |
P_MINUNIT_VALUE
Deprecated. property key for an object compatible with the value contained in the P_DATA_CLASS property. |
static java.lang.String |
P_SHOW
Deprecated. property key for a Boolean object used do draw or not the axis By default this property is true. |
static java.lang.String |
P_SHOW_TITLE
Deprecated. property key for a Boolean object, true if title must be displayed, false to do not. |
static java.lang.String |
P_STEP_DOT
Deprecated. property key, a value asking to display dots each STEP_DOT value (see P_STEP_LINE) |
static java.lang.String |
P_STEP_LINE
Deprecated. property key, an object value asking to display lines each STEP_LINE value. |
static java.lang.String |
P_STEP_UNIT
Deprecated. property key, an object asking to display units each STEP_UNIT value (might be a number). |
static java.lang.String |
P_UNIT_FORMAT
Deprecated. property key for a suitable com.ibm.icu.text.Format class for P_DATA_CLASS. |
static java.lang.String |
S_LIN
Deprecated. Define a linear scale type for axis, this is the default. |
static java.lang.String |
S_LOG
Deprecated. Define a logarythmic scale (for numbers axis only). |
static java.lang.String |
S_MINUS_NINTY_DEGREE
Deprecated. Define a negative 90 degree rotation for the label. |
static java.lang.String |
S_PLUS_NINTY_DEGREE
Deprecated. Define a positive 90 degree rotation for the label. |
static java.lang.String |
S_ZERO_DEGREE
Deprecated. Define a zero degree rotation for the label, this is the default. |
| Constructor Summary | |
|---|---|
DAxis(java.lang.String _name)
Deprecated. Create an axis without unit and title. |
|
DAxis(java.lang.String _name,
java.lang.String _unit,
java.lang.String _title)
Deprecated. Create an axis with a name, an unit and a title. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Deprecated. |
DPropertyStore |
getProperties()
Deprecated. Returns property store |
java.lang.String |
getScaleType()
Deprecated. |
java.lang.String |
getTitle()
Deprecated. |
java.lang.String |
getTooltip()
Deprecated. |
java.lang.String |
getUnit()
Deprecated. |
boolean |
isDataClass(java.lang.Class _class)
Deprecated. |
boolean |
isScaleType(java.lang.String _scale)
Deprecated. |
void |
setName(java.lang.String _name)
Deprecated. Change the name of the axis. |
void |
setProperties(DPropertyStore store)
Deprecated. Replace current property store in axis. |
void |
setScaleType(java.lang.String _scale)
Deprecated. Changes value of scale type used by this axis. |
void |
setTitle(java.lang.String _title)
Deprecated. Change axis title. |
void |
setTooltip(java.lang.String tooltip)
Deprecated. Sets the text tooltip for the axis |
void |
setUnit(java.lang.String _unit)
Deprecated. Change unit of axis. |
boolean |
useNumbers()
Deprecated. |
| Methods inherited from class org.eclipse.tptp.platform.report.core.internal.DItemContainer |
|---|
clear, getChildCount, getChildOfClass, getChildPosition, getChildrenOfClass, getFirstChild, getLastChild, insertChild, isContainer, removeChild |
| Methods inherited from class org.eclipse.tptp.platform.report.core.internal.DItem |
|---|
addChild, getAppliedStyle, getIterator, getNext, getParent, getRoot, getStyle, setNext, setParent, setStyle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String P_MIN_HINT
public static final java.lang.String P_MAX_HINT
public static final java.lang.String P_STEP_LINE
public static final java.lang.String P_STEP_UNIT
public static final java.lang.String P_STEP_DOT
public static final java.lang.String P_MIN
public static final java.lang.String P_MAX
public static final java.lang.String P_SHOW_TITLE
public static final java.lang.String P_LINE_COLOR
public static final java.lang.String P_DATA_CLASS
public static final java.lang.String P_DATA_SCALE_PROVIDER
public static final java.lang.String P_UNIT_FORMAT
public static final java.lang.String P_LABEL_ALIGNMENT
to learn how to set labels.,
Constant Field Valuespublic static final java.lang.String P_HISTORS_UNIT
public static final java.lang.String P_HISTORS_UNIT_OPAQUE
public static final java.lang.String P_SHOW
public static final java.lang.String P_LABEL_ROTATION
public static final java.lang.String P_MAJUNIT_SHOWTICK
public static final java.lang.String P_MAJUNIT_SHOWGRID
public static final java.lang.String P_MAJUNIT_VALUE
public static final java.lang.String P_MINUNIT_SHOWTICK
public static final java.lang.String P_MINUNIT_SHOWGRID
public static final java.lang.String P_MINUNIT_VALUE
public static final java.lang.String P_LABEL_FORMAT
public static final java.lang.String P_LABEL_FORMATTYPE
public static final java.lang.String S_LIN
public static final java.lang.String S_LOG
public static final java.lang.String S_ZERO_DEGREE
public static final java.lang.String S_PLUS_NINTY_DEGREE
public static final java.lang.String S_MINUS_NINTY_DEGREE
| Constructor Detail |
|---|
public DAxis(java.lang.String _name,
java.lang.String _unit,
java.lang.String _title)
_name - name of the axis (ie axis identifier)_unit - unit for axis_title - title for axispublic DAxis(java.lang.String _name)
_name - | Method Detail |
|---|
public DPropertyStore getProperties()
public java.lang.String getName()
public void setName(java.lang.String _name)
_name - new axis name.public java.lang.String getTitle()
public void setTitle(java.lang.String _title)
_title - new axis title.public java.lang.String getUnit()
public void setUnit(java.lang.String _unit)
_unit - new unit of axis.public void setProperties(DPropertyStore store)
store - the new property store.public java.lang.String getScaleType()
public void setScaleType(java.lang.String _scale)
public boolean isScaleType(java.lang.String _scale)
public boolean useNumbers()
P_DATA_CLASSpublic boolean isDataClass(java.lang.Class _class)
useNumbers()public java.lang.String getTooltip()
public void setTooltip(java.lang.String tooltip)
|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||