public class O1TickLabel extends BaseTickLabel implements WordWrapEnabled
Modifier and Type | Field and Description |
---|---|
protected oracle.dss.graph.pfj.draw.IdentObj |
m_identObj2 |
protected boolean |
wordWrapEnabled |
a_assignedToY2, a_association, a_automaticRotation, a_axisAutoScaledFromZero, a_axisMaxAutoScaled, a_axisMaxValue, a_axisMinAutoScaled, a_axisMinValue, a_axisZoomMaxValue, a_axisZoomMinValue, a_backGround, a_borderStyle, a_borderTransparent, a_borderUsingDefaults, a_borderWidth, a_color, a_defaultAssignedToY2, a_defaultBorderColor, a_defaultBorderTransparent, a_defaultColor, a_defaultFirstMarkerColor, a_defaultFitlineType, a_defaultHighMarkerColor, a_defaultLastMarkerColor, a_defaultLineWidth, a_defaultLowMarkerColor, a_defaultMarkerColor, a_defaultMarkers, a_defaultMarkerShape, a_defaultMarkerType, a_displayedInLegend, a_effect, a_explicitEnd, a_explicitStart, a_fitlineType, a_focusFactor, a_group, a_height, a_high_value, a_horizontalAlignment, a_imageSource, a_isometricProjection, a_labelPosition, a_legendMarkersPerRow, a_legendOrientation, a_legendTextPosition, a_lightSourceX, a_lightSourceY, a_lightSourceZ, a_line_value, a_lineColor, a_lineIndex, a_lineStyle, a_lineWidth, a_location, a_logarithmicBase, a_low_value, a_majorIncrement, a_majorTickCount, a_majorTickStep, a_majorTickStepAutomatic, a_markerColor, a_markerShape, a_markerSize, a_markersPerRowAutomatic, a_markerTextAngleDefault, a_markerTextPlace, a_markerTextRadiusDefault, a_markerType, a_minorIncrement, a_minorTickCount, a_minorTickStep, a_minorTickStepType, a_mode, a_panX, a_panY, a_pieSliceExplode, a_quadrantLineCountX, a_quadrantLineCountY, a_quadrantLineValueX, a_quadrantLineValueY, a_rendered, a_rollover_behavior, a_scaledLogarithmic, a_series, a_seriesDisplayInLegend, a_shapePath, a_sharePanelProperties, a_shortDesc, a_sizeX, a_sizeY, a_sizeZ, a_skippedWithLabels, a_squareRisers, a_text, a_textFittingAutomatic, a_textRotation, a_textType, a_thresholdMaxValue, a_thresholdMinValue, a_tickLabelSkipCount, a_tickLabelSkipFirst, a_tickLabelSkipMode, a_tickLabelStaggered, a_tickLabelWrapped, a_tickStyle, a_translationX, a_translationY, a_translationZ, a_transparent, a_type, a_verticalAlignment, a_viewerX, a_viewerY, a_viewerZ, a_visibility, a_visible, a_wallThickX, a_wallThickY, a_wallThickZ, a_width, a_wordWrapEnabled, a_x, a_xValue, a_y, a_yValue, a_yValueAssignment, a_zoomFactor, al_both, AL_BOTH, al_left, AL_LEFT, al_right, AL_RIGHT, ap_always, AP_ALWAYS, ap_never, AP_NEVER, ar_horiz_rotate_270, AR_HORIZ_ROTATE_270, ar_horiz_rotate_90, AR_HORIZ_ROTATE_90, ar_no_rotate, AR_NO_ROTATE, CONV_MAP, dy2_auto_assign, DY2_AUTO_ASSIGN, dy2_false, DY2_FALSE, dy2_true, DY2_TRUE, FP_LG_CHECK, FP_LG_CROSSHATCH, FP_LG_DIAG_UP_LT, FP_LG_DIAG_UP_RT, FP_LG_DIAMOND_CHECK, FP_LG_TRIANGLE_CHECK, FP_MAX, FP_SM_CHECK, FP_SM_CROSSHATCH, FP_SM_DIAG_UP_LT, FP_SM_DIAG_UP_RT, FP_SM_DIAMOND_CHECK, FP_SM_TRIANGLE_CHECK, fs_bold, FS_BOLD, fs_bold_italic_underline, FS_BOLD_ITALIC_UNDERLINE, fs_bold_underline, FS_BOLD_UNDERLINE, fs_italic, FS_ITALIC, fs_italic_bold, FS_ITALIC_BOLD, fs_italic_underline, FS_ITALIC_UNDERLINE, fs_plain, FS_PLAIN, fs_underline, FS_UNDERLINE, ft_color, FT_COLOR, ft_exponential, FT_EXPONENTIAL, ft_gradient, FT_GRADIENT, ft_linear, FT_LINEAR, ft_logarithmic, FT_LOGARITHMIC, ft_none, FT_NONE, FT_PATTERN, ft_texture, FT_TEXTURE, gd_diagonal_135, GD_DIAGONAL_135, gd_diagonal_45, GD_DIAGONAL_45, gd_down, GD_DOWN, gd_down_left, GD_DOWN_LEFT, gd_down_right, GD_DOWN_RIGHT, gd_left, GD_LEFT, gd_radial, GD_RADIAL, gd_radial_bottom_left, GD_RADIAL_BOTTOM_LEFT, gd_radial_bottom_right, GD_RADIAL_BOTTOM_RIGHT, gd_radial_top_left, GD_RADIAL_TOP_LEFT, gd_radial_top_right, GD_RADIAL_TOP_RIGHT, gd_right, GD_RIGHT, gd_up, GD_UP, gd_up_left, GD_UP_LEFT, gd_up_right, GD_UP_RIGHT, gs_automatic, GS_AUTOMATIC, gs_extended, GS_EXTENDED, gs_grid, GS_GRID, gs_in, GS_IN, gs_none, GS_NONE, gs_out, GS_OUT, gs_span, GS_SPAN, lap_bottom, LAP_BOTTOM, lap_left, LAP_LEFT, lap_right, LAP_RIGHT, lap_top, LAP_TOP, ld_percent, LD_PERCENT, ld_text, LD_TEXT, ld_text_percent, LD_TEXT_PERCENT, ld_text_value, LD_TEXT_VALUE, ld_value, LD_VALUE, LEGENDMARKERSLIMIT, lo_automatic, LO_AUTOMATIC, lo_horizontal, LO_HORIZONTAL, lo_vertical, LO_VERTICAL, lp_inside, LP_INSIDE, lp_no_labels, LP_NO_LABELS, lp_outside_feeler_if_needed, LP_OUTSIDE_FEELER_IF_NEEDED, lp_outside_with_feeler, LP_OUTSIDE_WITH_FEELER, lp_outside_without_feeler, LP_OUTSIDE_WITHOUT_FEELER, ls_dash, LS_DASH, ls_dash_dot, LS_DASH_DOT, ls_dotted, LS_DOTTED, ls_solid, LS_SOLID, ltp_above, LTP_ABOVE, ltp_below, LTP_BELOW, ltp_on_left, LTP_ON_LEFT, ltp_on_marker, LTP_ON_MARKER, ltp_on_right, LTP_ON_RIGHT, m_commonGraph, m_identObj, m_pfj, ms_automatic, MS_AUTOMATIC, ms_circle, MS_CIRCLE, ms_diamond, MS_DIAMOND, ms_human, MS_HUMAN, ms_none, MS_NONE, ms_plus, MS_PLUS, ms_square, MS_SQUARE, ms_triangle_down, MS_TRIANGLE_DOWN, ms_triangle_up, MS_TRIANGLE_UP, mt_area, MT_AREA, mt_bar, MT_BAR, mt_centered_stepped_line, MT_CENTERED_STEPPED_LINE, MT_CURVE_AREA, mt_curve_line, MT_CURVE_LINE, mt_default, MT_DEFAULT, mt_line, MT_LINE, mt_marker, MT_MARKER, mt_stepped_line, MT_STEPPED_LINE, mtp_center, MTP_CENTER, mtp_custom, MTP_CUSTOM, mtp_inside_max, MTP_INSIDE_MAX, mtp_inside_min, MTP_INSIDE_MIN, mtp_left, MTP_LEFT, mtp_on_maxedge, MTP_ON_MAXEDGE, mtp_outside_max, MTP_OUTSIDE_MAX, mtp_right, MTP_RIGHT, mtp_under_marker, MTP_UNDER_MARKER, QUADRANTLINEVALUELIMIT, REV_CONV_MAP, ro_area, RO_AREA, ro_back, RO_BACK, ro_front, RO_FRONT, ro_line, RO_LINE, SHAPE_AUTOMATIC, SHAPE_CIRCLE, SHAPE_DIAMOND, SHAPE_HUMAN, SHAPE_NONE, SHAPE_PLUS, SHAPE_SQUARE, SHAPE_TRIANGLE_DOWN, SHAPE_TRIANGLE_UP, sv_hidden, SV_HIDDEN, sv_visible, SV_VISIBLE, tdm_stretched, TDM_STRETCHED, tdm_tiled, TDM_TILED, tls_automatic, TLS_AUTOMATIC, tls_manual, TLS_MANUAL, tls_noskip, TLS_NOSKIP, tr_horiz, TR_HORIZ, tr_horiz_rotate_270, TR_HORIZ_ROTATE_270, tr_horiz_rotate_90, TR_HORIZ_ROTATE_90, tsm_explicit, TSM_EXPLICIT, tsm_off, TSM_OFF, va_bottom, va_center, va_top, VF_PIE_SLICE_LABEL, VF_STOCK_VOLUME, VF_X1, VF_Y1, VF_Y2, VF_Z
m_jsfHashMap
Constructor and Description |
---|
O1TickLabel(CommonGraph graph) |
Modifier and Type | Method and Description |
---|---|
static int |
convertAutomaticRotationToInt(java.lang.String string) |
static int |
convertTickLabelSkipModeToInt(java.lang.String string) |
protected java.lang.String |
convertTickLabelSkipModeToString(int value) |
int |
getAutomaticRotation()
Retrieves the angle of automatic rotation for the text within the
rectangle for each of the O1-axis tick labels.
|
protected java.lang.String |
getComponentName() |
boolean |
getStyleXML(boolean allProperties,
oracle.dss.util.xml.ObjectNode node) |
int |
getTickLabelSkipCount()
Retrieves the number of O1-axis tick labels that the graph hides between
each one that is displayed.
|
int |
getTickLabelSkipFirst()
Retrieves the index of the first O1-axis tick label that is skipped.
|
int |
getTickLabelSkipMode()
Retrieves the type of skipping that is used for the O1-axis tick labels.
|
boolean |
isTextFittingAutomatic()
Indicates whether all of the O1-axis tick labels are automatically moved
and resized relative to the size of the graph.
|
boolean |
isTickLabelStaggered()
Indicates whether all of the O1-axis tick labels are staggered.
|
boolean |
isWordWrapEnabled()
Indicates whether word wrap is enabled for all of the O1-axis tick labels.
|
void |
resetStyle() |
boolean |
selectObject(int layer,
int group)
Selects this O1-axis tick label in the graph.
|
void |
setAutomaticRotation(int orient)
Specifies the angle of automatic rotation for the text within the
rectangle for each of the O1-axis tick labels.
|
void |
setHorizontalAlignment(int a)
Specifies the horizontal alignment of the text within the rectangle for each
of the O1-axis tick labels.This property is also tied to the O1DrillLable
When the text has been rotated to a vertical position, the horizontal
alignment properties appear to move the text up and down, rather than left
and right.
|
void |
setStyleXML(oracle.dss.util.xml.ObjectNode node) |
void |
setTextFittingAutomatic(boolean yesNo)
Specifies whether all of the O1-axis tick labels are automatically moved
and resized relative to the size of the graph.
|
void |
setTextRotation(int orient)
Specifies the angle of rotation for the text within the rectangle for
each of the O1-axis tick labels.
|
void |
setTickLabelSkipCount(int count)
Specifies the number of O1-axis tick labels that the graph hides between
each one that is displayed.
|
void |
setTickLabelSkipFirst(int first)
Specifies the index of the first 01-axis tick label that is skipped.
|
void |
setTickLabelSkipMode(int mode)
Specifies the type of skipping that is used for the O1-axis tick labels.
|
void |
setTickLabelStaggered(boolean yesNo)
Specifies whether all of the O1-axis tick labels are staggered.
|
void |
setWordWrapEnabled(boolean yesNo)
Specifies whether word wrap is enabled for all of the O1-axis tick labels.
|
getHorizontalAlignment, getNonstyleXML, getTextRotation, isVisible, setNonstyleXML, setVisible, setXML
_getGraphFont, getDataviewFont, getFont, getGraphFont, isFontSizeAbsolute, setFont, setFontSizeAbsolute, truncateText
convertAssociationToInt, convertFillPatternToString, convertGradientDirectionToString, convertHorizontalAlignmentToInt, convertHorizontalAlignmentToString, convertLineStyleToInt, convertLineStyleToString, convertLocationToInt, convertTextRotationtToInt, convertTickStyleToInt, convertTypeToInt, convertVerticalAlignmentToInt, convertVerticalAlignmentToString, hexStringToInt, toHexString
getStyleXML, getXML, setNonstyleXML, setXML, setXML, setXML
protected boolean wordWrapEnabled
protected oracle.dss.graph.pfj.draw.IdentObj m_identObj2
public O1TickLabel(CommonGraph graph)
graph
- The graph that this object belongs to.public boolean selectObject(int layer, int group)
layer
identifies
whether to select the outer layer (layer 0) or the inner layer
(layer 1).
For example, if a time axis has month labels next to the axis and year labels below the month labels, then the year labels are layer 0, and the month labels are layer 1.
If the O1-axis is not a time axis, then the layer
parameter is irrelevant.
selectObject
in class BaseTickLabel
layer
- If the axis is a time axis, then pass 0 for an outer label
or 1 for an inner label. If the axis is not a time
axis, then pass any integer.group
- The group
that this tick label belongs to.true
if successful, false
if not.public boolean isTextFittingAutomatic()
isTextFittingAutomatic
in class BaseTickLabel
true
if they are moved and resized,
false
if they are independent from the size of the graph.Graph.setAutoLayout(int)
public void setTextFittingAutomatic(boolean yesNo)
Graph automatic layout ignores this property.
setTextFittingAutomatic
in class BaseTickLabel
yesNo
- true
to make them automatically moved and
resized, false
to make them independent from the size of
the graph.Graph.setAutoLayout(int)
public int getAutomaticRotation()
doAutoLayout
method always sets this property to
AR_NO_ROTATE
.
doAutoLayout(BaseGraphComponent.HONOR_PROPERTIES)
respects
this property.
doAutoLayout(BaseGraphComponent.RESET_PROPERTIES)
treats
this property as AR_HORIZ_ROTATE_270
.
BaseGraphComponent.AR_NO_ROTATE
,
BaseGraphComponent.AR_HORIZ_ROTATE_90
,
BaseGraphComponent.AR_HORIZ_ROTATE_270
,
Graph.setAutoLayout(int)
public void setAutomaticRotation(int orient)
doAutoLayout
method always sets this property to
AR_NO_ROTATE
.
doAutoLayout(BaseGraphComponent.HONOR_PROPERTIES)
respects
this property.
doAutoLayout(BaseGraphComponent.RESET_PROPERTIES)
treats
this property as AR_HORIZ_ROTATE_270
.
orient
- A constant that represents the angle of automatic rotation
for the text within the rectangle for each of the O1-axis tick labels.
Valid constants are listed in the See Also section.
If you pass an invalid value, then the graph does not change the
AutomaticRotation
property value.
It logs a message with the error handler.BaseGraphComponent.AR_NO_ROTATE
,
BaseGraphComponent.AR_HORIZ_ROTATE_90
,
BaseGraphComponent.AR_HORIZ_ROTATE_270
public void setHorizontalAlignment(int a)
setHorizontalAlignment
in interface HorizontalAlignment
setHorizontalAlignment
in class BaseTickLabel
a
- A Swing
constant that represents the horizontal
alignment for the text of the title.
Valid constants are SwingConstants.LEFT
,
SwingConstants.CENTER
, and
SwingConstants.RIGHT
.public void setTextRotation(int orient)
doAutoLayout(BaseGraphComponent.HONOR_PROPERTIES)
respects
this property.
doAutoLayout(BaseGraphComponent.RESET_PROPERTIES)
treats
this property as TR_HORIZ
.
setTextRotation
in class BaseTickLabel
orient
- The angle of rotation for the text within the
rectangle for each of the O1-axis tick labels.
If you pass an invalid value, then the graph does not change the
TextRotation
property value.
It logs a message with the error handler.BaseGraphComponent.TR_HORIZ
,
BaseGraphComponent.TR_HORIZ_ROTATE_90
,
BaseGraphComponent.TR_HORIZ_ROTATE_270
,
Graph.setAutoLayout(int)
public int getTickLabelSkipCount()
TickLabelSkipMode
property is set to TLS_MANUAL
.
Automatic graph layout respects this property, if
TickLabelSkipMode
is TLS_MANUAL
.
Otherwise, automatic layout ignores this property.
The doAutoLayout
method sets it as needed, if
TickLabelSkipMode
is TLS_AUTOMATIC
or
if you pass RESET_PROPERTIES
as the argument to
doAutoLayout
.
setTickLabelSkipMode(int)
,
Graph.setAutoLayout(int)
,
Graph.doAutoLayout(int)
public void setTickLabelSkipCount(int count)
TickLabelSkipMode
property is set to TLS_MANUAL
.
Automatic graph layout respects this property, if
TickLabelSkipMode
is TLS_MANUAL
.
Otherwise, automatic layout ignores this property.
The doAutoLayout
method sets it as needed, if
TickLabelSkipMode
is TLS_AUTOMATIC
or
if you pass RESET_PROPERTIES
as the argument to
doAutoLayout
.
count
- The number of O1-axis tick labels that the graph hides
between each one that is displayed.setTickLabelSkipMode(int)
,
Graph.setAutoLayout(int)
,
Graph.doAutoLayout(int)
public int getTickLabelSkipFirst()
TickLabelSkipMode
property is set to TLS_MANUAL
.
Automatic graph layout respects this property, if
TickLabelSkipMode
is TLS_MANUAL
.
Otherwise, automatic layout ignores this property.
The doAutoLayout
method sets it as needed, if
TickLabelSkipMode
is TLS_AUTOMATIC
or
if you pass RESET_PROPERTIES
as the argument to
doAutoLayout
.
setTickLabelSkipMode(int)
,
setTickLabelSkipCount(int)
,
Graph.setAutoLayout(int)
,
Graph.doAutoLayout(int)
public void setTickLabelSkipFirst(int first)
TickLabelSkipMode
property is set to TLS_MANUAL
.
Automatic graph layout respects this property, if
TickLabelSkipMode
is TLS_MANUAL
.
Otherwise, automatic layout ignores this property.
The doAutoLayout
method sets it as needed, if
TickLabelSkipMode
is TLS_AUTOMATIC
or
if you pass RESET_PROPERTIES
as the argument to
doAutoLayout
.
first
- The index of the first O1-axis tick label that is skipped.
This index should not be greater than the value of
TickLabelSkipCount
.
For example, if you set the graph to skip two labels
between each displayed label, you cannot start with
the fourth label (index 3).setTickLabelSkipMode(int)
,
setTickLabelSkipCount(int)
,
Graph.setAutoLayout(int)
,
Graph.doAutoLayout(int)
public int getTickLabelSkipMode()
The doAutoLayout
method always sets this property to
TLS_AUTOMATIC
.
doAutoLayout(BaseGraphComponent.HONOR_PROPERTIES)
respects
this property.
doAutoLayout(BaseGraphComponent.RESET_PROPERTIES)
treats
this property as TLS_AUTOMATIC
.
setTickLabelSkipCount(int)
,
setTickLabelSkipFirst(int)
,
BaseGraphComponent.TLS_AUTOMATIC
,
BaseGraphComponent.TLS_MANUAL
,
BaseGraphComponent.TLS_NOSKIP
,
Graph.setAutoLayout(int)
,
Graph.doAutoLayout(int)
public void setTickLabelSkipMode(int mode)
The doAutoLayout
method always sets this property to
TLS_MANUAL
so you can adjust the related properties as
needed.
doAutoLayout(BaseGraphComponent.HONOR_PROPERTIES)
respects
this property.
doAutoLayout(BaseGraphComponent.RESET_PROPERTIES)
treats
this property as TLS_AUTOMATIC
.
mode
- A constant that represents the type of skipping that is
used for the O1-axis tick labels.
Valid constants are listed in the See Also section.
If you enter an invalid parameter value,
then the graph will log an ErrorHandler
message, and will not change the
TickLabelSkipMode
property.BaseGraphComponent.TLS_AUTOMATIC
,
BaseGraphComponent.TLS_MANUAL
,
BaseGraphComponent.TLS_NOSKIP
,
Graph.setAutoLayout(int)
,
Graph.doAutoLayout(int)
public boolean isTickLabelStaggered()
doAutoLayout
sets it as needed.isTickLabelStaggered
in class BaseTickLabel
true
if they are staggered, false
if
they are aligned.Graph.setAutoLayout(int)
,
Graph.doAutoLayout(int)
public void setTickLabelStaggered(boolean yesNo)
doAutoLayout
sets it as needed.setTickLabelStaggered
in class BaseTickLabel
yesNo
- true
to stagger them, false
to
align them.Graph.setAutoLayout(int)
,
Graph.doAutoLayout(int)
public boolean isWordWrapEnabled()
doAutoLayout
sets it as needed when the level is set to RESET_PROPERTIES
.
doAutoLayout
respects this property in the HONOR_PROPERTIES
mode.isWordWrapEnabled
in interface WordWrapEnabled
true
if it is enabled, false
if it is not.Graph.setAutoLayout(int)
,
Graph.doAutoLayout(int)
public void setWordWrapEnabled(boolean yesNo)
doAutoLayout
sets it as needed when the level is set to RESET_PROPERTIES
.
doAutoLayout
respects this property in the HONOR_PROPERTIES
mode.setWordWrapEnabled
in interface WordWrapEnabled
yesNo
- true
to wrap words, false
to
prohibit wrapping.Graph.setAutoLayout(int)
,
Graph.doAutoLayout(int)
protected java.lang.String getComponentName()
getComponentName
in class BaseComponentXML
protected java.lang.String convertTickLabelSkipModeToString(int value)
public static int convertTickLabelSkipModeToInt(java.lang.String string)
public static int convertAutomaticRotationToInt(java.lang.String string)
public void setStyleXML(oracle.dss.util.xml.ObjectNode node)
setStyleXML
in class BaseTickLabel
public boolean getStyleXML(boolean allProperties, oracle.dss.util.xml.ObjectNode node)
getStyleXML
in class BaseTickLabel
public void resetStyle()
resetStyle
in class BaseTickLabel