public abstract class Node
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Node()
Builder
|
Node(ExternalObjectDescription mydsc,
java.awt.Point position,
int id)
Builder
|
Modifier and Type | Method and Description |
---|---|
void |
actInputOutput(ExternalObjectDescription dsc,
GraphPanel p)
Test the input/output capabilities described by the ExternalObjectDescriptor
and stores them
|
abstract void |
contain(java.lang.String title,
int show,
Node n,
Experiments exp)
Show the datasets introduced in the Node
|
abstract void |
draw(java.awt.Graphics2D g2,
boolean select)
Draws the node in a 2D component
|
int |
getId()
Gets the id of the node
|
java.awt.Point |
getPosicion()
Gets the current position of the node
|
java.awt.Point |
getPosition()
Gets the current position of the node
|
int |
getType()
Gets the type of the node
|
int |
getTypelqd()
Gets the type of the node
|
boolean |
isInside(java.awt.Point point)
Test if the provided point is inside of this node
|
void |
setId(int iden)
Sets the new id of the node
|
void |
setPosicion(java.awt.Point position)
Sets the position of the node in the panel
|
void |
setPosition(java.awt.Point position)
Sets the position of the node in the panel
|
void |
setType(int _type)
Sets the type of the node
|
void |
setTypelqd(int _type)
Sets the type of the node
|
abstract void |
showDialog()
Shows the new dialog associated to this node
|
void |
updateState()
It does update the state of the node, regarding the variables
that define the types of values accepted as input and output
|
public ExternalObjectDescription dsc
public int type
public int type_lqd
public java.util.Vector par
protected int id
protected java.awt.Point centre
protected transient java.awt.Shape figure
protected transient java.awt.Image image
protected transient GraphPanel pd
protected transient javax.swing.JDialog dialog
public boolean m_bInputContinuous
public boolean m_bInputInteger
public boolean m_bInputNominal
public boolean m_bInputMissing
public boolean m_bInputImprecise
public boolean m_bInputMultiClass
public boolean m_bInputMultiOutput
public boolean m_bInputMIL
public boolean m_bOutputContinuous
public boolean m_bOutputInteger
public boolean m_bOutputNominal
public boolean m_bOutputMissing
public boolean m_bOutputImprecise
public boolean m_bOutputMultiClass
public boolean m_bOutputMultiOutput
public boolean m_bOutputMIL
public java.lang.String m_sDatasetHasContinuous
public java.lang.String m_sDatasetHasInteger
public java.lang.String m_sDatasetHasNominal
public java.lang.String m_sDatasetHasMissing
public java.lang.String m_sDatasetHasImprecise
public java.lang.String m_sDatasetHasMultiClass
public java.lang.String m_sDatasetHasMultiOutput
public java.lang.String m_sDatasetHasMIL
public Node()
public Node(ExternalObjectDescription mydsc, java.awt.Point position, int id)
mydsc
- Parent dscposition
- Position in the graphid
- Id of the nodepublic int getId()
public void setId(int iden)
iden
- the new idpublic int getType()
public int getTypelqd()
public void setType(int _type)
_type
- the new type of the nodepublic void setTypelqd(int _type)
_type
- the new type of the nodepublic void setPosicion(java.awt.Point position)
position
- The current positionpublic java.awt.Point getPosicion()
public void setPosition(java.awt.Point position)
position
- The current positionpublic java.awt.Point getPosition()
public abstract void draw(java.awt.Graphics2D g2, boolean select)
g2
- the 2D graphic elementselect
- if the node is selectedpublic abstract void contain(java.lang.String title, int show, Node n, Experiments exp)
title
- is the title of the new form showedpublic boolean isInside(java.awt.Point point)
point
- Point to be testedpublic abstract void showDialog()
public void updateState()
public void actInputOutput(ExternalObjectDescription dsc, GraphPanel p)
dsc
- the external object descriptor associatedp
- the Draw panel in which this node is contained and depicted