|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jrockit.mc.flightrecorder.provider.EventType
public final class EventType
Event type that holds static metadata about an event.
| Method Summary | |
|---|---|
void |
addField(IField field)
Adds a field to the event type |
IEvent |
createEvent(long startTime,
long endTime,
java.lang.Object... values)
Creates an event for the event type. |
Field |
createNumericField(java.lang.String identifier)
Creates a numeric field. |
Field |
createObjectField(java.lang.String identifier)
Creates a object field. |
Field |
createStringField(java.lang.String identifier)
Creates a String field. |
int |
getBitField()
Gets the bit field for the event type. |
java.awt.Color |
getColor()
Returns the color associated with the event type. |
java.lang.String |
getDescription()
Return a description of the event type. |
IField |
getField(java.lang.String key)
Returns a field for the event type, or null if not available. |
java.util.Collection<java.lang.String> |
getFieldIdentifiers()
Returns the fields for the event type. |
java.util.Collection<IField> |
getFields()
Returns the fields for the event type. |
java.lang.Integer |
getId()
Returns an identifier for the event type. |
java.lang.String |
getName()
Return a human readable name for the event type. |
java.lang.String |
getPath()
Return a symbolic name for the event type. |
IProducer |
getProducer()
Returns the producer for the event type. |
java.util.List<EventStorage> |
getStorages()
|
boolean |
isVisible()
Returns if the field should be visible for the user. |
void |
setBitField(int bitSet)
Sets the the bit field for the event type. |
void |
setColor(java.awt.Color color)
|
void |
setDescription(java.lang.String description)
|
void |
setName(java.lang.String name)
|
void |
setPath(java.lang.String path)
|
void |
setVisible(boolean visible)
Sets the visibility for the event type. |
java.lang.String |
toString()
Returns a human readable description of the event type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Field createNumericField(java.lang.String identifier)
Number
identifier - the identifier for the field
java.lang.IllegalArgumentException - if the identifier is null or empty.public Field createStringField(java.lang.String identifier)
Strings
identifier - the identifier for the field
java.lang.IllegalArgumentException - if the identifier is null or empty.public Field createObjectField(java.lang.String identifier)
Strings or an
instance of Number
identifier - the identifier for the field
java.lang.IllegalArgumentException - if the identifier is null or empty.
public IEvent createEvent(long startTime,
long endTime,
java.lang.Object... values)
startTime - the start time of the event.endTime - the end time of the event.values - the values the event should hold on to.
public java.util.List<EventStorage> getStorages()
public void addField(IField field)
field - the field to add.public java.awt.Color getColor()
IEventType
getColor in interface IEventTypepublic java.lang.String getDescription()
IEventType
getDescription in interface IEventTypepublic java.lang.Integer getId()
IEventType
getId in interface IEventTypepublic java.lang.String getName()
IEventType
getName in interface IEventTypepublic java.lang.String getPath()
IEventType
getPath in interface IEventTypepublic IProducer getProducer()
IEventType
getProducer in interface IEventTypepublic IField getField(java.lang.String key)
IEventType
getField in interface IEventTypekey - the identifier for the field
public int getBitField()
IEventType
getBitField in interface IEventTypepublic void setBitField(int bitSet)
IEventType
setBitField in interface IEventTypepublic java.util.Collection<IField> getFields()
IEventType
getFields in interface IEventTypepublic void setName(java.lang.String name)
public void setDescription(java.lang.String description)
public void setColor(java.awt.Color color)
public void setPath(java.lang.String path)
public java.lang.String toString()
toString in class java.lang.Objectpublic void setVisible(boolean visible)
visible - true if visible, false otherwise.public boolean isVisible()
public java.util.Collection<java.lang.String> getFieldIdentifiers()
IEventType
getFieldIdentifiers in interface IEventType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||