808182838485868788
*/ public Object getTransferData(final DataFlavor flavor) throws UnsupportedFlavorException, IOException { if (isDataFlavorSupported(flavor) == false) { throw new UnsupportedFlavorException(flavor); } return value.getData(); }
3435363738394041
throws UnsupportedFlavorException, IOException { if (flavor.equals(resourceFlavor)) { return node; } else { throw new UnsupportedFlavorException(flavor); } }
778779780781782783784
if (dch != null) return dch.getTransferData(df, ds); else if (df.equals(getTransferDataFlavors()[0])) // only have one now return ds.getInputStream(); else throw new UnsupportedFlavorException(df); }
864865866867868869870871
if (dch != null) return dch.getTransferData(df, ds); else if (df.equals(transferFlavors[0])) // only have one now return obj; else throw new UnsupportedFlavorException(df); }
230231232233234235236237
return this; // } else if( flavor.equals( AudioFileRegion.flavor ) && (size() == 1) ) { // final SampledChunk ts = get( 0 ); // return new AudioFileRegion( ts.f.getFile(), ts.span ); } else { throw new UnsupportedFlavorException( flavor ); } }
603604605606607608609
throws UnsupportedFlavorException, IOException { if( flavor.equals( mapFlavor )) { return this; } throw new UnsupportedFlavorException( flavor ); }
204205206207208209210211
return createBufferedImage(this.chart, this.width, this.height, this.minDrawWidth, this.minDrawHeight, this.maxDrawWidth, this.maxDrawHeight); } else { throw new UnsupportedFlavorException(flavor); } }
353637383940414243
@Override public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException { if (!isDataFlavorSupported(flavor)) { throw new UnsupportedFlavorException(flavor); } return idx; }
236237238239240241242243
} else if (flavor.equals(flavors[PLAIN])) { return new StringReader(((File)elementAt(0)).getAbsolutePath()); } else if (flavor.equals(flavors[STRING])) { return((File)elementAt(0)).getAbsolutePath(); } else { throw new UnsupportedFlavorException(flavor); } }
238239240241242243244245