public class Subtype
extends java.lang.Object
Type
, such as a dual-Y stacked bar graph
or a single pie graph.
Subtype
objects correspond to values of the
GraphType
property of the Graph
class.
The Graph Type panel uses this class and the Type
class, to
populate itself.Type
,
Graph.setGraphType(int)
,
oracle.dss.graph.gui.GraphType
,
oracle.dss.graph.gui.GraphTypeConverterAdapter
Modifier and Type | Field and Description |
---|---|
java.lang.String |
description
The text that is displayed in the description box for the graph subtype.
|
java.lang.String |
fileName
The name of the file that contains the icon that represents
the graph subtype, with 3-D effect on.
|
int |
id
The ID of this
Subtype . |
java.lang.String |
name
The text that is displayed below the icon for the graph
subtype.
|
java.lang.String |
non_3D_fileName
The name of the file that contains the icon that represents
the graph subtype, with 3-D effect off.
|
Constructor and Description |
---|
Subtype(int id,
java.lang.String graphName,
java.lang.String graphDesc)
Constructor that does not specify an icon for the subtype.
|
Subtype(int id,
java.lang.String graphName,
java.lang.String graphDesc,
java.lang.String image,
java.lang.String non_3D_image)
Constructor that specifies images to display for this
Subtype . |
public int id
Subtype
.public java.lang.String fileName
public java.lang.String non_3D_fileName
public java.lang.String name
public java.lang.String description
public Subtype(int id, java.lang.String graphName, java.lang.String graphDesc)
name
and
description
fields with localized text.
If you construct a Subtype
, you should extend the
GraphTypeConverterAdapter
.
id
- The ID for this Subtype
.graphName
- The name of the graph subtype.
The name appears with the subtype icon.graphDesc
- The description that is associated with the graph
subtype.
The description appears in the description box
at the bottom of the panel.public Subtype(int id, java.lang.String graphName, java.lang.String graphDesc, java.lang.String image, java.lang.String non_3D_image)
Subtype
.
For localized software, pass localized strings to this constructor.
This constructor does not call into resource bundles.
Alternately, you can set the name
and
description
fields with localized text.id
- The ID for this Subtype
.graphName
- The name of the graph subtype.
The name appears with the subtype icon.graphDesc
- The description that is associated with the graph
subtype.
The description appears in the description box
at the bottom of the panel.image
- The icon that represents the graph subtype with
3-D effect on.non_3D_image
- The icon that represents the graph subtype
with 3-D effect off.