|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.imsl.chart.AbstractChartNode com.imsl.chart.ChartNode
public abstract class ChartNode
The base class of all of the nodes in the 2D chart tree.
Field Summary | |
---|---|
static int |
AXIS_X_TOP
Flag to indicate x-axis placed on top of the chart. |
static int |
AXIS_Y_RIGHT
Flag to indicate y-axis placed to the right of the chart. |
static int |
BAR_TYPE_HORIZONTAL
Flag to indicate a horizontal bar chart. |
static int |
BAR_TYPE_VERTICAL
Flag to indicate a vertical bar chart. |
static double[] |
DASH_PATTERN_DASH
Flag to draw a dashed line. |
static double[] |
DASH_PATTERN_DASH_DOT
Flag to draw a dash-dot pattern line. |
static double[] |
DASH_PATTERN_DOT
Flag to draw a dotted line. |
static double[] |
DASH_PATTERN_SOLID
Flag to draw solid line. |
static int |
DATA_TYPE_FILL
Value for attribute "DataType" indicating that the area between the lines connecting the data points and the horizontal reference line (y = attribute "Reference") should be filled. |
static int |
DATA_TYPE_LINE
Value for attribute "DataType" indicating that the data points should be connected with line segments. |
static int |
DATA_TYPE_MARKER
Value for attribute "DataType" indicating that a marker should be drawn at each data point. |
static int |
DATA_TYPE_PICTURE
Value for attribute "DataType" indicating that an image (attribute "Image") should be drawn at each data point. |
static int |
DATA_TYPE_TUBE
Value for attribute "DataType" indicating that an a tube connecting the data points should be drawn. |
static int |
DENDROGRAM_TYPE_HORIZONTAL
Flag to indicate a horizontal dendrogram. |
static int |
DENDROGRAM_TYPE_VERTICAL
Flag to indicate a vertical dendrogram. |
static int |
FILL_TYPE_GRADIENT
Value for attribute "FillType" indicating that the region is to be drawn in a color gradient as specified by the attribute Gradient. |
static int |
FILL_TYPE_NONE
Value for attribute "FillType" and "FillOutlineType" indicating that the region is not to be drawn. |
static int |
FILL_TYPE_PAINT
Value for attribute "FillType" indicating that the region is to be drawn using the texture specified by the attribute FillPaint. |
static int |
FILL_TYPE_SOLID
Value for attribute "FillType" and "FillOutlineType" indicating that the region is to be drawn using the solid color specified by the attribute FillColor or FillOutlineColor. |
static int |
LABEL_TYPE_PERCENT
Flag used to indicate that a pie slice is to be labeled with a percentage value. |
static int |
MARKER_TYPE_ASTERISK
Flag for a asterisk data marker. |
static int |
MARKER_TYPE_CIRCLE_CIRCLE
Flag for a circle in a circle data marker. |
static int |
MARKER_TYPE_CIRCLE_PLUS
Flag for a plus in a circle data marker. |
static int |
MARKER_TYPE_CIRCLE_X
Flag for an x in a circle data marker. |
static int |
MARKER_TYPE_DIAMOND_PLUS
Flag for a plus in a diamond data marker. |
static int |
MARKER_TYPE_FILLED_CIRCLE
Flag for a filled circle data marker. |
static int |
MARKER_TYPE_FILLED_DIAMOND
Flag for a filled diamond data marker. |
static int |
MARKER_TYPE_FILLED_SQUARE
Flag for a filled square data marker. |
static int |
MARKER_TYPE_FILLED_TRIANGLE
Flag for a filled triangle data marker. |
static int |
MARKER_TYPE_HOLLOW_CIRCLE
Flag for a hollow circle data marker. |
static int |
MARKER_TYPE_HOLLOW_DIAMOND
Flag for a hollow diamond data marker. |
static int |
MARKER_TYPE_HOLLOW_SQUARE
Flag for a hollow square data marker. |
static int |
MARKER_TYPE_HOLLOW_TRIANGLE
Flag for hollow triangle data marker. |
static int |
MARKER_TYPE_OCTAGON_PLUS
Flag for a plus in an octagon data marker. |
static int |
MARKER_TYPE_OCTAGON_X
Flag for a x in an octagon data marker. |
static int |
MARKER_TYPE_PLUS
Flag for a plus-shaped data marker. |
static int |
MARKER_TYPE_SQUARE_PLUS
Flag for a plus in a square data marker. |
static int |
MARKER_TYPE_SQUARE_X
Flag for an x in a square data marker. |
static int |
MARKER_TYPE_X
Flag for a x-shaped data marker. |
static int |
TEXT_X_CENTER
Value for attribute "TextAlignment" indicating that the text should be centered. |
static int |
TEXT_X_LEFT
Value for attribute "TextAlignment" indicating that the text should be left adjusted. |
static int |
TEXT_X_RIGHT
Value for attribute "TextAlignment" indicating that the text should be right adjusted. |
static int |
TEXT_Y_BOTTOM
Value for attribute "TextAlignment" indicating that the text should be drawn on the baseline. |
static int |
TEXT_Y_CENTER
Value for attribute "TextAlignment" indicating that the text should be vertically centered. |
static int |
TEXT_Y_TOP
Value for attribute "TextAlignment" indicating that the text should be drawn with the top of the letters touching the top of the drawing region. |
Fields inherited from class com.imsl.chart.AbstractChartNode |
---|
AUTOSCALE_DATA, AUTOSCALE_DENSITY, AUTOSCALE_NUMBER, AUTOSCALE_OFF, AUTOSCALE_WINDOW, AXIS_X, AXIS_Y, AXIS_Z, LABEL_TYPE_NONE, LABEL_TYPE_TITLE, LABEL_TYPE_X, LABEL_TYPE_Y, LABEL_TYPE_Z, TRANSFORM_CUSTOM, TRANSFORM_LINEAR, TRANSFORM_LOG |
Constructor Summary | |
---|---|
ChartNode(ChartNode parent)
Construct a ChartNode object. |
Method Summary | |
---|---|
void |
addPickListener(PickListener pickListener)
Adds a PickListener to this node. |
void |
firePickListeners(MouseEvent event)
Fires the pick listeners defined at this node and at all of its ancestors, if the event "hits" the node. |
String |
getALT()
Returns the value of the "ALT" attribute. |
Axis |
getAxis()
Returns the value of the "Axis" attribute. |
Background |
getBackground()
Returns the value of the "Background" attribute. |
double |
getBarGap()
Returns the value of the "BarGap" attribute. |
int |
getBarType()
Returns the value of the "BarType" attribute. |
double |
getBarWidth()
Returns the value of the "BarWidth" attribute. |
Chart |
getChart()
Returns the value of the "Chart" attribute. |
ChartTitle |
getChartTitle()
Returns the value of the "ChartTitle" attribute. |
ChartNode[] |
getChildren()
Returns an array of the children of this node. |
boolean |
getClipData()
Returns the value of the "ClipData" attribute. |
Component |
getComponent()
Returns the value of the "Component" attribute. |
double[] |
getConcatenatedViewport()
Returns the value of the "Viewport" attribute concatenated with the "Viewport" attributes set in its ancestor nodes. |
int |
getDataType()
Returns the value of the "DataType" attribute. |
boolean |
getDoubleBuffering()
Returns the value of the "DoubleBuffering" attribute. |
double |
getExplode()
Returns the value of the "Explode" attribute. |
Color |
getFillOutlineColor()
Returns the value of the "FillOutlineColor" attribute. |
int |
getFillOutlineType()
Returns the value of the "FillOutlineType" attribute. |
Paint |
getFillPaint()
Returns the value of the "FillPaint" attribute. |
int |
getFillType()
Returns the value of the "FillType" attribute. |
Color[] |
getGradient()
Returns the value of the "Gradient" attribute. |
String |
getHREF()
Returns the value of the "HREF" attribute. |
Legend |
getLegend()
Returns the value of the "Legend" attribute. |
double[] |
getLineDashPattern()
Returns the value of the "LineDashPattern" attribute. |
double[] |
getMarkerDashPattern()
Returns the value of the "MarkerPattern" attribute. |
double |
getMarkerThickness()
Returns the value of the "MarkerThickness" attribute. |
int |
getMarkerType()
Returns the value of the "MarkerType" attribute. |
ChartNode |
getParent()
Returns the parent of this node. |
double |
getReference()
Returns the value of the "Reference" attribute. |
AxisXY |
getScreenAxis()
Returns the value of the "ScreenAxis" attribute. |
Dimension |
getScreenSize()
Returns the value of the "ScreenSize" attribute. |
int[] |
getScreenViewport()
Returns the value of the "Viewport" attribute scaled by the screen size. |
Dimension |
getSize()
Returns the value of the "Size" attribute. |
boolean |
getSkipWeekends()
Returns the value of the "SkipWeekends" attribute. |
int |
getTextAngle()
Returns the value of the "TextAngle" attribute. |
Color |
getTextColor()
Returns the value of the "TextColor" attribute. |
Text |
getTitle()
Returns the value of the "Title" attribute. |
String |
getToolTip()
Returns the value of the "ToolTip" attribute. |
double[] |
getViewport()
Returns the value of the "Viewport" attribute. |
static boolean |
isBitSet(int flag,
int mask)
Returns true if the bit set in flag is set in mask. |
abstract void |
paint(Draw draw)
Paints this node and all of its children. |
void |
prePaint()
The prePaint method is called in all nodes in a chart just before the chart is painted. |
void |
removePickListener(PickListener pickListener)
Removes a PickListener from this node. |
void |
setALT(String value)
Sets the value of the "ALT" attribute. |
void |
setBarGap(double value)
Sets the value of the "BarGap" attribute. |
void |
setBarType(int value)
Sets the value of the "BarType" attribute. |
void |
setBarWidth(double value)
Sets the value of the "BarWidth" attribute. |
void |
setChartTitle(ChartTitle value)
Sets the value of the "ChartTitle" attribute. |
void |
setClipData(boolean value)
Sets the value of the "ClipData" attribute. |
void |
setCustomTransform(Transform value)
Sets the value of the "CustomTransform" attribute. |
void |
setDataType(int value)
Sets the value of the "DataType" attribute. |
void |
setDoubleBuffering(boolean value)
Sets the value of the "DoubleBuffering" attribute. |
void |
setExplode(double value)
Sets the value of the "Explode" attribute. |
void |
setFillOutlineColor(Color color)
Sets the value of the "FillOutlineColor" attribute. |
void |
setFillOutlineColor(String color)
Sets the value of the "FillOutlineColor" attribute to a color specified by name. |
void |
setFillOutlineType(int value)
Sets the value of the "FillOutlineType" attribute. |
void |
setFillPaint(ImageIcon imageIcon)
Sets the value of the "FillPaint" attribute. |
void |
setFillPaint(Paint value)
Sets the value of the "FillPaint" attribute. |
void |
setFillPaint(URL urlImage)
Sets the value of the "FillPaint" attribute. |
void |
setFillType(int value)
Sets the value of the "FillType" attribute. |
void |
setGradient(Color[] colorGradient)
Sets the value of the "Gradient" attribute. |
void |
setGradient(Color colorLL,
Color colorLR,
Color colorUR,
Color colorUL)
Sets the value of the "Gradient" attribute. |
void |
setGradient(String colorLL,
String colorLR,
String colorUR,
String colorUL)
Sets the value of the "Gradient" attribute using named colors. |
void |
setHREF(String value)
Sets the value of the "HREF" attribute. |
void |
setImage(Image value)
Sets the value of the "Image" attribute. |
void |
setLineDashPattern(double[] value)
Sets the value of the "LineDashPattern" attribute. |
void |
setMarkerDashPattern(double[] value)
Sets the value of the "MarkerDashPattern" attribute. |
void |
setMarkerThickness(double width)
Sets the value of the "MarkerThickness" attribute. |
void |
setMarkerType(int type)
Sets the value of the "MarkerType" attribute. |
void |
setReference(double value)
Sets the value of the "Reference" attribute. |
void |
setScreenSize(Dimension value)
Sets the value of the "ScreenSize" attribute. |
void |
setSize(Dimension value)
Sets the value of the "Size" attribute. |
void |
setSkipWeekends(boolean skipWeekends)
Sets the value of the "SkipWeekends" attribute. |
void |
setTextAngle(int value)
Sets the value of the "TextAngle" attribute. |
void |
setTextColor(Color color)
Sets the value of the "TextColor" attribute. |
void |
setTextColor(String color)
Sets the value of the "TextColor" attribute to a color specified by name. |
void |
setTitle(String value)
Sets the value of the "Title" attribute. |
void |
setTitle(Text value)
Sets the value of the "Title" attribute. |
void |
setToolTip(String value)
Sets the value of the "ToolTip" attribute. |
void |
setViewport(double[] value)
Sets the value of the "Viewport" attribute. |
void |
setViewport(double xmin,
double xmax,
double ymin,
double ymax)
Sets the value of the "Viewport" attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int AXIS_X_TOP
public static final int AXIS_Y_RIGHT
public static final int BAR_TYPE_HORIZONTAL
setBarType(int)
,
getBarType()
,
Constant Field Valuespublic static final int BAR_TYPE_VERTICAL
setBarType(int)
,
getBarType()
,
Constant Field Valuespublic static final double[] DASH_PATTERN_DASH
setLineDashPattern(double[])
public static final double[] DASH_PATTERN_DASH_DOT
setLineDashPattern(double[])
public static final double[] DASH_PATTERN_DOT
setLineDashPattern(double[])
public static final double[] DASH_PATTERN_SOLID
setLineDashPattern(double[])
public static final int DATA_TYPE_FILL
public static final int DATA_TYPE_LINE
public static final int DATA_TYPE_MARKER
public static final int DATA_TYPE_PICTURE
public static final int DATA_TYPE_TUBE
public static final int DENDROGRAM_TYPE_HORIZONTAL
public static final int DENDROGRAM_TYPE_VERTICAL
public static final int FILL_TYPE_GRADIENT
public static final int FILL_TYPE_NONE
public static final int FILL_TYPE_PAINT
public static final int FILL_TYPE_SOLID
public static final int LABEL_TYPE_PERCENT
AbstractChartNode.setLabelType(int)
,
Constant Field Valuespublic static final int MARKER_TYPE_ASTERISK
public static final int MARKER_TYPE_CIRCLE_CIRCLE
public static final int MARKER_TYPE_CIRCLE_PLUS
public static final int MARKER_TYPE_CIRCLE_X
public static final int MARKER_TYPE_DIAMOND_PLUS
public static final int MARKER_TYPE_FILLED_CIRCLE
public static final int MARKER_TYPE_FILLED_DIAMOND
public static final int MARKER_TYPE_FILLED_SQUARE
public static final int MARKER_TYPE_FILLED_TRIANGLE
public static final int MARKER_TYPE_HOLLOW_CIRCLE
public static final int MARKER_TYPE_HOLLOW_DIAMOND
public static final int MARKER_TYPE_HOLLOW_SQUARE
public static final int MARKER_TYPE_HOLLOW_TRIANGLE
public static final int MARKER_TYPE_OCTAGON_PLUS
public static final int MARKER_TYPE_OCTAGON_X
public static final int MARKER_TYPE_PLUS
public static final int MARKER_TYPE_SQUARE_PLUS
public static final int MARKER_TYPE_SQUARE_X
public static final int MARKER_TYPE_X
public static final int TEXT_X_CENTER
public static final int TEXT_X_LEFT
public static final int TEXT_X_RIGHT
public static final int TEXT_Y_BOTTOM
public static final int TEXT_Y_CENTER
public static final int TEXT_Y_TOP
Constructor Detail |
---|
public ChartNode(ChartNode parent)
ChartNode
object.
parent
- the ChartNode
parent of this objectMethod Detail |
---|
public void addPickListener(PickListener pickListener)
pickListener
- the PickListener
to be added to this nodepublic void firePickListeners(MouseEvent event)
event
- MouseEvent
which determines which nodes
have been selectedpublic String getALT()
public Axis getAxis()
Axis
value of the "Axis" attributepublic Background getBackground()
Background
value of the "Background"
attribute, if defined.
Otherwise, null is returned.public double getBarGap()
double
value of the "BarGap" attribute, if defined.
Otherwise, 0.0 is returned.public int getBarType()
int
which specifies BarTypeBAR_TYPE_VERTICAL
,
BAR_TYPE_HORIZONTAL
public double getBarWidth()
double
value of the "BarWidth" attribute, if defined.
Otherwise, 0.5 is returned.public Chart getChart()
Chart
value of the attribute, if defined.
Otherwise, null is returned.public ChartTitle getChartTitle()
ChartTitle
value of the attribute.public final ChartNode[] getChildren()
ChartNode
array which contains the
children of this nodepublic boolean getClipData()
boolean
value of the attribute, if defined.
Otherwise, true is returned.public Component getComponent()
Component
value of the attribute, if defined.
Otherwise, null is returned.public double[] getConcatenatedViewport()
double
[4] array containing xmin, xmax, ymin, ymaxpublic int getDataType()
int
value of the "DataType" attribute, if defined.
Otherwise, DATA_TYPE_LINE
is returned.public boolean getDoubleBuffering()
boolean
value of the "DoubleBuffering" attribute, if defined.
Otherwise, false is returned.public double getExplode()
double
value of the "Explode" attribute, if defined.
Otherwise, a default value of zero is returned.
(The pie slice begins at the center.)public Color getFillOutlineColor()
Color
value of the "FillOutlineColor" attribute, if defined.
Otherwise, a default color value is returned.public int getFillOutlineType()
int
value of the "FillOutlineType" attribute, if defined.
Otherwise, FILL_TYPE_SOLID is returned.public Paint getFillPaint()
public int getFillType()
int
value of the "FillType" attribute, if defined.
Otherwise, FILL_TYPE_SOLID is returned.public Color[] getGradient()
Color
array which contains
the color value of the "Gradient" attribute, if defined.
Otherwise, null is returned.
The array is of length four,
containing {colorLL, colorLR, colorUR, colorUL}.public String getHREF()
public Legend getLegend()
Legend
value of the "Legend" attributepublic double[] getLineDashPattern()
double
array containing the value of the
"LineDashPattern" attribute, if defined.
Otherwise, null is returned.public double[] getMarkerDashPattern()
double
array which contains the value of
the "MarkerPattern" attribute, if defined.
Otherwise, null is returned.public double getMarkerThickness()
double
value of the "MarkerThickness" attribute, if defined.
Otherwise, a default of 1.0 is returned.public int getMarkerType()
int
value of the "MarkerType" attribute, if defined.
Otherwise, a default of MARKER_TYPE_PLUS
is returned.public ChartNode getParent()
ChartNode
object which contains this node's parent. This is
null in the case of the root node of the chart tree, since
that node has no parent.public double getReference()
double
value of the "Reference" attribute, if defined.
Otherwise, zero is returned.public AxisXY getScreenAxis()
AxisXY
value of the "ScreenAxis" attributeChart
public Dimension getScreenSize()
Dimension
value of the "ScreenSize" attribute, if defined.
Otherwise, the size of the "Component" attribute
is returned. If neither the "ScreenSize" nor the
"Component" attributes are defined then null
is returned.public int[] getScreenViewport()
int
[4] value of the "Viewport" attribute scaled
by the screen size containing the pixel coordinates for
xmin, xmax, ymin, ymaxpublic Dimension getSize()
Dimension
value of the "Size" attributepublic boolean getSkipWeekends()
public int getTextAngle()
int
value of the "TextAngle" attribute, if defined.
Otherwise, zero is returned.public Color getTextColor()
getTextColor
in class AbstractChartNode
Color
value of the "TextColor" attribute, if defined.
Otherwise, a default color value is returned.public Text getTitle()
Text
value of the "Title" attributepublic String getToolTip()
String
value of the "ToolTip" attributepublic double[] getViewport()
double
[4] array containing xmin, xmax, ymin, ymaxpublic static boolean isBitSet(int flag, int mask)
flag
- the int
which contains the bit to be tested
against maskmask
- the int
which is used as the mask
boolean
, true if the bit set in flag is set in maskpublic abstract void paint(Draw draw)
draw
- the Draw
object to be paintedpublic void prePaint()
public void removePickListener(PickListener pickListener)
PickListener
from this node.
pickListener
- the PickListener
to be removed from this nodepublic void setALT(String value)
HREF
is defined.
Some browsers use the alt tag value as tooltip text. *
value
- "ALT" value.public void setBarGap(double value)
value
- the double
"BarGap" valuepublic void setBarType(int value)
value
- an int
which specifies BarType.
Legal values are BAR_TYPE_VERTICAL or
BAR_TYPE_HORIZONTAL.BAR_TYPE_VERTICAL
,
BAR_TYPE_HORIZONTAL
public void setBarWidth(double value)
value
- the double
"BarWidth" value.public void setChartTitle(ChartTitle value)
value
- ChartTitle
nodepublic void setClipData(boolean value)
value
- "ClipData" valuepublic void setCustomTransform(Transform value)
setCustomTransform
in class AbstractChartNode
value
- an object implementing the Transform interface.AbstractChartNode.TRANSFORM_CUSTOM
public void setDataType(int value)
value
- "DataType" value. This should be some
xor-ed combination of DATA_TYPE_LINE, DATA_TYPE_MARKER.public void setDoubleBuffering(boolean value)
value
- boolean
"DoubleBuffering" valuepublic void setExplode(double value)
value
- a double
"Explode" value.
This attribute controls how far from the center pie
slices are drawn. The scale is proportional to the pie
chart's radius.public void setFillOutlineColor(Color color)
color
- a Color
"FillOutlineColor" value.public void setFillOutlineColor(String color)
color
- String
name of a color.AbstractChartNode.parseColor(java.lang.String)
public void setFillOutlineType(int value)
value
- "FillOutlineType" value.
This value should be FILL_TYPE_NONE
or FILL_TYPE_SOLID.public void setFillPaint(ImageIcon imageIcon)
imageIcon
- is used to create a Paint object that is used
as the value of the "FillPaint" attribute.Paint
public void setFillPaint(Paint value)
value
- "FillPaint" value.public void setFillPaint(URL urlImage)
urlImage
- is the URL of an image used to set the FillPaint attribute.setFillPaint(javax.swing.ImageIcon)
public void setFillType(int value)
value
- "FillType" value.
This value should be FILL_TYPE_NONE, FILL_TYPE_SOLID,
FILL_TYPE_GRADIENT or FILL_TYPE_PAINT.FILL_TYPE_NONE
,
FILL_TYPE_SOLID
,
FILL_TYPE_GRADIENT
,
FILL_TYPE_PAINT
public void setGradient(Color[] colorGradient)
colorGradient
- is a Color
array of length four, containing
the colors at the lower left, lower right, upper right and upper left
corners of the bounding box of the regions being filled. See
setGradient(java.awt.Color,java.awt.Color,java.awt.Color,java.awt.Color)
for details on the interpretation of these colors.public void setGradient(Color colorLL, Color colorLR, Color colorUR, Color colorUL)
colorLL
- Color
value which specifies the color
of the lower left corner.colorLR
- Color
value which specifies the color
of the lower right corner.colorUR
- Color
value which specifies the color
of the upper right corner.colorUL
- Color
value which specifies the color
of the upper left corner.
This attribute defines a color gradient used to fill regions. Only two of the four colors given are actually used.
If colorLL==colorLR
and colorUL==colorUR
then a vertical gradient is drawn.
If colorLL==colorUL
and colorLR==colorUR
then a horizontal gradient is drawn.
If colorLR==null
and colorUL==null
then a diagonal gradient is used.
If colorLL==null
and colorUR==null
then a diagonal gradient is used.
If none of these conditions is met then no gradient is drawn.
AbstractChartNode.setFillColor(java.awt.Color)
,
setFillPaint(java.awt.Paint)
public void setGradient(String colorLL, String colorLR, String colorUR, String colorUL)
colorLL
- String
value which specifies the color
of the lower left corner.colorLR
- String
value which specifies the color
of the lower right corner.colorUR
- String
value which specifies the color
of the upper right corner.colorUL
- String
value which specifies the color
of the upper left corner.
This attribute defines a color gradient used to fill regions.
Only two of the four colors given are actually used.colorLL==colorLR
and colorUL==colorUR
then a vertical gradient is drawn.colorLL==colorUL
and colorLR==colorUR
then a horizontal gradient is drawn.colorLR==null
and colorUL==null
then a diagonal gradient is used.colorLL==null
and colorUR==null
then a diagonal gradient is used.AbstractChartNode.parseColor(java.lang.String)
,
AbstractChartNode.setFillColor(java.awt.Color)
,
setFillPaint(java.awt.Paint)
public void setHREF(String value)
HREF
is defined.
The values of HREF
attributes are URLs. Such regions
treated by the browser as hyperlinks.
value
- "HREF" value.public void setImage(Image value)
Note that Image
objects are not serializable
and their presence in the chart tree will make the entire chart
non-serializable. javax.swing.ImageIcon objects are serializable.
value
- Image
value.AbstractChartNode.setImage(javax.swing.ImageIcon value)
public void setLineDashPattern(double[] value)
value
- double
"LineDashPattern" value.public void setMarkerDashPattern(double[] value)
value
- double
array which contains the
"MarkerDashPattern" value.public void setMarkerThickness(double width)
width
- the double
"MarkerThickness" value.public void setMarkerType(int type)
type
- the int
"MarkerType" value.MARKER_TYPE_PLUS
,
MARKER_TYPE_ASTERISK
,
MARKER_TYPE_X
,
MARKER_TYPE_HOLLOW_SQUARE
,
MARKER_TYPE_HOLLOW_TRIANGLE
,
MARKER_TYPE_HOLLOW_DIAMOND
,
MARKER_TYPE_DIAMOND_PLUS
,
MARKER_TYPE_SQUARE_X
,
MARKER_TYPE_SQUARE_PLUS
,
MARKER_TYPE_OCTAGON_X
,
MARKER_TYPE_OCTAGON_PLUS
,
MARKER_TYPE_HOLLOW_CIRCLE
,
MARKER_TYPE_CIRCLE_X
,
MARKER_TYPE_CIRCLE_PLUS
,
MARKER_TYPE_CIRCLE_CIRCLE
,
MARKER_TYPE_FILLED_SQUARE
,
MARKER_TYPE_FILLED_TRIANGLE
,
MARKER_TYPE_FILLED_DIAMOND
,
MARKER_TYPE_FILLED_CIRCLE
public void setReference(double value)
value
- the double
"Reference" valuepublic void setScreenSize(Dimension value)
value
- the Dimension
"ScreenSize" value.public void setSize(Dimension value)
value
- the Dimension
"Size" valuepublic void setSkipWeekends(boolean skipWeekends)
If this attribute is set to true, the attribute "AutoscaleMinimumTimeInterval" should also be set to value of a day or longer.
skipWeekends
- the boolean
value.AbstractChartNode.setAutoscaleMinimumTimeInterval(int)
public void setTextAngle(int value)
value
- an int
"TextAngle" valuepublic void setTextColor(Color color)
setTextColor
in class AbstractChartNode
color
- a Color
which contains the "TextColor" valuepublic void setTextColor(String color)
setTextColor
in class AbstractChartNode
color
- String
name of a color.AbstractChartNode.parseColor(java.lang.String)
public void setTitle(String value)
value
- a String
which contains the "Title" valuepublic void setTitle(Text value)
value
- a Text
which contains the "Title" valuepublic void setToolTip(String value)
value
- a String
which contains the "ToolTip" valuepublic void setViewport(double[] value)
value
- A double
array of length 4 which contains the
"Viewport" values for xmin, xmax, ymin, ymax.
The value saved is a copy of the input array.Axis
public void setViewport(double xmin, double xmax, double ymin, double ymax)
xmin
- a double
, the left side of the viewportxmax
- a double
, the right side of the viewportymin
- a double
, the bottom side of the viewportymax
- a double
, the top side of the viewport
|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |