org.rosuda.deducer.plots
Class PlottingElement

java.lang.Object
  extended by org.rosuda.deducer.plots.PlottingElement
All Implemented Interfaces:
java.awt.datatransfer.Transferable

public class PlottingElement
extends java.lang.Object
implements java.awt.datatransfer.Transferable


Field Summary
static java.awt.datatransfer.DataFlavor DATAFLAVOR
           
 
Constructor Summary
PlottingElement()
           
PlottingElement(java.lang.String filename, java.lang.String elementType, java.lang.String elementName)
           
 
Method Summary
 java.lang.Object clone()
           
static PlottingElement createElement(java.lang.String type, java.lang.String name)
           
 java.awt.Image getImage()
           
 ElementModel getModel()
           
 java.lang.String getName()
           
 javax.swing.JPanel getPanel()
           
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor arg0)
           
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
           
 java.lang.String getUrl()
           
 boolean isActive()
           
 boolean isCompound()
           
 boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor arg0)
           
 javax.swing.JPanel makeComponent()
           
 void saveToFile(java.io.File f)
           
 void setActive(boolean act)
           
 void setCompound(boolean comp)
           
 void setFromFile(java.io.File f)
           
 void setFromURL(java.net.URL url)
           
 void setFromXML(org.w3c.dom.Element node)
           
 void setIconFromUrl(java.lang.String url)
           
 void setImage(java.awt.Image i)
           
 void setModel(ElementModel m)
           
 void setName(java.lang.String n)
           
 void setUrl(java.lang.String url)
           
 org.w3c.dom.Element toXML()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATAFLAVOR

public static java.awt.datatransfer.DataFlavor DATAFLAVOR
Constructor Detail

PlottingElement

public PlottingElement()

PlottingElement

public PlottingElement(java.lang.String filename,
                       java.lang.String elementType,
                       java.lang.String elementName)
Method Detail

setIconFromUrl

public void setIconFromUrl(java.lang.String url)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

createElement

public static PlottingElement createElement(java.lang.String type,
                                            java.lang.String name)

makeComponent

public javax.swing.JPanel makeComponent()

getImage

public java.awt.Image getImage()

setImage

public void setImage(java.awt.Image i)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String n)

getPanel

public javax.swing.JPanel getPanel()

getModel

public ElementModel getModel()

setModel

public void setModel(ElementModel m)

getUrl

public java.lang.String getUrl()

setUrl

public void setUrl(java.lang.String url)

isActive

public boolean isActive()

setActive

public void setActive(boolean act)

isCompound

public boolean isCompound()

setCompound

public void setCompound(boolean comp)

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor arg0)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException
Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor arg0)
Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable

toXML

public org.w3c.dom.Element toXML()

setFromXML

public void setFromXML(org.w3c.dom.Element node)

saveToFile

public void saveToFile(java.io.File f)

setFromFile

public void setFromFile(java.io.File f)

setFromURL

public void setFromURL(java.net.URL url)