26 #define YUILogComponent "ui-graph" 34 YGraphPrivate( std::string filename, std::string layoutAlgorithm )
35 : filename( filename ),
36 layoutAlgorithm( layoutAlgorithm )
40 std::string layoutAlgorithm;
71 return priv->filename;
86 return priv->layoutAlgorithm;
93 priv->filename.clear();
124 propSet.
add(
YProperty( YUIProperty_Filename, YStringProperty ) );
125 propSet.
add(
YProperty( YUIProperty_Layout, YStringProperty ) );
126 propSet.
add(
YProperty( YUIProperty_Item, YStringProperty,
true ) );
std::string layoutAlgorithm() const
Return the layout-algorithm used for the graph.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
bool isEmpty() const
Returns 'true' if this property set does not contain anything.
virtual void setFilename(const std::string &filename)
Set the filename that describes the graph and render the graph.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
Transport class for the value of simple properties.
void add(const YProperty &prop)
Add a property to this property set.
A set of properties to check names and types against.
virtual std::string activatedNode() const
Return name of activated node.
virtual void setLayoutAlgorithm(const std::string &filename)
Set the layout-algorithm used for the graph.
YGraph(YWidget *parent, const std::string &filename, const std::string &layoutAlgorithm)
Constructor.
virtual const YPropertySet & propertySet()
Return this class's property set.
std::string stringVal() const
Methods to get the value of this property.
virtual void setGraph(void *graph)
Render the graph.
virtual ~YGraph()
Destructor.
Class for widget properties.
virtual void renderGraph(const std::string &filename, const std::string &layoutAlgorithm)=0
Render the graph from the filename.
void check(const std::string &propertyName) const
Check if a property 'propertyName' exists in this property set.
std::string filename() const
Return the filename that describes the graph.
YPropertyType type() const
Returns the type of this property value.