|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.eclipse.editors.rete.model.ModelElement
org.drools.eclipse.editors.rete.model.GraphicalVertex
public abstract class GraphicalVertex
Visual vertex representation for ReteGraph. Base impl for all rete vertices. Can be connected with another BaseVertex with a Connector.
| Field Summary | |
|---|---|
static String |
LOCATION_PROP
Property ID to use when the location of this shape is modified. |
static String |
SIZE_PROP
Property ID to use then the size of this shape is modified. |
static String |
SOURCE_CONNECTIONS_PROP
Property ID to use when the list of outgoing connections is modified. |
static String |
TARGET_CONNECTIONS_PROP
Property ID to use when the list of incoming connections is modified. |
| Constructor Summary | |
|---|---|
GraphicalVertex()
|
|
| Method Summary | |
|---|---|
void |
addConnection(Connection conn)
Add an incoming or outgoing connection to this vertex. |
static String |
dumpConstraints(org.drools.spi.Constraint[] constraints)
Constructs constraints string |
org.eclipse.swt.graphics.Color |
getDrawColor()
Color used for borders |
abstract org.eclipse.swt.graphics.Color |
getFillColor()
Color used for filling vertex figure |
abstract String |
getHtml()
HTML formatted representation of this node |
org.eclipse.draw2d.geometry.Point |
getLocation()
Return the Location of this vertex. |
org.eclipse.ui.views.properties.IPropertyDescriptor[] |
getPropertyDescriptors()
Returns an array of IPropertyDescriptors for this vertex. |
Object |
getPropertyValue(Object propertyId)
Return the property value for the given propertyId, or null. |
org.eclipse.draw2d.geometry.Dimension |
getSize()
Return the Size of this vertex. |
List |
getSourceConnections()
Return a List of outgoing Connections. |
List |
getTargetConnections()
Return a List of incoming Connections. |
void |
removeConnection(Connection conn)
Remove an incoming or outgoing connection from this vertex. |
void |
setLocation(org.eclipse.draw2d.geometry.Point newLocation)
Set the Location of this vertex. |
void |
setPropertyValue(Object propertyId,
Object value)
Set the property value for the given property id. |
void |
setSize(org.eclipse.draw2d.geometry.Dimension newSize)
Set the Size of this vertex. |
String |
toString()
|
| Methods inherited from class org.drools.eclipse.editors.rete.model.ModelElement |
|---|
addPropertyChangeListener, firePropertyChange, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String LOCATION_PROP
public static final String SIZE_PROP
public static final String SOURCE_CONNECTIONS_PROP
public static final String TARGET_CONNECTIONS_PROP
| Constructor Detail |
|---|
public GraphicalVertex()
| Method Detail |
|---|
public abstract String getHtml()
public abstract org.eclipse.swt.graphics.Color getFillColor()
public void addConnection(Connection conn)
conn - a non-null connection instance
IllegalArgumentException - if the connection is null or has not distinct endpointspublic org.eclipse.draw2d.geometry.Point getLocation()
public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
public Object getPropertyValue(Object propertyId)
public org.eclipse.draw2d.geometry.Dimension getSize()
public List getSourceConnections()
public List getTargetConnections()
public void removeConnection(Connection conn)
conn - a non-null connection instance
IllegalArgumentException - if the parameter is nullpublic void setLocation(org.eclipse.draw2d.geometry.Point newLocation)
newLocation - a non-null Point instance
IllegalArgumentException - if the parameter is null
public void setPropertyValue(Object propertyId,
Object value)
public void setSize(org.eclipse.draw2d.geometry.Dimension newSize)
newSize - a non-null Dimension instance or nullpublic String toString()
toString in class Objectpublic org.eclipse.swt.graphics.Color getDrawColor()
public static String dumpConstraints(org.drools.spi.Constraint[] constraints)
constraints - array of constraints
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||