unbbayes.util.extension.dto.impl
Class NodeDto

java.lang.Object
  extended by unbbayes.util.extension.dto.impl.Dto
      extended by unbbayes.util.extension.dto.impl.NodeDto
All Implemented Interfaces:
IDataTransferObject, INodeClassDataTransferObject

public class NodeDto
extends Dto
implements INodeClassDataTransferObject

A simple implementation of INodeClassDataTransferObject that just delegates each getter/setter to Dto.getObject(String) and Dto.setObject(String, Object) using pre-generated keys.

Author:
Shou Matsumoto

Field Summary
 
Fields inherited from class unbbayes.util.extension.dto.impl.Dto
map
 
Constructor Summary
protected NodeDto()
          The main constructor is not public.
 
Method Summary
 ImageIcon getCursorIcon()
          Icons used by the program to create custom cursors called when a user presses a "create new plugin node" button.
 String getDescription()
          Obtains a description of this set of information.
 ImageIcon getIcon()
          The icon of the node.
 String getName()
          Obtains the name of this set of information.
 INodeBuilder getNodeBuilder()
          Obtains the node builder being transferred
 IProbabilityFunctionPanelBuilder getProbabilityFunctionPanelBuilder()
          The object containing a panel used by UnBBayes to visually edit the probability function of a node.
 IPluginUShapeBuilder getShapeBuilder()
          The shape builder used to render the node inside the canvas.
static NodeDto newInstance()
          Default constructor method
 void setCursorIcon(ImageIcon cursorIcon)
          Icons used by the program to create custom cursors called when a user presses a "create new plugin node" button.
 void setDescription(String description)
          A description of this set of information.
 void setIcon(ImageIcon icon)
          The icon of the node.
 void setName(String name)
          The name of this set of information.
 void setNodeBuilder(INodeBuilder node)
          Sets the node builder being transferred
 void setProbabilityFunctionPanelBuilder(IProbabilityFunctionPanelBuilder panelHolder)
          The object containing a panel used by UnBBayes to visually edit the probability function of a node.
 void setShapeBuilder(IPluginUShapeBuilder shape)
          The shape builder used to render the node inside the canvas.
 
Methods inherited from class unbbayes.util.extension.dto.impl.Dto
getObject, setObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface unbbayes.util.extension.dto.IDataTransferObject
getObject, setObject
 

Constructor Detail

NodeDto

protected NodeDto()
The main constructor is not public. Use newInstance() instead. This is kept protected in order to permit extension.

Method Detail

newInstance

public static NodeDto newInstance()
Default constructor method

Returns:

getCursorIcon

public ImageIcon getCursorIcon()
Description copied from interface: INodeClassDataTransferObject
Icons used by the program to create custom cursors called when a user presses a "create new plugin node" button.

Specified by:
getCursorIcon in interface INodeClassDataTransferObject
Returns:

getIcon

public ImageIcon getIcon()
Description copied from interface: INodeClassDataTransferObject
The icon of the node. This is usually used by the GUI in order to render the cursor when a "add new plugin node" is called.

Specified by:
getIcon in interface INodeClassDataTransferObject
Returns:

getNodeBuilder

public INodeBuilder getNodeBuilder()
Description copied from interface: INodeClassDataTransferObject
Obtains the node builder being transferred

Specified by:
getNodeBuilder in interface INodeClassDataTransferObject
Returns:

getProbabilityFunctionPanelBuilder

public IProbabilityFunctionPanelBuilder getProbabilityFunctionPanelBuilder()
Description copied from interface: INodeClassDataTransferObject
The object containing a panel used by UnBBayes to visually edit the probability function of a node.

Specified by:
getProbabilityFunctionPanelBuilder in interface INodeClassDataTransferObject
Returns:

getShapeBuilder

public IPluginUShapeBuilder getShapeBuilder()
Description copied from interface: INodeClassDataTransferObject
The shape builder used to render the node inside the canvas.

Specified by:
getShapeBuilder in interface INodeClassDataTransferObject
Returns:

setCursorIcon

public void setCursorIcon(ImageIcon cursorIcon)
Description copied from interface: INodeClassDataTransferObject
Icons used by the program to create custom cursors called when a user presses a "create new plugin node" button.

Specified by:
setCursorIcon in interface INodeClassDataTransferObject

setIcon

public void setIcon(ImageIcon icon)
Description copied from interface: INodeClassDataTransferObject
The icon of the node. This is usually used by the GUI in order to render the cursor when a "add new plugin node" is called.

Specified by:
setIcon in interface INodeClassDataTransferObject

setNodeBuilder

public void setNodeBuilder(INodeBuilder node)
Description copied from interface: INodeClassDataTransferObject
Sets the node builder being transferred

Specified by:
setNodeBuilder in interface INodeClassDataTransferObject

setProbabilityFunctionPanelBuilder

public void setProbabilityFunctionPanelBuilder(IProbabilityFunctionPanelBuilder panelHolder)
Description copied from interface: INodeClassDataTransferObject
The object containing a panel used by UnBBayes to visually edit the probability function of a node.

Specified by:
setProbabilityFunctionPanelBuilder in interface INodeClassDataTransferObject

setShapeBuilder

public void setShapeBuilder(IPluginUShapeBuilder shape)
Description copied from interface: INodeClassDataTransferObject
The shape builder used to render the node inside the canvas.

Specified by:
setShapeBuilder in interface INodeClassDataTransferObject

getDescription

public String getDescription()
Description copied from interface: INodeClassDataTransferObject
Obtains a description of this set of information. This is just a additional information for users, and may be used as a tool tip text.

Specified by:
getDescription in interface INodeClassDataTransferObject
Returns:

getName

public String getName()
Description copied from interface: INodeClassDataTransferObject
Obtains the name of this set of information. This is just a simple identifier for users, and may be used as a label on buttons.

Specified by:
getName in interface INodeClassDataTransferObject
Returns:

setDescription

public void setDescription(String description)
Description copied from interface: INodeClassDataTransferObject
A description of this set of information. This is just a additional information for users, and may be used as a tool tip text.

Specified by:
setDescription in interface INodeClassDataTransferObject

setName

public void setName(String name)
Description copied from interface: INodeClassDataTransferObject
The name of this set of information. This is just a simple identifier for users, and may be used as a label on buttons.

Specified by:
setName in interface INodeClassDataTransferObject


Copyright © 2001-2010 University of Brasilia - UnB. All Rights Reserved.