|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.gui.visualization.container.Container
adams.gui.visualization.instance.InstanceContainer
public class InstanceContainer
A container class for a weka.core.Instance wrapped in a weka.core.Instance.
| Field Summary | |
|---|---|
protected Color |
m_Color
the associated color. |
protected boolean |
m_Visible
whether the instance is visible. |
| Fields inherited from class adams.gui.visualization.container.Container |
|---|
m_Manager, m_Payload, m_Updating |
| Constructor Summary | |
|---|---|
InstanceContainer(InstanceContainerManager manager,
Instance data)
Initializes the container. |
|
| Method Summary | |
|---|---|
void |
assign(InstanceContainer c)
Updates itself with the values from given container (the manager is excluded!). |
int |
compareTo(Container o)
Compares this object with the specified object for order. |
Color |
getColor()
Returns the current color in use. |
Instance |
getData()
Returns the stored instance. |
int |
getDatabaseID()
Returns the database ID. |
String |
getDisplayID()
Returns the displayed container's ID. |
String |
getID()
Returns the container's ID. |
int |
hashCode()
Returns the hashcode of the instance. |
protected void |
initialize()
Initializes members. |
boolean |
isVisible()
Returns whether the instance is visible. |
void |
setColor(Color value)
Sets the color to use. |
void |
setData(Instance value)
Sets the instance. |
void |
setID(String value)
Sets the container's ID. |
void |
setVisible(boolean value)
Sets the instance's visibility. |
String |
toString()
Returns a short string representation of the container. |
| Methods inherited from class adams.gui.visualization.container.Container |
|---|
assign, copy, equals, getManager, getPayload, invalidate, postProcessPayload, setManager, setPayload |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Color m_Color
protected boolean m_Visible
| Constructor Detail |
|---|
public InstanceContainer(InstanceContainerManager manager,
Instance data)
manager - the owning managerdata - the instance to encapsulate| Method Detail |
|---|
protected void initialize()
initialize in class Containerpublic void assign(InstanceContainer c)
c - the container to get the values frompublic void setColor(Color value)
setColor in interface ColorContainervalue - the colorpublic Color getColor()
getColor in interface ColorContainerpublic void setVisible(boolean value)
setVisible in interface VisibilityContainervalue - if true then the instance will be visiblepublic boolean isVisible()
isVisible in interface VisibilityContainerpublic void setData(Instance value)
value - the instancepublic Instance getData()
public void setID(String value)
setID in interface MutableIDHandlersetID in interface NamedContainervalue - the new IDpublic String getID()
getID in interface IDHandlergetID in interface NamedContainerpublic String getDisplayID()
getDisplayID in interface NamedContainerpublic int getDatabaseID()
getDatabaseID in interface DatabaseIDHandlerpublic int compareTo(Container o)
compareTo in interface Comparable<Container>compareTo in class Containero - the object to be compared.
ClassCastException - if the specified object's type prevents it
from being compared to this object.public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Container
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||