This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------------------------------------------- | |
# Use this file to add customized Bnd instructions for the bundle | |
#----------------------------------------------------------------- | |
Import-Package: * | |
Export-Package: org.cytoscape.view.presentation, org.cytoscape.view.presentation.property, org.cytoscape.view.presentation.events | |
Private-Package: org.cytoscape.view.presentation.internal.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.apache.felix</groupId> | |
<artifactId>maven-bundle-plugin</artifactId> | |
<version>${maven-bundle-plugin.version}</version> | |
<!-- | the following instructions build a simple set of public/private classes into an OSGi bundle --> | |
<configuration> | |
<instructions> | |
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName> | |
<Bundle-Version>${project.version}</Bundle-Version> | |
<!-- | assume public classes are in the top package, and private classes are under ".internal" --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final Rectangle pageSize = PageSize.LETTER; | |
final Document document = new Document(pageSize); | |
OutputStream os = new BufferedOutputStream(new FileOutputStream("itextTest2.pdf")); | |
final PdfWriter writer = PdfWriter.getInstance(document, os); | |
document.open(); | |
final PdfContentByte canvas = writer.getDirectContent(); | |
final float pageWidth = pageSize.getWidth(); | |
final float pageHeight = pageSize.getHeight(); | |
final DefaultFontMapper fontMapper = new DefaultFontMapper(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.cytoscape.blueprints.implementations; | |
import static org.junit.Assert.assertEquals; | |
import java.io.File; | |
import java.util.Iterator; | |
import org.junit.After; | |
import org.junit.AfterClass; | |
import org.junit.Before; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Blueprints graph implementation bundles --> | |
<!-- <dependency> <groupId>org.cytoscape.blueprints</groupId> <artifactId>blueprints-graph-cytoscape</artifactId> | |
<version>0.1.0</version> </dependency> --> | |
<dependency> | |
<groupId>org.cytoscape.wrappers</groupId> | |
<artifactId>tinkerpop-blueprints-core</artifactId> | |
<version>0.9</version> | |
</dependency> | |
<dependency> | |
<groupId>org.cytoscape.wrappers</groupId> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Plan 1: Use existing VisualLexicon Tree as is. | |
* | |
* Set of Visual Properties which are dependent to each other | |
* | |
* All Visual Properties should have save data type T. | |
* | |
*/ | |
public interface VisualPropertyDependency<T> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.cytoscape.view.model; | |
import java.util.Set; | |
public interface VisualLexicon2 { | |
/** | |
* Returns the Set of VisualPropertys supported by this Renderer. | |
* | |
* @return Set of all visual properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
importPackage( Packages.javax.swing ); | |
JOptionPane.showMessageDialog( | |
null, "Hello Cytoscape!", "JavaScript on Cytoscape", | |
Packages.javax.swing.JOptionPane.INFORMATION_MESSAGE | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final class VisualStyleChangeRecord<T> { | |
private final VisualProperty<T> vp; | |
private T defaultValue = null; | |
private VisualMappingFunction<?, T> mapping; | |
public VisualStyleChangeRecord(final VisualProperty<T> vp, final T defaultValue) { | |
this.defaultValue = defaultValue; | |
this.vp = vp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class VisualMappingFunctionChageDetails<T> { | |
private final Class<? extends VisualMappingFunction<?, T>> type; | |
public VisualMappingFunctionChageDetails(final Class<? extends VisualMappingFunction<?, T>> mappingType) { | |
this.type = mappingType; | |
} | |
public Class<? extends VisualMappingFunction<?, T>> getMappingType() { | |
return type; |
OlderNewer