public class Type
extends java.lang.Object
Subtype
class
to populate itself.Subtype
,
oracle.dss.graph.gui.GraphType
,
oracle.dss.graph.gui.GraphTypeConverterAdapter
Modifier and Type | Field and Description |
---|---|
java.lang.String |
fileName
The name of the file that contains the icon that represents
this graph type category.
|
int |
id
The ID of this
Type . |
boolean |
is3D
Indicates whether this graph type is being displayed with 3-D effect.
|
java.lang.String |
name
The text that is displayed in the Graph Types box, next to the icon
that represents this graph type category.
|
java.lang.String |
sFileName
The name of the file that contains the small icon that represents
this graph type category.
|
java.util.Vector |
subtypes
The list of graph subtypes that belong to this graph type category.
|
boolean |
supports3D
Indicates whether this graph type can be displayed with 3-D effect.
|
boolean |
supportsNon3D
Indicates whether this graph type can be displayed without 3-D effect.
|
Constructor and Description |
---|
Type(int id,
java.lang.String name,
java.lang.String fileName,
java.lang.String sfilename,
java.util.Vector subtypes,
boolean supports3D,
boolean supportsNon3D)
Constructor.
|
Type(int id,
java.lang.String name,
java.lang.String fileName,
java.util.Vector subtypes,
boolean supports3D,
boolean supportsNon3D)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addSubtype(Subtype subtype)
Adds a
Subtype object to this graph type category, at the end
of the list of available graph subtypes. |
void |
addSubtype(Subtype subtype,
int afterSubtype)
Adds a
Subtype object to this graph type category at a
specified place in the list of available graph subtypes. |
protected int |
getSubtypeIndex(int subtypeID) |
void |
removeSubtype(int subtypeID)
Removes a given
Subtype from the list of available graph
subtypes for this graph type category. |
public int id
Type
.public java.lang.String fileName
public java.lang.String sFileName
public java.lang.String name
public java.util.Vector subtypes
public boolean is3D
public boolean supports3D
public boolean supportsNon3D
public Type(int id, java.lang.String name, java.lang.String fileName, java.util.Vector subtypes, boolean supports3D, boolean supportsNon3D)
Type
, you should extend the
GraphTypeConverterAdapter
.id
- The ID for this Type
.name
- The name of the graph type category.
For localized software, pass a localized String
.
This constructor does not call into a resource bundle.
Alternately, set the name variable to a localized
String
.fileName
- The name of the file that contains the icon
that represents this graph type category.subtypes
- The list of graph Subtype
objects that
belong to this Type
.supports3D
- true
if this graph type can be displayed
with 3-D effect, false
if it can not.supportNon3D
- true
if this graph type can be
displayed without 3-D effect, false
if it can not.Subtype
public Type(int id, java.lang.String name, java.lang.String fileName, java.lang.String sfilename, java.util.Vector subtypes, boolean supports3D, boolean supportsNon3D)
id
- The ID for this Type
.name
- The name of the graph type category.
For localized software, pass a localized String
.
This constructor does not call into a resource bundle.
Alternately, set the name variable to a localized
String
.fileName
- The name of the file that contains the icon
that represents this graph type category.sfileName
- The name of the file that contains the small icon
that represents this graph type category.subtypes
- The list of graph Subtype
objects that
belong to this Type
.supports3D
- true
if this graph type can be displayed
with 3-D effect, false
if it can not.supportNon3D
- true
if this graph type can be
displayed without 3-D effect, false
if it can not.Subtype
public void addSubtype(Subtype subtype, int afterSubtype)
Subtype
object to this graph type category at a
specified place in the list of available graph subtypes.
The subtypes appear in the Graph Subtypes box.
A Subtype
object contains information about a graph subtype.subtype
- The Subtype
object that you want to add to
this graph type category.afterSubtype
- The ID of the Subtype
that this
Type
should be inserted after.
If afterSubtype
is -1
,
then the Subtype
will be put at the end
of the list. IDs for existing subtypes are defined in
the GraphTypeConverterAdapter
class.oracle.dss.graph.gui.GraphTypeConverterAdapter
public void addSubtype(Subtype subtype)
Subtype
object to this graph type category, at the end
of the list of available graph subtypes.
A Subtype
object contains information about a graph subtype.subtype
- The Subtype
object that you want to add to
this graph type category.public void removeSubtype(int subtypeID)
Subtype
from the list of available graph
subtypes for this graph type category.
A Subtype
object contains information about a graph subtype.subtypeID
- The ID of the subtype
to remove.
Subtype IDs are defined in the
GraphTypeConverterAdapter
class.oracle.dss.graph.gui.GraphTypeConverterAdapter
protected int getSubtypeIndex(int subtypeID)
subtypeID
- the ID of the Subtype for which to return the index