org.rosuda.deducer.plots
Class PlottingElement
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATAFLAVOR
public static java.awt.datatransfer.DataFlavor DATAFLAVOR
PlottingElement
public PlottingElement()
PlottingElement
public PlottingElement(java.lang.String filename,
java.lang.String elementType,
java.lang.String elementName)
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)