Comparar commits
6 Commits
| Autor | SHA1 | Data | |
|---|---|---|---|
| 198ef1e8f4 | |||
| 34fee4b21b | |||
| 5c872e0362 | |||
| 1fbc47865b | |||
| 1f7af25f57 | |||
| 9ab4dfc406 |
+9
-99
@@ -1,101 +1,11 @@
|
||||
**/target
|
||||
**/build
|
||||
**/nbproject/private
|
||||
**/nbproject/platform.properties
|
||||
nbproject/project.properties
|
||||
**/dist
|
||||
.DS_Store
|
||||
toolkit
|
||||
keystore.ks
|
||||
/target/
|
||||
/modules/AlgorithmsPlugin/target/
|
||||
/modules/AttributeColumnPropertyEditor/target/
|
||||
/modules/AttributesAPI/target/
|
||||
/modules/AttributesImpl/target/
|
||||
/modules/ClusteringAPI/target/
|
||||
/modules/ClusteringPlugin/target/
|
||||
/modules/CollectionUtils/target/
|
||||
/modules/DataLaboratoryAPI/target/
|
||||
/modules/DataLaboratoryPlugin/target/
|
||||
/modules/DesktopClustering/target/
|
||||
/modules/DBDrivers/target/
|
||||
/modules/DesktopContext/target/
|
||||
/modules/DesktopBranding/target/
|
||||
/modules/DesktopDataLaboratory/target/
|
||||
/modules/DesktopFilters/target/
|
||||
/modules/DesktopProgress/target/
|
||||
/modules/DesktopExport/target/
|
||||
/modules/DesktopGenerate/target/
|
||||
/modules/DesktopHierarchy/target/
|
||||
/modules/DesktopImport/target/
|
||||
/modules/DesktopLayout/target/
|
||||
/modules/DesktopPartition/target/
|
||||
/modules/DesktopPerspective/target/
|
||||
/modules/DesktopPreview/target/
|
||||
/modules/DesktopProject/target/
|
||||
/modules/DesktopRanking/target/
|
||||
/modules/DesktopRecentFiles/target/
|
||||
/modules/DesktopSpigot/target/
|
||||
/modules/DesktopStatistics/target/
|
||||
/modules/DesktopTimeline/target/
|
||||
/modules/DesktopTools/target/
|
||||
/modules/DHNSGraph/target/
|
||||
/modules/DirectoryChooser/target/
|
||||
/modules/DynamicAPI/target/
|
||||
/modules/DynamicImpl/target/
|
||||
/modules/ExportAPI/target/
|
||||
/modules/ExportPlugin/target/
|
||||
/modules/ExportPluginUI/target/
|
||||
/modules/FiltersAPI/target/
|
||||
/modules/FiltersImpl/target/
|
||||
/modules/FiltersPlugin/target/
|
||||
/modules/FiltersPluginUI/target/
|
||||
/modules/GeneratorAPI/target/
|
||||
/modules/GeneratorPlugin/target/
|
||||
/modules/GeneratorPluginUI/target/
|
||||
/modules/application/target/
|
||||
/modules/branding/target/
|
||||
/modules/Gleem/target/
|
||||
/modules/GraphAPI/target/
|
||||
/modules/ImportAPI/target/
|
||||
/modules/ImportPlugin/target/
|
||||
/modules/ImportPluginUI/target/
|
||||
/modules/LayoutAPI/target/
|
||||
/modules/LayoutPlugin/target/
|
||||
/modules/LongTaskAPI/target/
|
||||
/modules/MostRecentFilesAPI/target/
|
||||
/modules/PartitionAPI/target/
|
||||
/modules/PartitionPlugin/target/
|
||||
/modules/PartitionPluginUI/target/
|
||||
/modules/PerspectiveAPI/target/
|
||||
/modules/PreviewAPI/target/
|
||||
/modules/PreviewExport/target/
|
||||
/modules/PreviewExportUI/target/
|
||||
/modules/PreviewPlugin/target/
|
||||
/modules/ProcessorPlugin/target/
|
||||
/modules/ProcessorPluginUI/target/
|
||||
/modules/ProjectAPI/target/
|
||||
/modules/ProjectUI/target/
|
||||
/modules/RankingAPI/target/
|
||||
/modules/RankingPlugin/target/
|
||||
/modules/RankingPluginUI/target/
|
||||
/modules/SettingsUpgrader/target/
|
||||
/modules/SpigotPlugin/target/
|
||||
/modules/SpigotPluginUI/target/
|
||||
/modules/SplineEditor/target/
|
||||
/modules/StatisticsAPI/target/
|
||||
/modules/StatisticsPlugin/target/
|
||||
/modules/StatisticsPluginUI/target/
|
||||
/modules/TimelineAPI/target/
|
||||
/modules/ToolsAPI/target/
|
||||
/modules/ToolsPlugin/target/
|
||||
/modules/UIComponents/target/
|
||||
/modules/UIUtils/target/
|
||||
/modules/Utils/target/
|
||||
/modules/ValidationAPI/target/
|
||||
/modules/VisualizationAPI/target/
|
||||
/modules/VisualizationImpl/target/
|
||||
/modules/WelcomeScreen/target/
|
||||
/modules/WorkspaceUI/target/
|
||||
/modules/JFreeChartWrapper/target/
|
||||
/modules/CommonsWrapper/target/
|
||||
/modules/CoreLibraryWrapper/target/
|
||||
/modules/UILibraryWrapper/target/
|
||||
/modules/AppearanceAPI/target/
|
||||
/modules/AppearancePlugin/target/
|
||||
/modules/AppearancePluginUI/target/
|
||||
/modules/DesktopAppearance/target/
|
||||
dist/**
|
||||
build/**
|
||||
nbproject/private/**
|
||||
+420
-508
Diferenças do arquivo suprimidas por serem muito extensas
Carregar Diff
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
|
||||
<!-- for some information on what you could do (e.g. targets to override). -->
|
||||
<!-- If you delete this file and reopen the project it will be recreated. -->
|
||||
<project name="org.gephi.algorithms" default="netbeans" basedir=".">
|
||||
<description>Builds, tests, and runs the project org.gephi.algorithms.</description>
|
||||
<import file="nbproject/build-impl.xml"/>
|
||||
</project>
|
||||
@@ -0,0 +1,5 @@
|
||||
Manifest-Version: 1.0
|
||||
AutoUpdate-Essential-Module: true
|
||||
OpenIDE-Module: org.gephi.algorithms
|
||||
OpenIDE-Module-Localizing-Bundle: org/gephi/algorithms/Bundle.properties
|
||||
OpenIDE-Module-Specification-Version: 0.8.1.1
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
*** GENERATED FROM project.xml - DO NOT EDIT ***
|
||||
*** EDIT ../build.xml INSTEAD ***
|
||||
-->
|
||||
<project name="org.gephi.algorithms-impl" basedir="..">
|
||||
<fail message="Please build using Ant 1.7.1 or higher.">
|
||||
<condition>
|
||||
<not>
|
||||
<antversion atleast="1.7.1"/>
|
||||
</not>
|
||||
</condition>
|
||||
</fail>
|
||||
<property file="nbproject/private/suite-private.properties"/>
|
||||
<property file="nbproject/suite.properties"/>
|
||||
<fail unless="suite.dir">You must set 'suite.dir' to point to your containing module suite</fail>
|
||||
<property file="${suite.dir}/nbproject/private/platform-private.properties"/>
|
||||
<property file="${suite.dir}/nbproject/platform.properties"/>
|
||||
<macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
|
||||
<attribute name="name"/>
|
||||
<attribute name="value"/>
|
||||
<sequential>
|
||||
<property name="@{name}" value="${@{value}}"/>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
<macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2">
|
||||
<attribute name="property"/>
|
||||
<attribute name="value"/>
|
||||
<sequential>
|
||||
<property name="@{property}" value="@{value}"/>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
<property file="${user.properties.file}"/>
|
||||
<nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
|
||||
<nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
|
||||
<nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
|
||||
<fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
|
||||
<condition>
|
||||
<not>
|
||||
<contains string="${cluster.path.evaluated}" substring="platform"/>
|
||||
</not>
|
||||
</condition>
|
||||
</fail>
|
||||
<import file="${harness.dir}/build.xml"/>
|
||||
</project>
|
||||
@@ -0,0 +1,8 @@
|
||||
build.xml.data.CRC32=7a62de64
|
||||
build.xml.script.CRC32=cf335b84
|
||||
build.xml.stylesheet.CRC32=a56c6a5b@1.42.2
|
||||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
||||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
||||
nbproject/build-impl.xml.data.CRC32=7a62de64
|
||||
nbproject/build-impl.xml.script.CRC32=7f9d9135
|
||||
nbproject/build-impl.xml.stylesheet.CRC32=238281d1@1.42.2
|
||||
@@ -0,0 +1,6 @@
|
||||
javac.source=1.5
|
||||
javac.compilerargs=-Xlint -Xlint:-serial
|
||||
keystore=nbproject/private/keystore.ks
|
||||
license.file=../gpl-3.0.txt
|
||||
nbm.module.author=Gephi.org
|
||||
nbm_alias=gephi
|
||||
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://www.netbeans.org/ns/project/1">
|
||||
<type>org.netbeans.modules.apisupport.project</type>
|
||||
<configuration>
|
||||
<data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
|
||||
<code-name-base>org.gephi.algorithms</code-name-base>
|
||||
<suite-component/>
|
||||
<module-dependencies>
|
||||
<dependency>
|
||||
<code-name-base>org.gephi.data.attributes.api</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<specification-version>0.7.1.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<code-name-base>org.gephi.dynamic.api</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<specification-version>0.7.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<code-name-base>org.gephi.graph.api</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<specification-version>0.7</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<code-name-base>org.gephi.project.api</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<specification-version>0.7.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<code-name-base>org.openide.util.lookup</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<specification-version>8.3.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
</module-dependencies>
|
||||
<public-packages>
|
||||
<package>org.gephi.algorithms.shortestpath</package>
|
||||
</public-packages>
|
||||
</data>
|
||||
</configuration>
|
||||
</project>
|
||||
@@ -0,0 +1 @@
|
||||
suite.dir=${basedir}/..
|
||||
@@ -0,0 +1,11 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# Zbyn\u011bk Schwarz <zbynek.schwarz@gmail.com>, 2012.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2012-02-29 20\:31+0000\nLast-Translator\: Zbyn\u011bk Schwarz <zbynek.schwarz@gmail.com>\nLanguage-Team\: Czech (http\://www.transifex.net/projects/p/gephi/language/cs/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: cs\nPlural-Forms\: nplurals\=3; plural\=(n\=\=1) ? 0 \: (n>\=2 && n<\=4) ? 1 \: 2\n
|
||||
|
||||
OpenIDE-Module-Long-Description=Z\u00e1kladn\u00ed algoritmy teorie graf\u016f
|
||||
|
||||
OpenIDE-Module-Short-Description=Z\u00e1kladn\u00ed algoritmy teorie graf\u016f
|
||||
@@ -0,0 +1,11 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2011-08-06 14\:30+0000\nLast-Translator\: gephi <sebastien.heymann@gmail.com>\nLanguage-Team\: Spanish (Castilian) (http\://www.transifex.net/projects/p/gephi/language/es/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: es\nPlural-Forms\: nplurals\=2; plural\=(n \!\= 1)\n
|
||||
|
||||
OpenIDE-Module-Long-Description=Algoritmos b\u00e1sicos de la teor\u00eda de grafos
|
||||
|
||||
OpenIDE-Module-Short-Description=Algoritmos b\u00e1sicos de la teor\u00eda de grafos
|
||||
@@ -0,0 +1,11 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2011-08-06 14\:30+0000\nLast-Translator\: gephi <sebastien.heymann@gmail.com>\nLanguage-Team\: French (http\://www.transifex.net/projects/p/gephi/language/fr/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: fr\nPlural-Forms\: nplurals\=2; plural\=(n > 1)\n
|
||||
|
||||
OpenIDE-Module-Long-Description=Algorithmes de base en th\u00e9orie des graphes
|
||||
|
||||
OpenIDE-Module-Short-Description=Algorithmes de base en th\u00e9orie des graphes
|
||||
@@ -0,0 +1,11 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# Siro Kida <kida.siro@gmail.com>, 2011.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2011-08-11 00\:30+0000\nLast-Translator\: Siro Kida <kida.siro@gmail.com>\nLanguage-Team\: Japanese (http\://www.transifex.net/projects/p/gephi/language/ja/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: ja\nPlural-Forms\: nplurals\=1; plural\=0\n
|
||||
|
||||
OpenIDE-Module-Long-Description=\u57fa\u790e\u30b0\u30e9\u30d5\u7406\u8ad6\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0
|
||||
|
||||
OpenIDE-Module-Short-Description=\u57fa\u790e\u30b0\u30e9\u30d5\u7406\u8ad6\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0
|
||||
@@ -0,0 +1,11 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# C\u00e9lio CJr <celiofariajr@gmail.com>, 2011.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2011-08-06 23\:22+0000\nLast-Translator\: C\u00e9lio Faria Jr. <celiofariajr@gmail.com>\nLanguage-Team\: Portuguese (Brazil) (http\://www.transifex.net/projects/p/gephi/language/pt_BR/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: pt_BR\nPlural-Forms\: nplurals\=2; plural\=(n > 1)\n
|
||||
|
||||
OpenIDE-Module-Long-Description=Algoritmos b\u00e1sicos de teoria de grafos
|
||||
|
||||
OpenIDE-Module-Short-Description=Algoritmos b\u00e1sicos de teoria de grafos
|
||||
@@ -0,0 +1,11 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2011-08-06 14\:30+0000\nLast-Translator\: gephi <sebastien.heymann@gmail.com>\nLanguage-Team\: Russian (http\://www.transifex.net/projects/p/gephi/language/ru/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: ru\nPlural-Forms\: nplurals\=3; plural\=(n%10\=\=1 && n%100\!\=11 ? 0 \: n%10>\=2 && n%10<\=4 && (n%100<10 || n%100>\=20) ? 1 \: 2)\n
|
||||
|
||||
OpenIDE-Module-Long-Description=\u0411\u0430\u0437\u043e\u0432\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0442\u0435\u043e\u0440\u0438\u0438 \u0433\u0440\u0430\u0444\u043e\u0432
|
||||
|
||||
OpenIDE-Module-Short-Description=\u0411\u0430\u0437\u043e\u0432\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0442\u0435\u043e\u0440\u0438\u0438 \u0433\u0440\u0430\u0444\u043e\u0432
|
||||
@@ -0,0 +1,10 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2012-01-08 00\:21+0000\nLast-Translator\: gephi <sebastien.heymann@gmail.com>\nLanguage-Team\: Chinese (China) (http\://www.transifex.net/projects/p/gephi/language/zh_CN/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: zh_CN\nPlural-Forms\: nplurals\=1; plural\=0\n
|
||||
|
||||
OpenIDE-Module-Long-Description=\u57fa\u672c\u7684\u56fe\u8bba\u7b97\u6cd5
|
||||
|
||||
OpenIDE-Module-Short-Description=\u57fa\u672c\u7684\u56fe\u8bba\u7b97\u6cd5
|
||||
@@ -0,0 +1,25 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# Zbyněk Schwarz <zbynek.schwarz@gmail.com>, 2012.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2012-02-29 20:31+0000\n"
|
||||
"Last-Translator: Zbyněk Schwarz <zbynek.schwarz@gmail.com>\n"
|
||||
"Language-Team: Czech (http://www.transifex.net/projects/p/gephi/language/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "Základní algoritmy teorie grafů"
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "Základní algoritmy teorie grafů"
|
||||
@@ -0,0 +1,25 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2011-08-06 14:30+0000\n"
|
||||
"Last-Translator: gephi <sebastien.heymann@gmail.com>\n"
|
||||
"Language-Team: Spanish (Castilian) (http://www.transifex.net/projects/p/gephi/language/es/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: es\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "Algoritmos básicos de la teoría de grafos"
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "Algoritmos básicos de la teoría de grafos"
|
||||
@@ -0,0 +1,25 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2011-08-06 14:30+0000\n"
|
||||
"Last-Translator: gephi <sebastien.heymann@gmail.com>\n"
|
||||
"Language-Team: French (http://www.transifex.net/projects/p/gephi/language/fr/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: fr\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1)\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "Algorithmes de base en théorie des graphes"
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "Algorithmes de base en théorie des graphes"
|
||||
@@ -0,0 +1,25 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# Siro Kida <kida.siro@gmail.com>, 2011.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2011-08-11 00:30+0000\n"
|
||||
"Last-Translator: Siro Kida <kida.siro@gmail.com>\n"
|
||||
"Language-Team: Japanese (http://www.transifex.net/projects/p/gephi/language/ja/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: ja\n"
|
||||
"Plural-Forms: nplurals=1; plural=0\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "基礎グラフ理論アルゴリズム"
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "基礎グラフ理論アルゴリズム"
|
||||
@@ -0,0 +1,25 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# Célio CJr <celiofariajr@gmail.com>, 2011.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2011-08-06 23:22+0000\n"
|
||||
"Last-Translator: Célio Faria Jr. <celiofariajr@gmail.com>\n"
|
||||
"Language-Team: Portuguese (Brazil) (http://www.transifex.net/projects/p/gephi/language/pt_BR/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pt_BR\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1)\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "Algoritmos básicos de teoria de grafos "
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "Algoritmos básicos de teoria de grafos "
|
||||
@@ -0,0 +1,25 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2011-08-06 14:30+0000\n"
|
||||
"Last-Translator: gephi <sebastien.heymann@gmail.com>\n"
|
||||
"Language-Team: Russian (http://www.transifex.net/projects/p/gephi/language/ru/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: ru\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "Базовые алгоритмы теории графов"
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "Базовые алгоритмы теории графов"
|
||||
+9
-8
@@ -45,6 +45,7 @@ import java.awt.Color;
|
||||
import java.util.HashMap;
|
||||
import org.gephi.graph.api.Edge;
|
||||
import org.gephi.graph.api.Node;
|
||||
import org.gephi.graph.api.NodeData;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -52,27 +53,27 @@ import org.gephi.graph.api.Node;
|
||||
*/
|
||||
public abstract class AbstractShortestPathAlgorithm {
|
||||
|
||||
protected final HashMap<Node, Color> colors;
|
||||
protected final HashMap<Node, Double> distances;
|
||||
protected final HashMap<NodeData, Color> colors;
|
||||
protected final HashMap<NodeData, Double> distances;
|
||||
protected final Node sourceNode;
|
||||
protected double maxDistance = 0;
|
||||
|
||||
public AbstractShortestPathAlgorithm(Node sourceNode) {
|
||||
this.sourceNode = sourceNode;
|
||||
colors = new HashMap<Node, Color>();
|
||||
distances = new HashMap<Node, Double>();
|
||||
colors = new HashMap<NodeData, Color>();
|
||||
distances = new HashMap<NodeData, Double>();
|
||||
}
|
||||
|
||||
protected boolean relax(Edge edge) {
|
||||
Node source = edge.getSource();
|
||||
Node target = edge.getTarget();
|
||||
double distSource = distances.get(source);
|
||||
double distTarget = distances.get(target);
|
||||
double distSource = distances.get(source.getNodeData());
|
||||
double distTarget = distances.get(target.getNodeData());
|
||||
double weight = edgeWeight(edge);
|
||||
|
||||
double sourceWeight = distSource + weight;
|
||||
if (sourceWeight < distTarget) {
|
||||
distances.put(target, sourceWeight);
|
||||
distances.put(target.getNodeData(), sourceWeight);
|
||||
maxDistance = Math.max(maxDistance, sourceWeight);
|
||||
return true;
|
||||
} else {
|
||||
@@ -90,7 +91,7 @@ public abstract class AbstractShortestPathAlgorithm {
|
||||
|
||||
public abstract Edge getPredecessorIncoming(Node node);
|
||||
|
||||
public HashMap<Node, Double> getDistances() {
|
||||
public HashMap<NodeData, Double> getDistances() {
|
||||
return distances;
|
||||
}
|
||||
|
||||
+138
@@ -0,0 +1,138 @@
|
||||
/*
|
||||
Copyright 2008-2010 Gephi
|
||||
Authors : Mathieu Bastian <mathieu.bastian@gephi.org>
|
||||
Website : http://www.gephi.org
|
||||
|
||||
This file is part of Gephi.
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
|
||||
Copyright 2011 Gephi Consortium. All rights reserved.
|
||||
|
||||
The contents of this file are subject to the terms of either the GNU
|
||||
General Public License Version 3 only ("GPL") or the Common
|
||||
Development and Distribution License("CDDL") (collectively, the
|
||||
"License"). You may not use this file except in compliance with the
|
||||
License. You can obtain a copy of the License at
|
||||
http://gephi.org/about/legal/license-notice/
|
||||
or /cddl-1.0.txt and /gpl-3.0.txt. See the License for the
|
||||
specific language governing permissions and limitations under the
|
||||
License. When distributing the software, include this License Header
|
||||
Notice in each file and include the License files at
|
||||
/cddl-1.0.txt and /gpl-3.0.txt. If applicable, add the following below the
|
||||
License Header, with the fields enclosed by brackets [] replaced by
|
||||
your own identifying information:
|
||||
"Portions Copyrighted [year] [name of copyright owner]"
|
||||
|
||||
If you wish your version of this file to be governed by only the CDDL
|
||||
or only the GPL Version 3, indicate your decision by adding
|
||||
"[Contributor] elects to include this software in this distribution
|
||||
under the [CDDL or GPL Version 3] license." If you do not indicate a
|
||||
single choice of license, a recipient has the option to distribute
|
||||
your version of this file under either the CDDL, the GPL Version 3 or
|
||||
to extend the choice of license to its licensees as provided above.
|
||||
However, if you add GPL Version 3 code and therefore, elected the GPL
|
||||
Version 3 license, then the option applies only if the new code is
|
||||
made subject to such option by the copyright holder.
|
||||
|
||||
Contributor(s):
|
||||
|
||||
Portions Copyrighted 2011 Gephi Consortium.
|
||||
*/
|
||||
package org.gephi.algorithms.shortestpath;
|
||||
|
||||
import java.util.HashMap;
|
||||
import org.gephi.data.attributes.type.TimeInterval;
|
||||
import org.gephi.dynamic.DynamicUtilities;
|
||||
import org.gephi.dynamic.api.DynamicController;
|
||||
import org.gephi.graph.api.DirectedGraph;
|
||||
import org.gephi.graph.api.Edge;
|
||||
import org.gephi.graph.api.Node;
|
||||
import org.gephi.graph.api.NodeData;
|
||||
import org.openide.util.Lookup;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Mathieu Bastian
|
||||
*/
|
||||
public class BellmanFordShortestPathAlgorithm extends AbstractShortestPathAlgorithm {
|
||||
|
||||
protected final DirectedGraph graph;
|
||||
protected final HashMap<NodeData, Edge> predecessors;
|
||||
protected TimeInterval timeInterval;
|
||||
|
||||
public BellmanFordShortestPathAlgorithm(DirectedGraph graph, Node sourceNode) {
|
||||
super(sourceNode);
|
||||
this.graph = graph;
|
||||
predecessors = new HashMap<NodeData, Edge>();
|
||||
DynamicController dynamicController = Lookup.getDefault().lookup(DynamicController.class);
|
||||
if (dynamicController != null) {
|
||||
timeInterval = DynamicUtilities.getVisibleInterval(dynamicController.getModel(graph.getGraphModel().getWorkspace()));
|
||||
}
|
||||
}
|
||||
|
||||
public void compute() {
|
||||
|
||||
graph.readLock();
|
||||
|
||||
//Initialize
|
||||
int nodeCount = 0;
|
||||
for (Node node : graph.getNodes()) {
|
||||
distances.put(node.getNodeData(), Double.POSITIVE_INFINITY);
|
||||
nodeCount++;
|
||||
}
|
||||
distances.put(sourceNode.getNodeData(), 0d);
|
||||
|
||||
|
||||
//Relax edges repeatedly
|
||||
for (int i = 0; i < nodeCount; i++) {
|
||||
|
||||
boolean relaxed = false;
|
||||
for (Edge edge : graph.getEdges()) {
|
||||
Node target = edge.getTarget();
|
||||
if (relax(edge)) {
|
||||
relaxed = true;
|
||||
predecessors.put(target.getNodeData(), edge);
|
||||
}
|
||||
}
|
||||
if (!relaxed) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//Check for negative-weight cycles
|
||||
for (Edge edge : graph.getEdges()) {
|
||||
|
||||
if (distances.get(edge.getSource().getNodeData()) + edgeWeight(edge) < distances.get(edge.getTarget().getNodeData())) {
|
||||
graph.readUnlock();
|
||||
throw new RuntimeException("The Graph contains a negative-weighted cycle");
|
||||
}
|
||||
}
|
||||
|
||||
graph.readUnlock();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected double edgeWeight(Edge edge) {
|
||||
if (timeInterval != null) {
|
||||
return edge.getWeight(timeInterval.getLow(), timeInterval.getHigh());
|
||||
}
|
||||
return edge.getWeight();
|
||||
}
|
||||
|
||||
public Node getPredecessor(Node node) {
|
||||
Edge edge = predecessors.get(node.getNodeData());
|
||||
if (edge != null) {
|
||||
if (edge.getSource().getNodeData() != node.getNodeData()) {
|
||||
return edge.getSource();
|
||||
} else {
|
||||
return edge.getTarget();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Edge getPredecessorIncoming(Node node) {
|
||||
return predecessors.get(node.getNodeData());
|
||||
}
|
||||
}
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
/*
|
||||
Copyright 2008-2010 Gephi
|
||||
Authors : Mathieu Bastian <mathieu.bastian@gephi.org>
|
||||
Website : http://www.gephi.org
|
||||
|
||||
This file is part of Gephi.
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
|
||||
Copyright 2011 Gephi Consortium. All rights reserved.
|
||||
|
||||
The contents of this file are subject to the terms of either the GNU
|
||||
General Public License Version 3 only ("GPL") or the Common
|
||||
Development and Distribution License("CDDL") (collectively, the
|
||||
"License"). You may not use this file except in compliance with the
|
||||
License. You can obtain a copy of the License at
|
||||
http://gephi.org/about/legal/license-notice/
|
||||
or /cddl-1.0.txt and /gpl-3.0.txt. See the License for the
|
||||
specific language governing permissions and limitations under the
|
||||
License. When distributing the software, include this License Header
|
||||
Notice in each file and include the License files at
|
||||
/cddl-1.0.txt and /gpl-3.0.txt. If applicable, add the following below the
|
||||
License Header, with the fields enclosed by brackets [] replaced by
|
||||
your own identifying information:
|
||||
"Portions Copyrighted [year] [name of copyright owner]"
|
||||
|
||||
If you wish your version of this file to be governed by only the CDDL
|
||||
or only the GPL Version 3, indicate your decision by adding
|
||||
"[Contributor] elects to include this software in this distribution
|
||||
under the [CDDL or GPL Version 3] license." If you do not indicate a
|
||||
single choice of license, a recipient has the option to distribute
|
||||
your version of this file under either the CDDL, the GPL Version 3 or
|
||||
to extend the choice of license to its licensees as provided above.
|
||||
However, if you add GPL Version 3 code and therefore, elected the GPL
|
||||
Version 3 license, then the option applies only if the new code is
|
||||
made subject to such option by the copyright holder.
|
||||
|
||||
Contributor(s):
|
||||
|
||||
Portions Copyrighted 2011 Gephi Consortium.
|
||||
*/
|
||||
package org.gephi.algorithms.shortestpath;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import org.gephi.data.attributes.type.TimeInterval;
|
||||
import org.gephi.dynamic.DynamicUtilities;
|
||||
import org.gephi.dynamic.api.DynamicController;
|
||||
import org.gephi.graph.api.Edge;
|
||||
import org.gephi.graph.api.Graph;
|
||||
import org.gephi.graph.api.Node;
|
||||
import org.gephi.graph.api.NodeData;
|
||||
import org.openide.util.Lookup;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Mathieu Bastian
|
||||
*/
|
||||
public class DijkstraShortestPathAlgorithm extends AbstractShortestPathAlgorithm {
|
||||
|
||||
protected final Graph graph;
|
||||
protected final HashMap<NodeData, Edge> predecessors;
|
||||
protected TimeInterval timeInterval;
|
||||
|
||||
public DijkstraShortestPathAlgorithm(Graph graph, Node sourceNode) {
|
||||
super(sourceNode);
|
||||
this.graph = graph;
|
||||
predecessors = new HashMap<NodeData, Edge>();
|
||||
DynamicController dynamicController = Lookup.getDefault().lookup(DynamicController.class);
|
||||
if (dynamicController != null) {
|
||||
timeInterval = DynamicUtilities.getVisibleInterval(dynamicController.getModel(graph.getGraphModel().getWorkspace()));
|
||||
}
|
||||
}
|
||||
|
||||
public void compute() {
|
||||
|
||||
graph.readLock();
|
||||
Set<Node> unsettledNodes = new HashSet<Node>();
|
||||
Set<NodeData> settledNodes = new HashSet<NodeData>();
|
||||
|
||||
//Initialize
|
||||
for (Node node : graph.getNodes()) {
|
||||
distances.put(node.getNodeData(), Double.POSITIVE_INFINITY);
|
||||
}
|
||||
distances.put(sourceNode.getNodeData(), 0d);
|
||||
unsettledNodes.add(sourceNode);
|
||||
|
||||
while (!unsettledNodes.isEmpty()) {
|
||||
|
||||
// find node with smallest distance value
|
||||
Double minDistance = Double.POSITIVE_INFINITY;
|
||||
Node minDistanceNode = null;
|
||||
for (Node k : unsettledNodes) {
|
||||
Double dist = distances.get(k.getNodeData());
|
||||
if (minDistanceNode == null) {
|
||||
minDistanceNode = k;
|
||||
}
|
||||
|
||||
if (dist.compareTo(minDistance) < 0) {
|
||||
minDistance = dist;
|
||||
minDistanceNode = k;
|
||||
}
|
||||
}
|
||||
unsettledNodes.remove(minDistanceNode);
|
||||
settledNodes.add(minDistanceNode.getNodeData());
|
||||
|
||||
for (Edge edge : graph.getEdges(minDistanceNode)) {
|
||||
Node neighbor = graph.getOpposite(minDistanceNode, edge);
|
||||
if (!settledNodes.contains(neighbor.getNodeData())) {
|
||||
double dist = getShortestDistance(minDistanceNode) + edgeWeight(edge);
|
||||
if (getShortestDistance(neighbor) > dist) {
|
||||
|
||||
distances.put(neighbor.getNodeData(), dist);
|
||||
predecessors.put(neighbor.getNodeData(), edge);
|
||||
unsettledNodes.add(neighbor);
|
||||
maxDistance = Math.max(maxDistance, dist);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
graph.readUnlock();
|
||||
}
|
||||
|
||||
private double getShortestDistance(Node destination) {
|
||||
Double d = distances.get(destination.getNodeData());
|
||||
if (d == null) {
|
||||
return Double.POSITIVE_INFINITY;
|
||||
} else {
|
||||
return d;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected double edgeWeight(Edge edge) {
|
||||
if (timeInterval != null) {
|
||||
return edge.getWeight(timeInterval.getLow(), timeInterval.getHigh());
|
||||
}
|
||||
return edge.getWeight();
|
||||
}
|
||||
|
||||
public Node getPredecessor(Node node) {
|
||||
Edge edge = predecessors.get(node.getNodeData());
|
||||
if (edge != null) {
|
||||
if (edge.getSource() != node) {
|
||||
return edge.getSource();
|
||||
} else {
|
||||
return edge.getTarget();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Edge getPredecessorIncoming(Node node) {
|
||||
return predecessors.get(node.getNodeData());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2012-01-08 00:21+0000\n"
|
||||
"Last-Translator: gephi <sebastien.heymann@gmail.com>\n"
|
||||
"Language-Team: Chinese (China) (http://www.transifex.net/projects/p/gephi/language/zh_CN/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: zh_CN\n"
|
||||
"Plural-Forms: nplurals=1; plural=0\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "基本的图论算法"
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "基本的图论算法"
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
|
||||
<!-- for some information on what you could do (e.g. targets to override). -->
|
||||
<!-- If you delete this file and reopen the project it will be recreated. -->
|
||||
<project name="org.gephi.ui.propertyeditor" default="netbeans" basedir=".">
|
||||
<description>Builds, tests, and runs the project org.gephi.ui.propertyeditor.</description>
|
||||
<import file="nbproject/build-impl.xml"/>
|
||||
</project>
|
||||
@@ -0,0 +1,6 @@
|
||||
Manifest-Version: 1.0
|
||||
AutoUpdate-Essential-Module: true
|
||||
OpenIDE-Module: org.gephi.ui.propertyeditor
|
||||
OpenIDE-Module-Localizing-Bundle: org/gephi/ui/propertyeditor/Bundle.properties
|
||||
OpenIDE-Module-Specification-Version: 0.8.1
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
*** GENERATED FROM project.xml - DO NOT EDIT ***
|
||||
*** EDIT ../build.xml INSTEAD ***
|
||||
-->
|
||||
<project name="org.gephi.ui.propertyeditor-impl" basedir="..">
|
||||
<fail message="Please build using Ant 1.7.1 or higher.">
|
||||
<condition>
|
||||
<not>
|
||||
<antversion atleast="1.7.1"/>
|
||||
</not>
|
||||
</condition>
|
||||
</fail>
|
||||
<property file="nbproject/private/suite-private.properties"/>
|
||||
<property file="nbproject/suite.properties"/>
|
||||
<fail unless="suite.dir">You must set 'suite.dir' to point to your containing module suite</fail>
|
||||
<property file="${suite.dir}/nbproject/private/platform-private.properties"/>
|
||||
<property file="${suite.dir}/nbproject/platform.properties"/>
|
||||
<macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
|
||||
<attribute name="name"/>
|
||||
<attribute name="value"/>
|
||||
<sequential>
|
||||
<property name="@{name}" value="${@{value}}"/>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
<macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2">
|
||||
<attribute name="property"/>
|
||||
<attribute name="value"/>
|
||||
<sequential>
|
||||
<property name="@{property}" value="@{value}"/>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
<property file="${user.properties.file}"/>
|
||||
<nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
|
||||
<nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
|
||||
<nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
|
||||
<fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
|
||||
<condition>
|
||||
<not>
|
||||
<contains string="${cluster.path.evaluated}" substring="platform"/>
|
||||
</not>
|
||||
</condition>
|
||||
</fail>
|
||||
<import file="${harness.dir}/build.xml"/>
|
||||
</project>
|
||||
@@ -0,0 +1,8 @@
|
||||
build.xml.data.CRC32=b90a9a84
|
||||
build.xml.script.CRC32=fee76ed2
|
||||
build.xml.stylesheet.CRC32=a56c6a5b@1.42.1
|
||||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
||||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
||||
nbproject/build-impl.xml.data.CRC32=b90a9a84
|
||||
nbproject/build-impl.xml.script.CRC32=3fb6a735
|
||||
nbproject/build-impl.xml.stylesheet.CRC32=238281d1@1.42.1
|
||||
@@ -0,0 +1,6 @@
|
||||
javac.source=1.5
|
||||
javac.compilerargs=-Xlint -Xlint:-serial
|
||||
keystore=nbproject/private/keystore.ks
|
||||
license.file=../gpl-3.0.txt
|
||||
nbm.module.author=Gephi.org
|
||||
nbm_alias=gephi
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://www.netbeans.org/ns/project/1">
|
||||
<type>org.netbeans.modules.apisupport.project</type>
|
||||
<configuration>
|
||||
<data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
|
||||
<code-name-base>org.gephi.ui.propertyeditor</code-name-base>
|
||||
<suite-component/>
|
||||
<module-dependencies>
|
||||
<dependency>
|
||||
<code-name-base>org.gephi.data.attributes.api</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<specification-version>0.7</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<code-name-base>org.openide.util</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<specification-version>8.6.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<code-name-base>org.openide.util.lookup</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<specification-version>8.3.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
</module-dependencies>
|
||||
<public-packages>
|
||||
<package>org.gephi.ui.propertyeditor</package>
|
||||
</public-packages>
|
||||
</data>
|
||||
</configuration>
|
||||
</project>
|
||||
@@ -0,0 +1 @@
|
||||
suite.dir=${basedir}/..
|
||||
@@ -0,0 +1,11 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# Zbyn\u011bk Schwarz <zbynek.schwarz@gmail.com>, 2012.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2012-02-29 19\:11+0000\nLast-Translator\: Zbyn\u011bk Schwarz <zbynek.schwarz@gmail.com>\nLanguage-Team\: Czech (http\://www.transifex.net/projects/p/gephi/language/cs/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: cs\nPlural-Forms\: nplurals\=3; plural\=(n\=\=1) ? 0 \: (n>\=2 && n<\=4) ? 1 \: 2\n
|
||||
|
||||
OpenIDE-Module-Long-Description=Tyto edito\u0159i vlastnost\u00ed mohou b\u00fdt pou\u017eity pro zobrazen\u00ed rozbalovac\u00edho r\u00e1me\u010dku se sou\u010dasn\u00fdmi sloupci v PropertySheet.
|
||||
|
||||
OpenIDE-Module-Short-Description=Poskytnout t\u0159\u00eddu PropertyEditor pro vlastnosti AttributeColumn
|
||||
@@ -0,0 +1,11 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2011-08-06 14\:30+0000\nLast-Translator\: gephi <sebastien.heymann@gmail.com>\nLanguage-Team\: Spanish (Castilian) (http\://www.transifex.net/projects/p/gephi/language/es/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: es\nPlural-Forms\: nplurals\=2; plural\=(n \!\= 1)\n
|
||||
|
||||
OpenIDE-Module-Long-Description=Estos editores de propiedades pueden ser utilizados para mostrar un combobox con las columnas actuales en un PropertySheet.
|
||||
|
||||
OpenIDE-Module-Short-Description=Proporcionar la clase PropertyEditor para las propiedades de AttributeColumn
|
||||
@@ -0,0 +1,11 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2011-08-06 14\:30+0000\nLast-Translator\: gephi <sebastien.heymann@gmail.com>\nLanguage-Team\: French (http\://www.transifex.net/projects/p/gephi/language/fr/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: fr\nPlural-Forms\: nplurals\=2; plural\=(n > 1)\n
|
||||
|
||||
OpenIDE-Module-Long-Description=Ces \u00e9diteurs de propri\u00e9t\u00e9 sont utilisables pour afficher une combobox avec les colonnes courantes dans un PropertySheet.
|
||||
|
||||
OpenIDE-Module-Short-Description=Fournit la classe PropertyEditor pour les propri\u00e9t\u00e9s de AttributeColumn
|
||||
@@ -0,0 +1,11 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# Siro Kida <kida.siro@gmail.com>, 2011.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2011-08-18 10\:40+0000\nLast-Translator\: Siro Kida <kida.siro@gmail.com>\nLanguage-Team\: Japanese (http\://www.transifex.net/projects/p/gephi/language/ja/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: ja\nPlural-Forms\: nplurals\=1; plural\=0\n
|
||||
|
||||
OpenIDE-Module-Long-Description=\u3053\u308c\u3089\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u30a8\u30c7\u30a3\u30bf\u306f\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u30b7\u30fc\u30c8\u3067\u3001\u73fe\u5728\u306e\u5217\u3092\u6301\u3064\u30b3\u30f3\u30dc\u30dc\u30c3\u30af\u30b9\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002
|
||||
|
||||
OpenIDE-Module-Short-Description=AttributeColumn\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306ePropertyEditor\u30af\u30e9\u30b9\u3092\u63d0\u4f9b\u3059\u308b
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# C\u00e9lio CJr <celiofariajr@gmail.com>, 2011.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2011-08-06 23\:31+0000\nLast-Translator\: C\u00e9lio Faria Jr. <celiofariajr@gmail.com>\nLanguage-Team\: Portuguese (Brazil) (http\://www.transifex.net/projects/p/gephi/language/pt_BR/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: pt_BR\nPlural-Forms\: nplurals\=2; plural\=(n > 1)\n
|
||||
|
||||
OpenIDE-Module-Long-Description=Estes editores de propriedades pode ser usados para exibir um combobox com as colunas atuais em uma PropertySheet.
|
||||
|
||||
OpenIDE-Module-Short-Description=Fornece classe PropertyEditor para propriedades do tipo AttributeColumn
|
||||
@@ -0,0 +1,11 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# <altsoph@gmail.com>, 2011.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2011-10-07 06\:10+0000\nLast-Translator\: Altsoph <altsoph@gmail.com>\nLanguage-Team\: Russian (http\://www.transifex.net/projects/p/gephi/language/ru/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: ru\nPlural-Forms\: nplurals\=3; plural\=(n%10\=\=1 && n%100\!\=11 ? 0 \: n%10>\=2 && n%10<\=4 && (n%100<10 || n%100>\=20) ? 1 \: 2)\n
|
||||
|
||||
OpenIDE-Module-Long-Description=\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u044b \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0431\u043e-\u0431\u043e\u043a\u0441\u0430 \u0441 \u0442\u0435\u043a\u0443\u0449\u0438\u043c\u0438 \u043a\u043e\u043b\u043e\u043d\u043a\u0430\u043c\u0438 \u0432 PropertySheet
|
||||
|
||||
OpenIDE-Module-Short-Description=\u041f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u043b\u0430\u0441\u0441 PropertyEditor \u0434\u043b\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432 AttributeColumn
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2012-01-08 00\:21+0000\nLast-Translator\: gephi <sebastien.heymann@gmail.com>\nLanguage-Team\: Chinese (China) (http\://www.transifex.net/projects/p/gephi/language/zh_CN/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: zh_CN\nPlural-Forms\: nplurals\=1; plural\=0\n
|
||||
|
||||
OpenIDE-Module-Long-Description=\u8fd9\u4e9b\u5c5e\u6027\u7f16\u8f91\u5668\u53ef\u7528\u4e8e\u663e\u793a\u5f53\u524d\u5217\u5728PropertySheet\u4e2d\u7684\u4e00\u4e2aComboBox\u3002
|
||||
|
||||
OpenIDE-Module-Short-Description=\u63d0\u4f9bAttributeColumn\u5c5e\u6027\u7684PropertyEditor\u7c7b
|
||||
@@ -0,0 +1,25 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# Zbyněk Schwarz <zbynek.schwarz@gmail.com>, 2012.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2012-02-29 19:11+0000\n"
|
||||
"Last-Translator: Zbyněk Schwarz <zbynek.schwarz@gmail.com>\n"
|
||||
"Language-Team: Czech (http://www.transifex.net/projects/p/gephi/language/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "Tyto editoři vlastností mohou být použity pro zobrazení rozbalovacího rámečku se současnými sloupci v PropertySheet."
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "Poskytnout třídu PropertyEditor pro vlastnosti AttributeColumn"
|
||||
@@ -0,0 +1,25 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2011-08-06 14:30+0000\n"
|
||||
"Last-Translator: gephi <sebastien.heymann@gmail.com>\n"
|
||||
"Language-Team: Spanish (Castilian) (http://www.transifex.net/projects/p/gephi/language/es/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: es\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "Estos editores de propiedades pueden ser utilizados para mostrar un combobox con las columnas actuales en un PropertySheet."
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "Proporcionar la clase PropertyEditor para las propiedades de AttributeColumn"
|
||||
@@ -0,0 +1,25 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2011-08-06 14:30+0000\n"
|
||||
"Last-Translator: gephi <sebastien.heymann@gmail.com>\n"
|
||||
"Language-Team: French (http://www.transifex.net/projects/p/gephi/language/fr/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: fr\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1)\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "Ces éditeurs de propriété sont utilisables pour afficher une combobox avec les colonnes courantes dans un PropertySheet."
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "Fournit la classe PropertyEditor pour les propriétés de AttributeColumn"
|
||||
@@ -0,0 +1,25 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# Siro Kida <kida.siro@gmail.com>, 2011.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2011-08-18 10:40+0000\n"
|
||||
"Last-Translator: Siro Kida <kida.siro@gmail.com>\n"
|
||||
"Language-Team: Japanese (http://www.transifex.net/projects/p/gephi/language/ja/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: ja\n"
|
||||
"Plural-Forms: nplurals=1; plural=0\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "これらのプロパティエディタは、プロパティシートで、現在の列を持つコンボボックスを表示するために使用することができます。"
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "AttributeColumnのプロパティのPropertyEditorクラスを提供する"
|
||||
@@ -0,0 +1,25 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# Célio CJr <celiofariajr@gmail.com>, 2011.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2011-08-06 23:31+0000\n"
|
||||
"Last-Translator: Célio Faria Jr. <celiofariajr@gmail.com>\n"
|
||||
"Language-Team: Portuguese (Brazil) (http://www.transifex.net/projects/p/gephi/language/pt_BR/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pt_BR\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1)\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "Estes editores de propriedades pode ser usados para exibir um combobox com as colunas atuais em uma PropertySheet."
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "Fornece classe PropertyEditor para propriedades do tipo AttributeColumn "
|
||||
@@ -0,0 +1,25 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# <altsoph@gmail.com>, 2011.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2011-10-07 06:10+0000\n"
|
||||
"Last-Translator: Altsoph <altsoph@gmail.com>\n"
|
||||
"Language-Team: Russian (http://www.transifex.net/projects/p/gephi/language/ru/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: ru\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "Редакторы свойств могут быть использованы для отображения комбо-бокса с текущими колонками в PropertySheet"
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "Предоставляет класс PropertyEditor для свойств AttributeColumn "
|
||||
@@ -0,0 +1,24 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2012-01-08 00:21+0000\n"
|
||||
"Last-Translator: gephi <sebastien.heymann@gmail.com>\n"
|
||||
"Language-Team: Chinese (China) (http://www.transifex.net/projects/p/gephi/language/zh_CN/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: zh_CN\n"
|
||||
"Plural-Forms: nplurals=1; plural=0\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "这些属性编辑器可用于显示当前列在PropertySheet中的一个ComboBox。"
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "提供AttributeColumn属性的PropertyEditor类"
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
|
||||
<!-- for some information on what you could do (e.g. targets to override). -->
|
||||
<!-- If you delete this file and reopen the project it will be recreated. -->
|
||||
<project name="org.gephi.data.attributes.api" default="netbeans" basedir=".">
|
||||
<description>Builds, tests, and runs the project org.gephi.data.attributes.api.</description>
|
||||
<import file="nbproject/build-impl.xml"/>
|
||||
</project>
|
||||
@@ -0,0 +1,5 @@
|
||||
Manifest-Version: 1.0
|
||||
OpenIDE-Module: org.gephi.data.attributes.api
|
||||
OpenIDE-Module-Localizing-Bundle: org/gephi/data/attributes/api/Bundle.properties
|
||||
OpenIDE-Module-Specification-Version: 0.8.0.7
|
||||
AutoUpdate-Essential-Module: true
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
*** GENERATED FROM project.xml - DO NOT EDIT ***
|
||||
*** EDIT ../build.xml INSTEAD ***
|
||||
-->
|
||||
<project name="org.gephi.data.attributes.api-impl" basedir="..">
|
||||
<fail message="Please build using Ant 1.7.1 or higher.">
|
||||
<condition>
|
||||
<not>
|
||||
<antversion atleast="1.7.1"/>
|
||||
</not>
|
||||
</condition>
|
||||
</fail>
|
||||
<property file="nbproject/private/suite-private.properties"/>
|
||||
<property file="nbproject/suite.properties"/>
|
||||
<fail unless="suite.dir">You must set 'suite.dir' to point to your containing module suite</fail>
|
||||
<property file="${suite.dir}/nbproject/private/platform-private.properties"/>
|
||||
<property file="${suite.dir}/nbproject/platform.properties"/>
|
||||
<macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
|
||||
<attribute name="name"/>
|
||||
<attribute name="value"/>
|
||||
<sequential>
|
||||
<property name="@{name}" value="${@{value}}"/>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
<macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2">
|
||||
<attribute name="property"/>
|
||||
<attribute name="value"/>
|
||||
<sequential>
|
||||
<property name="@{property}" value="@{value}"/>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
<property file="${user.properties.file}"/>
|
||||
<nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
|
||||
<nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
|
||||
<nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
|
||||
<fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
|
||||
<condition>
|
||||
<not>
|
||||
<contains string="${cluster.path.evaluated}" substring="platform"/>
|
||||
</not>
|
||||
</condition>
|
||||
</fail>
|
||||
<import file="${harness.dir}/build.xml"/>
|
||||
</project>
|
||||
@@ -0,0 +1,6 @@
|
||||
build.xml.data.CRC32=1965fabe
|
||||
build.xml.script.CRC32=3725a65f
|
||||
build.xml.stylesheet.CRC32=a56c6a5b@1.42.2
|
||||
nbproject/build-impl.xml.data.CRC32=1965fabe
|
||||
nbproject/build-impl.xml.script.CRC32=24a2766f
|
||||
nbproject/build-impl.xml.stylesheet.CRC32=238281d1@1.42.2
|
||||
@@ -0,0 +1,6 @@
|
||||
javac.source=1.5
|
||||
javac.compilerargs=-Xlint -Xlint:-serial
|
||||
keystore=nbproject/private/keystore.ks
|
||||
license.file=../gpl-3.0.txt
|
||||
nbm.module.author=Gephi.org
|
||||
nbm_alias=gephi
|
||||
@@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://www.netbeans.org/ns/project/1">
|
||||
<type>org.netbeans.modules.apisupport.project</type>
|
||||
<configuration>
|
||||
<data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
|
||||
<code-name-base>org.gephi.data.attributes.api</code-name-base>
|
||||
<suite-component/>
|
||||
<module-dependencies>
|
||||
<dependency>
|
||||
<code-name-base>org.gephi.graph.api</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<specification-version>0.7</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<code-name-base>org.gephi.project.api</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<specification-version>0.7.0.5</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<code-name-base>org.openide.util</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<specification-version>7.31.2.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<code-name-base>org.openide.util.lookup</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<specification-version>8.3.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
</module-dependencies>
|
||||
<test-dependencies>
|
||||
<test-type>
|
||||
<name>unit</name>
|
||||
<test-dependency>
|
||||
<code-name-base>org.netbeans.libs.junit4</code-name-base>
|
||||
<compile-dependency/>
|
||||
</test-dependency>
|
||||
</test-type>
|
||||
</test-dependencies>
|
||||
<public-packages>
|
||||
<package>org.gephi.data.attributes.api</package>
|
||||
<package>org.gephi.data.attributes.spi</package>
|
||||
<package>org.gephi.data.attributes.type</package>
|
||||
<package>org.gephi.data.properties</package>
|
||||
</public-packages>
|
||||
</data>
|
||||
</configuration>
|
||||
</project>
|
||||
@@ -0,0 +1 @@
|
||||
suite.dir=${basedir}/..
|
||||
+130
-136
@@ -1,136 +1,130 @@
|
||||
/*
|
||||
Copyright 2008-2010 Gephi
|
||||
Authors : Mathieu Bastian <mathieu.bastian@gephi.org>
|
||||
Website : http://www.gephi.org
|
||||
|
||||
This file is part of Gephi.
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
|
||||
Copyright 2011 Gephi Consortium. All rights reserved.
|
||||
|
||||
The contents of this file are subject to the terms of either the GNU
|
||||
General Public License Version 3 only ("GPL") or the Common
|
||||
Development and Distribution License("CDDL") (collectively, the
|
||||
"License"). You may not use this file except in compliance with the
|
||||
License. You can obtain a copy of the License at
|
||||
http://gephi.org/about/legal/license-notice/
|
||||
or /cddl-1.0.txt and /gpl-3.0.txt. See the License for the
|
||||
specific language governing permissions and limitations under the
|
||||
License. When distributing the software, include this License Header
|
||||
Notice in each file and include the License files at
|
||||
/cddl-1.0.txt and /gpl-3.0.txt. If applicable, add the following below the
|
||||
License Header, with the fields enclosed by brackets [] replaced by
|
||||
your own identifying information:
|
||||
"Portions Copyrighted [year] [name of copyright owner]"
|
||||
|
||||
If you wish your version of this file to be governed by only the CDDL
|
||||
or only the GPL Version 3, indicate your decision by adding
|
||||
"[Contributor] elects to include this software in this distribution
|
||||
under the [CDDL or GPL Version 3] license." If you do not indicate a
|
||||
single choice of license, a recipient has the option to distribute
|
||||
your version of this file under either the CDDL, the GPL Version 3 or
|
||||
to extend the choice of license to its licensees as provided above.
|
||||
However, if you add GPL Version 3 code and therefore, elected the GPL
|
||||
Version 3 license, then the option applies only if the new code is
|
||||
made subject to such option by the copyright holder.
|
||||
|
||||
Contributor(s):
|
||||
|
||||
Portions Copyrighted 2011 Gephi Consortium.
|
||||
*/
|
||||
package org.gephi.data.attributes.api;
|
||||
|
||||
import org.gephi.data.attributes.spi.AttributeValueDelegateProvider;
|
||||
|
||||
/**
|
||||
* Column is the header of a data column. It belongs to an <code>AttributeTable</code>
|
||||
* and is the key to access data within <code>AttributeRow</code>.
|
||||
* <p>
|
||||
* It contains its index that may be used to get the appropriate value in the
|
||||
* <code>AttributeRow</code> values array.
|
||||
* <p>
|
||||
* For Gephi internal implementation purposes, names of columns are restricted. They can have any name
|
||||
* except these defined in {@link org.gephi.data.properties.PropertiesColumn PropertiesColumn} enum.
|
||||
* <h2>Iterate rows values</h2>
|
||||
* <pre>
|
||||
* Attribute row = ...;
|
||||
* for(AttributeColumn column : table.getColumns()) {
|
||||
* Object value = row.getValue(column);
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* @author Mathieu Bastian
|
||||
* @author Martin Škurla
|
||||
* @see AttributeRow
|
||||
* @see AttributeTable
|
||||
*/
|
||||
public interface AttributeColumn {
|
||||
|
||||
/**
|
||||
* Returns the type of this column content.
|
||||
*
|
||||
* @return the type of this column
|
||||
*/
|
||||
public AttributeType getType();
|
||||
|
||||
/**
|
||||
* Returns the title of this column. The title is a human-readable text that
|
||||
* describes the column data. When no title exists, returns the <code>Id</code>
|
||||
* of this column.
|
||||
*
|
||||
* @return the title of this column, if exists, or the <code>Id</code> otherwise
|
||||
*/
|
||||
public String getTitle();
|
||||
|
||||
/**
|
||||
* Returns the index of this column. The index is the fastest way to access a
|
||||
* column from its <code>AttributeTable</code> or manipulate
|
||||
* <code>AttributeRow</code>.
|
||||
*
|
||||
* @return the index of this column
|
||||
* @see AttributeTable#getColumn(int)
|
||||
* @see AttributeRow#getValue(int)
|
||||
*/
|
||||
public int getIndex();
|
||||
|
||||
/**
|
||||
* Returns the origin of this column content, meta-data that describes where
|
||||
* the column comes from. Default value is <code>AttributeOrigin.DATA</code>.
|
||||
*
|
||||
* @return the origin of this column content
|
||||
*/
|
||||
public AttributeOrigin getOrigin();
|
||||
|
||||
/**
|
||||
* Returns the id of this column. The id is the unique identifier that describes
|
||||
* the column data.
|
||||
*
|
||||
* @return the id of this column
|
||||
*/
|
||||
public String getId();
|
||||
|
||||
/**
|
||||
* Returns the default value for this column. May be <code>null</code>.
|
||||
* <p>
|
||||
* The returned <code>Object</code> class type is equal to the class obtained
|
||||
* with <code>AttributeType.getType()</code>.
|
||||
*
|
||||
* @return the default value, or <code>null</code>
|
||||
*/
|
||||
public Object getDefaultValue();
|
||||
|
||||
/**
|
||||
* Returns the attribute value delegate provider. The Provider is always set if the origin of the
|
||||
* current attribute column is AttributeOrigin.DELEGATE.
|
||||
*
|
||||
* @return attribute value delegate provider
|
||||
*/
|
||||
public AttributeValueDelegateProvider getProvider();
|
||||
|
||||
/**
|
||||
* Returns the table that contains this column
|
||||
* @return Table for the column
|
||||
*/
|
||||
public AttributeTable getTable();
|
||||
}
|
||||
/*
|
||||
Copyright 2008-2010 Gephi
|
||||
Authors : Mathieu Bastian <mathieu.bastian@gephi.org>
|
||||
Website : http://www.gephi.org
|
||||
|
||||
This file is part of Gephi.
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
|
||||
Copyright 2011 Gephi Consortium. All rights reserved.
|
||||
|
||||
The contents of this file are subject to the terms of either the GNU
|
||||
General Public License Version 3 only ("GPL") or the Common
|
||||
Development and Distribution License("CDDL") (collectively, the
|
||||
"License"). You may not use this file except in compliance with the
|
||||
License. You can obtain a copy of the License at
|
||||
http://gephi.org/about/legal/license-notice/
|
||||
or /cddl-1.0.txt and /gpl-3.0.txt. See the License for the
|
||||
specific language governing permissions and limitations under the
|
||||
License. When distributing the software, include this License Header
|
||||
Notice in each file and include the License files at
|
||||
/cddl-1.0.txt and /gpl-3.0.txt. If applicable, add the following below the
|
||||
License Header, with the fields enclosed by brackets [] replaced by
|
||||
your own identifying information:
|
||||
"Portions Copyrighted [year] [name of copyright owner]"
|
||||
|
||||
If you wish your version of this file to be governed by only the CDDL
|
||||
or only the GPL Version 3, indicate your decision by adding
|
||||
"[Contributor] elects to include this software in this distribution
|
||||
under the [CDDL or GPL Version 3] license." If you do not indicate a
|
||||
single choice of license, a recipient has the option to distribute
|
||||
your version of this file under either the CDDL, the GPL Version 3 or
|
||||
to extend the choice of license to its licensees as provided above.
|
||||
However, if you add GPL Version 3 code and therefore, elected the GPL
|
||||
Version 3 license, then the option applies only if the new code is
|
||||
made subject to such option by the copyright holder.
|
||||
|
||||
Contributor(s):
|
||||
|
||||
Portions Copyrighted 2011 Gephi Consortium.
|
||||
*/
|
||||
package org.gephi.data.attributes.api;
|
||||
|
||||
import org.gephi.data.attributes.spi.AttributeValueDelegateProvider;
|
||||
|
||||
/**
|
||||
* Column is the header of a data column. It belongs to an <code>AttributeTable</code>
|
||||
* and is the key to access data within <code>AttributeRow</code>.
|
||||
* <p>
|
||||
* It contains its index that may be used to get the appropriate value in the
|
||||
* <code>AttributeRow</code> values array.
|
||||
* <p>
|
||||
* For Gephi internal implementation purposes, names of columns are restricted. They can have any name
|
||||
* except these defined in {@link org.gephi.data.properties.PropertiesColumn PropertiesColumn} enum.
|
||||
* <h2>Iterate rows values</h2>
|
||||
* <pre>
|
||||
* Attribute row = ...;
|
||||
* for(AttributeColumn column : table.getColumns()) {
|
||||
* Object value = row.getValue(column);
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* @author Mathieu Bastian
|
||||
* @author Martin Škurla
|
||||
* @see AttributeRow
|
||||
* @see AttributeTable
|
||||
*/
|
||||
public interface AttributeColumn {
|
||||
|
||||
/**
|
||||
* Returns the type of this column content.
|
||||
*
|
||||
* @return the type of this column
|
||||
*/
|
||||
public AttributeType getType();
|
||||
|
||||
/**
|
||||
* Returns the title of this column. The title is a human-readable text that
|
||||
* describes the column data. When no title exists, returns the <code>Id</code>
|
||||
* of this column.
|
||||
*
|
||||
* @return the title of this column, if exists, or the <code>Id</code> otherwise
|
||||
*/
|
||||
public String getTitle();
|
||||
|
||||
/**
|
||||
* Returns the index of this column. The index is the fastest way to access a
|
||||
* column from its <code>AttributeTable</code> or manipulate
|
||||
* <code>AttributeRow</code>.
|
||||
*
|
||||
* @return the index of this column
|
||||
* @see AttributeTable#getColumn(int)
|
||||
* @see AttributeRow#getValue(int)
|
||||
*/
|
||||
public int getIndex();
|
||||
|
||||
/**
|
||||
* Returns the origin of this column content, meta-data that describes where
|
||||
* the column comes from. Default value is <code>AttributeOrigin.DATA</code>.
|
||||
*
|
||||
* @return the origin of this column content
|
||||
*/
|
||||
public AttributeOrigin getOrigin();
|
||||
|
||||
/**
|
||||
* Returns the id of this column. The id is the unique identifier that describes
|
||||
* the column data.
|
||||
*
|
||||
* @return the id of this column
|
||||
*/
|
||||
public String getId();
|
||||
|
||||
/**
|
||||
* Returns the default value for this column. May be <code>null</code>.
|
||||
* <p>
|
||||
* The returned <code>Object</code> class type is equal to the class obtained
|
||||
* with <code>AttributeType.getType()</code>.
|
||||
*
|
||||
* @return the default value, or <code>null</code>
|
||||
*/
|
||||
public Object getDefaultValue();
|
||||
|
||||
/**
|
||||
* Returns the attribute value delegate provider. The Provider is always set if the origin of the
|
||||
* current attribute column is AttributeOrigin.DELEGATE.
|
||||
*
|
||||
* @return attribute value delegate provider
|
||||
*/
|
||||
public AttributeValueDelegateProvider getProvider();
|
||||
}
|
||||
+94
-94
@@ -1,94 +1,94 @@
|
||||
/*
|
||||
Copyright 2008-2010 Gephi
|
||||
Authors : Mathieu Bastian <mathieu.bastian@gephi.org>
|
||||
Website : http://www.gephi.org
|
||||
|
||||
This file is part of Gephi.
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
|
||||
Copyright 2011 Gephi Consortium. All rights reserved.
|
||||
|
||||
The contents of this file are subject to the terms of either the GNU
|
||||
General Public License Version 3 only ("GPL") or the Common
|
||||
Development and Distribution License("CDDL") (collectively, the
|
||||
"License"). You may not use this file except in compliance with the
|
||||
License. You can obtain a copy of the License at
|
||||
http://gephi.org/about/legal/license-notice/
|
||||
or /cddl-1.0.txt and /gpl-3.0.txt. See the License for the
|
||||
specific language governing permissions and limitations under the
|
||||
License. When distributing the software, include this License Header
|
||||
Notice in each file and include the License files at
|
||||
/cddl-1.0.txt and /gpl-3.0.txt. If applicable, add the following below the
|
||||
License Header, with the fields enclosed by brackets [] replaced by
|
||||
your own identifying information:
|
||||
"Portions Copyrighted [year] [name of copyright owner]"
|
||||
|
||||
If you wish your version of this file to be governed by only the CDDL
|
||||
or only the GPL Version 3, indicate your decision by adding
|
||||
"[Contributor] elects to include this software in this distribution
|
||||
under the [CDDL or GPL Version 3] license." If you do not indicate a
|
||||
single choice of license, a recipient has the option to distribute
|
||||
your version of this file under either the CDDL, the GPL Version 3 or
|
||||
to extend the choice of license to its licensees as provided above.
|
||||
However, if you add GPL Version 3 code and therefore, elected the GPL
|
||||
Version 3 license, then the option applies only if the new code is
|
||||
made subject to such option by the copyright holder.
|
||||
|
||||
Contributor(s):
|
||||
|
||||
Portions Copyrighted 2011 Gephi Consortium.
|
||||
*/
|
||||
package org.gephi.data.attributes.api;
|
||||
|
||||
/**
|
||||
* Attribute event interface, that {@link AttributeListener } receives when the
|
||||
* attribute model or any attribute row is modified.
|
||||
* <p>
|
||||
* <ul>
|
||||
* <li><b>ADD_COLUMN:</b> One or several columns have been created, look at
|
||||
* {@link AttributeEventData#getAddedColumns() } to get data.</li>
|
||||
* <li><b>REMOVE_COLUMN:</b> One or several columns have been removed, look at
|
||||
* {@link AttributeEventData#getRemovedColumns() } to get data.</li>
|
||||
* <li><b>SET_VALUE:</b> A value has been set in a row, look at*
|
||||
* {@link AttributeEventData#getTouchedValues()} to get new values and
|
||||
* {@link AttributeEventData#getTouchedObjects() } to get objects where value
|
||||
* has been modified.</li>
|
||||
* </ul>
|
||||
*
|
||||
* @author Mathieu Bastian
|
||||
*/
|
||||
public interface AttributeEvent {
|
||||
|
||||
/**
|
||||
* Attribute model events.
|
||||
* <ul>
|
||||
* <li><b>ADD_COLUMN:</b> One or several columns have been created, look at
|
||||
* {@link AttributeEventData#getAddedColumns() } to get data.</li>
|
||||
* <li><b>REMOVE_COLUMN:</b> One or several columns have been removed, look at
|
||||
* {@link AttributeEventData#getRemovedColumns() } to get data.</li>
|
||||
* <li><b>SET_VALUE:</b> A value has been set in a row, look at*
|
||||
* {@link AttributeEventData#getTouchedValues()} to get new values and
|
||||
* {@link AttributeEventData#getTouchedObjects() } to get objects where value
|
||||
* has been modified.</li>
|
||||
* </ul>
|
||||
*/
|
||||
public enum EventType {
|
||||
|
||||
ADD_COLUMN, REMOVE_COLUMN, REPLACE_COLUMN, SET_VALUE, UNSET_VALUE
|
||||
};
|
||||
|
||||
public EventType getEventType();
|
||||
|
||||
public AttributeTable getSource();
|
||||
|
||||
public AttributeEventData getData();
|
||||
|
||||
/**
|
||||
* Returns <code>true</code> if this event is one of these in parameters.
|
||||
* @param type the event types that are to be compared with this event
|
||||
* @return <code>true</code> if this event is <code>type</code>,
|
||||
* <code>false</code> otherwise
|
||||
*/
|
||||
public boolean is(EventType... type);
|
||||
}
|
||||
/*
|
||||
Copyright 2008-2010 Gephi
|
||||
Authors : Mathieu Bastian <mathieu.bastian@gephi.org>
|
||||
Website : http://www.gephi.org
|
||||
|
||||
This file is part of Gephi.
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
|
||||
Copyright 2011 Gephi Consortium. All rights reserved.
|
||||
|
||||
The contents of this file are subject to the terms of either the GNU
|
||||
General Public License Version 3 only ("GPL") or the Common
|
||||
Development and Distribution License("CDDL") (collectively, the
|
||||
"License"). You may not use this file except in compliance with the
|
||||
License. You can obtain a copy of the License at
|
||||
http://gephi.org/about/legal/license-notice/
|
||||
or /cddl-1.0.txt and /gpl-3.0.txt. See the License for the
|
||||
specific language governing permissions and limitations under the
|
||||
License. When distributing the software, include this License Header
|
||||
Notice in each file and include the License files at
|
||||
/cddl-1.0.txt and /gpl-3.0.txt. If applicable, add the following below the
|
||||
License Header, with the fields enclosed by brackets [] replaced by
|
||||
your own identifying information:
|
||||
"Portions Copyrighted [year] [name of copyright owner]"
|
||||
|
||||
If you wish your version of this file to be governed by only the CDDL
|
||||
or only the GPL Version 3, indicate your decision by adding
|
||||
"[Contributor] elects to include this software in this distribution
|
||||
under the [CDDL or GPL Version 3] license." If you do not indicate a
|
||||
single choice of license, a recipient has the option to distribute
|
||||
your version of this file under either the CDDL, the GPL Version 3 or
|
||||
to extend the choice of license to its licensees as provided above.
|
||||
However, if you add GPL Version 3 code and therefore, elected the GPL
|
||||
Version 3 license, then the option applies only if the new code is
|
||||
made subject to such option by the copyright holder.
|
||||
|
||||
Contributor(s):
|
||||
|
||||
Portions Copyrighted 2011 Gephi Consortium.
|
||||
*/
|
||||
package org.gephi.data.attributes.api;
|
||||
|
||||
/**
|
||||
* Attribute event interface, that {@link AttributeListener } receives when the
|
||||
* attribute model or any attribute row is modified.
|
||||
* <p>
|
||||
* <ul>
|
||||
* <li><b>ADD_COLUMN:</b> One or several columns have been created, look at
|
||||
* {@link AttributeEventData#getAddedColumns() } to get data.</li>
|
||||
* <li><b>REMOVE_COLUMN:</b> One or several columns have been removed, look at
|
||||
* {@link AttributeEventData#getRemovedColumns() } to get data.</li>
|
||||
* <li><b>SET_VALUE:</b> A value has been set in a row, look at*
|
||||
* {@link AttributeEventData#getTouchedValues()} to get new values and
|
||||
* {@link AttributeEventData#getTouchedObjects() } to get objects where value
|
||||
* has been modified.</li>
|
||||
* </ul>
|
||||
*
|
||||
* @author Mathieu Bastian
|
||||
*/
|
||||
public interface AttributeEvent {
|
||||
|
||||
/**
|
||||
* Attribute model events.
|
||||
* <ul>
|
||||
* <li><b>ADD_COLUMN:</b> One or several columns have been created, look at
|
||||
* {@link AttributeEventData#getAddedColumns() } to get data.</li>
|
||||
* <li><b>REMOVE_COLUMN:</b> One or several columns have been removed, look at
|
||||
* {@link AttributeEventData#getRemovedColumns() } to get data.</li>
|
||||
* <li><b>SET_VALUE:</b> A value has been set in a row, look at*
|
||||
* {@link AttributeEventData#getTouchedValues()} to get new values and
|
||||
* {@link AttributeEventData#getTouchedObjects() } to get objects where value
|
||||
* has been modified.</li>
|
||||
* </ul>
|
||||
*/
|
||||
public enum EventType {
|
||||
|
||||
ADD_COLUMN, REMOVE_COLUMN, REPLACE_COLUMN, SET_VALUE
|
||||
};
|
||||
|
||||
public EventType getEventType();
|
||||
|
||||
public AttributeTable getSource();
|
||||
|
||||
public AttributeEventData getData();
|
||||
|
||||
/**
|
||||
* Returns <code>true</code> if this event is one of these in parameters.
|
||||
* @param type the event types that are to be compared with this event
|
||||
* @return <code>true</code> if this event is <code>type</code>,
|
||||
* <code>false</code> otherwise
|
||||
*/
|
||||
public boolean is(EventType... type);
|
||||
}
|
||||
+150
-158
@@ -1,158 +1,150 @@
|
||||
/*
|
||||
Copyright 2008-2010 Gephi
|
||||
Authors : Mathieu Bastian <mathieu.bastian@gephi.org>
|
||||
Website : http://www.gephi.org
|
||||
|
||||
This file is part of Gephi.
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
|
||||
Copyright 2011 Gephi Consortium. All rights reserved.
|
||||
|
||||
The contents of this file are subject to the terms of either the GNU
|
||||
General Public License Version 3 only ("GPL") or the Common
|
||||
Development and Distribution License("CDDL") (collectively, the
|
||||
"License"). You may not use this file except in compliance with the
|
||||
License. You can obtain a copy of the License at
|
||||
http://gephi.org/about/legal/license-notice/
|
||||
or /cddl-1.0.txt and /gpl-3.0.txt. See the License for the
|
||||
specific language governing permissions and limitations under the
|
||||
License. When distributing the software, include this License Header
|
||||
Notice in each file and include the License files at
|
||||
/cddl-1.0.txt and /gpl-3.0.txt. If applicable, add the following below the
|
||||
License Header, with the fields enclosed by brackets [] replaced by
|
||||
your own identifying information:
|
||||
"Portions Copyrighted [year] [name of copyright owner]"
|
||||
|
||||
If you wish your version of this file to be governed by only the CDDL
|
||||
or only the GPL Version 3, indicate your decision by adding
|
||||
"[Contributor] elects to include this software in this distribution
|
||||
under the [CDDL or GPL Version 3] license." If you do not indicate a
|
||||
single choice of license, a recipient has the option to distribute
|
||||
your version of this file under either the CDDL, the GPL Version 3 or
|
||||
to extend the choice of license to its licensees as provided above.
|
||||
However, if you add GPL Version 3 code and therefore, elected the GPL
|
||||
Version 3 license, then the option applies only if the new code is
|
||||
made subject to such option by the copyright holder.
|
||||
|
||||
Contributor(s):
|
||||
|
||||
Portions Copyrighted 2011 Gephi Consortium.
|
||||
*/
|
||||
package org.gephi.data.attributes.api;
|
||||
|
||||
import org.gephi.project.api.Workspace;
|
||||
|
||||
/**
|
||||
* Represents the data model, like a standard database would do. As a database,
|
||||
* contains a list of tables, where columns are defined. By default, a model
|
||||
* owns a <b>node</b> and <b>edge</b> table, but more could exist, depending
|
||||
* of the model implementation.
|
||||
* <p>
|
||||
* The model also provides factories that are linked to this model. Use row
|
||||
* factory to build new rows and value factory to push new values to these
|
||||
* rows. Columns are manipulated from the <code>AttributeTable</code> class.
|
||||
*
|
||||
* @author Mathieu Bastian
|
||||
* @see AttributeController
|
||||
*/
|
||||
public interface AttributeModel {
|
||||
|
||||
/**
|
||||
* Returns the <b>node</b> table. Contains all the columns associated to
|
||||
* node elements.
|
||||
* <p>
|
||||
* An <code>AttributeModel</code> has always <b>node</b>, <b>edge</b> and
|
||||
* <b>graph</b> tables by default.
|
||||
*
|
||||
* @return the node table, contains node columns
|
||||
*/
|
||||
public AttributeTable getNodeTable();
|
||||
|
||||
/**
|
||||
* Returns the <b>edge</b> table. Contains all the columns associated to
|
||||
* edge elements.
|
||||
* <p>
|
||||
* An <code>AttributeModel</code> has always <b>node</b>, <b>edge</b> and
|
||||
* <b>graph</b> tables by default.
|
||||
*
|
||||
* @return the edge table, contains edge columns
|
||||
*/
|
||||
public AttributeTable getEdgeTable();
|
||||
|
||||
/**
|
||||
* Returns the <b>graph</b> table. Contains all the columns associated to
|
||||
* the graph.
|
||||
* <p>
|
||||
* An <code>AttributeModel</code> has always <b>node</b>, <b>edge</b> and
|
||||
* <b>graph</b> tables by default.
|
||||
*
|
||||
* @return the edge table, contains edge columns
|
||||
*/
|
||||
public AttributeTable getGraphTable();
|
||||
|
||||
/**
|
||||
* Returns the <code>AttributeTable</code> which has the given <code>name</code>
|
||||
* or <code>null</code> if this table doesn't exist.
|
||||
*
|
||||
* @param name the table's name
|
||||
* @return the table that has been found, or <code>null</code>
|
||||
*/
|
||||
public AttributeTable getTable(String name);
|
||||
|
||||
/**
|
||||
* Returns all tables this model contains. By default, only contains
|
||||
* <b>node</b> and <b>edge</b> tables.
|
||||
*
|
||||
* @return all the tables of this model
|
||||
*/
|
||||
public AttributeTable[] getTables();
|
||||
|
||||
/**
|
||||
* Return the value factory.
|
||||
*
|
||||
* @return the value factory
|
||||
*/
|
||||
public AttributeValueFactory valueFactory();
|
||||
|
||||
/**
|
||||
* Returns the row factory.
|
||||
*
|
||||
* @return the row factory
|
||||
*/
|
||||
public AttributeRowFactory rowFactory();
|
||||
|
||||
/**
|
||||
* Adds <code>listener</code> to the listeners of this table. It receives
|
||||
* events when columns are added or removed, as well as when values are set.
|
||||
* @param listener the listener that is to be added
|
||||
*/
|
||||
public void addAttributeListener(AttributeListener listener);
|
||||
|
||||
/**
|
||||
* Removes <code>listener</code> to the listeners of this table.
|
||||
* @param listener the listener that is to be removed
|
||||
*/
|
||||
public void removeAttributeListener(AttributeListener listener);
|
||||
|
||||
/**
|
||||
* Merge <code>model</code> in this model. Makes the union of tables and
|
||||
* columns of both models. Copy tables this model don't
|
||||
* have and merge existing ones. For existing tables, call
|
||||
* {@link AttributeTable#mergeTable(AttributeTable)}
|
||||
* to merge columns.
|
||||
* <p>
|
||||
* Columns are compared according to their <code>id</code> and <code>type</code>.
|
||||
* Columns found in <code>model</code> are appended only if they no column
|
||||
* exist with the same <code>id</code> and <code>type</code>.
|
||||
*
|
||||
* @param model the model that is to be merged in this model
|
||||
*/
|
||||
public void mergeModel(AttributeModel model);
|
||||
|
||||
/**
|
||||
* Returns the workspace this Attribute model belongs to.
|
||||
* @return the workspace that owns this Attribute model or null if it is independent from a Workspace
|
||||
*/
|
||||
public Workspace getWorkspace();
|
||||
}
|
||||
/*
|
||||
Copyright 2008-2010 Gephi
|
||||
Authors : Mathieu Bastian <mathieu.bastian@gephi.org>
|
||||
Website : http://www.gephi.org
|
||||
|
||||
This file is part of Gephi.
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
|
||||
Copyright 2011 Gephi Consortium. All rights reserved.
|
||||
|
||||
The contents of this file are subject to the terms of either the GNU
|
||||
General Public License Version 3 only ("GPL") or the Common
|
||||
Development and Distribution License("CDDL") (collectively, the
|
||||
"License"). You may not use this file except in compliance with the
|
||||
License. You can obtain a copy of the License at
|
||||
http://gephi.org/about/legal/license-notice/
|
||||
or /cddl-1.0.txt and /gpl-3.0.txt. See the License for the
|
||||
specific language governing permissions and limitations under the
|
||||
License. When distributing the software, include this License Header
|
||||
Notice in each file and include the License files at
|
||||
/cddl-1.0.txt and /gpl-3.0.txt. If applicable, add the following below the
|
||||
License Header, with the fields enclosed by brackets [] replaced by
|
||||
your own identifying information:
|
||||
"Portions Copyrighted [year] [name of copyright owner]"
|
||||
|
||||
If you wish your version of this file to be governed by only the CDDL
|
||||
or only the GPL Version 3, indicate your decision by adding
|
||||
"[Contributor] elects to include this software in this distribution
|
||||
under the [CDDL or GPL Version 3] license." If you do not indicate a
|
||||
single choice of license, a recipient has the option to distribute
|
||||
your version of this file under either the CDDL, the GPL Version 3 or
|
||||
to extend the choice of license to its licensees as provided above.
|
||||
However, if you add GPL Version 3 code and therefore, elected the GPL
|
||||
Version 3 license, then the option applies only if the new code is
|
||||
made subject to such option by the copyright holder.
|
||||
|
||||
Contributor(s):
|
||||
|
||||
Portions Copyrighted 2011 Gephi Consortium.
|
||||
*/
|
||||
package org.gephi.data.attributes.api;
|
||||
|
||||
/**
|
||||
* Represents the data model, like a standard database would do. As a database,
|
||||
* contains a list of tables, where columns are defined. By default, a model
|
||||
* owns a <b>node</b> and <b>edge</b> table, but more could exist, depending
|
||||
* of the model implementation.
|
||||
* <p>
|
||||
* The model also provides factories that are linked to this model. Use row
|
||||
* factory to build new rows and value factory to push new values to these
|
||||
* rows. Columns are manipulated from the <code>AttributeTable</code> class.
|
||||
*
|
||||
* @author Mathieu Bastian
|
||||
* @see AttributeController
|
||||
*/
|
||||
public interface AttributeModel {
|
||||
|
||||
/**
|
||||
* Returns the <b>node</b> table. Contains all the columns associated to
|
||||
* node elements.
|
||||
* <p>
|
||||
* An <code>AttributeModel</code> has always <b>node</b>, <b>edge</b> and
|
||||
* <b>graph</b> tables by default.
|
||||
*
|
||||
* @return the node table, contains node columns
|
||||
*/
|
||||
public AttributeTable getNodeTable();
|
||||
|
||||
/**
|
||||
* Returns the <b>edge</b> table. Contains all the columns associated to
|
||||
* edge elements.
|
||||
* <p>
|
||||
* An <code>AttributeModel</code> has always <b>node</b>, <b>edge</b> and
|
||||
* <b>graph</b> tables by default.
|
||||
*
|
||||
* @return the edge table, contains edge columns
|
||||
*/
|
||||
public AttributeTable getEdgeTable();
|
||||
|
||||
/**
|
||||
* Returns the <b>graph</b> table. Contains all the columns associated to
|
||||
* the graph.
|
||||
* <p>
|
||||
* An <code>AttributeModel</code> has always <b>node</b>, <b>edge</b> and
|
||||
* <b>graph</b> tables by default.
|
||||
*
|
||||
* @return the edge table, contains edge columns
|
||||
*/
|
||||
public AttributeTable getGraphTable();
|
||||
|
||||
/**
|
||||
* Returns the <code>AttributeTable</code> which has the given <code>name</code>
|
||||
* or <code>null</code> if this table doesn't exist.
|
||||
*
|
||||
* @param name the table's name
|
||||
* @return the table that has been found, or <code>null</code>
|
||||
*/
|
||||
public AttributeTable getTable(String name);
|
||||
|
||||
/**
|
||||
* Returns all tables this model contains. By default, only contains
|
||||
* <b>node</b> and <b>edge</b> tables.
|
||||
*
|
||||
* @return all the tables of this model
|
||||
*/
|
||||
public AttributeTable[] getTables();
|
||||
|
||||
/**
|
||||
* Return the value factory.
|
||||
*
|
||||
* @return the value factory
|
||||
*/
|
||||
public AttributeValueFactory valueFactory();
|
||||
|
||||
/**
|
||||
* Returns the row factory.
|
||||
*
|
||||
* @return the row factory
|
||||
*/
|
||||
public AttributeRowFactory rowFactory();
|
||||
|
||||
/**
|
||||
* Adds <code>listener</code> to the listeners of this table. It receives
|
||||
* events when columns are added or removed, as well as when values are set.
|
||||
* @param listener the listener that is to be added
|
||||
*/
|
||||
public void addAttributeListener(AttributeListener listener);
|
||||
|
||||
/**
|
||||
* Removes <code>listener</code> to the listeners of this table.
|
||||
* @param listener the listener that is to be removed
|
||||
*/
|
||||
public void removeAttributeListener(AttributeListener listener);
|
||||
|
||||
/**
|
||||
* Merge <code>model</code> in this model. Makes the union of tables and
|
||||
* columns of both models. Copy tables this model don't
|
||||
* have and merge existing ones. For existing tables, call
|
||||
* {@link AttributeTable#mergeTable(AttributeTable)}
|
||||
* to merge columns.
|
||||
* <p>
|
||||
* Columns are compared according to their <code>id</code> and <code>type</code>.
|
||||
* Columns found in <code>model</code> are appended only if they no column
|
||||
* exist with the same <code>id</code> and <code>type</code>.
|
||||
*
|
||||
* @param model the model that is to be merged in this model
|
||||
*/
|
||||
public void mergeModel(AttributeModel model);
|
||||
}
|
||||
@@ -0,0 +1,602 @@
|
||||
/*
|
||||
Copyright 2008-2010 Gephi
|
||||
Authors : Mathieu Bastian <mathieu.bastian@gephi.org>, Martin Škurla, Cezary Bartosiak
|
||||
Website : http://www.gephi.org
|
||||
|
||||
This file is part of Gephi.
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
|
||||
Copyright 2011 Gephi Consortium. All rights reserved.
|
||||
|
||||
The contents of this file are subject to the terms of either the GNU
|
||||
General Public License Version 3 only ("GPL") or the Common
|
||||
Development and Distribution License("CDDL") (collectively, the
|
||||
"License"). You may not use this file except in compliance with the
|
||||
License. You can obtain a copy of the License at
|
||||
http://gephi.org/about/legal/license-notice/
|
||||
or /cddl-1.0.txt and /gpl-3.0.txt. See the License for the
|
||||
specific language governing permissions and limitations under the
|
||||
License. When distributing the software, include this License Header
|
||||
Notice in each file and include the License files at
|
||||
/cddl-1.0.txt and /gpl-3.0.txt. If applicable, add the following below the
|
||||
License Header, with the fields enclosed by brackets [] replaced by
|
||||
your own identifying information:
|
||||
"Portions Copyrighted [year] [name of copyright owner]"
|
||||
|
||||
If you wish your version of this file to be governed by only the CDDL
|
||||
or only the GPL Version 3, indicate your decision by adding
|
||||
"[Contributor] elects to include this software in this distribution
|
||||
under the [CDDL or GPL Version 3] license." If you do not indicate a
|
||||
single choice of license, a recipient has the option to distribute
|
||||
your version of this file under either the CDDL, the GPL Version 3 or
|
||||
to extend the choice of license to its licensees as provided above.
|
||||
However, if you add GPL Version 3 code and therefore, elected the GPL
|
||||
Version 3 license, then the option applies only if the new code is
|
||||
made subject to such option by the copyright holder.
|
||||
|
||||
Contributor(s):
|
||||
|
||||
Portions Copyrighted 2011 Gephi Consortium.
|
||||
*/
|
||||
package org.gephi.data.attributes.api;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.regex.Pattern;
|
||||
import javax.xml.datatype.DatatypeConfigurationException;
|
||||
import javax.xml.datatype.DatatypeFactory;
|
||||
import org.gephi.data.attributes.type.*;
|
||||
import org.openide.util.Exceptions;
|
||||
|
||||
/**
|
||||
* The different type an {@link AttributeColumn} can have.
|
||||
*
|
||||
* @author Mathieu Bastian
|
||||
* @author Martin Škurla
|
||||
* @author Cezary Bartosiak
|
||||
*/
|
||||
public enum AttributeType {
|
||||
|
||||
BYTE(Byte.class),
|
||||
SHORT(Short.class),
|
||||
INT(Integer.class),
|
||||
LONG(Long.class),
|
||||
FLOAT(Float.class),
|
||||
DOUBLE(Double.class),
|
||||
BOOLEAN(Boolean.class),
|
||||
CHAR(Character.class),
|
||||
STRING(String.class),
|
||||
BIGINTEGER(BigInteger.class),
|
||||
BIGDECIMAL(BigDecimal.class),
|
||||
DYNAMIC_BYTE(DynamicByte.class),
|
||||
DYNAMIC_SHORT(DynamicShort.class),
|
||||
DYNAMIC_INT(DynamicInteger.class),
|
||||
DYNAMIC_LONG(DynamicLong.class),
|
||||
DYNAMIC_FLOAT(DynamicFloat.class),
|
||||
DYNAMIC_DOUBLE(DynamicDouble.class),
|
||||
DYNAMIC_BOOLEAN(DynamicBoolean.class),
|
||||
DYNAMIC_CHAR(DynamicCharacter.class),
|
||||
DYNAMIC_STRING(DynamicString.class),
|
||||
DYNAMIC_BIGINTEGER(DynamicBigInteger.class),
|
||||
DYNAMIC_BIGDECIMAL(DynamicBigDecimal.class),
|
||||
TIME_INTERVAL(TimeInterval.class),
|
||||
LIST_BYTE(ByteList.class),
|
||||
LIST_SHORT(ShortList.class),
|
||||
LIST_INTEGER(IntegerList.class),
|
||||
LIST_LONG(LongList.class),
|
||||
LIST_FLOAT(FloatList.class),
|
||||
LIST_DOUBLE(DoubleList.class),
|
||||
LIST_BOOLEAN(BooleanList.class),
|
||||
LIST_CHARACTER(CharacterList.class),
|
||||
LIST_STRING(StringList.class),
|
||||
LIST_BIGINTEGER(BigIntegerList.class),
|
||||
LIST_BIGDECIMAL(BigDecimalList.class);
|
||||
private final Class type;
|
||||
|
||||
AttributeType(Class type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return type.getSimpleName();
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the enum constant.
|
||||
*
|
||||
* @return the name of the enum constant
|
||||
*/
|
||||
public String getTypeString() {
|
||||
return super.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the
|
||||
* <code>Class</code> the type is associated with.
|
||||
*
|
||||
* @return the
|
||||
* <code>class</code> the type is associated with
|
||||
*/
|
||||
public Class getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Try to parse the given
|
||||
* <code>str</code> snippet in an object of the type associated to this
|
||||
* <code>AttributeType</code>. For instance if the type is <b>Boolean</b>, and
|
||||
* <code>str</code> equals
|
||||
* <code>true</code>, this method will succeed to return a
|
||||
* <code>Boolean</code> instance. May throw
|
||||
* <code>NumberFormatException</code>.
|
||||
*
|
||||
* <code>DYNAMIC</code> types and
|
||||
* <code>TIME_INTERVAL</code> cannot be parsed with this method (see
|
||||
* <code>isDynamicType</code> method) and a UnsupportedOperationException will be thrown if it is tried.
|
||||
*
|
||||
* @param str the string that is to be parsed
|
||||
* @return an instance of the type of this or null if not able to parse given string as the type
|
||||
* <code>AttributeType</code>.
|
||||
*/
|
||||
public Object parse(String str) {
|
||||
switch (this) {
|
||||
case BYTE:
|
||||
return new Byte(removeDecimalDigitsFromString(str));
|
||||
case SHORT:
|
||||
return new Short(removeDecimalDigitsFromString(str));
|
||||
case INT:
|
||||
return new Integer(removeDecimalDigitsFromString(str));
|
||||
case LONG:
|
||||
return new Long(removeDecimalDigitsFromString(str));
|
||||
case FLOAT:
|
||||
return new Float(str);
|
||||
case DOUBLE:
|
||||
return new Double(str);
|
||||
case BOOLEAN:
|
||||
return new Boolean(str);
|
||||
case CHAR:
|
||||
return new Character(str.charAt(0));
|
||||
case BIGINTEGER:
|
||||
return new BigInteger(removeDecimalDigitsFromString(str));
|
||||
case BIGDECIMAL:
|
||||
return new BigDecimal(str);
|
||||
case DYNAMIC_BYTE:
|
||||
case DYNAMIC_SHORT:
|
||||
case DYNAMIC_INT:
|
||||
case DYNAMIC_LONG:
|
||||
case DYNAMIC_FLOAT:
|
||||
case DYNAMIC_DOUBLE:
|
||||
case DYNAMIC_BOOLEAN:
|
||||
case DYNAMIC_CHAR:
|
||||
case DYNAMIC_STRING:
|
||||
case DYNAMIC_BIGINTEGER:
|
||||
case DYNAMIC_BIGDECIMAL:
|
||||
case TIME_INTERVAL:
|
||||
return parseDynamic(str);
|
||||
case LIST_BYTE:
|
||||
return new ByteList(removeDecimalDigitsFromString(str));
|
||||
case LIST_SHORT:
|
||||
return new ShortList(removeDecimalDigitsFromString(str));
|
||||
case LIST_INTEGER:
|
||||
return new IntegerList(removeDecimalDigitsFromString(str));
|
||||
case LIST_LONG:
|
||||
return new LongList(removeDecimalDigitsFromString(str));
|
||||
case LIST_FLOAT:
|
||||
return new FloatList(str);
|
||||
case LIST_DOUBLE:
|
||||
return new DoubleList(str);
|
||||
case LIST_BOOLEAN:
|
||||
return new BooleanList(str);
|
||||
case LIST_CHARACTER:
|
||||
return new CharacterList(str);
|
||||
case LIST_STRING:
|
||||
return new StringList(str);
|
||||
case LIST_BIGINTEGER:
|
||||
return new BigIntegerList(removeDecimalDigitsFromString(str));
|
||||
case LIST_BIGDECIMAL:
|
||||
return new BigDecimalList(str);
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
private Object parseDynamic(String str) {
|
||||
if (str.equals("<empty>")) {
|
||||
return createDynamicObject(null);
|
||||
}
|
||||
|
||||
if (str.startsWith("<")) {
|
||||
str = str.substring(1);
|
||||
}
|
||||
if (str.endsWith(">")) {
|
||||
str = str.substring(0, str.length() - 1);
|
||||
}
|
||||
String[] intervals = str.split("; *");
|
||||
|
||||
List<Interval> in = new ArrayList<Interval>();
|
||||
|
||||
for (String interval : intervals) {
|
||||
boolean lopen = interval.startsWith("(");
|
||||
boolean ropen = interval.endsWith(")");
|
||||
|
||||
interval = interval.substring(1, interval.length() - 1);
|
||||
String[] parts = interval.split(", *", 3);
|
||||
double low, high;
|
||||
try {
|
||||
//Try first to parse as a single double:
|
||||
low = Double.parseDouble(parts[0]);
|
||||
} catch (Exception ex) {
|
||||
try {
|
||||
low = getDoubleFromXMLDateString(parts[0]);
|
||||
} catch (ParseException ex1) {
|
||||
return null;//Can't parse as number or date
|
||||
}
|
||||
}
|
||||
try {
|
||||
//Try first to parse as a single double:
|
||||
high = Double.parseDouble(parts[1]);
|
||||
} catch (Exception ex) {
|
||||
try {
|
||||
high = getDoubleFromXMLDateString(parts[1]);
|
||||
} catch (ParseException ex1) {
|
||||
return null;//Can't parse as number or date
|
||||
}
|
||||
}
|
||||
Object value = null;
|
||||
switch (this) {
|
||||
case DYNAMIC_BYTE:
|
||||
value = new Byte(removeDecimalDigitsFromString(parts[2]));
|
||||
break;
|
||||
case DYNAMIC_SHORT:
|
||||
value = new Short(removeDecimalDigitsFromString(parts[2]));
|
||||
break;
|
||||
case DYNAMIC_INT:
|
||||
value = new Integer(removeDecimalDigitsFromString(parts[2]));
|
||||
break;
|
||||
case DYNAMIC_LONG:
|
||||
value = new Long(removeDecimalDigitsFromString(parts[2]));
|
||||
break;
|
||||
case DYNAMIC_FLOAT:
|
||||
value = new Float(parts[2]);
|
||||
break;
|
||||
case DYNAMIC_DOUBLE:
|
||||
value = new Double(parts[2]);
|
||||
break;
|
||||
case DYNAMIC_BOOLEAN:
|
||||
value = new Boolean(parts[2]);
|
||||
break;
|
||||
case DYNAMIC_CHAR:
|
||||
value = new Character(parts[2].charAt(0));
|
||||
break;
|
||||
case DYNAMIC_STRING:
|
||||
value = parts[2];
|
||||
break;
|
||||
case DYNAMIC_BIGINTEGER:
|
||||
value = new BigInteger(removeDecimalDigitsFromString(parts[2]));
|
||||
break;
|
||||
case DYNAMIC_BIGDECIMAL:
|
||||
value = new BigDecimal(parts[2]);
|
||||
break;
|
||||
case TIME_INTERVAL:
|
||||
default:
|
||||
value = null;
|
||||
break;
|
||||
}
|
||||
|
||||
in.add(new Interval(low, high, lopen, ropen, value));
|
||||
}
|
||||
|
||||
return createDynamicObject(in);
|
||||
}
|
||||
|
||||
private DynamicType createDynamicObject(List<Interval> in) {
|
||||
if (!this.isDynamicType()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
switch (this) {
|
||||
case DYNAMIC_BYTE: {
|
||||
ArrayList<Interval<Byte>> lin = null;
|
||||
if (in != null) {
|
||||
lin = new ArrayList<Interval<Byte>>();
|
||||
for (Interval interval : in) {
|
||||
lin.add(new Interval<Byte>(interval.getLow(), interval.getHigh(),
|
||||
interval.isLowExcluded(), interval.isHighExcluded(), (Byte) interval.getValue()));
|
||||
}
|
||||
}
|
||||
return new DynamicByte(lin);
|
||||
}
|
||||
case DYNAMIC_SHORT: {
|
||||
ArrayList<Interval<Short>> lin = null;
|
||||
if (in != null) {
|
||||
lin = new ArrayList<Interval<Short>>();
|
||||
for (Interval interval : in) {
|
||||
lin.add(new Interval<Short>(interval.getLow(), interval.getHigh(),
|
||||
interval.isLowExcluded(), interval.isHighExcluded(), (Short) interval.getValue()));
|
||||
}
|
||||
}
|
||||
return new DynamicShort(lin);
|
||||
}
|
||||
case DYNAMIC_INT: {
|
||||
ArrayList<Interval<Integer>> lin = null;
|
||||
if (in != null) {
|
||||
lin = new ArrayList<Interval<Integer>>();
|
||||
for (Interval interval : in) {
|
||||
lin.add(new Interval<Integer>(interval.getLow(), interval.getHigh(),
|
||||
interval.isLowExcluded(), interval.isHighExcluded(), (Integer) interval.getValue()));
|
||||
}
|
||||
}
|
||||
return new DynamicInteger(lin);
|
||||
}
|
||||
case DYNAMIC_LONG: {
|
||||
ArrayList<Interval<Long>> lin = null;
|
||||
if (in != null) {
|
||||
lin = new ArrayList<Interval<Long>>();
|
||||
for (Interval interval : in) {
|
||||
lin.add(new Interval<Long>(interval.getLow(), interval.getHigh(),
|
||||
interval.isLowExcluded(), interval.isHighExcluded(), (Long) interval.getValue()));
|
||||
}
|
||||
}
|
||||
return new DynamicLong(lin);
|
||||
}
|
||||
case DYNAMIC_FLOAT: {
|
||||
ArrayList<Interval<Float>> lin = null;
|
||||
if (in != null) {
|
||||
lin = new ArrayList<Interval<Float>>();
|
||||
for (Interval interval : in) {
|
||||
lin.add(new Interval<Float>(interval.getLow(), interval.getHigh(),
|
||||
interval.isLowExcluded(), interval.isHighExcluded(), (Float) interval.getValue()));
|
||||
}
|
||||
}
|
||||
return new DynamicFloat(lin);
|
||||
}
|
||||
case DYNAMIC_DOUBLE: {
|
||||
ArrayList<Interval<Double>> lin = null;
|
||||
if (in != null) {
|
||||
lin = new ArrayList<Interval<Double>>();
|
||||
for (Interval interval : in) {
|
||||
lin.add(new Interval<Double>(interval.getLow(), interval.getHigh(),
|
||||
interval.isLowExcluded(), interval.isHighExcluded(), (Double) interval.getValue()));
|
||||
}
|
||||
}
|
||||
return new DynamicDouble(lin);
|
||||
}
|
||||
case DYNAMIC_BOOLEAN: {
|
||||
ArrayList<Interval<Boolean>> lin = null;
|
||||
if (in != null) {
|
||||
lin = new ArrayList<Interval<Boolean>>();
|
||||
for (Interval interval : in) {
|
||||
lin.add(new Interval<Boolean>(interval.getLow(), interval.getHigh(),
|
||||
interval.isLowExcluded(), interval.isHighExcluded(), (Boolean) interval.getValue()));
|
||||
}
|
||||
}
|
||||
return new DynamicBoolean(lin);
|
||||
}
|
||||
case DYNAMIC_CHAR: {
|
||||
ArrayList<Interval<Character>> lin = null;
|
||||
if (in != null) {
|
||||
lin = new ArrayList<Interval<Character>>();
|
||||
for (Interval interval : in) {
|
||||
lin.add(new Interval<Character>(interval.getLow(), interval.getHigh(),
|
||||
interval.isLowExcluded(), interval.isHighExcluded(), (Character) interval.getValue()));
|
||||
}
|
||||
}
|
||||
return new DynamicCharacter(lin);
|
||||
}
|
||||
case DYNAMIC_STRING: {
|
||||
ArrayList<Interval<String>> lin = null;
|
||||
if (in != null) {
|
||||
lin = new ArrayList<Interval<String>>();
|
||||
for (Interval interval : in) {
|
||||
lin.add(new Interval<String>(interval.getLow(), interval.getHigh(),
|
||||
interval.isLowExcluded(), interval.isHighExcluded(), (String) interval.getValue()));
|
||||
}
|
||||
}
|
||||
return new DynamicString(lin);
|
||||
}
|
||||
case DYNAMIC_BIGINTEGER: {
|
||||
ArrayList<Interval<BigInteger>> lin = null;
|
||||
if (in != null) {
|
||||
lin = new ArrayList<Interval<BigInteger>>();
|
||||
for (Interval interval : in) {
|
||||
lin.add(new Interval<BigInteger>(interval.getLow(), interval.getHigh(),
|
||||
interval.isLowExcluded(), interval.isHighExcluded(), (BigInteger) interval.getValue()));
|
||||
}
|
||||
}
|
||||
return new DynamicBigInteger(lin);
|
||||
}
|
||||
case DYNAMIC_BIGDECIMAL: {
|
||||
ArrayList<Interval<BigDecimal>> lin = null;
|
||||
if (in != null) {
|
||||
lin = new ArrayList<Interval<BigDecimal>>();
|
||||
for (Interval interval : in) {
|
||||
lin.add(new Interval<BigDecimal>(interval.getLow(), interval.getHigh(),
|
||||
interval.isLowExcluded(), interval.isHighExcluded(), (BigDecimal) interval.getValue()));
|
||||
}
|
||||
}
|
||||
return new DynamicBigDecimal(lin);
|
||||
}
|
||||
case TIME_INTERVAL: {
|
||||
ArrayList<Interval> lin = null;
|
||||
if (in != null) {
|
||||
lin = new ArrayList<Interval>();
|
||||
for (Interval interval : in) {
|
||||
lin.add(new Interval(interval.getLow(), interval.getHigh(),
|
||||
interval.isLowExcluded(), interval.isHighExcluded()));
|
||||
}
|
||||
}
|
||||
return new TimeInterval(lin);
|
||||
}
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build an
|
||||
* <code>AttributeType</code> from the given
|
||||
* <code>obj</code> type. If the given
|
||||
* <code>obj</code> class match with an
|
||||
* <code>AttributeType</code> type, returns this type. Returns
|
||||
* <code>null</code> otherwise. <p> For instance if <b>obj instanceof Float</b> equals <b>true</b>, returns
|
||||
* <code>AttributeType.FLOAT</code>.
|
||||
*
|
||||
* @param obj the object that is to be parsed
|
||||
* @return the compatible
|
||||
* <code>AttributeType</code>, or
|
||||
* <code>null</code> if no type is found or the input object is null
|
||||
*/
|
||||
public static AttributeType parse(Object obj) {
|
||||
if (obj == null) {
|
||||
return null;
|
||||
}
|
||||
Class<?> c = obj.getClass();
|
||||
|
||||
for (AttributeType attributeType : AttributeType.values()) {
|
||||
if (c.equals(attributeType.getType())) {
|
||||
return attributeType;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build an dynamic
|
||||
* <code>AttributeType</code> from the given
|
||||
* <code>obj</code> type. If the given
|
||||
* <code>obj</code> class match with an
|
||||
* <code>AttributeType</code> type, returns this type. Returns
|
||||
* <code>null</code> otherwise. <p> For instance if <b>obj instanceof Float</b> equals <b>true</b>, returns
|
||||
* <code>AttributeType.DYNAMIC_FLOAT</code>.
|
||||
*
|
||||
* @param obj the object that is to be parsed
|
||||
* @return the compatible
|
||||
* <code>AttributeType</code>, or
|
||||
* <code>null</code>
|
||||
*/
|
||||
public static AttributeType parseDynamic(Object obj) {
|
||||
if (obj == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Class<?> c = obj.getClass();
|
||||
|
||||
if (c.equals(Byte.class)) {
|
||||
return DYNAMIC_BYTE;
|
||||
}
|
||||
if (c.equals(Short.class)) {
|
||||
return DYNAMIC_SHORT;
|
||||
}
|
||||
if (c.equals(Integer.class)) {
|
||||
return DYNAMIC_INT;
|
||||
}
|
||||
if (c.equals(Long.class)) {
|
||||
return DYNAMIC_LONG;
|
||||
}
|
||||
if (c.equals(Float.class)) {
|
||||
return DYNAMIC_FLOAT;
|
||||
}
|
||||
if (c.equals(Double.class)) {
|
||||
return DYNAMIC_DOUBLE;
|
||||
}
|
||||
if (c.equals(Boolean.class)) {
|
||||
return DYNAMIC_BOOLEAN;
|
||||
}
|
||||
if (c.equals(Character.class)) {
|
||||
return DYNAMIC_CHAR;
|
||||
}
|
||||
if (c.equals(String.class)) {
|
||||
return DYNAMIC_STRING;
|
||||
}
|
||||
if (c.equals(BigInteger.class)) {
|
||||
return DYNAMIC_BIGINTEGER;
|
||||
}
|
||||
if (c.equals(BigDecimal.class)) {
|
||||
return DYNAMIC_BIGDECIMAL;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if this type is a {@code DynamicType}.
|
||||
*
|
||||
* @return {@code true} if this is a {@code DynamicType}, {@code false} otherwise
|
||||
*/
|
||||
public boolean isDynamicType() {
|
||||
switch (this) {
|
||||
case DYNAMIC_BYTE:
|
||||
case DYNAMIC_SHORT:
|
||||
case DYNAMIC_INT:
|
||||
case DYNAMIC_LONG:
|
||||
case DYNAMIC_FLOAT:
|
||||
case DYNAMIC_DOUBLE:
|
||||
case DYNAMIC_BOOLEAN:
|
||||
case DYNAMIC_CHAR:
|
||||
case DYNAMIC_STRING:
|
||||
case DYNAMIC_BIGINTEGER:
|
||||
case DYNAMIC_BIGDECIMAL:
|
||||
case TIME_INTERVAL:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isListType() {
|
||||
if (this.equals(LIST_BIGDECIMAL)
|
||||
|| this.equals(LIST_BIGINTEGER)
|
||||
|| this.equals(LIST_BOOLEAN)
|
||||
|| this.equals(LIST_BYTE)
|
||||
|| this.equals(LIST_CHARACTER)
|
||||
|| this.equals(LIST_DOUBLE)
|
||||
|| this.equals(LIST_FLOAT)
|
||||
|| this.equals(LIST_INTEGER)
|
||||
|| this.equals(LIST_LONG)
|
||||
|| this.equals(LIST_SHORT)
|
||||
|| this.equals(LIST_STRING)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes the decimal digits and point of the numbers of string when necessary. Used for trying to parse decimal numbers as not decimal. For example BigDecimal to BigInteger.
|
||||
*
|
||||
* @param s String to remove decimal digits
|
||||
* @return String without dot and decimal digits.
|
||||
*/
|
||||
private String removeDecimalDigitsFromString(String s) {
|
||||
return removeDecimalDigitsFromStringPattern.matcher(s).replaceAll("");
|
||||
}
|
||||
private static final Pattern removeDecimalDigitsFromStringPattern = Pattern.compile("\\.[0-9]*");
|
||||
//For trying date parsing:
|
||||
private static final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
private static DatatypeFactory dateFactory;
|
||||
|
||||
static {
|
||||
try {
|
||||
dateFactory = DatatypeFactory.newInstance();
|
||||
} catch (DatatypeConfigurationException ex) {
|
||||
}
|
||||
}
|
||||
|
||||
//Throws exception when a date can't be parsed
|
||||
public static double getDoubleFromXMLDateString(String str) throws ParseException {
|
||||
try {
|
||||
return dateFactory.newXMLGregorianCalendar(str.length() > 23 ? str.substring(0, 23) : str).
|
||||
toGregorianCalendar().getTimeInMillis();
|
||||
} catch (IllegalArgumentException ex) {
|
||||
//Try simple format
|
||||
Date date = dateFormat.parse(str);
|
||||
return date.getTime();
|
||||
}
|
||||
}
|
||||
}
|
||||
+132
-134
@@ -1,134 +1,132 @@
|
||||
/*
|
||||
Copyright 2008-2010 Gephi
|
||||
Authors : Mathieu Bastian <mathieu.bastian@gephi.org>, Martin Škurla
|
||||
Website : http://www.gephi.org
|
||||
|
||||
This file is part of Gephi.
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
|
||||
Copyright 2011 Gephi Consortium. All rights reserved.
|
||||
|
||||
The contents of this file are subject to the terms of either the GNU
|
||||
General Public License Version 3 only ("GPL") or the Common
|
||||
Development and Distribution License("CDDL") (collectively, the
|
||||
"License"). You may not use this file except in compliance with the
|
||||
License. You can obtain a copy of the License at
|
||||
http://gephi.org/about/legal/license-notice/
|
||||
or /cddl-1.0.txt and /gpl-3.0.txt. See the License for the
|
||||
specific language governing permissions and limitations under the
|
||||
License. When distributing the software, include this License Header
|
||||
Notice in each file and include the License files at
|
||||
/cddl-1.0.txt and /gpl-3.0.txt. If applicable, add the following below the
|
||||
License Header, with the fields enclosed by brackets [] replaced by
|
||||
your own identifying information:
|
||||
"Portions Copyrighted [year] [name of copyright owner]"
|
||||
|
||||
If you wish your version of this file to be governed by only the CDDL
|
||||
or only the GPL Version 3, indicate your decision by adding
|
||||
"[Contributor] elects to include this software in this distribution
|
||||
under the [CDDL or GPL Version 3] license." If you do not indicate a
|
||||
single choice of license, a recipient has the option to distribute
|
||||
your version of this file under either the CDDL, the GPL Version 3 or
|
||||
to extend the choice of license to its licensees as provided above.
|
||||
However, if you add GPL Version 3 code and therefore, elected the GPL
|
||||
Version 3 license, then the option applies only if the new code is
|
||||
made subject to such option by the copyright holder.
|
||||
|
||||
Contributor(s):
|
||||
|
||||
Portions Copyrighted 2011 Gephi Consortium.
|
||||
*/
|
||||
package org.gephi.data.attributes.api;
|
||||
|
||||
import java.util.GregorianCalendar;
|
||||
import javax.xml.datatype.DatatypeConfigurationException;
|
||||
import javax.xml.datatype.DatatypeFactory;
|
||||
import org.openide.util.Lookup;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Mathieu Bastian
|
||||
* @author Martin Škurla
|
||||
*/
|
||||
public abstract class AttributeUtils {
|
||||
|
||||
private static DatatypeFactory dateFactory;
|
||||
|
||||
static {
|
||||
try {
|
||||
dateFactory = DatatypeFactory.newInstance();
|
||||
} catch (DatatypeConfigurationException ex) {
|
||||
}
|
||||
}
|
||||
|
||||
public abstract boolean isNodeColumn(AttributeColumn column);
|
||||
|
||||
public abstract boolean isEdgeColumn(AttributeColumn column);
|
||||
|
||||
public abstract boolean isGraphColumn(AttributeColumn column);
|
||||
|
||||
public abstract boolean isColumnOfType(AttributeColumn column, AttributeType type);
|
||||
|
||||
public abstract boolean areAllColumnsOfType(AttributeColumn[] columns, AttributeType type);
|
||||
|
||||
public abstract boolean areAllColumnsOfSameType(AttributeColumn[] columns);
|
||||
|
||||
public abstract boolean isStringColumn(AttributeColumn column);
|
||||
|
||||
public abstract boolean areAllStringColumns(AttributeColumn[] columns);
|
||||
|
||||
public abstract boolean isNumberColumn(AttributeColumn column);
|
||||
|
||||
public abstract boolean areAllNumberColumns(AttributeColumn[] columns);
|
||||
|
||||
public abstract boolean isNumberListColumn(AttributeColumn column);
|
||||
|
||||
public abstract boolean areAllNumberListColumns(AttributeColumn[] columns);
|
||||
|
||||
public abstract boolean isNumberOrNumberListColumn(AttributeColumn column);
|
||||
|
||||
public abstract boolean areAllNumberOrNumberListColumns(AttributeColumn[] columns);
|
||||
|
||||
public abstract boolean isDynamicNumberColumn(AttributeColumn column);
|
||||
|
||||
public abstract boolean areAllDynamicNumberColumns(AttributeColumn[] columns);
|
||||
|
||||
public abstract AttributeColumn[] getNumberColumns(AttributeTable table);
|
||||
|
||||
public abstract AttributeColumn[] getStringColumns(AttributeTable table);
|
||||
|
||||
public abstract AttributeColumn[] getAllCollums(AttributeModel model);
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public abstract Comparable getMin(AttributeColumn column, Comparable[] values);
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public abstract Comparable getMax(AttributeColumn column, Comparable[] values);
|
||||
|
||||
public static synchronized AttributeUtils getDefault() {
|
||||
return Lookup.getDefault().lookup(AttributeUtils.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Used for attributes representation.
|
||||
*
|
||||
* @param d a double to convert from
|
||||
*
|
||||
* @return an XML date string.
|
||||
*
|
||||
* @throws IllegalArgumentException if {@code d} is infinite.
|
||||
*/
|
||||
public static String getXMLDateStringFromDouble(double d) {
|
||||
if (d == Double.NEGATIVE_INFINITY) {
|
||||
return "-Infinity";
|
||||
} else if (d == Double.POSITIVE_INFINITY) {
|
||||
return "Infinity";
|
||||
}
|
||||
GregorianCalendar gc = new GregorianCalendar();
|
||||
gc.setTimeInMillis((long) d);
|
||||
String s = dateFactory.newXMLGregorianCalendar(gc).toXMLFormat().substring(0, 23);
|
||||
s = s.endsWith("T00:00:00.000") ? s.substring(0, 10) : s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/*
|
||||
Copyright 2008-2010 Gephi
|
||||
Authors : Mathieu Bastian <mathieu.bastian@gephi.org>, Martin Škurla
|
||||
Website : http://www.gephi.org
|
||||
|
||||
This file is part of Gephi.
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
|
||||
Copyright 2011 Gephi Consortium. All rights reserved.
|
||||
|
||||
The contents of this file are subject to the terms of either the GNU
|
||||
General Public License Version 3 only ("GPL") or the Common
|
||||
Development and Distribution License("CDDL") (collectively, the
|
||||
"License"). You may not use this file except in compliance with the
|
||||
License. You can obtain a copy of the License at
|
||||
http://gephi.org/about/legal/license-notice/
|
||||
or /cddl-1.0.txt and /gpl-3.0.txt. See the License for the
|
||||
specific language governing permissions and limitations under the
|
||||
License. When distributing the software, include this License Header
|
||||
Notice in each file and include the License files at
|
||||
/cddl-1.0.txt and /gpl-3.0.txt. If applicable, add the following below the
|
||||
License Header, with the fields enclosed by brackets [] replaced by
|
||||
your own identifying information:
|
||||
"Portions Copyrighted [year] [name of copyright owner]"
|
||||
|
||||
If you wish your version of this file to be governed by only the CDDL
|
||||
or only the GPL Version 3, indicate your decision by adding
|
||||
"[Contributor] elects to include this software in this distribution
|
||||
under the [CDDL or GPL Version 3] license." If you do not indicate a
|
||||
single choice of license, a recipient has the option to distribute
|
||||
your version of this file under either the CDDL, the GPL Version 3 or
|
||||
to extend the choice of license to its licensees as provided above.
|
||||
However, if you add GPL Version 3 code and therefore, elected the GPL
|
||||
Version 3 license, then the option applies only if the new code is
|
||||
made subject to such option by the copyright holder.
|
||||
|
||||
Contributor(s):
|
||||
|
||||
Portions Copyrighted 2011 Gephi Consortium.
|
||||
*/
|
||||
package org.gephi.data.attributes.api;
|
||||
|
||||
import java.util.GregorianCalendar;
|
||||
import javax.xml.datatype.DatatypeConfigurationException;
|
||||
import javax.xml.datatype.DatatypeFactory;
|
||||
import org.openide.util.Lookup;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Mathieu Bastian
|
||||
* @author Martin Škurla
|
||||
*/
|
||||
public abstract class AttributeUtils {
|
||||
|
||||
private static DatatypeFactory dateFactory;
|
||||
|
||||
static {
|
||||
try {
|
||||
dateFactory = DatatypeFactory.newInstance();
|
||||
} catch (DatatypeConfigurationException ex) {
|
||||
}
|
||||
}
|
||||
|
||||
public abstract boolean isNodeColumn(AttributeColumn column);
|
||||
|
||||
public abstract boolean isEdgeColumn(AttributeColumn column);
|
||||
|
||||
public abstract boolean isColumnOfType(AttributeColumn column, AttributeType type);
|
||||
|
||||
public abstract boolean areAllColumnsOfType(AttributeColumn[] columns, AttributeType type);
|
||||
|
||||
public abstract boolean areAllColumnsOfSameType(AttributeColumn[] columns);
|
||||
|
||||
public abstract boolean isStringColumn(AttributeColumn column);
|
||||
|
||||
public abstract boolean areAllStringColumns(AttributeColumn[] columns);
|
||||
|
||||
public abstract boolean isNumberColumn(AttributeColumn column);
|
||||
|
||||
public abstract boolean areAllNumberColumns(AttributeColumn[] columns);
|
||||
|
||||
public abstract boolean isNumberListColumn(AttributeColumn column);
|
||||
|
||||
public abstract boolean areAllNumberListColumns(AttributeColumn[] columns);
|
||||
|
||||
public abstract boolean isNumberOrNumberListColumn(AttributeColumn column);
|
||||
|
||||
public abstract boolean areAllNumberOrNumberListColumns(AttributeColumn[] columns);
|
||||
|
||||
public abstract boolean isDynamicNumberColumn(AttributeColumn column);
|
||||
|
||||
public abstract boolean areAllDynamicNumberColumns(AttributeColumn[] columns);
|
||||
|
||||
public abstract AttributeColumn[] getNumberColumns(AttributeTable table);
|
||||
|
||||
public abstract AttributeColumn[] getStringColumns(AttributeTable table);
|
||||
|
||||
public abstract AttributeColumn[] getAllCollums(AttributeModel model);
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public abstract Comparable getMin(AttributeColumn column, Comparable[] values);
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public abstract Comparable getMax(AttributeColumn column, Comparable[] values);
|
||||
|
||||
public static synchronized AttributeUtils getDefault() {
|
||||
return Lookup.getDefault().lookup(AttributeUtils.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Used for attributes representation.
|
||||
*
|
||||
* @param d a double to convert from
|
||||
*
|
||||
* @return an XML date string.
|
||||
*
|
||||
* @throws IllegalArgumentException if {@code d} is infinite.
|
||||
*/
|
||||
public static String getXMLDateStringFromDouble(double d) {
|
||||
if (d == Double.NEGATIVE_INFINITY) {
|
||||
return "-Infinity";
|
||||
} else if (d == Double.POSITIVE_INFINITY) {
|
||||
return "Infinity";
|
||||
}
|
||||
GregorianCalendar gc = new GregorianCalendar();
|
||||
gc.setTimeInMillis((long) d);
|
||||
String s = dateFactory.newXMLGregorianCalendar(gc).toXMLFormat().substring(0, 23);
|
||||
s = s.endsWith("T00:00:00.000") ? s.substring(0, 10) : s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# Zbyn\u011bk Schwarz <zbynek.schwarz@gmail.com>, 2012.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2012-02-29 19\:39+0000\nLast-Translator\: Zbyn\u011bk Schwarz <zbynek.schwarz@gmail.com>\nLanguage-Team\: Czech (http\://www.transifex.net/projects/p/gephi/language/cs/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: cs\nPlural-Forms\: nplurals\=3; plural\=(n\=\=1) ? 0 \: (n>\=2 && n<\=4) ? 1 \: 2\n
|
||||
|
||||
OpenIDE-Module-Long-Description=API vlastnost\u00ed poskytuje p\u0159\u00edstup k hodnot\u00e1m vlastnost\u00ed pomoc\u00ed \u00fa\u010dinn\u00e9ho syst\u00e9mu sloupec/\u0159\u00e1dek.
|
||||
|
||||
AttributeOrigin_property=Vlastnost
|
||||
|
||||
AttributeOrigin_data=Data
|
||||
|
||||
AttributeOrigin_computed_name=Spo\u010d\u00edt\u00e1no
|
||||
|
||||
OpenIDE-Module-Short-Description=API pro ukl\u00e1d\u00e1n\u00ed a z\u00edsk\u00e1v\u00e1n\u00ed vlastnost\u00ed
|
||||
@@ -0,0 +1,17 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2011-08-04 19\:12+0000\nLast-Translator\: gephi <sebastien.heymann@gmail.com>\nLanguage-Team\: Spanish (Castilian) (http\://www.transifex.net/projects/p/gephi/language/es/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: es\nPlural-Forms\: nplurals\=2; plural\=(n \!\= 1)\n
|
||||
|
||||
OpenIDE-Module-Long-Description=Attributes API proporciona acceso a valores de atributos mediante un sistema eficiente de filas/columnas.
|
||||
|
||||
AttributeOrigin_property=Propiedad
|
||||
|
||||
AttributeOrigin_data=Dato
|
||||
|
||||
AttributeOrigin_computed_name=Calculado
|
||||
|
||||
OpenIDE-Module-Short-Description=API para almacenar y recuperar atributos
|
||||
@@ -0,0 +1,17 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2011-08-04 19\:12+0000\nLast-Translator\: gephi <sebastien.heymann@gmail.com>\nLanguage-Team\: French (http\://www.transifex.net/projects/p/gephi/language/fr/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: fr\nPlural-Forms\: nplurals\=2; plural\=(n > 1)\n
|
||||
|
||||
OpenIDE-Module-Long-Description=Attributes API donne acc\u00e8s aux valeurs d'attribut \u00e0 travers un syst\u00e8me efficace de lignes/colonnes.
|
||||
|
||||
AttributeOrigin_property=Propri\u00e9t\u00e9
|
||||
|
||||
AttributeOrigin_data=Donn\u00e9e
|
||||
|
||||
AttributeOrigin_computed_name=Calcul\u00e9
|
||||
|
||||
OpenIDE-Module-Short-Description=API de stockage et de r\u00e9cup\u00e9ration d'attributs
|
||||
@@ -0,0 +1,17 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# Siro Kida <kida.siro@gmail.com>, 2011.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2011-08-29 18\:30+0000\nLast-Translator\: Siro Kida <kida.siro@gmail.com>\nLanguage-Team\: Japanese (http\://www.transifex.net/projects/p/gephi/language/ja/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: ja\nPlural-Forms\: nplurals\=1; plural\=0\n
|
||||
|
||||
OpenIDE-Module-Long-Description=\u5c5e\u6027API\u306f\u3001\u52b9\u7387\u7684\u306a\u5217/\u884c\u306e\u30b7\u30b9\u30c6\u30e0\u3092\u4f7f\u7528\u3057\u3066\u5c5e\u6027\u5024\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002
|
||||
|
||||
AttributeOrigin_property=\u30d7\u30ed\u30d1\u30c6\u30a3
|
||||
|
||||
AttributeOrigin_data=\u30c7\u30fc\u30bf
|
||||
|
||||
AttributeOrigin_computed_name=\u8a08\u7b97\u3055\u308c\u305f
|
||||
|
||||
OpenIDE-Module-Short-Description=\u5c5e\u6027\u3092\u683c\u7d0d\u304a\u3088\u3073\u53d6\u5f97\u3059\u308b\u305f\u3081\u306eAPI
|
||||
@@ -0,0 +1,17 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# C\u00e9lio CJr <celiofariajr@gmail.com>, 2011.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2011-08-05 16\:43+0000\nLast-Translator\: C\u00e9lio Faria Jr. <celiofariajr@gmail.com>\nLanguage-Team\: Portuguese (Brazil) (http\://www.transifex.net/projects/p/gephi/language/pt_BR/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: pt_BR\nPlural-Forms\: nplurals\=2; plural\=(n > 1)\n
|
||||
|
||||
OpenIDE-Module-Long-Description=A API de atributos fornece acesso aos valores de atributos por meio de um sistema eficiente de colunas e linhas.
|
||||
|
||||
AttributeOrigin_property=Propriedade
|
||||
|
||||
AttributeOrigin_data=Dado
|
||||
|
||||
AttributeOrigin_computed_name=Calculado
|
||||
|
||||
OpenIDE-Module-Short-Description=API de armazenamento e recupera\u00e7\u00e3o de dados
|
||||
@@ -0,0 +1,17 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2011-08-04 19\:14+0000\nLast-Translator\: gephi <sebastien.heymann@gmail.com>\nLanguage-Team\: Russian (http\://www.transifex.net/projects/p/gephi/language/ru/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: ru\nPlural-Forms\: nplurals\=3; plural\=(n%10\=\=1 && n%100\!\=11 ? 0 \: n%10>\=2 && n%10<\=4 && (n%100<10 || n%100>\=20) ? 1 \: 2)\n
|
||||
|
||||
OpenIDE-Module-Long-Description=API \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c\u0438 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0445 \u0441\u0442\u0440\u043e\u043a \u0438 \u043a\u043e\u043b\u043e\u043d\u043e\u043a.
|
||||
|
||||
AttributeOrigin_property=\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e
|
||||
|
||||
AttributeOrigin_data=\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435
|
||||
|
||||
AttributeOrigin_computed_name=\u0420\u0430\u0441\u0447\u0438\u0442\u0430\u043d\u043e
|
||||
|
||||
OpenIDE-Module-Short-Description=API \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c
|
||||
@@ -0,0 +1,16 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
!=Project-Id-Version\: Gephi\nReport-Msgid-Bugs-To\: https\://github.com/gephi/gephi/issues\nPOT-Creation-Date\: 2011-08-05 14\:52+0200\nPO-Revision-Date\: 2012-01-08 00\:21+0000\nLast-Translator\: gephi <sebastien.heymann@gmail.com>\nLanguage-Team\: Chinese (China) (http\://www.transifex.net/projects/p/gephi/language/zh_CN/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: zh_CN\nPlural-Forms\: nplurals\=1; plural\=0\n
|
||||
|
||||
OpenIDE-Module-Long-Description=\u5c5e\u6027\u5e94\u7528\u7a0b\u5e8f\u63a5\u53e3\u63d0\u4f9b\u4e86\u4e00\u4e2a\u901a\u8fc7\u6709\u6548\u7684\u5217/\u884c\u7cfb\u7edf\u6765\u8bbf\u95ee\u5c5e\u6027\u503c\u3002
|
||||
|
||||
AttributeOrigin_property=\u5c5e\u6027
|
||||
|
||||
AttributeOrigin_data=\u6570\u636e
|
||||
|
||||
AttributeOrigin_computed_name=\u8ba1\u7b97
|
||||
|
||||
OpenIDE-Module-Short-Description=\u7528\u4e8e\u5b58\u50a8\u548c\u63d0\u53d6\u5c5e\u6027\u7684\u5e94\u7528\u7a0b\u5e8f\u63a5\u53e3
|
||||
@@ -0,0 +1,34 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# Zbyněk Schwarz <zbynek.schwarz@gmail.com>, 2012.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2012-02-29 19:39+0000\n"
|
||||
"Last-Translator: Zbyněk Schwarz <zbynek.schwarz@gmail.com>\n"
|
||||
"Language-Team: Czech (http://www.transifex.net/projects/p/gephi/language/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "API vlastností poskytuje přístup k hodnotám vlastností pomocí účinného systému sloupec/řádek."
|
||||
|
||||
msgid "AttributeOrigin_property"
|
||||
msgstr "Vlastnost"
|
||||
|
||||
msgid "AttributeOrigin_data"
|
||||
msgstr "Data"
|
||||
|
||||
msgid "AttributeOrigin_computed_name"
|
||||
msgstr "Spočítáno"
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "API pro ukládání a získávání vlastností"
|
||||
@@ -0,0 +1,34 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2011-08-04 19:12+0000\n"
|
||||
"Last-Translator: gephi <sebastien.heymann@gmail.com>\n"
|
||||
"Language-Team: Spanish (Castilian) (http://www.transifex.net/projects/p/gephi/language/es/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: es\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "Attributes API proporciona acceso a valores de atributos mediante un sistema eficiente de filas/columnas."
|
||||
|
||||
msgid "AttributeOrigin_property"
|
||||
msgstr "Propiedad"
|
||||
|
||||
msgid "AttributeOrigin_data"
|
||||
msgstr "Dato"
|
||||
|
||||
msgid "AttributeOrigin_computed_name"
|
||||
msgstr "Calculado"
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "API para almacenar y recuperar atributos"
|
||||
@@ -0,0 +1,34 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2011-08-04 19:12+0000\n"
|
||||
"Last-Translator: gephi <sebastien.heymann@gmail.com>\n"
|
||||
"Language-Team: French (http://www.transifex.net/projects/p/gephi/language/fr/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: fr\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1)\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "Attributes API donne accès aux valeurs d'attribut à travers un système efficace de lignes/colonnes."
|
||||
|
||||
msgid "AttributeOrigin_property"
|
||||
msgstr "Propriété"
|
||||
|
||||
msgid "AttributeOrigin_data"
|
||||
msgstr "Donnée"
|
||||
|
||||
msgid "AttributeOrigin_computed_name"
|
||||
msgstr "Calculé"
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "API de stockage et de récupération d'attributs"
|
||||
@@ -0,0 +1,34 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# Siro Kida <kida.siro@gmail.com>, 2011.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2011-08-29 18:30+0000\n"
|
||||
"Last-Translator: Siro Kida <kida.siro@gmail.com>\n"
|
||||
"Language-Team: Japanese (http://www.transifex.net/projects/p/gephi/language/ja/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: ja\n"
|
||||
"Plural-Forms: nplurals=1; plural=0\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "属性APIは、効率的な列/行のシステムを使用して属性値へのアクセスを提供します。"
|
||||
|
||||
msgid "AttributeOrigin_property"
|
||||
msgstr "プロパティ"
|
||||
|
||||
msgid "AttributeOrigin_data"
|
||||
msgstr "データ"
|
||||
|
||||
msgid "AttributeOrigin_computed_name"
|
||||
msgstr "計算された"
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "属性を格納および取得するためのAPI"
|
||||
@@ -0,0 +1,34 @@
|
||||
# Translation file for Gephi.
|
||||
# Copyright (C) 2011 Gephi contributors.
|
||||
# This file is distributed under the same license as the Gephi package.
|
||||
#
|
||||
# Translators:
|
||||
# Célio CJr <celiofariajr@gmail.com>, 2011.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gephi\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/gephi/gephi/issues\n"
|
||||
"POT-Creation-Date: 2011-08-05 14:52+0200\n"
|
||||
"PO-Revision-Date: 2011-08-05 16:43+0000\n"
|
||||
"Last-Translator: Célio Faria Jr. <celiofariajr@gmail.com>\n"
|
||||
"Language-Team: Portuguese (Brazil) (http://www.transifex.net/projects/p/gephi/language/pt_BR/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pt_BR\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1)\n"
|
||||
|
||||
msgid "OpenIDE-Module-Long-Description"
|
||||
msgstr "A API de atributos fornece acesso aos valores de atributos por meio de um sistema eficiente de colunas e linhas."
|
||||
|
||||
msgid "AttributeOrigin_property"
|
||||
msgstr "Propriedade"
|
||||
|
||||
msgid "AttributeOrigin_data"
|
||||
msgstr "Dado"
|
||||
|
||||
msgid "AttributeOrigin_computed_name"
|
||||
msgstr "Calculado"
|
||||
|
||||
msgid "OpenIDE-Module-Short-Description"
|
||||
msgstr "API de armazenamento e recuperação de dados"
|
||||
Alguns arquivos não foram exibidos porque demasiados arquivos foram alterados neste diff Mostrar Mais
Referência em uma Nova Issue
Bloquear um usuário