|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.vergil.toolbox.GraphicElement
An GraphicElement is an atomic piece of a graphical representation. i.e. a line, box, textbox, etc.
| Red (johnr) |
| Yellow (neuendor) |
| Constructor Summary | |
GraphicElement(java.lang.String type)
Create a new GraphicElement with the given type. |
|
| Method Summary | |
java.util.Set |
attributeNameSet()
Return a set of all the attribute names. |
boolean |
containsAttribute(java.lang.String name)
Test if this element has an attribute with the given name. |
void |
exportMoML(java.io.Writer out,
java.lang.String prefix)
Write the GraphicElement in XML format to the given writer. |
java.lang.String |
getAttribute(java.lang.String name)
Return the value of the attribute with the given name. |
java.lang.String |
getLabel()
Return the label of this graphic element. |
PaintedObject |
getPaintedObject()
Return a new painted object that looks like this graphic element. |
java.lang.String |
getType()
Return the type of this graphic element. |
void |
removeAttribute(java.lang.String name)
Remove an attribute from this element. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Set the attribute with the given name to the given value. |
void |
setLabel(java.lang.String name)
Set the label for this graphic element. |
java.lang.String |
toString()
Return a string this representing this GraphicElement. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public GraphicElement(java.lang.String type)
| Method Detail |
public java.util.Set attributeNameSet()
public java.lang.String getType()
public java.lang.String getAttribute(java.lang.String name)
public java.lang.String getLabel()
public PaintedObject getPaintedObject()
public boolean containsAttribute(java.lang.String name)
public void removeAttribute(java.lang.String name)
public void setAttribute(java.lang.String name,
java.lang.String value)
public void setLabel(java.lang.String name)
public java.lang.String toString()
public void exportMoML(java.io.Writer out,
java.lang.String prefix)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||