diff --git a/LibGDXMissileCommand/README.md b/LibGDXMissileCommand/README.md index ddc7df75..aedd017a 100644 --- a/LibGDXMissileCommand/README.md +++ b/LibGDXMissileCommand/README.md @@ -7,18 +7,6 @@ Environment setup for LibGDX In case of an error during building libGDX, try to update the JDK. - Install Ant and Maven -- Install Multi-OS Engne version 1.0.648 or later -- Clone libGDX master branch from github repository: -``` sh -git clone https://github.com/libgdx/libgdx.git -``` -- Build libGDX libraries using the following commands: -``` sh - ant -f fetch.xml - mvn install -``` -- Clone moe-java-samples repo and create "moe-java-samples/LibGDXMissileCommand/ios/build/xcode/LibGDXMissileCommand.xcodeproj" folder: -``` sh -mkdir -p LibGDXMissileCommand/ios/build/xcode/LibGDXMissileCommand.xcodeproj -``` -- Import LibGDXMissileCommand sample in Android Studio (as a gradle project), create "Multi-OS Engine iOS Application" build configuration and build the project. \ No newline at end of file +- Install Multi-OS Engne version 2.0.0 or later +- Clone moe-java-samples repo: +- Import LibGDXMissileCommand sample in Android Studio (as a gradle project), create "Multi-OS Engine iOS Application" build configuration and build the project. Or open the project in xcode and run the project. \ No newline at end of file diff --git a/LibGDXMissileCommand/build.gradle b/LibGDXMissileCommand/build.gradle index bdd68985..625e12f2 100644 --- a/LibGDXMissileCommand/build.gradle +++ b/LibGDXMissileCommand/build.gradle @@ -4,7 +4,7 @@ buildscript { version = '1.0' ext { appName = "my-gdx-game" - gdxVersion = '1.9.11' + gdxVersion = '1.10.1-SNAPSHOT' roboVMVersion = '2.3.12' box2DLightsVersion = '1.5' ashleyVersion = '1.7.3' @@ -12,6 +12,7 @@ buildscript { gdxControllersVersion = '2.1.0' } repositories { + mavenLocal() mavenCentral() google() } @@ -29,7 +30,7 @@ allprojects { version = '1.0' ext { appName = "my-gdx-game" - gdxVersion = '1.9.11' + gdxVersion = '1.10.1-SNAPSHOT' roboVMVersion = '2.3.12' box2DLightsVersion = '1.5' ashleyVersion = '1.7.3' @@ -42,6 +43,7 @@ allprojects { mavenCentral() google() gradlePluginPortal() + maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots/" } maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } maven { url "https://oss.sonatype.org/content/repositories/releases/" } } diff --git a/LibGDXMissileCommand/ios/build.gradle b/LibGDXMissileCommand/ios/build.gradle index d4610288..777d0ae4 100644 --- a/LibGDXMissileCommand/ios/build.gradle +++ b/LibGDXMissileCommand/ios/build.gradle @@ -1,6 +1,5 @@ buildscript { repositories { - mavenLocal() maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } maven { url "https://oss.sonatype.org/content/repositories/releases/" } } @@ -21,7 +20,7 @@ task copyNatives { def LD_FLAGS = "LIBGDX_NATIVES = " configurations.natives.files.each { jar -> def outputDir = null - if (jar.name.endsWith("natives-ios.jar")) outputDir = file("xcode/native/ios") + if (jar.name.matches(".*natives-ios.*")) outputDir = file("xcode/native/ios") if (outputDir != null) { FileCollection fileCollection = zipTree(jar) for (File libFile : fileCollection) { @@ -52,12 +51,15 @@ dependencies { compile project(":common") - compile "com.badlogicgames.gdx:gdx-backend-moe:$gdxVersion" - natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios" + compile "io.github.berstanio:gdx-backend-moe-metalangle:$gdxVersion" + natives "io.github.berstanio:gdx-platform:$gdxVersion:natives-ios-metalangle" natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-ios" } moe { + nativeImage { + options = ["--features=com.badlogic.gdx.backends.svm.ConfigCollectionFeatureBase"] + } xcode { project 'xcode/LibGDXMissileCommand.xcodeproj' mainTarget 'LibGDXMissileCommand' diff --git a/LibGDXMissileCommand/ios/jni-config.json b/LibGDXMissileCommand/ios/jni-config.json deleted file mode 100644 index 9e55a988..00000000 --- a/LibGDXMissileCommand/ios/jni-config.json +++ /dev/null @@ -1,29 +0,0 @@ -[ - { - "name" : "java.nio.DoubleBuffer" - }, - { - "name" : "java.nio.IntBuffer" - }, - { - "name" : "java.nio.FloatBuffer" - }, - { - "name" : "java.nio.Buffer" - }, - { - "name" : "java.nio.LongBuffer" - }, - { - "name" : "java.nio.CharBuffer" - }, - { - "name" : "java.nio.ByteBuffer" - }, - { - "name" : "java.nio.ShortBuffer" - }, - { - "name" : "java.lang.String" - } -] \ No newline at end of file diff --git a/LibGDXMissileCommand/ios/reflection-config.json b/LibGDXMissileCommand/ios/reflection-config.json deleted file mode 100644 index 83f703e3..00000000 --- a/LibGDXMissileCommand/ios/reflection-config.json +++ /dev/null @@ -1,29 +0,0 @@ -[ - { - "name" : "com.badlogic.gdx.graphics.g2d.GlyphLayout", - "methods": [ - { - "name": "", - "parameterTypes": [] - } - ] - }, - { - "name" : "com.badlogic.gdx.graphics.g2d.GlyphLayout$GlyphRun", - "methods": [ - { - "name": "", - "parameterTypes": [] - } - ] - }, - { - "name" : "com.badlogic.gdx.graphics.Color", - "methods": [ - { - "name": "", - "parameterTypes": [] - } - ] - } -] \ No newline at end of file diff --git a/LibGDXMissileCommand/ios/src/main/java/org/moe/libgdxmissilecommand/ios/Main.java b/LibGDXMissileCommand/ios/src/main/java/org/moe/libgdxmissilecommand/ios/Main.java index 90e4108f..6c52dad4 100644 --- a/LibGDXMissileCommand/ios/src/main/java/org/moe/libgdxmissilecommand/ios/Main.java +++ b/LibGDXMissileCommand/ios/src/main/java/org/moe/libgdxmissilecommand/ios/Main.java @@ -35,6 +35,7 @@ import org.moe.libgdxmissilecommand.common.MissileCommand; import org.moe.natj.general.Pointer; import org.moe.natj.general.ann.RegisterOnStartup; +import org.moe.natj.objc.ann.ObjCClassName; import org.moe.natj.objc.ann.Selector; import java.lang.reflect.InvocationTargetException; @@ -48,7 +49,7 @@ import apple.uikit.protocol.UIApplicationDelegate; @RegisterOnStartup -public class Main extends NSObject implements UIApplicationDelegate { +public class Main extends IOSApplication.Delegate { public static void main(String[] args) { UIKit.UIApplicationMain(0, null, null, Main.class.getName()); @@ -57,72 +58,13 @@ public static void main(String[] args) { @Selector("alloc") public static native Main alloc(); - protected Main(Pointer peer) { - super(peer); - } - - private MyIOSApplication app; - @Override - public boolean applicationDidFinishLaunchingWithOptions(UIApplication application, NSDictionary launchOptions) { + protected IOSApplication createApplication() { IOSApplicationConfiguration configuration = new IOSApplicationConfiguration(); - app = new MyIOSApplication(new MissileCommand(), configuration); - app.setApplicationLogger(new MyLogger()); - try { - Method method = IOSApplication.class.getDeclaredMethod("didFinishLaunching", UIApplication.class, NSDictionary.class); - method.setAccessible(true); - method.invoke(app, application, launchOptions); - } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) { - e.printStackTrace(); - } - return true; - } - @Override - public void applicationDidBecomeActive (UIApplication application) { - try { - Method method = IOSApplication.class.getDeclaredMethod("didBecomeActive", UIApplication.class); - method.setAccessible(true); - method.invoke(app, application); - } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) { - e.printStackTrace(); - } - } - - @Override - public void applicationWillEnterForeground (UIApplication application) { - try { - Method method = IOSApplication.class.getDeclaredMethod("willEnterForeground", UIApplication.class); - method.setAccessible(true); - method.invoke(app, application); - } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) { - e.printStackTrace(); - } + return new IOSApplication(new MissileCommand(), configuration); } - @Override - public void applicationWillResignActive (UIApplication application) { - try { - Method method = IOSApplication.class.getDeclaredMethod("willResignActive", UIApplication.class); - method.setAccessible(true); - method.invoke(app, application); - } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) { - e.printStackTrace(); - } - } - - @Override - public void applicationWillTerminate (UIApplication application) { - try { - Method method = IOSApplication.class.getDeclaredMethod("willTerminate", UIApplication.class); - method.setAccessible(true); - method.invoke(app, application); - } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) { - e.printStackTrace(); - } - } - - @Override - public UIWindow window () { - return app.getUIWindow(); + protected Main(Pointer peer) { + super(peer); } } diff --git a/LibGDXMissileCommand/ios/xcode/LibGDXMissileCommand/custom.xcconfig b/LibGDXMissileCommand/ios/xcode/LibGDXMissileCommand/custom.xcconfig index 389f5f52..3f07a88f 100644 --- a/LibGDXMissileCommand/ios/xcode/LibGDXMissileCommand/custom.xcconfig +++ b/LibGDXMissileCommand/ios/xcode/LibGDXMissileCommand/custom.xcconfig @@ -1 +1 @@ -LIBGDX_NATIVES = -force_load ${SRCROOT}/native/ios/libObjectAL.a -force_load ${SRCROOT}/native/ios/libgdx.a -force_load ${SRCROOT}/native/ios/libgdx-box2d.a \ No newline at end of file +LIBGDX_NATIVES = -force_load ${SRCROOT}/native/ios/libMetalANGLE_static.a -force_load ${SRCROOT}/native/ios/libObjectAL.a -force_load ${SRCROOT}/native/ios/libgdx.a -force_load ${SRCROOT}/native/ios/libgdx-box2d.a \ No newline at end of file diff --git a/README.md b/README.md index 8ea8641a..fa7befd7 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,18 @@ The following samples are available for the Multi-OS Engine: | **Calculator** | OK | A cross platform calculator. Demonstrates simple techniques: work with buttons, performing actions. | | **CurrencyConverter** | OK | Demonstrates how to open an URL and retrieve the content of that URL just using built-in Java* classes. | | **FastJNI** | OK | Demonstrates the usage of Android's FastJNI. | -| **HelloMaven** | OK | Demonstrates how to use Multi-OS Engine in Maven environment. | -| **InAppPurchase** | PARTIAL | Demonstrates how to make purchases in your applications.
**Notes:** Android module does not compile, iOS works. | +| **HelloMaven** | OUTDATED | Demonstrates how to use Multi-OS Engine in Maven environment.
**Notes:** The Maven plugin seems to not be supported any more. | +| **InAppPurchase** | NOT TESTED | Demonstrates how to make purchases in your applications.
**Notes:** Android module does not compile, iOS works. | | **LibGDXMissileCommand** | OK | Shows how to implement libGDX game. | | **LocalizedString** | OK | Shows how to use iOS's localization APIs. | +| **MOEBenchmark** | PARTIAL | Run different Benchmarks.
**Notes:** Some doesn't seem work. | | **MuseumMap** | OK | Sample is based on SimpleMap sample. This application demonstrates how to work with SQL DB.
**Notes:** Requires Google Maps API Key | +| **OpenGLBox** | OK | Demonstrates working with OpenGL and shaders. | | **Planets** | OK | Demonstrates working with UI Kit graphics. | +| **ResizableMKCircleOverlay** | OK | Demonstrates working with Map Kit. | | **RssReader** | OK | Demonstrates use of HTTP and HTTPS using Java* API | -| **SimpleChart** | OK | A simple application displaying a chart using the Charts pod | +| **SimpleChart** | FAIL | A simple application displaying a chart using the Charts pod.
**Notes:** There seems to be some misconfiguration with the pods. | +| **SpeakHere** | OK | Demonstate how to record and play audio. | | **Taxi** | FAIL | A template for taxi app that allows to select an address on Google Map
**Notes:** Multiple issues, needs update. | | **TheElements** | OK | Demonstrates reading content from XML file. Works with UITableView, adding cells, using scrolling. Example of Master-Detail view, loading images from assets, reacting to taps in views, flipping view content from front to back | | **TicTacToe** | OK | Demonstrates a simple game creation technique without sprites. Using buttons and performing actions. | diff --git a/ResizableMKCircleOverlay/build.gradle b/ResizableMKCircleOverlay/build.gradle index 2be8f1be..2a31794f 100644 --- a/ResizableMKCircleOverlay/build.gradle +++ b/ResizableMKCircleOverlay/build.gradle @@ -2,10 +2,16 @@ buildscript { repositories { jcenter() mavenLocal() + maven { + url 'https://oss.sonatype.org/content/repositories/snapshots/' + } } dependencies { // Multi-OS Engine plugin - classpath group: 'org.multi-os-engine', name: 'moe-gradle', version: '1.4.+' + classpath group: 'org.multi-os-engine', name: 'moe-gradle', version: '2.0.0-SNAPSHOT' + } + configurations.all { + resolutionStrategy.cacheChangingModulesFor 1, 'seconds' } } diff --git a/ResizableMKCircleOverlay/gradle/wrapper/gradle-wrapper.properties b/ResizableMKCircleOverlay/gradle/wrapper/gradle-wrapper.properties index ea0a354e..96e9208c 100644 --- a/ResizableMKCircleOverlay/gradle/wrapper/gradle-wrapper.properties +++ b/ResizableMKCircleOverlay/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip diff --git a/ResizableMKCircleOverlay/src/main/java/org/moe/Main.java b/ResizableMKCircleOverlay/src/main/java/org/moe/Main.java index deeba209..c65831e0 100644 --- a/ResizableMKCircleOverlay/src/main/java/org/moe/Main.java +++ b/ResizableMKCircleOverlay/src/main/java/org/moe/Main.java @@ -16,6 +16,10 @@ package org.moe; +import org.moe.natj.general.Pointer; +import org.moe.natj.general.ann.RegisterOnStartup; +import org.moe.natj.objc.ann.Selector; + import apple.NSObject; import apple.foundation.NSDictionary; import apple.uikit.UIApplication; @@ -23,10 +27,6 @@ import apple.uikit.c.UIKit; import apple.uikit.protocol.UIApplicationDelegate; -import org.moe.natj.general.Pointer; -import org.moe.natj.general.ann.RegisterOnStartup; -import org.moe.natj.objc.ann.Selector; - @RegisterOnStartup public class Main extends NSObject implements UIApplicationDelegate { diff --git a/ResizableMKCircleOverlay/src/main/java/org/moe/ui/AppViewController.java b/ResizableMKCircleOverlay/src/main/java/org/moe/ui/AppViewController.java index 59563797..0ab844b1 100644 --- a/ResizableMKCircleOverlay/src/main/java/org/moe/ui/AppViewController.java +++ b/ResizableMKCircleOverlay/src/main/java/org/moe/ui/AppViewController.java @@ -19,32 +19,22 @@ package org.moe.ui; import org.moe.natj.general.Pointer; -import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.Mapped; import org.moe.natj.general.ann.NUInt; import org.moe.natj.general.ann.Owned; import org.moe.natj.general.ann.RegisterOnStartup; import org.moe.natj.objc.ObjCRuntime; -import org.moe.natj.objc.ann.IsOptional; import org.moe.natj.objc.ann.ObjCClassName; import org.moe.natj.objc.ann.Property; import org.moe.natj.objc.ann.Selector; -import org.moe.natj.objc.map.ObjCObjectMapper; -import android.util.Log; - -import apple.NSObject; import apple.c.Globals; import apple.coregraphics.struct.CGPoint; import apple.corelocation.struct.CLLocationCoordinate2D; import apple.foundation.NSSet; -import apple.foundation.NSString; import apple.mapkit.MKAnnotationView; import apple.mapkit.MKCircle; -import apple.mapkit.MKCircleView; import apple.mapkit.MKMapView; import apple.mapkit.MKOverlayRenderer; -import apple.mapkit.MKOverlayView; import apple.mapkit.MKPinAnnotationView; import apple.mapkit.MKPointAnnotation; import apple.mapkit.MKUserLocation; @@ -57,7 +47,6 @@ import apple.mapkit.struct.MKCoordinateSpan; import apple.mapkit.struct.MKMapPoint; import apple.mapkit.struct.MKMapRect; -import apple.uikit.UIButton; import apple.uikit.UIColor; import apple.uikit.UIEvent; import apple.uikit.UILabel; @@ -65,9 +54,7 @@ import apple.uikit.UIViewController; import static apple.corelocation.c.CoreLocation.CLLocationCoordinate2DMake; -import static apple.mapkit.c.MapKit.MKCoordinateRegionMake; import static apple.mapkit.c.MapKit.MKCoordinateRegionMakeWithDistance; -import static apple.mapkit.c.MapKit.MKCoordinateSpanMake; import static apple.mapkit.c.MapKit.MKMapPointForCoordinate; import static apple.mapkit.c.MapKit.MKMapPointsPerMeterAtLatitude; @@ -154,15 +141,18 @@ public void callback(NSSet touches, UIEvent event) { /* Test if the touch was within the bounds of the circle */ if(xPath >= 0 && yPath >= 0 && xPath < mapRect.size().width() && yPath < mapRect .size().height()){ - Log.d(TAG, "Disable Map Panning"); + System.out.println(TAG + ": " + "Disable Map Panning"); /* This block is to ensure scrollEnabled = NO happens before the any move event. */ - Globals.dispatch_async(Globals.dispatch_get_main_queue(), () -> { - mapView().setScrollEnabled(false); - panEnabled = false; - oldoffset = circleView.getCircleRadius(); + Globals.dispatch_async(Globals.dispatch_get_main_queue(), new Globals.Block_dispatch_async() { + @Override + public void call_dispatch_async() { + mapView().setScrollEnabled(false); + panEnabled = false; + oldoffset = circleView.getCircleRadius(); + } }); } else{ @@ -262,7 +252,7 @@ public void mapViewAnnotationViewDidChangeDragStateFromOldState(MKMapView mapVie } @Override - public MKAnnotationView mapViewViewForAnnotation(MKMapView mapView, @Mapped(ObjCObjectMapper.class) Object annotation) { + public MKAnnotationView mapViewViewForAnnotation(MKMapView mapView, MKAnnotation annotation) { if (annotation instanceof MKUserLocation) { return null; @@ -277,7 +267,7 @@ public MKAnnotationView mapViewViewForAnnotation(MKMapView mapView, @Mapped(ObjC } @Override - public MKOverlayRenderer mapViewRendererForOverlay(MKMapView mapView, @Mapped(ObjCObjectMapper.class) Object overlay) { + public MKOverlayRenderer mapViewRendererForOverlay(MKMapView mapView, MKOverlay overlay) { circleView = CustomMKCircleOverlay.alloc().initWithCircle0((MKCircle) overlay); circleView.setFillColor(UIColor.redColor()); circleView.setDelegate(this); @@ -310,6 +300,6 @@ public void didReceiveMemoryWarning() { @Override public void onRadiusChange(double radius) { - Log.d(TAG, "on radius change: " + radius); + System.out.println(TAG + ": " + "on radius change: " + radius); } } diff --git a/ResizableMKCircleOverlay/src/main/java/org/moe/ui/CustomMKCircleOverlay.java b/ResizableMKCircleOverlay/src/main/java/org/moe/ui/CustomMKCircleOverlay.java index 71a36060..815d7930 100644 --- a/ResizableMKCircleOverlay/src/main/java/org/moe/ui/CustomMKCircleOverlay.java +++ b/ResizableMKCircleOverlay/src/main/java/org/moe/ui/CustomMKCircleOverlay.java @@ -27,12 +27,9 @@ import org.moe.natj.general.ann.Owned; import org.moe.natj.general.ann.RegisterOnStartup; import org.moe.natj.objc.ObjCRuntime; -import org.moe.natj.objc.SEL; import org.moe.natj.objc.ann.ObjCClassName; import org.moe.natj.objc.ann.Selector; -import android.util.Log; - import apple.c.Globals; import apple.coregraphics.c.CoreGraphics; import apple.coregraphics.enums.CGPathDrawingMode; @@ -44,7 +41,6 @@ import apple.mapkit.struct.MKMapPoint; import apple.mapkit.struct.MKMapRect; -import static apple.c.Globals.dispatch_get_main_queue; import static apple.coregraphics.c.CoreGraphics.CGContextSetFillColorWithColor; import static apple.coregraphics.c.CoreGraphics.CGContextSetLineWidth; import static apple.coregraphics.c.CoreGraphics.CGContextSetShouldAntialias; @@ -96,11 +92,11 @@ public CustomMKCircleOverlay initWithCircle2(MKCircle circle, float radius, int MINDIS = min; MAXDIS = max; }else if(min > 0){ - Log.d(TAG, "Max distance smaller than Min"); + System.out.println(TAG + ": " + "Max distance smaller than Min"); MINDIS = min; MAXDIS = min; }else{ - Log.d(TAG, "Trying to set a negative radius--Using Default"); + System.out.println(TAG + ": " + "Trying to set a negative radius--Using Default"); MINDIS = MINDISTANCE; MAXDIS = MAXDISTANCE; } @@ -175,9 +171,12 @@ public void drawMapRectZoomScaleInContext(@ByValue MKMapRect mapRect, @NFloat do radiusAtLatitude, 0, 2 * Math.PI, 0); CoreGraphics.CGContextDrawPath(ctx, CGPathDrawingMode.FillStroke); - if(delegate != null) { - Globals.dispatch_async(Globals.dispatch_get_main_queue(), () -> { - delegate.onRadiusChange(mapRadius); + if (delegate != null) { + Globals.dispatch_async(Globals.dispatch_get_main_queue(), new Globals.Block_dispatch_async() { + @Override + public void call_dispatch_async() { + delegate.onRadiusChange(mapRadius); + } }); } diff --git a/ResizableMKCircleOverlay/src/main/java/org/moe/ui/WildcardGestureRecognizer.java b/ResizableMKCircleOverlay/src/main/java/org/moe/ui/WildcardGestureRecognizer.java index dfb5304b..7283b780 100644 --- a/ResizableMKCircleOverlay/src/main/java/org/moe/ui/WildcardGestureRecognizer.java +++ b/ResizableMKCircleOverlay/src/main/java/org/moe/ui/WildcardGestureRecognizer.java @@ -25,14 +25,12 @@ import org.moe.natj.general.ann.Owned; import org.moe.natj.general.ann.RegisterOnStartup; import org.moe.natj.objc.ObjCRuntime; -import org.moe.natj.objc.SEL; import org.moe.natj.objc.ann.ObjCClassName; import org.moe.natj.objc.ann.Selector; import apple.foundation.NSSet; import apple.uikit.UIEvent; import apple.uikit.UIGestureRecognizer; -import apple.uikit.UISwipeGestureRecognizer; @org.moe.natj.general.ann.Runtime(ObjCRuntime.class) @ObjCClassName("WildcardGestureRecognizer") diff --git a/ResizableMKCircleOverlay/xcode/ResizableMKCircleOverlay.xcodeproj/project.pbxproj b/ResizableMKCircleOverlay/xcode/ResizableMKCircleOverlay.xcodeproj/project.pbxproj index 058ae4b1..ac25f912 100644 --- a/ResizableMKCircleOverlay/xcode/ResizableMKCircleOverlay.xcodeproj/project.pbxproj +++ b/ResizableMKCircleOverlay/xcode/ResizableMKCircleOverlay.xcodeproj/project.pbxproj @@ -171,6 +171,7 @@ developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( + English, en, Base, ); @@ -218,7 +219,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/bash; - shellScript = "set -e\n\nexport MOE_BUILD_SOURCE_SET=\"test\"\n\n# Check project directory\nif [ ! -d \"$MOE_PROJECT_DIR\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_DIR' doesn't point to a directory!\"; exit 1;\nfi\ncd \"$MOE_PROJECT_DIR\"\n\n# Export JAVA_HOME\nexport JAVA_HOME=$(/usr/libexec/java_home -v 1.8)\n\n# Utility function for finding the Gradle implementation\nfunction findGradle {\n CD=\"$PWD\"\n while [ \"$CD\" != \"\" ]; do\n echo \"Looking for gradlew in $CD\"\n if [ -x \"$CD/gradlew\" ]; then\n GRADLE_EXEC=$CD/gradlew\n return 0\n fi\n CD=\"${CD%/*}\"\n done\n\n echo \"Checking with 'which'\"\n GRADLE_EXEC=$(which 'gradle')\n\n if [ \"$GRADLE_EXEC\" = \"\" ]; then\n echo \"Failed to locate 'gradle' executable!\"\n exit 1\n fi\n}\n\n# Build project with Gradle\nif [ -z \"$MOE_GRADLE_EXTERNAL_BUILD\" ]; then\n findGradle\n \"$GRADLE_EXEC\" --no-daemon moeXcodeInternal -s\nfi\n\n# Check output directory\nif [ ! -d \"${MOE_PROJECT_BUILD_DIR}\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_BUILD_DIR' doesn't point to a directory!\"; exit 1;\nfi\n\n# Copy some resources\nmkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/application.jar\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/preregister.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nif [ \"${MOE_BUILD_SOURCE_SET}\" == \"test\" ]; then\n cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/classlist.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nfi\n\n# Copy android CA certificates on demand\nif [ \"${MOE_COPY_ANDROID_CACERTS}\" == \"YES\" ]; then\n rm -rf \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n mkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n unzip \"${MOE_SDK_PATH}/sdk/moe-core-certificates.zip\" -d \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\nfi\n\n# Copy and sign MOE framework\nrsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \\\n \"${MOE_FRAMEWORK_PATH}/MOE.framework\" \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/\"\nif [ \"${VALID_ARCHS}\" == \"arm64\" ]; then\n if [ \"${PLATFORM_NAME}\" == \"iphonesimulator\" ]; then\n lipo -thin x86_64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n else\n lipo -thin arm64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n fi\nfi\nif [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n /usr/bin/codesign --force --sign $EXPANDED_CODE_SIGN_IDENTITY $OTHER_CODE_SIGN_FLAGS \\\n --preserve-metadata=identifier,entitlements \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework\"\nfi\n"; + shellScript = "set -e\n\nexport MOE_BUILD_SOURCE_SET=\"test\"\n\n# Check project directory\nif [ ! -d \"$MOE_PROJECT_DIR\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_DIR' doesn't point to a directory!\"; exit 1;\nfi\ncd \"$MOE_PROJECT_DIR\"\n\n# Export JAVA_HOME\nexport JAVA_HOME=$(/usr/libexec/java_home -v 1.8)\n\n# Utility function for finding the Gradle implementation\nfunction findGradle {\n CD=\"$PWD\"\n while [ \"$CD\" != \"\" ]; do\n echo \"Looking for gradlew in $CD\"\n if [ -x \"$CD/gradlew\" ]; then\n GRADLE_EXEC=$CD/gradlew\n return 0\n fi\n CD=\"${CD%/*}\"\n done\n\n echo \"Checking with 'which'\"\n GRADLE_EXEC=$(which 'gradle')\n\n if [ \"$GRADLE_EXEC\" = \"\" ]; then\n echo \"Failed to locate 'gradle' executable!\"\n exit 1\n fi\n}\n\n# Build project with Gradle\nif [ -z \"$MOE_GRADLE_EXTERNAL_BUILD\" ]; then\n findGradle\n \"$GRADLE_EXEC\" --no-daemon moeXcodeInternal -s\nfi\n\n# Check output directory\nif [ ! -d \"${MOE_PROJECT_BUILD_DIR}\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_BUILD_DIR' doesn't point to a directory!\"; exit 1;\nfi\n\n# Copy some resources\nmkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\n#cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/application.jar\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/preregister.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nif [ \"${MOE_BUILD_SOURCE_SET}\" == \"test\" ]; then\n cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/test_provider/classlist.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nfi\n\n## Copy android CA certificates on demand\n#if [ \"${MOE_COPY_ANDROID_CACERTS}\" == \"YES\" ]; then\n# rm -rf \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n# mkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n# unzip \"${MOE_SDK_PATH}/sdk/moe-core-certificates.zip\" -d \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n#fi\n#\n## Copy and sign MOE framework\n#rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \\\n# \"${MOE_FRAMEWORK_PATH}/MOE.framework\" \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/\"\n#if [ \"${ARCHS}\" == \"arm64\" ] || [ \"${ARCHS}\" == \"x86_64\" ]; then\n# if [ \"${PLATFORM_NAME}\" == \"iphonesimulator\" ]; then\n# lipo -thin x86_64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n# else\n# lipo -thin arm64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n# fi\n#fi\n#if [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n# /usr/bin/codesign --force --sign $EXPANDED_CODE_SIGN_IDENTITY $OTHER_CODE_SIGN_FLAGS \\\n# --preserve-metadata=identifier,entitlements \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework\"\n#fi\n"; }; 48ADEF4C68281226A03BB320 /* Compile Sources (MOE) */ = { isa = PBXShellScriptBuildPhase; @@ -232,7 +233,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/bash; - shellScript = "set -e\n\nexport MOE_BUILD_SOURCE_SET=\"main\"\n\n# Check project directory\nif [ ! -d \"$MOE_PROJECT_DIR\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_DIR' doesn't point to a directory!\"; exit 1;\nfi\ncd \"$MOE_PROJECT_DIR\"\n\n# Export JAVA_HOME\nexport JAVA_HOME=$(/usr/libexec/java_home -v 1.8)\n\n# Utility function for finding the Gradle implementation\nfunction findGradle {\n CD=\"$PWD\"\n while [ \"$CD\" != \"\" ]; do\n echo \"Looking for gradlew in $CD\"\n if [ -x \"$CD/gradlew\" ]; then\n GRADLE_EXEC=$CD/gradlew\n return 0\n fi\n CD=\"${CD%/*}\"\n done\n\n echo \"Checking with 'which'\"\n GRADLE_EXEC=$(which 'gradle')\n\n if [ \"$GRADLE_EXEC\" = \"\" ]; then\n echo \"Failed to locate 'gradle' executable!\"\n exit 1\n fi\n}\n\n# Build project with Gradle\nif [ -z \"$MOE_GRADLE_EXTERNAL_BUILD\" ]; then\n findGradle\n \"$GRADLE_EXEC\" --no-daemon moeXcodeInternal -s\nfi\n\n# Check output directory\nif [ ! -d \"${MOE_PROJECT_BUILD_DIR}\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_BUILD_DIR' doesn't point to a directory!\"; exit 1;\nfi\n\n# Copy some resources\nmkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/application.jar\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/preregister.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nif [ \"${MOE_BUILD_SOURCE_SET}\" == \"test\" ]; then\n cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/classlist.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nfi\n\n# Copy android CA certificates on demand\nif [ \"${MOE_COPY_ANDROID_CACERTS}\" == \"YES\" ]; then\n rm -rf \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n mkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n unzip \"${MOE_SDK_PATH}/sdk/moe-core-certificates.zip\" -d \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\nfi\n\n# Copy and sign MOE framework\nrsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \\\n \"${MOE_FRAMEWORK_PATH}/MOE.framework\" \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/\"\nif [ \"${VALID_ARCHS}\" == \"arm64\" ] || [ \"${VALID_ARCHS}\" == \"x86_64\" ]; then\n if [ \"${PLATFORM_NAME}\" == \"iphonesimulator\" ]; then\n lipo -thin x86_64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n else\n lipo -thin arm64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n fi\nfi\nif [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n /usr/bin/codesign --force --sign $EXPANDED_CODE_SIGN_IDENTITY $OTHER_CODE_SIGN_FLAGS \\\n --preserve-metadata=identifier,entitlements \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework\"\nfi\n"; + shellScript = "set -e\n\nexport MOE_BUILD_SOURCE_SET=\"main\"\n\n# Check project directory\nif [ ! -d \"$MOE_PROJECT_DIR\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_DIR' doesn't point to a directory!\"; exit 1;\nfi\ncd \"$MOE_PROJECT_DIR\"\n\n# Export JAVA_HOME\nexport JAVA_HOME=$(/usr/libexec/java_home -v 1.8)\n\n# Utility function for finding the Gradle implementation\nfunction findGradle {\n CD=\"$PWD\"\n while [ \"$CD\" != \"\" ]; do\n echo \"Looking for gradlew in $CD\"\n if [ -x \"$CD/gradlew\" ]; then\n GRADLE_EXEC=$CD/gradlew\n return 0\n fi\n CD=\"${CD%/*}\"\n done\n\n echo \"Checking with 'which'\"\n GRADLE_EXEC=$(which 'gradle')\n\n if [ \"$GRADLE_EXEC\" = \"\" ]; then\n echo \"Failed to locate 'gradle' executable!\"\n exit 1\n fi\n}\n\n# Build project with Gradle\nif [ -z \"$MOE_GRADLE_EXTERNAL_BUILD\" ]; then\n findGradle\n \"$GRADLE_EXEC\" --no-daemon moeXcodeInternal -s\nfi\n\n# Check output directory\nif [ ! -d \"${MOE_PROJECT_BUILD_DIR}\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_BUILD_DIR' doesn't point to a directory!\"; exit 1;\nfi\n\n# Copy some resources\nmkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\n#cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/application.jar\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/preregister.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nif [ \"${MOE_BUILD_SOURCE_SET}\" == \"test\" ]; then\n cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/test_provider/classlist.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nfi\n\n## Copy android CA certificates on demand\n#if [ \"${MOE_COPY_ANDROID_CACERTS}\" == \"YES\" ]; then\n# rm -rf \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n# mkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n# unzip \"${MOE_SDK_PATH}/sdk/moe-core-certificates.zip\" -d \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n#fi\n#\n## Copy and sign MOE framework\n#rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \\\n# \"${MOE_FRAMEWORK_PATH}/MOE.framework\" \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/\"\n#if [ \"${ARCHS}\" == \"arm64\" ] || [ \"${ARCHS}\" == \"x86_64\" ]; then\n# if [ \"${PLATFORM_NAME}\" == \"iphonesimulator\" ]; then\n# lipo -thin x86_64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n# else\n# lipo -thin arm64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n# fi\n#fi\n#if [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n# /usr/bin/codesign --force --sign $EXPANDED_CODE_SIGN_IDENTITY $OTHER_CODE_SIGN_FLAGS \\\n# --preserve-metadata=identifier,entitlements \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework\"\n#fi\n"; }; /* End PBXShellScriptBuildPhase section */ @@ -282,23 +283,22 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEAD_CODE_STRIPPING = NO; ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + HEADER_SEARCH_PATHS = ( "$(inherited)", - "${MOE_FRAMEWORK_PATH}", + "${MOE_HEADER_SEARCH_PATHS}", ); INFOPLIST_FILE = "ResizableMKCircleOverlay-Test/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MOE_COPY_ANDROID_CACERTS = NO; MOE_FRAMEWORK_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; - MOE_OTHER_LDFLAGS = "${MOE_SECT_OAT} ${MOE_SECT_ART} ${MOE_SEGPROT} ${MOE_PAGEZERO} ${MOE_CUSTOM_OTHER_LDFLAGS} -lstdc++ -framework MOE"; + MOE_HEADER_SEARCH_PATHS = "${MOE_LIB_PATH}/include"; + MOE_LIB_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; + MOE_OTHER_LDFLAGS = "${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/main_${arch}.o ${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/llvm_${arch}.o ${MOE_CUSTOM_OTHER_LDFLAGS} -Wl,-force_load,${MOE_LIB_PATH}/libmoe.a -lstdc++ -lpthread -lsqlite3 -Wl,-framework,Foundation -Wl,-framework,UniformTypeIdentifiers -Wl,-framework,CoreServices"; "MOE_PAGEZERO[sdk=iphoneos*]" = ""; - "MOE_PAGEZERO[sdk=iphonesimulator*]" = "-pagezero_size 4096"; MOE_PROJECT_BUILD_DIR = "${MOE_PROJECT_DIR}/build"; MOE_PROJECT_DIR = "${SRCROOT}/../"; MOE_SDK_PATH = "${MOE_PROJECT_BUILD_DIR}/moe/sdk"; - MOE_SECT_ART = "-sectcreate __ARTDATA __artdata \"${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.art\""; MOE_SECT_OAT = "-sectcreate __OATDATA __oatdata \"${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.oat\""; - "MOE_SEGPROT[sdk=iphoneos*]" = "-segprot __OATDATA rx rx -segprot __ARTDATA rw rw"; "MOE_SEGPROT[sdk=iphonesimulator*]" = "-segprot __OATDATA rwx rx -segprot __ARTDATA rwx rw"; ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = ( @@ -317,23 +317,22 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEAD_CODE_STRIPPING = NO; ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + HEADER_SEARCH_PATHS = ( "$(inherited)", - "${MOE_FRAMEWORK_PATH}", + "${MOE_HEADER_SEARCH_PATHS}", ); INFOPLIST_FILE = "ResizableMKCircleOverlay-Test/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MOE_COPY_ANDROID_CACERTS = NO; MOE_FRAMEWORK_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; - MOE_OTHER_LDFLAGS = "${MOE_SECT_OAT} ${MOE_SECT_ART} ${MOE_SEGPROT} ${MOE_PAGEZERO} ${MOE_CUSTOM_OTHER_LDFLAGS} -lstdc++ -framework MOE"; + MOE_HEADER_SEARCH_PATHS = "${MOE_LIB_PATH}/include"; + MOE_LIB_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; + MOE_OTHER_LDFLAGS = "${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/main_${arch}.o ${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/llvm_${arch}.o ${MOE_CUSTOM_OTHER_LDFLAGS} -Wl,-force_load,${MOE_LIB_PATH}/libmoe.a -lstdc++ -lpthread -lsqlite3 -Wl,-framework,Foundation -Wl,-framework,UniformTypeIdentifiers -Wl,-framework,CoreServices"; "MOE_PAGEZERO[sdk=iphoneos*]" = ""; - "MOE_PAGEZERO[sdk=iphonesimulator*]" = "-pagezero_size 4096"; MOE_PROJECT_BUILD_DIR = "${MOE_PROJECT_DIR}/build"; MOE_PROJECT_DIR = "${SRCROOT}/../"; MOE_SDK_PATH = "${MOE_PROJECT_BUILD_DIR}/moe/sdk"; - MOE_SECT_ART = "-sectcreate __ARTDATA __artdata \"${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.art\""; MOE_SECT_OAT = "-sectcreate __OATDATA __oatdata \"${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.oat\""; - "MOE_SEGPROT[sdk=iphoneos*]" = "-segprot __OATDATA rx rx -segprot __ARTDATA rw rw"; "MOE_SEGPROT[sdk=iphonesimulator*]" = "-segprot __OATDATA rwx rx -segprot __ARTDATA rwx rw"; ONLY_ACTIVE_ARCH = NO; OTHER_LDFLAGS = ( @@ -350,6 +349,8 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + "ARCHS[sdk=iphoneos*]" = arm64; + "ARCHS[sdk=iphonesimulator*]" = x86_64; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; @@ -383,8 +384,8 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.3; - MOE_VERSION = 1.4.2; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + MOE_VERSION = 2.0.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -396,6 +397,8 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + "ARCHS[sdk=iphoneos*]" = arm64; + "ARCHS[sdk=iphonesimulator*]" = x86_64; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; @@ -423,8 +426,8 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.3; - MOE_VERSION = 1.4.2; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + MOE_VERSION = 2.0.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; @@ -437,24 +440,24 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEAD_CODE_STRIPPING = NO; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + HEADER_SEARCH_PATHS = ( "$(inherited)", - "${MOE_FRAMEWORK_PATH}", + "${MOE_HEADER_SEARCH_PATHS}", ); INFOPLIST_FILE = ResizableMKCircleOverlay/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MOE_COPY_ANDROID_CACERTS = NO; MOE_FRAMEWORK_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; - MOE_OTHER_LDFLAGS = "${MOE_SECT_OAT} ${MOE_SECT_ART} ${MOE_SEGPROT} ${MOE_PAGEZERO} ${MOE_CUSTOM_OTHER_LDFLAGS} -lstdc++ -framework MOE"; + MOE_HEADER_SEARCH_PATHS = "${MOE_LIB_PATH}/include"; + MOE_LIB_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; + MOE_OTHER_LDFLAGS = "${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/main_${arch}.o ${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/llvm_${arch}.o ${MOE_CUSTOM_OTHER_LDFLAGS} -Wl,-force_load,${MOE_LIB_PATH}/libmoe.a -lstdc++ -lpthread -lsqlite3 -Wl,-framework,Foundation -Wl,-framework,UniformTypeIdentifiers -Wl,-framework,CoreServices"; "MOE_PAGEZERO[sdk=iphoneos*]" = ""; - "MOE_PAGEZERO[sdk=iphonesimulator*]" = "-pagezero_size 4096"; MOE_PROJECT_BUILD_DIR = "${MOE_PROJECT_DIR}/build"; MOE_PROJECT_DIR = "${SRCROOT}/../"; MOE_SDK_PATH = "${MOE_PROJECT_BUILD_DIR}/moe/sdk"; - MOE_SECT_ART = "-sectcreate __ARTDATA __artdata \"${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.art\""; MOE_SECT_OAT = "-sectcreate __OATDATA __oatdata \"${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.oat\""; - "MOE_SEGPROT[sdk=iphoneos*]" = "-segprot __OATDATA rx rx -segprot __ARTDATA rw rw"; "MOE_SEGPROT[sdk=iphonesimulator*]" = "-segprot __OATDATA rwx rx -segprot __ARTDATA rwx rw"; ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = ( @@ -473,24 +476,24 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEAD_CODE_STRIPPING = NO; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + HEADER_SEARCH_PATHS = ( "$(inherited)", - "${MOE_FRAMEWORK_PATH}", + "${MOE_HEADER_SEARCH_PATHS}", ); INFOPLIST_FILE = ResizableMKCircleOverlay/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MOE_COPY_ANDROID_CACERTS = NO; MOE_FRAMEWORK_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; - MOE_OTHER_LDFLAGS = "${MOE_SECT_OAT} ${MOE_SECT_ART} ${MOE_SEGPROT} ${MOE_PAGEZERO} ${MOE_CUSTOM_OTHER_LDFLAGS} -lstdc++ -framework MOE"; + MOE_HEADER_SEARCH_PATHS = "${MOE_LIB_PATH}/include"; + MOE_LIB_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; + MOE_OTHER_LDFLAGS = "${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/main_${arch}.o ${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/llvm_${arch}.o ${MOE_CUSTOM_OTHER_LDFLAGS} -Wl,-force_load,${MOE_LIB_PATH}/libmoe.a -lstdc++ -lpthread -lsqlite3 -Wl,-framework,Foundation -Wl,-framework,UniformTypeIdentifiers -Wl,-framework,CoreServices"; "MOE_PAGEZERO[sdk=iphoneos*]" = ""; - "MOE_PAGEZERO[sdk=iphonesimulator*]" = "-pagezero_size 4096"; MOE_PROJECT_BUILD_DIR = "${MOE_PROJECT_DIR}/build"; MOE_PROJECT_DIR = "${SRCROOT}/../"; MOE_SDK_PATH = "${MOE_PROJECT_BUILD_DIR}/moe/sdk"; - MOE_SECT_ART = "-sectcreate __ARTDATA __artdata \"${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.art\""; MOE_SECT_OAT = "-sectcreate __OATDATA __oatdata \"${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.oat\""; - "MOE_SEGPROT[sdk=iphoneos*]" = "-segprot __OATDATA rx rx -segprot __ARTDATA rw rw"; "MOE_SEGPROT[sdk=iphonesimulator*]" = "-segprot __OATDATA rwx rx -segprot __ARTDATA rwx rw"; ONLY_ACTIVE_ARCH = NO; OTHER_LDFLAGS = ( diff --git a/ResizableMKCircleOverlay/xcode/ResizableMKCircleOverlay/Info.plist b/ResizableMKCircleOverlay/xcode/ResizableMKCircleOverlay/Info.plist index ace6d6ac..d9504cfb 100644 --- a/ResizableMKCircleOverlay/xcode/ResizableMKCircleOverlay/Info.plist +++ b/ResizableMKCircleOverlay/xcode/ResizableMKCircleOverlay/Info.plist @@ -2,8 +2,6 @@ - MOE.Main.Class - org.moe.Main CFBundleDevelopmentRegion en CFBundleExecutable @@ -22,6 +20,8 @@ 1 LSRequiresIPhoneOS + MOE.Main.Class + org.moe.Main UILaunchStoryboardName LaunchScreen UIMainStoryboardFile diff --git a/SimpleChart/build.gradle b/SimpleChart/build.gradle index 67b5612c..36accb1f 100644 --- a/SimpleChart/build.gradle +++ b/SimpleChart/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() mavenLocal() + maven { url("https://oss.sonatype.org/content/repositories/snapshots/")} } dependencies { // Multi-OS Engine plugin - classpath group: 'org.multi-os-engine', name: 'moe-gradle', version: '1.4.+' + classpath group: 'org.multi-os-engine', name: 'moe-gradle', version: '2.0.0-SNAPSHOT' } } diff --git a/SimpleChart/gradle/wrapper/gradle-wrapper.properties b/SimpleChart/gradle/wrapper/gradle-wrapper.properties index 412a0623..416177ad 100644 --- a/SimpleChart/gradle/wrapper/gradle-wrapper.properties +++ b/SimpleChart/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip diff --git a/SimpleChart/pods.nbc b/SimpleChart/pods.nbc index 5a64ee96..38f01bbe 100644 --- a/SimpleChart/pods.nbc +++ b/SimpleChart/pods.nbc @@ -1 +1,17 @@ -{"output":"src/main/java","platform":"iOS","bindings":[{"type":"header","name":"Charts","objcClassGenerationMode":"Binding","headerPath":"build/moe/xcodebuild/Debug-iphonesimulator/Charts.framework/Headers","headerSearchPaths":[],"userHeaderSearchPaths":[],"frameworkSearchPaths":[],"packageBase":"org.moe.samples.simplechart","importCode":"#import \n#import \"Charts-Swift.h\""}]} \ No newline at end of file +{ + "output": "src/main/java", + "platform": "iOS", + "bindings": [ + { + "type": "header", + "name": "Charts", + "objcClassGenerationMode": "Binding", + "headerPath": "build/moe/xcodebuild/Debug-iphoneos/Charts/Charts.framework/Headers", + "headerSearchPaths": [], + "userHeaderSearchPaths": [], + "frameworkSearchPaths": [], + "packageBase": "org.moe.samples.simplechart", + "importCode": "#import \n#import \"Charts-Swift.h\"" + } + ] +} \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/AnimatedMoveViewJob.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/AnimatedMoveViewJob.java index a08a242f..2015472c 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/AnimatedMoveViewJob.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/AnimatedMoveViewJob.java @@ -33,156 +33,140 @@ @ObjCClassName("_TtC6Charts19AnimatedMoveViewJob") @ObjCClassBinding public class AnimatedMoveViewJob extends AnimatedViewPortJob { - static { - NatJ.register(); - } - - @Generated - protected AnimatedMoveViewJob(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native AnimatedMoveViewJob alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native AnimatedMoveViewJob init(); - - @Generated - @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:") - public native AnimatedMoveViewJob initWithViewPortHandlerXValueYValueTransformerView( - ChartViewPortHandler viewPortHandler, double xValue, double yValue, - ChartTransformer transformer, ChartViewBase view); - - @Generated - @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:xOrigin:yOrigin:duration:easing:") - public native AnimatedMoveViewJob initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing( - ChartViewPortHandler viewPortHandler, - double xValue, - double yValue, - ChartTransformer transformer, - ChartViewBase view, - @NFloat double xOrigin, - @NFloat double yOrigin, - double duration, - @ObjCBlock(name = "call_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing") Block_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing easing); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing { - @Generated - double call_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing( - double arg0, double arg1); - } - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected AnimatedMoveViewJob(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native AnimatedMoveViewJob alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native AnimatedMoveViewJob init(); + + @Generated + @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:") + public native AnimatedMoveViewJob initWithViewPortHandlerXValueYValueTransformerView( + ChartViewPortHandler viewPortHandler, double xValue, double yValue, ChartTransformer transformer, + ChartViewBase view); + + @Generated + @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:xOrigin:yOrigin:duration:easing:") + public native AnimatedMoveViewJob initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing( + ChartViewPortHandler viewPortHandler, + double xValue, + double yValue, + ChartTransformer transformer, + ChartViewBase view, + @NFloat double xOrigin, + @NFloat double yOrigin, + double duration, + @ObjCBlock(name = "call_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing") Block_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing easing); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing { + @Generated + double call_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing(double arg0, + double arg1); + } + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/AnimatedViewPortJob.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/AnimatedViewPortJob.java index bb193b92..3419b25a 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/AnimatedViewPortJob.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/AnimatedViewPortJob.java @@ -33,168 +33,152 @@ @ObjCClassName("_TtC6Charts19AnimatedViewPortJob") @ObjCClassBinding public class AnimatedViewPortJob extends ChartViewPortJob { - static { - NatJ.register(); - } - - @Generated - protected AnimatedViewPortJob(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native AnimatedViewPortJob alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("doJob") - public native void doJob(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native AnimatedViewPortJob init(); - - @Generated - @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:") - public native AnimatedViewPortJob initWithViewPortHandlerXValueYValueTransformerView( - ChartViewPortHandler viewPortHandler, double xValue, double yValue, - ChartTransformer transformer, ChartViewBase view); - - @Generated - @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:xOrigin:yOrigin:duration:easing:") - public native AnimatedViewPortJob initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing( - ChartViewPortHandler viewPortHandler, - double xValue, - double yValue, - ChartTransformer transformer, - ChartViewBase view, - @NFloat double xOrigin, - @NFloat double yOrigin, - double duration, - @ObjCBlock(name = "call_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing") Block_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing easing); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing { - @Generated - double call_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing( - double arg0, double arg1); - } - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("start") - public native void start(); - - @Generated - @Selector("stopWithFinish:") - public native void stopWithFinish(boolean finish); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected AnimatedViewPortJob(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native AnimatedViewPortJob alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("doJob") + public native void doJob(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native AnimatedViewPortJob init(); + + @Generated + @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:") + public native AnimatedViewPortJob initWithViewPortHandlerXValueYValueTransformerView( + ChartViewPortHandler viewPortHandler, double xValue, double yValue, ChartTransformer transformer, + ChartViewBase view); + + @Generated + @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:xOrigin:yOrigin:duration:easing:") + public native AnimatedViewPortJob initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing( + ChartViewPortHandler viewPortHandler, + double xValue, + double yValue, + ChartTransformer transformer, + ChartViewBase view, + @NFloat double xOrigin, + @NFloat double yOrigin, + double duration, + @ObjCBlock(name = "call_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing") Block_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing easing); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing { + @Generated + double call_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing(double arg0, + double arg1); + } + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("start") + public native void start(); + + @Generated + @Selector("stopWithFinish:") + public native void stopWithFinish(boolean finish); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/AnimatedZoomViewJob.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/AnimatedZoomViewJob.java index d11a62d1..c6423f3e 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/AnimatedZoomViewJob.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/AnimatedZoomViewJob.java @@ -33,175 +33,159 @@ @ObjCClassName("_TtC6Charts19AnimatedZoomViewJob") @ObjCClassBinding public class AnimatedZoomViewJob extends AnimatedViewPortJob { - static { - NatJ.register(); - } - - @Generated - protected AnimatedZoomViewJob(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native AnimatedZoomViewJob alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native AnimatedZoomViewJob init(); - - @Generated - @Selector("initWithViewPortHandler:transformer:view:yAxis:xAxisRange:scaleX:scaleY:xOrigin:yOrigin:zoomCenterX:zoomCenterY:zoomOriginX:zoomOriginY:duration:easing:") - public native AnimatedZoomViewJob initWithViewPortHandlerTransformerViewYAxisXAxisRangeScaleXScaleYXOriginYOriginZoomCenterXZoomCenterYZoomOriginXZoomOriginYDurationEasing( - ChartViewPortHandler viewPortHandler, - ChartTransformer transformer, - ChartViewBase view, - ChartYAxis yAxis, - double xAxisRange, - @NFloat double scaleX, - @NFloat double scaleY, - @NFloat double xOrigin, - @NFloat double yOrigin, - @NFloat double zoomCenterX, - @NFloat double zoomCenterY, - @NFloat double zoomOriginX, - @NFloat double zoomOriginY, - double duration, - @ObjCBlock(name = "call_initWithViewPortHandlerTransformerViewYAxisXAxisRangeScaleXScaleYXOriginYOriginZoomCenterXZoomCenterYZoomOriginXZoomOriginYDurationEasing") Block_initWithViewPortHandlerTransformerViewYAxisXAxisRangeScaleXScaleYXOriginYOriginZoomCenterXZoomCenterYZoomOriginXZoomOriginYDurationEasing easing); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_initWithViewPortHandlerTransformerViewYAxisXAxisRangeScaleXScaleYXOriginYOriginZoomCenterXZoomCenterYZoomOriginXZoomOriginYDurationEasing { - @Generated - double call_initWithViewPortHandlerTransformerViewYAxisXAxisRangeScaleXScaleYXOriginYOriginZoomCenterXZoomCenterYZoomOriginXZoomOriginYDurationEasing( - double arg0, double arg1); - } - - @Generated - @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:") - public native AnimatedZoomViewJob initWithViewPortHandlerXValueYValueTransformerView( - ChartViewPortHandler viewPortHandler, double xValue, double yValue, - ChartTransformer transformer, ChartViewBase view); - - @Generated - @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:xOrigin:yOrigin:duration:easing:") - public native AnimatedZoomViewJob initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing( - ChartViewPortHandler viewPortHandler, - double xValue, - double yValue, - ChartTransformer transformer, - ChartViewBase view, - @NFloat double xOrigin, - @NFloat double yOrigin, - double duration, - @ObjCBlock(name = "call_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing") AnimatedViewPortJob.Block_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing easing); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected AnimatedZoomViewJob(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native AnimatedZoomViewJob alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native AnimatedZoomViewJob init(); + + @Generated + @Selector("initWithViewPortHandler:transformer:view:yAxis:xAxisRange:scaleX:scaleY:xOrigin:yOrigin:zoomCenterX:zoomCenterY:zoomOriginX:zoomOriginY:duration:easing:") + public native AnimatedZoomViewJob initWithViewPortHandlerTransformerViewYAxisXAxisRangeScaleXScaleYXOriginYOriginZoomCenterXZoomCenterYZoomOriginXZoomOriginYDurationEasing( + ChartViewPortHandler viewPortHandler, + ChartTransformer transformer, + ChartViewBase view, + ChartYAxis yAxis, + double xAxisRange, + @NFloat double scaleX, + @NFloat double scaleY, + @NFloat double xOrigin, + @NFloat double yOrigin, + @NFloat double zoomCenterX, + @NFloat double zoomCenterY, + @NFloat double zoomOriginX, + @NFloat double zoomOriginY, + double duration, + @ObjCBlock(name = "call_initWithViewPortHandlerTransformerViewYAxisXAxisRangeScaleXScaleYXOriginYOriginZoomCenterXZoomCenterYZoomOriginXZoomOriginYDurationEasing") Block_initWithViewPortHandlerTransformerViewYAxisXAxisRangeScaleXScaleYXOriginYOriginZoomCenterXZoomCenterYZoomOriginXZoomOriginYDurationEasing easing); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_initWithViewPortHandlerTransformerViewYAxisXAxisRangeScaleXScaleYXOriginYOriginZoomCenterXZoomCenterYZoomOriginXZoomOriginYDurationEasing { + @Generated + double call_initWithViewPortHandlerTransformerViewYAxisXAxisRangeScaleXScaleYXOriginYOriginZoomCenterXZoomCenterYZoomOriginXZoomOriginYDurationEasing( + double arg0, double arg1); + } + + @Generated + @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:") + public native AnimatedZoomViewJob initWithViewPortHandlerXValueYValueTransformerView( + ChartViewPortHandler viewPortHandler, double xValue, double yValue, ChartTransformer transformer, + ChartViewBase view); + + @Generated + @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:xOrigin:yOrigin:duration:easing:") + public native AnimatedZoomViewJob initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing( + ChartViewPortHandler viewPortHandler, + double xValue, + double yValue, + ChartTransformer transformer, + ChartViewBase view, + @NFloat double xOrigin, + @NFloat double yOrigin, + double duration, + @ObjCBlock(name = "call_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing") AnimatedViewPortJob.Block_initWithViewPortHandlerXValueYValueTransformerViewXOriginYOriginDurationEasing easing); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartData.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartData.java index 61b94b30..8619cec5 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartData.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartData.java @@ -32,156 +32,161 @@ @ObjCClassName("_TtC6Charts12BarChartData") @ObjCClassBinding public class BarChartData extends BarLineScatterCandleBubbleChartData { - static { - NatJ.register(); - } - - @Generated - protected BarChartData(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native BarChartData alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("barWidth") - public native double barWidth(); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("groupBarsFromX:groupSpace:barSpace:") - public native void groupBarsFromXGroupSpaceBarSpace(double fromX, - double groupSpace, double barSpace); - - @Generated - @Selector("groupWidthWithGroupSpace:barSpace:") - public native double groupWidthWithGroupSpaceBarSpace(double groupSpace, - double barSpace); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native BarChartData init(); - - @Generated - @Selector("initWithDataSet:") - public native BarChartData initWithDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); - - @Generated - @Selector("initWithDataSets:") - public native BarChartData initWithDataSets(NSArray dataSets); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setBarWidth:") - public native void setBarWidth(double value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected BarChartData(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native BarChartData alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + /** + * The width of the bars on the x-axis, in values (not pixels) + * default: 0.85 + */ + @Generated + @Selector("barWidth") + public native double barWidth(); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * Groups all BarDataSet objects this data object holds together by modifying the x-value of their entries. + * Previously set x-values of entries will be overwritten. Leaves space between bars and groups as specified by the parameters. + * Do not forget to call notifyDataSetChanged() on your BarChart object after calling this method. + * \param fromX the starting point on the x-axis where the grouping should begin + * + * \param groupSpace The space between groups of bars in values (not pixels) e.g. 0.8f for bar width 1f + * + * \param barSpace The space between individual bars in values (not pixels) e.g. 0.1f for bar width 1f + */ + @Generated + @Selector("groupBarsFromX:groupSpace:barSpace:") + public native void groupBarsFromXGroupSpaceBarSpace(double fromX, double groupSpace, double barSpace); + + /** + * In case of grouped bars, this method returns the space an individual group of bar needs on the x-axis. + * \param groupSpace + * + * \param barSpace + */ + @Generated + @Selector("groupWidthWithGroupSpace:barSpace:") + public native double groupWidthWithGroupSpaceBarSpace(double groupSpace, double barSpace); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native BarChartData init(); + + @Generated + @Selector("initWithDataSet:") + public native BarChartData initWithDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); + + @Generated + @Selector("initWithDataSets:") + public native BarChartData initWithDataSets(NSArray dataSets); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * The width of the bars on the x-axis, in values (not pixels) + * default: 0.85 + */ + @Generated + @Selector("setBarWidth:") + public native void setBarWidth(double value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartDataEntry.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartDataEntry.java index 2aed28f1..4271828d 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartDataEntry.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartDataEntry.java @@ -6,6 +6,7 @@ import apple.foundation.NSMethodSignature; import apple.foundation.NSNumber; import apple.foundation.NSSet; +import apple.uikit.UIImage; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; @@ -32,199 +33,256 @@ @ObjCClassName("_TtC6Charts17BarChartDataEntry") @ObjCClassBinding public class BarChartDataEntry extends ChartDataEntry { - static { - NatJ.register(); - } - - @Generated - protected BarChartDataEntry(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native BarChartDataEntry alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("calcPosNegSum") - public native void calcPosNegSum(); - - @Generated - @Selector("calcRanges") - public native void calcRanges(); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native BarChartDataEntry init(); - - @Generated - @Selector("initWithX:y:") - public native BarChartDataEntry initWithXY(double x, double y); - - @Generated - @Selector("initWithX:y:data:") - public native BarChartDataEntry initWithXYData(double x, double y, - @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initWithX:yValues:") - public native BarChartDataEntry initWithXYValues(double x, - NSArray yValues); - - @Generated - @Selector("initWithX:yValues:label:") - public native BarChartDataEntry initWithXYValuesLabel(double x, - NSArray yValues, String label); - - @Generated - @Selector("initWithY:") - public native BarChartDataEntry initWithY(double y); - - @Generated - @Selector("initWithY:data:") - public native BarChartDataEntry initWithYData(double y, - @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isStacked") - public native boolean isStacked(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("negativeSum") - public native double negativeSum(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("positiveSum") - public native double positiveSum(); - - @Generated - @Selector("ranges") - public native NSArray ranges(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setYValues:") - public native void setYValues(NSArray value); - - @Generated - @Selector("sumBelowStackIndex:") - public native double sumBelowStackIndex(@NInt long stackIndex); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("yValues") - public native NSArray yValues(); + static { + NatJ.register(); + } + + @Generated + protected BarChartDataEntry(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native BarChartDataEntry alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("calcPosNegSum") + public native void calcPosNegSum(); + + /** + * Splits up the stack-values of the given bar-entry into Range objects. + * \param entry + * + * + * returns: + */ + @Generated + @Selector("calcRanges") + public native void calcRanges(); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native BarChartDataEntry init(); + + /** + * Constructor for normal bars (not stacked). + */ + @Generated + @Selector("initWithX:y:") + public native BarChartDataEntry initWithXY(double x, double y); + + /** + * Constructor for normal bars (not stacked). + */ + @Generated + @Selector("initWithX:y:data:") + public native BarChartDataEntry initWithXYData(double x, double y, @Mapped(ObjCObjectMapper.class) Object data); + + /** + * Constructor for normal bars (not stacked). + */ + @Generated + @Selector("initWithX:y:icon:") + public native BarChartDataEntry initWithXYIcon(double x, double y, UIImage icon); + + /** + * Constructor for normal bars (not stacked). + */ + @Generated + @Selector("initWithX:y:icon:data:") + public native BarChartDataEntry initWithXYIconData(double x, double y, UIImage icon, + @Mapped(ObjCObjectMapper.class) Object data); + + /** + * Constructor for stacked bar entries. + */ + @Generated + @Selector("initWithX:yValues:") + public native BarChartDataEntry initWithXYValues(double x, NSArray yValues); + + /** + * Constructor for stacked bar entries. One data object for whole stack + */ + @Generated + @Selector("initWithX:yValues:data:") + public native BarChartDataEntry initWithXYValuesData(double x, NSArray yValues, + @Mapped(ObjCObjectMapper.class) Object data); + + /** + * Constructor for stacked bar entries. One data object for whole stack + */ + @Generated + @Selector("initWithX:yValues:icon:") + public native BarChartDataEntry initWithXYValuesIcon(double x, NSArray yValues, UIImage icon); + + /** + * Constructor for stacked bar entries. One data object for whole stack + */ + @Generated + @Selector("initWithX:yValues:icon:data:") + public native BarChartDataEntry initWithXYValuesIconData(double x, NSArray yValues, + UIImage icon, @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithY:") + public native BarChartDataEntry initWithY(double y); + + @Generated + @Selector("initWithY:data:") + public native BarChartDataEntry initWithYData(double y, @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithY:icon:") + public native BarChartDataEntry initWithYIcon(double y, UIImage icon); + + @Generated + @Selector("initWithY:icon:data:") + public native BarChartDataEntry initWithYIconData(double y, UIImage icon, + @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + /** + * the values the stacked barchart holds + */ + @Generated + @Selector("isStacked") + public native boolean isStacked(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + /** + * The sum of all negative values this entry (if stacked) contains. (this is a positive number) + */ + @Generated + @Selector("negativeSum") + public native double negativeSum(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + /** + * The sum of all positive values this entry (if stacked) contains. + */ + @Generated + @Selector("positiveSum") + public native double positiveSum(); + + /** + * The ranges of the individual stack-entries. Will return null if this entry is not stacked. + */ + @Generated + @Selector("ranges") + public native NSArray ranges(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + /** + * the values the stacked barchart holds + */ + @Generated + @Selector("setYValues:") + public native void setYValues(NSArray value); + + @Generated + @Selector("sumBelowStackIndex:") + public native double sumBelowStackIndex(@NInt long stackIndex); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * the values the stacked barchart holds + */ + @Generated + @Selector("yValues") + public native NSArray yValues(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartDataSet.java index 4e569008..d3fe82cd 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartDataSet.java @@ -2,6 +2,7 @@ import apple.NSObject; +import apple.coregraphics.struct.CGPoint; import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSNumber; @@ -11,6 +12,7 @@ import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; +import org.moe.natj.general.ann.ByValue; import org.moe.natj.general.ann.Generated; import org.moe.natj.general.ann.Library; import org.moe.natj.general.ann.Mapped; @@ -29,478 +31,474 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; import org.moe.samples.simplechart.charts.protocol.IBarChartDataSet; +import org.moe.samples.simplechart.charts.protocol.IChartValueFormatter; @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts15BarChartDataSet") @ObjCClassBinding -public class BarChartDataSet extends BarLineScatterCandleBubbleChartDataSet - implements IBarChartDataSet { - static { - NatJ.register(); - } - - @Generated - protected BarChartDataSet(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addColor:") - public native void addColor(UIColor color); - - @Generated - @Selector("addEntry:") - public native boolean addEntry(ChartDataEntry e); - - @Generated - @Selector("addEntryOrdered:") - public native boolean addEntryOrdered(ChartDataEntry e); - - @Generated - @Owned - @Selector("alloc") - public static native BarChartDataSet alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("axisDependency") - @NInt - public native long axisDependency(); - - @Generated - @Selector("barBorderColor") - public native UIColor barBorderColor(); - - @Generated - @Selector("barBorderWidth") - @NFloat - public native double barBorderWidth(); - - @Generated - @Selector("barShadowColor") - public native UIColor barShadowColor(); - - @Generated - @Selector("calcMinMax") - public native void calcMinMax(); - - @Generated - @Selector("calcMinMaxWithEntry:") - public native void calcMinMaxWithEntry(ChartDataEntry e); - - @Generated - @Selector("calcMinMaxYFromX:toX:") - public native void calcMinMaxYFromXToX(double fromX, double toX); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clear") - public native void clear(); - - @Generated - @Selector("colorAtIndex:") - public native UIColor colorAtIndex(@NInt long atIndex); - - @Generated - @Selector("colors") - public native NSArray colors(); - - @Generated - @Selector("contains:") - public native boolean contains(ChartDataEntry e); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawValuesEnabled") - public native boolean drawValuesEnabled(); - - @Generated - @Selector("entriesForXValue:") - public native NSArray entriesForXValue( - double xValue); - - @Generated - @Selector("entryCount") - @NInt - public native long entryCount(); - - @Generated - @Selector("entryCountStacks") - @NInt - public native long entryCountStacks(); - - @Generated - @Selector("entryForIndex:") - public native ChartDataEntry entryForIndex(@NInt long i); - - @Generated - @Selector("entryForXValue:closestToY:") - public native ChartDataEntry entryForXValueClosestToY(double xValue, - double yValue); - - @Generated - @Selector("entryForXValue:closestToY:rounding:") - public native ChartDataEntry entryForXValueClosestToYRounding( - double xValue, double yValue, @NInt long rounding); - - @Generated - @Selector("entryIndexWithEntry:") - @NInt - public native long entryIndexWithEntry(ChartDataEntry e); - - @Generated - @Selector("entryIndexWithX:closestToY:rounding:") - @NInt - public native long entryIndexWithXClosestToYRounding(double xValue, - double yValue, @NInt long rounding); - - @Generated - @Selector("form") - @NInt - public native long form(); - - @Generated - @Selector("formLineDashLengths") - public native NSArray formLineDashLengths(); - - @Generated - @Selector("formLineDashPhase") - @NFloat - public native double formLineDashPhase(); - - @Generated - @Selector("formLineWidth") - @NFloat - public native double formLineWidth(); - - @Generated - @Selector("formSize") - @NFloat - public native double formSize(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highlightAlpha") - @NFloat - public native double highlightAlpha(); - - @Generated - @Selector("highlightColor") - public native UIColor highlightColor(); - - @Generated - @Selector("highlightEnabled") - public native boolean highlightEnabled(); - - @Generated - @Selector("highlightLineDashLengths") - public native NSArray highlightLineDashLengths(); - - @Generated - @Selector("highlightLineDashPhase") - @NFloat - public native double highlightLineDashPhase(); - - @Generated - @Selector("highlightLineWidth") - @NFloat - public native double highlightLineWidth(); - - @Generated - @Selector("init") - public native BarChartDataSet init(); - - @Generated - @Selector("initWithLabel:") - public native BarChartDataSet initWithLabel(String label); - - @Generated - @Selector("initWithValues:") - public native BarChartDataSet initWithValues( - NSArray values); - - @Generated - @Selector("initWithValues:label:") - public native BarChartDataSet initWithValuesLabel( - NSArray values, String label); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawValuesEnabled") - public native boolean isDrawValuesEnabled(); - - @Generated - @Selector("isHighlightEnabled") - public native boolean isHighlightEnabled(); - - @Generated - @Selector("isStacked") - public native boolean isStacked(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("isVisible") - public native boolean isVisible(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("label") - public native String label(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("needsFormatter") - public native boolean needsFormatter(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("removeEntry:") - public native boolean removeEntry(ChartDataEntry entry); - - @Generated - @Selector("removeEntryWithIndex:") - public native boolean removeEntryWithIndex(@NInt long index); - - @Generated - @Selector("removeEntryWithX:") - public native boolean removeEntryWithX(double x); - - @Generated - @Selector("removeFirst") - public native boolean removeFirst(); - - @Generated - @Selector("removeLast") - public native boolean removeLast(); - - @Generated - @Selector("resetColors") - public native void resetColors(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setBarBorderColor:") - public native void setBarBorderColor(UIColor value); - - @Generated - @Selector("setBarBorderWidth:") - public native void setBarBorderWidth(@NFloat double value); - - @Generated - @Selector("setBarShadowColor:") - public native void setBarShadowColor(UIColor value); - - @Generated - @Selector("setColor:") - public native void setColor(UIColor color); - - @Generated - @Selector("setDrawValuesEnabled:") - public native void setDrawValuesEnabled(boolean value); - - @Generated - @Selector("setHighlightAlpha:") - public native void setHighlightAlpha(@NFloat double value); - - @Generated - @Selector("setHighlightColor:") - public native void setHighlightColor(UIColor value); - - @Generated - @Selector("setHighlightEnabled:") - public native void setHighlightEnabled(boolean value); - - @Generated - @Selector("setHighlightLineDashLengths:") - public native void setHighlightLineDashLengths( - NSArray value); - - @Generated - @Selector("setHighlightLineDashPhase:") - public native void setHighlightLineDashPhase(@NFloat double value); - - @Generated - @Selector("setHighlightLineWidth:") - public native void setHighlightLineWidth(@NFloat double value); - - @Generated - @Selector("setStackLabels:") - public native void setStackLabels(NSArray value); - - @Generated - @Selector("setValueFont:") - public native void setValueFont(UIFont value); - - @Generated - @Selector("setValueFormatter:") - public native void setValueFormatter( - @Mapped(ObjCObjectMapper.class) Object value); - - @Generated - @Selector("setValueTextColor:") - public native void setValueTextColor(UIColor value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setVisible:") - public native void setVisible(boolean value); - - @Generated - @Selector("stackLabels") - public native NSArray stackLabels(); - - @Generated - @Selector("stackSize") - @NInt - public native long stackSize(); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("valueColors") - public native NSArray valueColors(); - - @Generated - @Selector("valueFont") - public native UIFont valueFont(); - - @Generated - @Selector("valueFormatter") - @MappedReturn(ObjCObjectMapper.class) - public native Object valueFormatter(); - - @Generated - @Selector("valueTextColor") - public native UIColor valueTextColor(); - - @Generated - @Selector("valueTextColorAt:") - public native UIColor valueTextColorAt(@NInt long index); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("visible") - public native boolean visible(); - - @Generated - @Selector("xMax") - public native double xMax(); - - @Generated - @Selector("xMin") - public native double xMin(); - - @Generated - @Selector("yMax") - public native double yMax(); - - @Generated - @Selector("yMin") - public native double yMin(); +public class BarChartDataSet extends BarLineScatterCandleBubbleChartDataSet implements IBarChartDataSet { + static { + NatJ.register(); + } + + @Generated + protected BarChartDataSet(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addColor:") + public native void addColor(UIColor color); + + @Generated + @Selector("addEntry:") + public native boolean addEntry(ChartDataEntry e); + + @Generated + @Selector("addEntryOrdered:") + public native boolean addEntryOrdered(ChartDataEntry e); + + @Generated + @Owned + @Selector("alloc") + public static native BarChartDataSet alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("axisDependency") + @NInt + public native long axisDependency(); + + @Generated + @Selector("barBorderColor") + public native UIColor barBorderColor(); + + @Generated + @Selector("barBorderWidth") + @NFloat + public native double barBorderWidth(); + + @Generated + @Selector("barShadowColor") + public native UIColor barShadowColor(); + + @Generated + @Selector("calcMinMax") + public native void calcMinMax(); + + @Generated + @Selector("calcMinMaxYFromX:toX:") + public native void calcMinMaxYFromXToX(double fromX, double toX); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clear") + public native void clear(); + + @Generated + @Selector("colorAtIndex:") + public native UIColor colorAtIndex(@NInt long atIndex); + + @Generated + @Selector("colors") + public native NSArray colors(); + + @Generated + @Selector("contains:") + public native boolean contains(ChartDataEntry e); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawIconsEnabled") + public native boolean drawIconsEnabled(); + + @Generated + @Selector("drawValuesEnabled") + public native boolean drawValuesEnabled(); + + @Generated + @Selector("entriesForXValue:") + public native NSArray entriesForXValue(double xValue); + + @Generated + @Selector("entryCount") + @NInt + public native long entryCount(); + + /** + * The overall entry count, including counting each stack-value individually + */ + @Generated + @Selector("entryCountStacks") + @NInt + public native long entryCountStacks(); + + @Generated + @Selector("entryForIndex:") + public native ChartDataEntry entryForIndex(@NInt long i); + + @Generated + @Selector("entryForXValue:closestToY:") + public native ChartDataEntry entryForXValueClosestToY(double xValue, double yValue); + + @Generated + @Selector("entryForXValue:closestToY:rounding:") + public native ChartDataEntry entryForXValueClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("entryIndexWithEntry:") + @NInt + public native long entryIndexWithEntry(ChartDataEntry e); + + @Generated + @Selector("entryIndexWithX:closestToY:rounding:") + @NInt + public native long entryIndexWithXClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("form") + @NInt + public native long form(); + + @Generated + @Selector("formLineDashLengths") + public native NSArray formLineDashLengths(); + + @Generated + @Selector("formLineDashPhase") + @NFloat + public native double formLineDashPhase(); + + @Generated + @Selector("formLineWidth") + @NFloat + public native double formLineWidth(); + + @Generated + @Selector("formSize") + @NFloat + public native double formSize(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highlightAlpha") + @NFloat + public native double highlightAlpha(); + + @Generated + @Selector("highlightColor") + public native UIColor highlightColor(); + + @Generated + @Selector("highlightEnabled") + public native boolean highlightEnabled(); + + @Generated + @Selector("highlightLineDashLengths") + public native NSArray highlightLineDashLengths(); + + @Generated + @Selector("highlightLineDashPhase") + @NFloat + public native double highlightLineDashPhase(); + + @Generated + @Selector("highlightLineWidth") + @NFloat + public native double highlightLineWidth(); + + @Generated + @Selector("iconsOffset") + @ByValue + public native CGPoint iconsOffset(); + + @Generated + @Selector("init") + public native BarChartDataSet init(); + + @Generated + @Selector("initWithEntries:") + public native BarChartDataSet initWithEntries(NSArray entries); + + @Generated + @Selector("initWithEntries:label:") + public native BarChartDataSet initWithEntriesLabel(NSArray entries, String label); + + @Generated + @Selector("initWithLabel:") + public native BarChartDataSet initWithLabel(String label); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isDrawIconsEnabled") + public native boolean isDrawIconsEnabled(); + + @Generated + @Selector("isDrawValuesEnabled") + public native boolean isDrawValuesEnabled(); + + @Generated + @Selector("isHighlightEnabled") + public native boolean isHighlightEnabled(); + + @Generated + @Selector("isStacked") + public native boolean isStacked(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("isVisible") + public native boolean isVisible(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("label") + public native String label(); + + @Generated + @Selector("needsFormatter") + public native boolean needsFormatter(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("notifyDataSetChanged") + public native void notifyDataSetChanged(); + + @Generated + @Selector("removeEntry:") + public native boolean removeEntry(ChartDataEntry entry); + + @Generated + @Selector("removeEntryWithIndex:") + public native boolean removeEntryWithIndex(@NInt long index); + + @Generated + @Selector("removeEntryWithX:") + public native boolean removeEntryWithX(double x); + + @Generated + @Selector("removeFirst") + public native boolean removeFirst(); + + @Generated + @Selector("removeLast") + public native boolean removeLast(); + + @Generated + @Selector("resetColors") + public native void resetColors(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setBarBorderColor:") + public native void setBarBorderColor(UIColor value); + + @Generated + @Selector("setBarBorderWidth:") + public native void setBarBorderWidth(@NFloat double value); + + @Generated + @Selector("setBarShadowColor:") + public native void setBarShadowColor(UIColor value); + + @Generated + @Selector("setColor:") + public native void setColor(UIColor color); + + @Generated + @Selector("setDrawIconsEnabled:") + public native void setDrawIconsEnabled(boolean value); + + @Generated + @Selector("setDrawValuesEnabled:") + public native void setDrawValuesEnabled(boolean value); + + @Generated + @Selector("setHighlightAlpha:") + public native void setHighlightAlpha(@NFloat double value); + + @Generated + @Selector("setHighlightColor:") + public native void setHighlightColor(UIColor value); + + @Generated + @Selector("setHighlightEnabled:") + public native void setHighlightEnabled(boolean value); + + @Generated + @Selector("setHighlightLineDashLengths:") + public native void setHighlightLineDashLengths(NSArray value); + + @Generated + @Selector("setHighlightLineDashPhase:") + public native void setHighlightLineDashPhase(@NFloat double value); + + @Generated + @Selector("setHighlightLineWidth:") + public native void setHighlightLineWidth(@NFloat double value); + + @Generated + @Selector("setIconsOffset:") + public native void setIconsOffset(@ByValue CGPoint value); + + @Generated + @Selector("setStackLabels:") + public native void setStackLabels(NSArray value); + + @Generated + @Selector("setValueFont:") + public native void setValueFont(UIFont value); + + @Generated + @Selector("setValueFormatter:") + public native void setValueFormatter(@Mapped(ObjCObjectMapper.class) IChartValueFormatter value); + + @Generated + @Selector("setValueTextColor:") + public native void setValueTextColor(UIColor value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("setVisible:") + public native void setVisible(boolean value); + + @Generated + @Selector("stackLabels") + public native NSArray stackLabels(); + + @Generated + @Selector("stackSize") + @NInt + public native long stackSize(); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("valueColors") + public native NSArray valueColors(); + + @Generated + @Selector("valueFont") + public native UIFont valueFont(); + + @Generated + @Selector("valueFormatter") + @MappedReturn(ObjCObjectMapper.class) + public native IChartValueFormatter valueFormatter(); + + @Generated + @Selector("valueTextColor") + public native UIColor valueTextColor(); + + @Generated + @Selector("valueTextColorAt:") + public native UIColor valueTextColorAt(@NInt long index); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("visible") + public native boolean visible(); + + @Generated + @Selector("xMax") + public native double xMax(); + + @Generated + @Selector("xMin") + public native double xMin(); + + @Generated + @Selector("yMax") + public native double yMax(); + + @Generated + @Selector("yMin") + public native double yMin(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartHighlighter.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartHighlighter.java index 8809f9ce..aa990b07 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartHighlighter.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartHighlighter.java @@ -31,152 +31,153 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class BarChartHighlighter extends ChartHighlighter { - static { - NatJ.register(); - } - - @Generated - protected BarChartHighlighter(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native BarChartHighlighter alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("getClosestStackIndexWithRanges:value:") - @NInt - public native long getClosestStackIndexWithRangesValue( - NSArray ranges, double value); - - @Generated - @Selector("getHighlightWithX:y:") - public native ChartHighlight getHighlightWithXY(@NFloat double x, - @NFloat double y); - - @Generated - @Selector("getStackedHighlightWithHigh:set:xValue:yValue:") - public native ChartHighlight getStackedHighlightWithHighSetXValueYValue( - ChartHighlight high, - @Mapped(ObjCObjectMapper.class) IBarChartDataSet set, - double xValue, double yValue); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native BarChartHighlighter init(); - - @Generated - @Selector("initWithChart:") - public native BarChartHighlighter initWithChart( - @Mapped(ObjCObjectMapper.class) Object chart); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected BarChartHighlighter(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native BarChartHighlighter alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * \param entry + * + * \param value + * + * + * returns: + * The index of the closest value inside the values array / ranges (stacked barchart) to the value given as a parameter. + */ + @Generated + @Selector("getClosestStackIndexWithRanges:value:") + @NInt + public native long getClosestStackIndexWithRangesValue(NSArray ranges, double value); + + @Generated + @Selector("getHighlightWithX:y:") + public native ChartHighlight getHighlightWithXY(@NFloat double x, @NFloat double y); + + /** + * This method creates the Highlight object that also indicates which value of a stacked BarEntry has been selected. + * \param high the Highlight to work with looking for stacked values + * + * \param set + * + * \param xIndex + * + * \param yValue + * + * + * returns: + */ + @Generated + @Selector("getStackedHighlightWithHigh:set:xValue:yValue:") + public native ChartHighlight getStackedHighlightWithHighSetXValueYValue(ChartHighlight high, + @Mapped(ObjCObjectMapper.class) IBarChartDataSet set, double xValue, double yValue); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native BarChartHighlighter init(); + + @Generated + @Selector("initWithChart:") + public native BarChartHighlighter initWithChart(@Mapped(ObjCObjectMapper.class) Object chart); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartRenderer.java index 4c3289a1..6712b115 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartRenderer.java @@ -37,201 +37,182 @@ @ObjCClassName("_TtC6Charts16BarChartRenderer") @ObjCClassBinding public class BarChartRenderer extends BarLineScatterCandleBubbleChartRenderer { - static { - NatJ.register(); - } - - @Generated - protected BarChartRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native BarChartRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("dataProvider") - @MappedReturn(ObjCObjectMapper.class) - public native BarChartDataProvider dataProvider(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawDataSetWithContext:dataSet:index:") - public native void drawDataSetWithContextDataSetIndex(CGContextRef context, - @Mapped(ObjCObjectMapper.class) IBarChartDataSet dataSet, - @NInt long index); - - @Generated - @Selector("drawDataWithContext:") - public native void drawDataWithContext(CGContextRef context); - - @Generated - @Selector("drawExtrasWithContext:") - public native void drawExtrasWithContext(CGContextRef context); - - @Generated - @Selector("drawHighlightedWithContext:indices:") - public native void drawHighlightedWithContextIndices(CGContextRef context, - NSArray indices); - - @Generated - @Selector("drawValueWithContext:value:xPos:yPos:font:align:color:") - public native void drawValueWithContextValueXPosYPosFontAlignColor( - CGContextRef context, String value, @NFloat double xPos, - @NFloat double yPos, UIFont font, @NInt long align, UIColor color); - - @Generated - @Selector("drawValuesWithContext:") - public native void drawValuesWithContext(CGContextRef context); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native BarChartRenderer init(); - - @Generated - @Selector("initBuffers") - public native void initBuffers(); - - @Generated - @Selector("initWithAnimator:viewPortHandler:") - public native BarChartRenderer initWithAnimatorViewPortHandler( - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithDataProvider:animator:viewPortHandler:") - public native BarChartRenderer initWithDataProviderAnimatorViewPortHandler( - @Mapped(ObjCObjectMapper.class) BarChartDataProvider dataProvider, - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:") - public native BarChartRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setDataProvider:") - public native void setDataProvider_unsafe( - @Mapped(ObjCObjectMapper.class) BarChartDataProvider value); - - @Generated - public void setDataProvider( - @Mapped(ObjCObjectMapper.class) BarChartDataProvider value) { - Object __old = dataProvider(); - if (value != null) { - org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); - } - setDataProvider_unsafe(value); - if (__old != null) { - org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); - } - } - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected BarChartRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native BarChartRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("dataProvider") + @MappedReturn(ObjCObjectMapper.class) + public native BarChartDataProvider dataProvider(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawDataSetWithContext:dataSet:index:") + public native void drawDataSetWithContextDataSetIndex(CGContextRef context, + @Mapped(ObjCObjectMapper.class) IBarChartDataSet dataSet, @NInt long index); + + @Generated + @Selector("drawDataWithContext:") + public native void drawDataWithContext(CGContextRef context); + + @Generated + @Selector("drawExtrasWithContext:") + public native void drawExtrasWithContext(CGContextRef context); + + @Generated + @Selector("drawHighlightedWithContext:indices:") + public native void drawHighlightedWithContextIndices(CGContextRef context, NSArray indices); + + /** + * Draws a value at the specified x and y position. + */ + @Generated + @Selector("drawValueWithContext:value:xPos:yPos:font:align:color:") + public native void drawValueWithContextValueXPosYPosFontAlignColor(CGContextRef context, String value, + @NFloat double xPos, @NFloat double yPos, UIFont font, @NInt long align, UIColor color); + + @Generated + @Selector("drawValuesWithContext:") + public native void drawValuesWithContext(CGContextRef context); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native BarChartRenderer init(); + + @Generated + @Selector("initBuffers") + public native void initBuffers(); + + @Generated + @Selector("initWithAnimator:viewPortHandler:") + public native BarChartRenderer initWithAnimatorViewPortHandler(ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithDataProvider:animator:viewPortHandler:") + public native BarChartRenderer initWithDataProviderAnimatorViewPortHandler( + @Mapped(ObjCObjectMapper.class) BarChartDataProvider dataProvider, ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:") + public native BarChartRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setDataProvider:") + public native void setDataProvider_unsafe(@Mapped(ObjCObjectMapper.class) BarChartDataProvider value); + + @Generated + public void setDataProvider(@Mapped(ObjCObjectMapper.class) BarChartDataProvider value) { + Object __old = dataProvider(); + if (value != null) { + org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); + } + setDataProvider_unsafe(value); + if (__old != null) { + org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); + } + } + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartView.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartView.java index f6e03136..c02b17a8 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartView.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarChartView.java @@ -11,6 +11,7 @@ import apple.foundation.NSSet; import apple.uikit.UITraitCollection; import apple.uikit.UIView; +import apple.uikit.protocol.UIAppearanceContainer; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.c.ann.Variadic; import org.moe.natj.general.NatJ; @@ -37,535 +38,564 @@ import org.moe.natj.objc.map.ObjCObjectMapper; import org.moe.samples.simplechart.charts.protocol.BarChartDataProvider; +/** + * Chart that draws bars. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts12BarChartView") @ObjCClassBinding -public class BarChartView extends BarLineChartViewBase implements - BarChartDataProvider { - static { - NatJ.register(); - } - - @Generated - protected BarChartView(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") - public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( - double frameStartTime, - double frameDuration, - @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); - - @Generated - @Owned - @Selector("alloc") - public static native BarChartView alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") - public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:animations:") - public static native void animateWithDurationAnimations( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); - - @Generated - @Selector("animateWithDuration:animations:completion:") - public static native void animateWithDurationAnimationsCompletion( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); - - @Generated - @Selector("animateWithDuration:delay:options:animations:completion:") - public static native void animateWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") - public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( - double duration, - double delay, - @NFloat double dampingRatio, - @NFloat double velocity, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); - - @Generated - @Selector("appearance") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearance(); - - @Generated - @ProtocolClassMethod("appearance") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearance() { - return appearance(); - } - - @Generated - @Selector("appearanceForTraitCollection:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollection( - UITraitCollection trait); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollection") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollection(UITraitCollection trait) { - return appearanceForTraitCollection(trait); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceForTraitCollection:whenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceForTraitCollectionWhenContainedIn(trait, - ContainerClass, varargs); - } - - @Generated - @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes) { - return appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - trait, containerTypes); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceWhenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceWhenContainedIn(ContainerClass, varargs); - } - - @Generated - @Selector("appearanceWhenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes) { - return appearanceWhenContainedInInstancesOfClasses(containerTypes); - } - - @Generated - @Selector("areAnimationsEnabled") - public static native boolean areAnimationsEnabled(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("barData") - public native BarChartData barData(); - - @Generated - @Selector("beginAnimations:context:") - public static native void beginAnimationsContext(String animationID, - VoidPtr context); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("centerOffsets") - @ByValue - public native CGPoint centerOffsets(); - - @Generated - @Selector("chartXMax") - public native double chartXMax(); - - @Generated - @Selector("chartXMin") - public native double chartXMin(); - - @Generated - @Selector("chartYMax") - public native double chartYMax(); - - @Generated - @Selector("chartYMin") - public native double chartYMin(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clearTextInputContextIdentifier:") - public static native void clearTextInputContextIdentifier(String identifier); - - @Generated - @Selector("commitAnimations") - public static native void commitAnimations(); - - @Generated - @Selector("data") - public native ChartData data(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawBarShadowEnabled") - public native boolean drawBarShadowEnabled(); - - @Generated - @Selector("drawValueAboveBarEnabled") - public native boolean drawValueAboveBarEnabled(); - - @Generated - @Selector("fitBars") - public native boolean fitBars(); - - @Generated - @Selector("getBarBoundsWithEntry:") - @ByValue - public native CGRect getBarBoundsWithEntry(BarChartDataEntry e); - - @Generated - @Selector("getHighlightByTouchPoint:") - public native ChartHighlight getHighlightByTouchPoint(@ByValue CGPoint pt); - - @Generated - @Selector("getTransformerForAxis:") - public native ChartTransformer getTransformerForAxis(@NInt long forAxis); - - @Generated - @Selector("groupBarsFromX:groupSpace:barSpace:") - public native void groupBarsFromXGroupSpaceBarSpace(double fromX, - double groupSpace, double barSpace); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highestVisibleX") - public native double highestVisibleX(); - - @Generated - @Selector("highlightFullBarEnabled") - public native boolean highlightFullBarEnabled(); - - @Generated - @Selector("highlightValueWithX:dataSetIndex:stackIndex:") - public native void highlightValueWithXDataSetIndexStackIndex(double x, - @NInt long dataSetIndex, @NInt long stackIndex); - - @Generated - @Selector("inheritedAnimationDuration") - public static native double inheritedAnimationDuration(); - - @Generated - @Selector("init") - public native BarChartView init(); - - @Generated - @Selector("initWithCoder:") - public native BarChartView initWithCoder(NSCoder aDecoder); - - @Generated - @Selector("initWithFrame:") - public native BarChartView initWithFrame(@ByValue CGRect frame); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawBarShadowEnabled") - public native boolean isDrawBarShadowEnabled(); - - @Generated - @Selector("isDrawValueAboveBarEnabled") - public native boolean isDrawValueAboveBarEnabled(); - - @Generated - @Selector("isHighlightFullBarEnabled") - public native boolean isHighlightFullBarEnabled(); - - @Generated - @Selector("isInvertedWithAxis:") - public native boolean isInvertedWithAxis(@NInt long axis); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("layerClass") - public static native Class layerClass(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("lowestVisibleX") - public native double lowestVisibleX(); - - @Generated - @Selector("maxHighlightDistance") - @NFloat - public native double maxHighlightDistance(); - - @Generated - @Selector("maxVisibleCount") - @NInt - public native long maxVisibleCount(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("performSystemAnimation:onViews:options:animations:completion:") - public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( - @NUInt long animation, - NSArray views, - @NUInt long options, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("performWithoutAnimation:") - public static native void performWithoutAnimation( - @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); - - @Generated - @Selector("requiresConstraintBasedLayout") - public static native boolean requiresConstraintBasedLayout(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setAnimationBeginsFromCurrentState:") - public static native void setAnimationBeginsFromCurrentState( - boolean fromCurrentState); - - @Generated - @Selector("setAnimationCurve:") - public static native void setAnimationCurve(@NInt long curve); - - @Generated - @Selector("setAnimationDelay:") - public static native void setAnimationDelay(double delay); - - @Generated - @Selector("setAnimationDelegate:") - public static native void setAnimationDelegate( - @Mapped(ObjCObjectMapper.class) Object delegate); - - @Generated - @Selector("setAnimationDidStopSelector:") - public static native void setAnimationDidStopSelector(SEL selector); - - @Generated - @Selector("setAnimationDuration:") - public static native void setAnimationDuration_static(double duration); - - @Generated - @Selector("setAnimationRepeatAutoreverses:") - public static native void setAnimationRepeatAutoreverses( - boolean repeatAutoreverses); - - @Generated - @Selector("setAnimationRepeatCount:") - public static native void setAnimationRepeatCount_static(float repeatCount); - - @Generated - @Selector("setAnimationStartDate:") - public static native void setAnimationStartDate(NSDate startDate); - - @Generated - @Selector("setAnimationTransition:forView:cache:") - public static native void setAnimationTransitionForViewCache( - @NInt long transition, UIView view, boolean cache); - - @Generated - @Selector("setAnimationWillStartSelector:") - public static native void setAnimationWillStartSelector(SEL selector); - - @Generated - @Selector("setAnimationsEnabled:") - public static native void setAnimationsEnabled(boolean enabled); - - @Generated - @Selector("setDrawBarShadowEnabled:") - public native void setDrawBarShadowEnabled(boolean value); - - @Generated - @Selector("setDrawValueAboveBarEnabled:") - public native void setDrawValueAboveBarEnabled(boolean value); - - @Generated - @Selector("setFitBars:") - public native void setFitBars(boolean value); - - @Generated - @Selector("setHighlightFullBarEnabled:") - public native void setHighlightFullBarEnabled(boolean value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transitionFromView:toView:duration:options:completion:") - public static native void transitionFromViewToViewDurationOptionsCompletion( - UIView fromView, - UIView toView, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); - - @Generated - @Selector("transitionWithView:duration:options:animations:completion:") - public static native void transitionWithViewDurationOptionsAnimationsCompletion( - UIView view, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttribute( - @NInt long attribute); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( - @NInt long semanticContentAttribute, @NInt long layoutDirection); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("xRange") - public native double xRange(); +public class BarChartView extends BarLineChartViewBase implements BarChartDataProvider { + static { + NatJ.register(); + } + + @Generated + protected BarChartView(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") + public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( + double frameStartTime, + double frameDuration, + @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); + + @Generated + @Owned + @Selector("alloc") + public static native BarChartView alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") + public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:animations:") + public static native void animateWithDurationAnimations( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); + + @Generated + @Selector("animateWithDuration:animations:completion:") + public static native void animateWithDurationAnimationsCompletion( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); + + @Generated + @Selector("animateWithDuration:delay:options:animations:completion:") + public static native void animateWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") + public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( + double duration, + double delay, + @NFloat double dampingRatio, + @NFloat double velocity, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); + + @Generated + @Selector("appearance") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearance(); + + @Generated + @ProtocolClassMethod("appearance") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearance() { + return appearance(); + } + + @Generated + @Selector("appearanceForTraitCollection:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollection(UITraitCollection trait); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollection") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollection(UITraitCollection trait) { + return appearanceForTraitCollection(trait); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceForTraitCollection:whenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs) { + return appearanceForTraitCollectionWhenContainedIn(trait, ContainerClass, varargs); + } + + @Generated + @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes) { + return appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait, containerTypes); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceWhenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedIn( + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedIn(@Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, + Object... varargs) { + return appearanceWhenContainedIn(ContainerClass, varargs); + } + + @Generated + @Selector("appearanceWhenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes) { + return appearanceWhenContainedInInstancesOfClasses(containerTypes); + } + + @Generated + @Selector("areAnimationsEnabled") + public static native boolean areAnimationsEnabled(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("barData") + public native BarChartData barData(); + + @Generated + @Selector("beginAnimations:context:") + public static native void beginAnimationsContext(String animationID, VoidPtr context); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("centerOffsets") + @ByValue + public native CGPoint centerOffsets(); + + @Generated + @Selector("chartXMax") + public native double chartXMax(); + + @Generated + @Selector("chartXMin") + public native double chartXMin(); + + @Generated + @Selector("chartYMax") + public native double chartYMax(); + + @Generated + @Selector("chartYMin") + public native double chartYMin(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clearTextInputContextIdentifier:") + public static native void clearTextInputContextIdentifier(String identifier); + + @Generated + @Selector("commitAnimations") + public static native void commitAnimations(); + + @Generated + @Selector("data") + public native ChartData data(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * if set to true, a grey area is drawn behind each bar that indicates the maximum value + */ + @Generated + @Selector("drawBarShadowEnabled") + public native boolean drawBarShadowEnabled(); + + /** + * if set to true, all values are drawn above their bars, instead of below their top + */ + @Generated + @Selector("drawValueAboveBarEnabled") + public native boolean drawValueAboveBarEnabled(); + + /** + * Adds half of the bar width to each side of the x-axis range in order to allow the bars of the barchart to be fully displayed. + * default: false + */ + @Generated + @Selector("fitBars") + public native boolean fitBars(); + + /** + * returns: + * The bounding box of the specified Entry in the specified DataSet. Returns null if the Entry could not be found in the charts data. + */ + @Generated + @Selector("getBarBoundsWithEntry:") + @ByValue + public native CGRect getBarBoundsWithEntry(BarChartDataEntry e); + + /** + * returns: + * The Highlight object (contains x-index and DataSet index) of the selected value at the given touch point inside the BarChart. + */ + @Generated + @Selector("getHighlightByTouchPoint:") + public native ChartHighlight getHighlightByTouchPoint(@ByValue CGPoint pt); + + @Generated + @Selector("getTransformerForAxis:") + public native ChartTransformer getTransformerForAxis(@NInt long forAxis); + + /** + * Groups all BarDataSet objects this data object holds together by modifying the x-value of their entries. + * Previously set x-values of entries will be overwritten. Leaves space between bars and groups as specified by the parameters. + * Calls notifyDataSetChanged() afterwards. + * \param fromX the starting point on the x-axis where the grouping should begin + * + * \param groupSpace the space between groups of bars in values (not pixels) e.g. 0.8f for bar width 1f + * + * \param barSpace the space between individual bars in values (not pixels) e.g. 0.1f for bar width 1f + */ + @Generated + @Selector("groupBarsFromX:groupSpace:barSpace:") + public native void groupBarsFromXGroupSpaceBarSpace(double fromX, double groupSpace, double barSpace); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highestVisibleX") + public native double highestVisibleX(); + + /** + * Set this to true to make the highlight operation full-bar oriented, false to make it highlight single values (relevant only for stacked). + * If enabled, highlighting operations will highlight the whole bar, even if only a single stack entry was tapped. + */ + @Generated + @Selector("highlightFullBarEnabled") + public native boolean highlightFullBarEnabled(); + + /** + * Highlights the value at the given x-value in the given DataSet. Provide -1 as the dataSetIndex to undo all highlighting. + * \param x + * + * \param dataSetIndex + * + * \param stackIndex the index inside the stack - only relevant for stacked entries + */ + @Generated + @Selector("highlightValueWithX:dataSetIndex:stackIndex:") + public native void highlightValueWithXDataSetIndexStackIndex(double x, @NInt long dataSetIndex, + @NInt long stackIndex); + + @Generated + @Selector("inheritedAnimationDuration") + public static native double inheritedAnimationDuration(); + + @Generated + @Selector("init") + public native BarChartView init(); + + @Generated + @Selector("initWithCoder:") + public native BarChartView initWithCoder(NSCoder aDecoder); + + @Generated + @Selector("initWithFrame:") + public native BarChartView initWithFrame(@ByValue CGRect frame); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isDrawBarShadowEnabled") + public native boolean isDrawBarShadowEnabled(); + + @Generated + @Selector("isDrawValueAboveBarEnabled") + public native boolean isDrawValueAboveBarEnabled(); + + @Generated + @Selector("isHighlightFullBarEnabled") + public native boolean isHighlightFullBarEnabled(); + + @Generated + @Selector("isInvertedWithAxis:") + public native boolean isInvertedWithAxis(@NInt long axis); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("layerClass") + public static native Class layerClass(); + + @Generated + @Selector("lowestVisibleX") + public native double lowestVisibleX(); + + @Generated + @Selector("maxHighlightDistance") + @NFloat + public native double maxHighlightDistance(); + + @Generated + @Selector("maxVisibleCount") + @NInt + public native long maxVisibleCount(); + + @Generated + @Selector("modifyAnimationsWithRepeatCount:autoreverses:animations:") + public static native void modifyAnimationsWithRepeatCountAutoreversesAnimations( + @NFloat double count, + boolean autoreverses, + @ObjCBlock(name = "call_modifyAnimationsWithRepeatCountAutoreversesAnimations") UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("performSystemAnimation:onViews:options:animations:completion:") + public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( + @NUInt long animation, + NSArray views, + @NUInt long options, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("performWithoutAnimation:") + public static native void performWithoutAnimation( + @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); + + @Generated + @Selector("requiresConstraintBasedLayout") + public static native boolean requiresConstraintBasedLayout(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setAnimationBeginsFromCurrentState:") + public static native void setAnimationBeginsFromCurrentState(boolean fromCurrentState); + + @Generated + @Selector("setAnimationCurve:") + public static native void setAnimationCurve(@NInt long curve); + + @Generated + @Selector("setAnimationDelay:") + public static native void setAnimationDelay(double delay); + + @Generated + @Selector("setAnimationDelegate:") + public static native void setAnimationDelegate(@Mapped(ObjCObjectMapper.class) Object delegate); + + @Generated + @Selector("setAnimationDidStopSelector:") + public static native void setAnimationDidStopSelector(SEL selector); + + @Generated + @Selector("setAnimationDuration:") + public static native void setAnimationDuration_static(double duration); + + @Generated + @Selector("setAnimationRepeatAutoreverses:") + public static native void setAnimationRepeatAutoreverses(boolean repeatAutoreverses); + + @Generated + @Selector("setAnimationRepeatCount:") + public static native void setAnimationRepeatCount_static(float repeatCount); + + @Generated + @Selector("setAnimationStartDate:") + public static native void setAnimationStartDate(NSDate startDate); + + @Generated + @Selector("setAnimationTransition:forView:cache:") + public static native void setAnimationTransitionForViewCache(@NInt long transition, UIView view, boolean cache); + + @Generated + @Selector("setAnimationWillStartSelector:") + public static native void setAnimationWillStartSelector(SEL selector); + + @Generated + @Selector("setAnimationsEnabled:") + public static native void setAnimationsEnabled(boolean enabled); + + /** + * if set to true, a grey area is drawn behind each bar that indicates the maximum value + */ + @Generated + @Selector("setDrawBarShadowEnabled:") + public native void setDrawBarShadowEnabled(boolean value); + + /** + * if set to true, all values are drawn above their bars, instead of below their top + */ + @Generated + @Selector("setDrawValueAboveBarEnabled:") + public native void setDrawValueAboveBarEnabled(boolean value); + + /** + * Adds half of the bar width to each side of the x-axis range in order to allow the bars of the barchart to be fully displayed. + * default: false + */ + @Generated + @Selector("setFitBars:") + public native void setFitBars(boolean value); + + /** + * Set this to true to make the highlight operation full-bar oriented, false to make it highlight single values (relevant only for stacked). + * If enabled, highlighting operations will highlight the whole bar, even if only a single stack entry was tapped. + */ + @Generated + @Selector("setHighlightFullBarEnabled:") + public native void setHighlightFullBarEnabled(boolean value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("transitionFromView:toView:duration:options:completion:") + public static native void transitionFromViewToViewDurationOptionsCompletion( + UIView fromView, + UIView toView, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); + + @Generated + @Selector("transitionWithView:duration:options:animations:completion:") + public static native void transitionWithViewDurationOptionsAnimationsCompletion( + UIView view, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttribute(@NInt long attribute); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( + @NInt long semanticContentAttribute, @NInt long layoutDirection); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("xRange") + public native double xRange(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineChartViewBase.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineChartViewBase.java index 2a22f2c9..5e070e4f 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineChartViewBase.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineChartViewBase.java @@ -11,11 +11,13 @@ import apple.foundation.NSMethodSignature; import apple.foundation.NSSet; import apple.uikit.UIColor; +import apple.uikit.UIEvent; import apple.uikit.UIGestureRecognizer; import apple.uikit.UIPress; import apple.uikit.UITouch; import apple.uikit.UITraitCollection; import apple.uikit.UIView; +import apple.uikit.protocol.UIAppearanceContainer; import apple.uikit.protocol.UIGestureRecognizerDelegate; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.c.ann.Variadic; @@ -45,995 +47,1462 @@ import org.moe.samples.simplechart.charts.protocol.BarLineScatterCandleBubbleChartDataProvider; import org.moe.samples.simplechart.charts.protocol.IBarLineScatterCandleBubbleChartDataSet; +/** + * Base-class of LineChart, BarChart, ScatterChart and CandleStickChart. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts20BarLineChartViewBase") @ObjCClassBinding -public class BarLineChartViewBase extends ChartViewBase implements - BarLineScatterCandleBubbleChartDataProvider, - UIGestureRecognizerDelegate { - static { - NatJ.register(); - } - - @Generated - protected BarLineChartViewBase(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") - public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( - double frameStartTime, - double frameDuration, - @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); - - @Generated - @Owned - @Selector("alloc") - public static native BarLineChartViewBase alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") - public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:animations:") - public static native void animateWithDurationAnimations( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); - - @Generated - @Selector("animateWithDuration:animations:completion:") - public static native void animateWithDurationAnimationsCompletion( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); - - @Generated - @Selector("animateWithDuration:delay:options:animations:completion:") - public static native void animateWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") - public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( - double duration, - double delay, - @NFloat double dampingRatio, - @NFloat double velocity, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); - - @Generated - @Selector("appearance") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearance(); - - @Generated - @ProtocolClassMethod("appearance") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearance() { - return appearance(); - } - - @Generated - @Selector("appearanceForTraitCollection:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollection( - UITraitCollection trait); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollection") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollection(UITraitCollection trait) { - return appearanceForTraitCollection(trait); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceForTraitCollection:whenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceForTraitCollectionWhenContainedIn(trait, - ContainerClass, varargs); - } - - @Generated - @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes) { - return appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - trait, containerTypes); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceWhenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceWhenContainedIn(ContainerClass, varargs); - } - - @Generated - @Selector("appearanceWhenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes) { - return appearanceWhenContainedInInstancesOfClasses(containerTypes); - } - - @Generated - @Selector("areAnimationsEnabled") - public static native boolean areAnimationsEnabled(); - - @Generated - @Selector("autoScaleMinMaxEnabled") - public native boolean autoScaleMinMaxEnabled(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("beginAnimations:context:") - public static native void beginAnimationsContext(String animationID, - VoidPtr context); - - @Generated - @Selector("borderColor") - public native UIColor borderColor(); - - @Generated - @Selector("borderLineWidth") - @NFloat - public native double borderLineWidth(); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("centerOffsets") - @ByValue - public native CGPoint centerOffsets(); - - @Generated - @Selector("centerViewToAnimatedWithXValue:yValue:axis:duration:") - public native void centerViewToAnimatedWithXValueYValueAxisDuration( - double xValue, double yValue, @NInt long axis, double duration); - - @Generated - @Selector("centerViewToAnimatedWithXValue:yValue:axis:duration:easing:") - public native void centerViewToAnimatedWithXValueYValueAxisDurationEasing( - double xValue, - double yValue, - @NInt long axis, - double duration, - @ObjCBlock(name = "call_centerViewToAnimatedWithXValueYValueAxisDurationEasing") Block_centerViewToAnimatedWithXValueYValueAxisDurationEasing easing); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_centerViewToAnimatedWithXValueYValueAxisDurationEasing { - @Generated - double call_centerViewToAnimatedWithXValueYValueAxisDurationEasing( - double arg0, double arg1); - } - - @Generated - @Selector("centerViewToAnimatedWithXValue:yValue:axis:duration:easingOption:") - public native void centerViewToAnimatedWithXValueYValueAxisDurationEasingOption( - double xValue, double yValue, @NInt long axis, double duration, - @NInt long easingOption); - - @Generated - @Selector("centerViewToXValue:yValue:axis:") - public native void centerViewToXValueYValueAxis(double xValue, - double yValue, @NInt long axis); - - @Generated - @Selector("chartXMax") - public native double chartXMax(); - - @Generated - @Selector("chartXMin") - public native double chartXMin(); - - @Generated - @Selector("chartYMax") - public native double chartYMax(); - - @Generated - @Selector("chartYMin") - public native double chartYMin(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clearTextInputContextIdentifier:") - public static native void clearTextInputContextIdentifier(String identifier); - - @Generated - @Selector("clipValuesToContentEnabled") - public native boolean clipValuesToContentEnabled(); - - @Generated - @Selector("commitAnimations") - public static native void commitAnimations(); - - @Generated - @Selector("data") - public native ChartData data(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("doubleTapToZoomEnabled") - public native boolean doubleTapToZoomEnabled(); - - @Generated - @Selector("dragEnabled") - public native boolean dragEnabled(); - - @Generated - @Selector("drawBordersEnabled") - public native boolean drawBordersEnabled(); - - @Generated - @Selector("drawGridBackgroundEnabled") - public native boolean drawGridBackgroundEnabled(); - - @Generated - @Selector("drawRect:") - public native void drawRect(@ByValue CGRect rect); - - @Generated - @Selector("fitScreen") - public native void fitScreen(); - - @Generated - @IsOptional - @Selector("gestureRecognizer:shouldBeRequiredToFailByGestureRecognizer:") - public native boolean gestureRecognizerShouldBeRequiredToFailByGestureRecognizer( - UIGestureRecognizer gestureRecognizer, - UIGestureRecognizer otherGestureRecognizer); - - @Generated - @IsOptional - @Selector("gestureRecognizer:shouldReceivePress:") - public native boolean gestureRecognizerShouldReceivePress( - UIGestureRecognizer gestureRecognizer, UIPress press); - - @Generated - @IsOptional - @Selector("gestureRecognizer:shouldReceiveTouch:") - public native boolean gestureRecognizerShouldReceiveTouch( - UIGestureRecognizer gestureRecognizer, UITouch touch); - - @Generated - @Selector("gestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer:") - public native boolean gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer( - UIGestureRecognizer gestureRecognizer, - UIGestureRecognizer otherGestureRecognizer); - - @Generated - @IsOptional - @Selector("gestureRecognizer:shouldRequireFailureOfGestureRecognizer:") - public native boolean gestureRecognizerShouldRequireFailureOfGestureRecognizer( - UIGestureRecognizer gestureRecognizer, - UIGestureRecognizer otherGestureRecognizer); - - @Generated - @Selector("gestureRecognizerShouldBegin:") - public native boolean gestureRecognizerShouldBegin( - UIGestureRecognizer gestureRecognizer); - - @Generated - @Selector("getAxis:") - public native ChartYAxis getAxis(@NInt long axis); - - @Generated - @Selector("getAxisRangeWithAxis:") - public native double getAxisRangeWithAxis(@NInt long axis); - - @Generated - @Selector("getDataSetByTouchPointWithPoint:") - @MappedReturn(ObjCObjectMapper.class) - public native IBarLineScatterCandleBubbleChartDataSet getDataSetByTouchPointWithPoint( - @ByValue CGPoint pt); - - @Generated - @Selector("getEntryByTouchPointWithPoint:") - public native ChartDataEntry getEntryByTouchPointWithPoint( - @ByValue CGPoint pt); - - @Generated - @Selector("getPositionWithEntry:axis:") - @ByValue - public native CGPoint getPositionWithEntryAxis(ChartDataEntry e, - @NInt long axis); - - @Generated - @Selector("getTransformerForAxis:") - public native ChartTransformer getTransformerForAxis(@NInt long axis); - - @Generated - @Selector("getYAxisMaxWidth:") - @NFloat - public native double getYAxisMaxWidth(@NInt long axis); - - @Generated - @Selector("getYAxisMinWidth:") - @NFloat - public native double getYAxisMinWidth(@NInt long axis); - - @Generated - @Selector("getYAxisWidth:") - @NFloat - public native double getYAxisWidth(@NInt long axis); - - @Generated - @Selector("gridBackgroundColor") - public native UIColor gridBackgroundColor(); - - @Generated - @Selector("hasNoDragOffset") - public native boolean hasNoDragOffset(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highestVisibleX") - public native double highestVisibleX(); - - @Generated - @Selector("highlightPerDragEnabled") - public native boolean highlightPerDragEnabled(); - - @Generated - @Selector("inheritedAnimationDuration") - public static native double inheritedAnimationDuration(); - - @Generated - @Selector("init") - public native BarLineChartViewBase init(); - - @Generated - @Selector("initWithCoder:") - public native BarLineChartViewBase initWithCoder(NSCoder aDecoder); - - @Generated - @Selector("initWithFrame:") - public native BarLineChartViewBase initWithFrame(@ByValue CGRect frame); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isAnyAxisInverted") - public native boolean isAnyAxisInverted(); - - @Generated - @Selector("isAutoScaleMinMaxEnabled") - public native boolean isAutoScaleMinMaxEnabled(); - - @Generated - @Selector("isDoubleTapToZoomEnabled") - public native boolean isDoubleTapToZoomEnabled(); - - @Generated - @Selector("isDragEnabled") - public native boolean isDragEnabled(); - - @Generated - @Selector("isDrawBordersEnabled") - public native boolean isDrawBordersEnabled(); - - @Generated - @Selector("isDrawGridBackgroundEnabled") - public native boolean isDrawGridBackgroundEnabled(); - - @Generated - @Selector("isFullyZoomedOut") - public native boolean isFullyZoomedOut(); - - @Generated - @Selector("isHighlightPerDragEnabled") - public native boolean isHighlightPerDragEnabled(); - - @Generated - @Selector("isInvertedWithAxis:") - public native boolean isInvertedWithAxis(@NInt long axis); - - @Generated - @Selector("isPinchZoomEnabled") - public native boolean isPinchZoomEnabled(); - - @Generated - @Selector("isScaleXEnabled") - public native boolean isScaleXEnabled(); - - @Generated - @Selector("isScaleYEnabled") - public native boolean isScaleYEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keepPositionOnRotation") - public native boolean keepPositionOnRotation(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("layerClass") - public static native Class layerClass(); - - @Generated - @Selector("leftAxis") - public native ChartYAxis leftAxis(); - - @Generated - @Selector("leftYAxisRenderer") - public native ChartYAxisRenderer leftYAxisRenderer(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("lowestVisibleX") - public native double lowestVisibleX(); - - @Generated - @Selector("maxHighlightDistance") - @NFloat - public native double maxHighlightDistance(); - - @Generated - @Selector("maxVisibleCount") - @NInt - public native long maxVisibleCount(); - - @Generated - @Selector("minOffset") - @NFloat - public native double minOffset(); - - @Generated - @Selector("moveViewToAnimatedWithXValue:yValue:axis:duration:") - public native void moveViewToAnimatedWithXValueYValueAxisDuration( - double xValue, double yValue, @NInt long axis, double duration); - - @Generated - @Selector("moveViewToAnimatedWithXValue:yValue:axis:duration:easing:") - public native void moveViewToAnimatedWithXValueYValueAxisDurationEasing( - double xValue, - double yValue, - @NInt long axis, - double duration, - @ObjCBlock(name = "call_moveViewToAnimatedWithXValueYValueAxisDurationEasing") Block_moveViewToAnimatedWithXValueYValueAxisDurationEasing easing); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_moveViewToAnimatedWithXValueYValueAxisDurationEasing { - @Generated - double call_moveViewToAnimatedWithXValueYValueAxisDurationEasing( - double arg0, double arg1); - } - - @Generated - @Selector("moveViewToAnimatedWithXValue:yValue:axis:duration:easingOption:") - public native void moveViewToAnimatedWithXValueYValueAxisDurationEasingOption( - double xValue, double yValue, @NInt long axis, double duration, - @NInt long easingOption); - - @Generated - @Selector("moveViewToX:") - public native void moveViewToX(double xValue); - - @Generated - @Selector("moveViewToXValue:yValue:axis:") - public native void moveViewToXValueYValueAxis(double xValue, double yValue, - @NInt long axis); - - @Generated - @Selector("moveViewToY:axis:") - public native void moveViewToYAxis(double yValue, @NInt long axis); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("observeValueForKeyPath:ofObject:change:context:") - public native void observeValueForKeyPathOfObjectChangeContext( - String keyPath, @Mapped(ObjCObjectMapper.class) Object object, - NSDictionary change, VoidPtr context); - - @Generated - @Selector("performSystemAnimation:onViews:options:animations:completion:") - public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( - @NUInt long animation, - NSArray views, - @NUInt long options, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("performWithoutAnimation:") - public static native void performWithoutAnimation( - @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); - - @Generated - @Selector("pinchZoomEnabled") - public native boolean pinchZoomEnabled(); - - @Generated - @Selector("pixelForValuesWithX:y:axis:") - @ByValue - public native CGPoint pixelForValuesWithXYAxis(double x, double y, - @NInt long axis); - - @Generated - @Selector("requiresConstraintBasedLayout") - public static native boolean requiresConstraintBasedLayout(); - - @Generated - @Selector("resetViewPortOffsets") - public native void resetViewPortOffsets(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("rightAxis") - public native ChartYAxis rightAxis(); - - @Generated - @Selector("rightYAxisRenderer") - public native ChartYAxisRenderer rightYAxisRenderer(); - - @Generated - @Selector("scaleX") - @NFloat - public native double scaleX(); - - @Generated - @Selector("scaleXEnabled") - public native boolean scaleXEnabled(); - - @Generated - @Selector("scaleY") - @NFloat - public native double scaleY(); - - @Generated - @Selector("scaleYEnabled") - public native boolean scaleYEnabled(); - - @Generated - @Selector("setAnimationBeginsFromCurrentState:") - public static native void setAnimationBeginsFromCurrentState( - boolean fromCurrentState); - - @Generated - @Selector("setAnimationCurve:") - public static native void setAnimationCurve(@NInt long curve); - - @Generated - @Selector("setAnimationDelay:") - public static native void setAnimationDelay(double delay); - - @Generated - @Selector("setAnimationDelegate:") - public static native void setAnimationDelegate( - @Mapped(ObjCObjectMapper.class) Object delegate); - - @Generated - @Selector("setAnimationDidStopSelector:") - public static native void setAnimationDidStopSelector(SEL selector); - - @Generated - @Selector("setAnimationDuration:") - public static native void setAnimationDuration_static(double duration); - - @Generated - @Selector("setAnimationRepeatAutoreverses:") - public static native void setAnimationRepeatAutoreverses( - boolean repeatAutoreverses); - - @Generated - @Selector("setAnimationRepeatCount:") - public static native void setAnimationRepeatCount_static(float repeatCount); - - @Generated - @Selector("setAnimationStartDate:") - public static native void setAnimationStartDate(NSDate startDate); - - @Generated - @Selector("setAnimationTransition:forView:cache:") - public static native void setAnimationTransitionForViewCache( - @NInt long transition, UIView view, boolean cache); - - @Generated - @Selector("setAnimationWillStartSelector:") - public static native void setAnimationWillStartSelector(SEL selector); - - @Generated - @Selector("setAnimationsEnabled:") - public static native void setAnimationsEnabled(boolean enabled); - - @Generated - @Selector("setAutoScaleMinMaxEnabled:") - public native void setAutoScaleMinMaxEnabled(boolean value); - - @Generated - @Selector("setBorderColor:") - public native void setBorderColor(UIColor value); - - @Generated - @Selector("setBorderLineWidth:") - public native void setBorderLineWidth(@NFloat double value); - - @Generated - @Selector("setClipValuesToContentEnabled:") - public native void setClipValuesToContentEnabled(boolean value); - - @Generated - @Selector("setDoubleTapToZoomEnabled:") - public native void setDoubleTapToZoomEnabled(boolean value); - - @Generated - @Selector("setDragEnabled:") - public native void setDragEnabled(boolean value); - - @Generated - @Selector("setDragOffsetX:") - public native void setDragOffsetX(@NFloat double offset); - - @Generated - @Selector("setDragOffsetY:") - public native void setDragOffsetY(@NFloat double offset); - - @Generated - @Selector("setDrawBordersEnabled:") - public native void setDrawBordersEnabled(boolean value); - - @Generated - @Selector("setDrawGridBackgroundEnabled:") - public native void setDrawGridBackgroundEnabled(boolean value); - - @Generated - @Selector("setGridBackgroundColor:") - public native void setGridBackgroundColor(UIColor value); - - @Generated - @Selector("setHighlightPerDragEnabled:") - public native void setHighlightPerDragEnabled(boolean value); - - @Generated - @Selector("setKeepPositionOnRotation:") - public native void setKeepPositionOnRotation(boolean value); - - @Generated - @Selector("setLeftYAxisRenderer:") - public native void setLeftYAxisRenderer(ChartYAxisRenderer value); - - @Generated - @Selector("setMaxVisibleCount:") - public native void setMaxVisibleCount(@NInt long value); - - @Generated - @Selector("setMinOffset:") - public native void setMinOffset(@NFloat double value); - - @Generated - @Selector("setPinchZoomEnabled:") - public native void setPinchZoomEnabled(boolean value); - - @Generated - @Selector("setRightYAxisRenderer:") - public native void setRightYAxisRenderer(ChartYAxisRenderer value); - - @Generated - @Selector("setScaleEnabled:") - public native void setScaleEnabled(boolean enabled); - - @Generated - @Selector("setScaleMinima:scaleY:") - public native void setScaleMinimaScaleY(@NFloat double scaleX, - @NFloat double scaleY); - - @Generated - @Selector("setScaleXEnabled:") - public native void setScaleXEnabled(boolean value); - - @Generated - @Selector("setScaleYEnabled:") - public native void setScaleYEnabled(boolean value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setViewPortOffsetsWithLeft:top:right:bottom:") - public native void setViewPortOffsetsWithLeftTopRightBottom( - @NFloat double left, @NFloat double top, @NFloat double right, - @NFloat double bottom); - - @Generated - @Selector("setVisibleXRangeMaximum:") - public native void setVisibleXRangeMaximum(double maxXRange); - - @Generated - @Selector("setVisibleXRangeMinimum:") - public native void setVisibleXRangeMinimum(double minXRange); - - @Generated - @Selector("setVisibleXRangeWithMinXRange:maxXRange:") - public native void setVisibleXRangeWithMinXRangeMaxXRange(double minXRange, - double maxXRange); - - @Generated - @Selector("setVisibleYRangeMaximum:axis:") - public native void setVisibleYRangeMaximumAxis(double maxYRange, - @NInt long axis); - - @Generated - @Selector("setVisibleYRangeMinimum:axis:") - public native void setVisibleYRangeMinimumAxis(double minYRange, - @NInt long axis); - - @Generated - @Selector("setVisibleYRangeWithMinYRange:maxYRange:axis:") - public native void setVisibleYRangeWithMinYRangeMaxYRangeAxis( - double minYRange, double maxYRange, @NInt long axis); - - @Generated - @Selector("setXAxisRenderer:") - public native void setXAxisRenderer(ChartXAxisRenderer value); - - @Generated - @Selector("setYAxisMaxWidth:width:") - public native void setYAxisMaxWidthWidth(@NInt long axis, - @NFloat double width); - - @Generated - @Selector("setYAxisMinWidth:width:") - public native void setYAxisMinWidthWidth(@NInt long axis, - @NFloat double width); - - @Generated - @Selector("stopDeceleration") - public native void stopDeceleration(); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transitionFromView:toView:duration:options:completion:") - public static native void transitionFromViewToViewDurationOptionsCompletion( - UIView fromView, - UIView toView, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); - - @Generated - @Selector("transitionWithView:duration:options:animations:completion:") - public static native void transitionWithViewDurationOptionsAnimationsCompletion( - UIView view, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttribute( - @NInt long attribute); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( - @NInt long semanticContentAttribute, @NInt long layoutDirection); - - @Generated - @Selector("valueForTouchPointWithPoint:axis:") - @ByValue - public native CGPoint valueForTouchPointWithPointAxis(@ByValue CGPoint pt, - @NInt long axis); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("visibleXRange") - public native double visibleXRange(); - - @Generated - @Selector("xAxisRenderer") - public native ChartXAxisRenderer xAxisRenderer(); - - @Generated - @Selector("xRange") - public native double xRange(); - - @Generated - @Selector("zoomAndCenterViewAnimatedWithScaleX:scaleY:xValue:yValue:axis:duration:") - public native void zoomAndCenterViewAnimatedWithScaleXScaleYXValueYValueAxisDuration( - @NFloat double scaleX, @NFloat double scaleY, double xValue, - double yValue, @NInt long axis, double duration); - - @Generated - @Selector("zoomAndCenterViewAnimatedWithScaleX:scaleY:xValue:yValue:axis:duration:easing:") - public native void zoomAndCenterViewAnimatedWithScaleXScaleYXValueYValueAxisDurationEasing( - @NFloat double scaleX, - @NFloat double scaleY, - double xValue, - double yValue, - @NInt long axis, - double duration, - @ObjCBlock(name = "call_zoomAndCenterViewAnimatedWithScaleXScaleYXValueYValueAxisDurationEasing") Block_zoomAndCenterViewAnimatedWithScaleXScaleYXValueYValueAxisDurationEasing easing); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_zoomAndCenterViewAnimatedWithScaleXScaleYXValueYValueAxisDurationEasing { - @Generated - double call_zoomAndCenterViewAnimatedWithScaleXScaleYXValueYValueAxisDurationEasing( - double arg0, double arg1); - } - - @Generated - @Selector("zoomAndCenterViewAnimatedWithScaleX:scaleY:xValue:yValue:axis:duration:easingOption:") - public native void zoomAndCenterViewAnimatedWithScaleXScaleYXValueYValueAxisDurationEasingOption( - @NFloat double scaleX, @NFloat double scaleY, double xValue, - double yValue, @NInt long axis, double duration, - @NInt long easingOption); - - @Generated - @Selector("zoomIn") - public native void zoomIn(); - - @Generated - @Selector("zoomOut") - public native void zoomOut(); - - @Generated - @Selector("zoomToCenterWithScaleX:scaleY:") - public native void zoomToCenterWithScaleXScaleY(@NFloat double scaleX, - @NFloat double scaleY); - - @Generated - @Selector("zoomWithScaleX:scaleY:x:y:") - public native void zoomWithScaleXScaleYXY(@NFloat double scaleX, - @NFloat double scaleY, @NFloat double x, @NFloat double y); - - @Generated - @Selector("zoomWithScaleX:scaleY:xValue:yValue:axis:") - public native void zoomWithScaleXScaleYXValueYValueAxis( - @NFloat double scaleX, @NFloat double scaleY, double xValue, - double yValue, @NInt long axis); +public class BarLineChartViewBase extends ChartViewBase implements BarLineScatterCandleBubbleChartDataProvider, + UIGestureRecognizerDelegate { + static { + NatJ.register(); + } + + @Generated + protected BarLineChartViewBase(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") + public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( + double frameStartTime, + double frameDuration, + @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); + + @Generated + @Owned + @Selector("alloc") + public static native BarLineChartViewBase alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") + public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:animations:") + public static native void animateWithDurationAnimations( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); + + @Generated + @Selector("animateWithDuration:animations:completion:") + public static native void animateWithDurationAnimationsCompletion( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); + + @Generated + @Selector("animateWithDuration:delay:options:animations:completion:") + public static native void animateWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") + public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( + double duration, + double delay, + @NFloat double dampingRatio, + @NFloat double velocity, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); + + @Generated + @Selector("appearance") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearance(); + + @Generated + @ProtocolClassMethod("appearance") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearance() { + return appearance(); + } + + @Generated + @Selector("appearanceForTraitCollection:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollection(UITraitCollection trait); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollection") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollection(UITraitCollection trait) { + return appearanceForTraitCollection(trait); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceForTraitCollection:whenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs) { + return appearanceForTraitCollectionWhenContainedIn(trait, ContainerClass, varargs); + } + + @Generated + @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes) { + return appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait, containerTypes); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceWhenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedIn( + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedIn(@Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, + Object... varargs) { + return appearanceWhenContainedIn(ContainerClass, varargs); + } + + @Generated + @Selector("appearanceWhenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes) { + return appearanceWhenContainedInInstancesOfClasses(containerTypes); + } + + @Generated + @Selector("areAnimationsEnabled") + public static native boolean areAnimationsEnabled(); + + /** + * flag that indicates if auto scaling on the y axis is enabled. + * if yes, the y axis automatically adjusts to the min and max y values of the current x axis range whenever the viewport changes + */ + @Generated + @Selector("autoScaleMinMaxEnabled") + public native boolean autoScaleMinMaxEnabled(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("beginAnimations:context:") + public static native void beginAnimationsContext(String animationID, VoidPtr context); + + @Generated + @Selector("borderColor") + public native UIColor borderColor(); + + @Generated + @Selector("borderLineWidth") + @NFloat + public native double borderLineWidth(); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("centerOffsets") + @ByValue + public native CGPoint centerOffsets(); + + /** + * This will move the center of the current viewport to the specified x-value and y-value animated. + * \param xValue + * + * \param yValue + * + * \param axis which axis should be used as a reference for the y-axis + * + * \param duration the duration of the animation in seconds + * + * \param easing + */ + @Generated + @Selector("centerViewToAnimatedWithXValue:yValue:axis:duration:") + public native void centerViewToAnimatedWithXValueYValueAxisDuration(double xValue, double yValue, @NInt long axis, + double duration); + + /** + * This will move the center of the current viewport to the specified x-value and y-value animated. + * \param xValue + * + * \param yValue + * + * \param axis which axis should be used as a reference for the y-axis + * + * \param duration the duration of the animation in seconds + * + * \param easing + */ + @Generated + @Selector("centerViewToAnimatedWithXValue:yValue:axis:duration:easing:") + public native void centerViewToAnimatedWithXValueYValueAxisDurationEasing( + double xValue, + double yValue, + @NInt long axis, + double duration, + @ObjCBlock(name = "call_centerViewToAnimatedWithXValueYValueAxisDurationEasing") Block_centerViewToAnimatedWithXValueYValueAxisDurationEasing easing); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_centerViewToAnimatedWithXValueYValueAxisDurationEasing { + @Generated + double call_centerViewToAnimatedWithXValueYValueAxisDurationEasing(double arg0, double arg1); + } + + /** + * This will move the center of the current viewport to the specified x-value and y-value animated. + * \param xValue + * + * \param yValue + * + * \param axis which axis should be used as a reference for the y-axis + * + * \param duration the duration of the animation in seconds + * + * \param easing + */ + @Generated + @Selector("centerViewToAnimatedWithXValue:yValue:axis:duration:easingOption:") + public native void centerViewToAnimatedWithXValueYValueAxisDurationEasingOption(double xValue, double yValue, + @NInt long axis, double duration, @NInt long easingOption); + + /** + * This will move the center of the current viewport to the specified x-value and y-value. + * This also refreshes the chart by calling setNeedsDisplay(). + * \param xValue + * + * \param yValue + * + * \param axis - which axis should be used as a reference for the y-axis + */ + @Generated + @Selector("centerViewToXValue:yValue:axis:") + public native void centerViewToXValueYValueAxis(double xValue, double yValue, @NInt long axis); + + @Generated + @Selector("chartXMax") + public native double chartXMax(); + + @Generated + @Selector("chartXMin") + public native double chartXMin(); + + @Generated + @Selector("chartYMax") + public native double chartYMax(); + + @Generated + @Selector("chartYMin") + public native double chartYMin(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clearTextInputContextIdentifier:") + public static native void clearTextInputContextIdentifier(String identifier); + + /** + * When disabled, the data and/or highlights will not be clipped to contentRect. Disabling this option can + * be useful, when the data lies fully within the content rect, but is drawn in such a way (such as thick lines) + * that there is unwanted clipping. + */ + @Generated + @Selector("clipDataToContentEnabled") + public native boolean clipDataToContentEnabled(); + + /** + * When enabled, the values will be clipped to contentRect, otherwise they can bleed outside the content rect. + */ + @Generated + @Selector("clipValuesToContentEnabled") + public native boolean clipValuesToContentEnabled(); + + @Generated + @Selector("commitAnimations") + public static native void commitAnimations(); + + @Generated + @Selector("data") + public native ChartData data(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * flag that indicates if double tap zoom is enabled or not + */ + @Generated + @Selector("doubleTapToZoomEnabled") + public native boolean doubleTapToZoomEnabled(); + + /** + * is dragging enabled? (moving the chart with the finger) for the chart (this does not affect scaling). + */ + @Generated + @Selector("dragEnabled") + public native boolean dragEnabled(); + + /** + * is dragging on the X axis enabled? + */ + @Generated + @Selector("dragXEnabled") + public native boolean dragXEnabled(); + + /** + * is dragging on the Y axis enabled? + */ + @Generated + @Selector("dragYEnabled") + public native boolean dragYEnabled(); + + /** + * When enabled, the borders rectangle will be rendered. + * If this is enabled, there is no point drawing the axis-lines of x- and y-axis. + */ + @Generated + @Selector("drawBordersEnabled") + public native boolean drawBordersEnabled(); + + /** + * flag indicating if the grid background should be drawn or not + */ + @Generated + @Selector("drawGridBackgroundEnabled") + public native boolean drawGridBackgroundEnabled(); + + @Generated + @Selector("drawRect:") + public native void drawRect(@ByValue CGRect rect); + + /** + * Resets all zooming and dragging and makes the chart fit exactly it’s bounds. + */ + @Generated + @Selector("fitScreen") + public native void fitScreen(); + + @Generated + @IsOptional + @Selector("gestureRecognizer:shouldBeRequiredToFailByGestureRecognizer:") + public native boolean gestureRecognizerShouldBeRequiredToFailByGestureRecognizer( + UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer); + + @Generated + @IsOptional + @Selector("gestureRecognizer:shouldReceiveEvent:") + public native boolean gestureRecognizerShouldReceiveEvent(UIGestureRecognizer gestureRecognizer, UIEvent event); + + @Generated + @IsOptional + @Selector("gestureRecognizer:shouldReceivePress:") + public native boolean gestureRecognizerShouldReceivePress(UIGestureRecognizer gestureRecognizer, UIPress press); + + @Generated + @IsOptional + @Selector("gestureRecognizer:shouldReceiveTouch:") + public native boolean gestureRecognizerShouldReceiveTouch(UIGestureRecognizer gestureRecognizer, UITouch touch); + + @Generated + @Selector("gestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer:") + public native boolean gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer( + UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer); + + @Generated + @IsOptional + @Selector("gestureRecognizer:shouldRequireFailureOfGestureRecognizer:") + public native boolean gestureRecognizerShouldRequireFailureOfGestureRecognizer( + UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer); + + @Generated + @Selector("gestureRecognizerShouldBegin:") + public native boolean gestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer); + + /** + * returns: + * The y-axis object to the corresponding AxisDependency. In the + * horizontal bar-chart, LEFT == top, RIGHT == BOTTOM + */ + @Generated + @Selector("getAxis:") + public native ChartYAxis getAxis(@NInt long axis); + + /** + * returns: + * The range of the specified axis. + */ + @Generated + @Selector("getAxisRangeWithAxis:") + public native double getAxisRangeWithAxis(@NInt long axis); + + /** + * returns: + * The DataSet object displayed at the touched position of the chart + */ + @Generated + @Selector("getDataSetByTouchPointWithPoint:") + @MappedReturn(ObjCObjectMapper.class) + public native IBarLineScatterCandleBubbleChartDataSet getDataSetByTouchPointWithPoint(@ByValue CGPoint pt); + + /** + * returns: + * The Entry object displayed at the touched position of the chart + */ + @Generated + @Selector("getEntryByTouchPointWithPoint:") + public native ChartDataEntry getEntryByTouchPointWithPoint(@ByValue CGPoint pt); + + /** + * returns: + * The position (in pixels) the provided Entry has inside the chart view + */ + @Generated + @Selector("getPositionWithEntry:axis:") + @ByValue + public native CGPoint getPositionWithEntryAxis(ChartDataEntry e, @NInt long axis); + + @Generated + @Selector("getTransformerForAxis:") + public native ChartTransformer getTransformerForAxis(@NInt long axis); + + /** + * Zero (0.0) means there’s no maximum width + * default: 0.0 (no maximum specified) + * + * returns: + * The (custom) maximum width of the specified Y axis. + */ + @Generated + @Selector("getYAxisMaxWidth:") + @NFloat + public native double getYAxisMaxWidth(@NInt long axis); + + /** + * default: 0.0 + * + * returns: + * The (custom) minimum width of the specified Y axis. + */ + @Generated + @Selector("getYAxisMinWidth:") + @NFloat + public native double getYAxisMinWidth(@NInt long axis); + + /** + *
    + *
  • + * Returns the width of the specified y axis. + *
  • + *
+ */ + @Generated + @Selector("getYAxisWidth:") + @NFloat + public native double getYAxisWidth(@NInt long axis); + + /** + * the color for the background of the chart-drawing area (everything behind the grid lines). + */ + @Generated + @Selector("gridBackgroundColor") + public native UIColor gridBackgroundColor(); + + /** + * true if both drag offsets (x and y) are zero or smaller. + */ + @Generated + @Selector("hasNoDragOffset") + public native boolean hasNoDragOffset(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highestVisibleX") + public native double highestVisibleX(); + + /** + * flag that indicates if highlighting per dragging over a fully zoomed out chart is enabled + */ + @Generated + @Selector("highlightPerDragEnabled") + public native boolean highlightPerDragEnabled(); + + @Generated + @Selector("inheritedAnimationDuration") + public static native double inheritedAnimationDuration(); + + @Generated + @Selector("init") + public native BarLineChartViewBase init(); + + @Generated + @Selector("initWithCoder:") + public native BarLineChartViewBase initWithCoder(NSCoder aDecoder); + + @Generated + @Selector("initWithFrame:") + public native BarLineChartViewBase initWithFrame(@ByValue CGRect frame); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + /** + * true if either the left or the right or both axes are inverted. + */ + @Generated + @Selector("isAnyAxisInverted") + public native boolean isAnyAxisInverted(); + + /** + * default: false + * true if auto scaling on the y axis is enabled. + */ + @Generated + @Selector("isAutoScaleMinMaxEnabled") + public native boolean isAutoScaleMinMaxEnabled(); + + /** + * default: true + * true if zooming via double-tap is enabled false ifnot. + */ + @Generated + @Selector("isDoubleTapToZoomEnabled") + public native boolean isDoubleTapToZoomEnabled(); + + /** + * is dragging enabled? (moving the chart with the finger) for the chart (this does not affect scaling). + */ + @Generated + @Selector("isDragEnabled") + public native boolean isDragEnabled(); + + /** + * default: false + * true if drawing the borders rectangle is enabled, false ifnot. + */ + @Generated + @Selector("isDrawBordersEnabled") + public native boolean isDrawBordersEnabled(); + + /** + * default: true + * true if drawing the grid background is enabled, false ifnot. + */ + @Generated + @Selector("isDrawGridBackgroundEnabled") + public native boolean isDrawGridBackgroundEnabled(); + + /** + * if the chart is fully zoomed out, return true + */ + @Generated + @Selector("isFullyZoomedOut") + public native boolean isFullyZoomedOut(); + + /** + * If set to true, highlighting per dragging over a fully zoomed out chart is enabled + * You might want to disable this when using inside a NSUIScrollView + * default: true + */ + @Generated + @Selector("isHighlightPerDragEnabled") + public native boolean isHighlightPerDragEnabled(); + + @Generated + @Selector("isInvertedWithAxis:") + public native boolean isInvertedWithAxis(@NInt long axis); + + /** + * default: false + * true if pinch-zoom is enabled, false ifnot + */ + @Generated + @Selector("isPinchZoomEnabled") + public native boolean isPinchZoomEnabled(); + + @Generated + @Selector("isScaleXEnabled") + public native boolean isScaleXEnabled(); + + @Generated + @Selector("isScaleYEnabled") + public native boolean isScaleYEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + /** + * Sets whether the chart should keep its position (zoom / scroll) after a rotation (orientation change) + * default: false + */ + @Generated + @Selector("keepPositionOnRotation") + public native boolean keepPositionOnRotation(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("layerClass") + public static native Class layerClass(); + + /** + * The left y-axis object. In the horizontal bar-chart, this is the + * top axis. + */ + @Generated + @Selector("leftAxis") + public native ChartYAxis leftAxis(); + + /** + * The left Y axis renderer. This is a read-write property so you can set your own custom renderer here. + * default: An instance of YAxisRenderer + */ + @Generated + @Selector("leftYAxisRenderer") + public native ChartYAxisRenderer leftYAxisRenderer(); + + @Generated + @Selector("lowestVisibleX") + public native double lowestVisibleX(); + + @Generated + @Selector("maxHighlightDistance") + @NFloat + public native double maxHighlightDistance(); + + @Generated + @Selector("maxVisibleCount") + @NInt + public native long maxVisibleCount(); + + /** + * Sets the minimum offset (padding) around the chart, defaults to 10 + */ + @Generated + @Selector("minOffset") + @NFloat + public native double minOffset(); + + @Generated + @Selector("modifyAnimationsWithRepeatCount:autoreverses:animations:") + public static native void modifyAnimationsWithRepeatCountAutoreversesAnimations( + @NFloat double count, + boolean autoreverses, + @ObjCBlock(name = "call_modifyAnimationsWithRepeatCountAutoreversesAnimations") UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations); + + /** + * This will move the left side of the current viewport to the specified x-position and center the viewport to the specified y-position animated. + * This also refreshes the chart by calling setNeedsDisplay(). + * \param xValue + * + * \param yValue + * + * \param axis which axis should be used as a reference for the y-axis + * + * \param duration the duration of the animation in seconds + * + * \param easing + */ + @Generated + @Selector("moveViewToAnimatedWithXValue:yValue:axis:duration:") + public native void moveViewToAnimatedWithXValueYValueAxisDuration(double xValue, double yValue, @NInt long axis, + double duration); + + /** + * This will move the left side of the current viewport to the specified x-position and center the viewport to the specified y-position animated. + * This also refreshes the chart by calling setNeedsDisplay(). + * \param xValue + * + * \param yValue + * + * \param axis which axis should be used as a reference for the y-axis + * + * \param duration the duration of the animation in seconds + * + * \param easing + */ + @Generated + @Selector("moveViewToAnimatedWithXValue:yValue:axis:duration:easing:") + public native void moveViewToAnimatedWithXValueYValueAxisDurationEasing( + double xValue, + double yValue, + @NInt long axis, + double duration, + @ObjCBlock(name = "call_moveViewToAnimatedWithXValueYValueAxisDurationEasing") Block_moveViewToAnimatedWithXValueYValueAxisDurationEasing easing); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_moveViewToAnimatedWithXValueYValueAxisDurationEasing { + @Generated + double call_moveViewToAnimatedWithXValueYValueAxisDurationEasing(double arg0, double arg1); + } + + /** + * This will move the left side of the current viewport to the specified x-position and center the viewport to the specified y-position animated. + * This also refreshes the chart by calling setNeedsDisplay(). + * \param xValue + * + * \param yValue + * + * \param axis which axis should be used as a reference for the y-axis + * + * \param duration the duration of the animation in seconds + * + * \param easing + */ + @Generated + @Selector("moveViewToAnimatedWithXValue:yValue:axis:duration:easingOption:") + public native void moveViewToAnimatedWithXValueYValueAxisDurationEasingOption(double xValue, double yValue, + @NInt long axis, double duration, @NInt long easingOption); + + /** + * Moves the left side of the current viewport to the specified x-value. + * This also refreshes the chart by calling setNeedsDisplay(). + */ + @Generated + @Selector("moveViewToX:") + public native void moveViewToX(double xValue); + + /** + * This will move the left side of the current viewport to the specified x-value on the x-axis, and center the viewport to the specified y-value on the y-axis. + * This also refreshes the chart by calling setNeedsDisplay(). + * \param xValue + * + * \param yValue + * + * \param axis - which axis should be used as a reference for the y-axis + */ + @Generated + @Selector("moveViewToXValue:yValue:axis:") + public native void moveViewToXValueYValueAxis(double xValue, double yValue, @NInt long axis); + + /** + * Centers the viewport to the specified y-value on the y-axis. + * This also refreshes the chart by calling setNeedsDisplay(). + * \param yValue + * + * \param axis - which axis should be used as a reference for the y-axis + */ + @Generated + @Selector("moveViewToY:axis:") + public native void moveViewToYAxis(double yValue, @NInt long axis); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("notifyDataSetChanged") + public native void notifyDataSetChanged(); + + @Generated + @Selector("observeValueForKeyPath:ofObject:change:context:") + public native void observeValueForKeyPathOfObjectChangeContext(String keyPath, + @Mapped(ObjCObjectMapper.class) Object object, NSDictionary change, VoidPtr context); + + @Generated + @Selector("performSystemAnimation:onViews:options:animations:completion:") + public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( + @NUInt long animation, + NSArray views, + @NUInt long options, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("performWithoutAnimation:") + public static native void performWithoutAnimation( + @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); + + /** + * flag that indicates if pinch-zoom is enabled. if true, both x and y axis can be scaled simultaneously with 2 fingers, if false, x and y axis can be scaled separately + */ + @Generated + @Selector("pinchZoomEnabled") + public native boolean pinchZoomEnabled(); + + /** + * Transforms the given chart values into pixels. This is the opposite + * method to valueForTouchPoint(...). + */ + @Generated + @Selector("pixelForValuesWithX:y:axis:") + @ByValue + public native CGPoint pixelForValuesWithXYAxis(double x, double y, @NInt long axis); + + @Generated + @Selector("requiresConstraintBasedLayout") + public static native boolean requiresConstraintBasedLayout(); + + /** + * Resets all custom offsets set via setViewPortOffsets(...) method. Allows the chart to again calculate all offsets automatically. + */ + @Generated + @Selector("resetViewPortOffsets") + public native void resetViewPortOffsets(); + + /** + * Zooms out to original size. + */ + @Generated + @Selector("resetZoom") + public native void resetZoom(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * The right y-axis object. In the horizontal bar-chart, this is the + * bottom axis. + */ + @Generated + @Selector("rightAxis") + public native ChartYAxis rightAxis(); + + /** + * The right Y axis renderer. This is a read-write property so you can set your own custom renderer here. + * default: An instance of YAxisRenderer + */ + @Generated + @Selector("rightYAxisRenderer") + public native ChartYAxisRenderer rightYAxisRenderer(); + + /** + * The current x-scale factor + */ + @Generated + @Selector("scaleX") + @NFloat + public native double scaleX(); + + @Generated + @Selector("scaleXEnabled") + public native boolean scaleXEnabled(); + + /** + * The current y-scale factor + */ + @Generated + @Selector("scaleY") + @NFloat + public native double scaleY(); + + @Generated + @Selector("scaleYEnabled") + public native boolean scaleYEnabled(); + + @Generated + @Selector("setAnimationBeginsFromCurrentState:") + public static native void setAnimationBeginsFromCurrentState(boolean fromCurrentState); + + @Generated + @Selector("setAnimationCurve:") + public static native void setAnimationCurve(@NInt long curve); + + @Generated + @Selector("setAnimationDelay:") + public static native void setAnimationDelay(double delay); + + @Generated + @Selector("setAnimationDelegate:") + public static native void setAnimationDelegate(@Mapped(ObjCObjectMapper.class) Object delegate); + + @Generated + @Selector("setAnimationDidStopSelector:") + public static native void setAnimationDidStopSelector(SEL selector); + + @Generated + @Selector("setAnimationDuration:") + public static native void setAnimationDuration_static(double duration); + + @Generated + @Selector("setAnimationRepeatAutoreverses:") + public static native void setAnimationRepeatAutoreverses(boolean repeatAutoreverses); + + @Generated + @Selector("setAnimationRepeatCount:") + public static native void setAnimationRepeatCount_static(float repeatCount); + + @Generated + @Selector("setAnimationStartDate:") + public static native void setAnimationStartDate(NSDate startDate); + + @Generated + @Selector("setAnimationTransition:forView:cache:") + public static native void setAnimationTransitionForViewCache(@NInt long transition, UIView view, boolean cache); + + @Generated + @Selector("setAnimationWillStartSelector:") + public static native void setAnimationWillStartSelector(SEL selector); + + @Generated + @Selector("setAnimationsEnabled:") + public static native void setAnimationsEnabled(boolean enabled); + + /** + * flag that indicates if auto scaling on the y axis is enabled. + * if yes, the y axis automatically adjusts to the min and max y values of the current x axis range whenever the viewport changes + */ + @Generated + @Selector("setAutoScaleMinMaxEnabled:") + public native void setAutoScaleMinMaxEnabled(boolean value); + + @Generated + @Selector("setBorderColor:") + public native void setBorderColor(UIColor value); + + @Generated + @Selector("setBorderLineWidth:") + public native void setBorderLineWidth(@NFloat double value); + + /** + * When disabled, the data and/or highlights will not be clipped to contentRect. Disabling this option can + * be useful, when the data lies fully within the content rect, but is drawn in such a way (such as thick lines) + * that there is unwanted clipping. + */ + @Generated + @Selector("setClipDataToContentEnabled:") + public native void setClipDataToContentEnabled(boolean value); + + /** + * When enabled, the values will be clipped to contentRect, otherwise they can bleed outside the content rect. + */ + @Generated + @Selector("setClipValuesToContentEnabled:") + public native void setClipValuesToContentEnabled(boolean value); + + /** + * flag that indicates if double tap zoom is enabled or not + */ + @Generated + @Selector("setDoubleTapToZoomEnabled:") + public native void setDoubleTapToZoomEnabled(boolean value); + + /** + * is dragging enabled? (moving the chart with the finger) for the chart (this does not affect scaling). + */ + @Generated + @Selector("setDragEnabled:") + public native void setDragEnabled(boolean value); + + /** + * Set an offset in dp that allows the user to drag the chart over it’s + * bounds on the x-axis. + */ + @Generated + @Selector("setDragOffsetX:") + public native void setDragOffsetX(@NFloat double offset); + + /** + * Set an offset in dp that allows the user to drag the chart over it’s + * bounds on the y-axis. + */ + @Generated + @Selector("setDragOffsetY:") + public native void setDragOffsetY(@NFloat double offset); + + /** + * is dragging on the X axis enabled? + */ + @Generated + @Selector("setDragXEnabled:") + public native void setDragXEnabled(boolean value); + + /** + * is dragging on the Y axis enabled? + */ + @Generated + @Selector("setDragYEnabled:") + public native void setDragYEnabled(boolean value); + + /** + * When enabled, the borders rectangle will be rendered. + * If this is enabled, there is no point drawing the axis-lines of x- and y-axis. + */ + @Generated + @Selector("setDrawBordersEnabled:") + public native void setDrawBordersEnabled(boolean value); + + /** + * flag indicating if the grid background should be drawn or not + */ + @Generated + @Selector("setDrawGridBackgroundEnabled:") + public native void setDrawGridBackgroundEnabled(boolean value); + + /** + * the color for the background of the chart-drawing area (everything behind the grid lines). + */ + @Generated + @Selector("setGridBackgroundColor:") + public native void setGridBackgroundColor(UIColor value); + + /** + * flag that indicates if highlighting per dragging over a fully zoomed out chart is enabled + */ + @Generated + @Selector("setHighlightPerDragEnabled:") + public native void setHighlightPerDragEnabled(boolean value); + + /** + * Sets whether the chart should keep its position (zoom / scroll) after a rotation (orientation change) + * default: false + */ + @Generated + @Selector("setKeepPositionOnRotation:") + public native void setKeepPositionOnRotation(boolean value); + + /** + * The left Y axis renderer. This is a read-write property so you can set your own custom renderer here. + * default: An instance of YAxisRenderer + */ + @Generated + @Selector("setLeftYAxisRenderer:") + public native void setLeftYAxisRenderer(ChartYAxisRenderer value); + + /** + * the number of maximum visible drawn values on the chart only active when drawValuesEnabled is enabled + */ + @Generated + @Selector("setMaxVisibleCount:") + public native void setMaxVisibleCount(@NInt long value); + + /** + * Sets the minimum offset (padding) around the chart, defaults to 10 + */ + @Generated + @Selector("setMinOffset:") + public native void setMinOffset(@NFloat double value); + + /** + * flag that indicates if pinch-zoom is enabled. if true, both x and y axis can be scaled simultaneously with 2 fingers, if false, x and y axis can be scaled separately + */ + @Generated + @Selector("setPinchZoomEnabled:") + public native void setPinchZoomEnabled(boolean value); + + /** + * The right Y axis renderer. This is a read-write property so you can set your own custom renderer here. + * default: An instance of YAxisRenderer + */ + @Generated + @Selector("setRightYAxisRenderer:") + public native void setRightYAxisRenderer(ChartYAxisRenderer value); + + /** + * is scaling enabled? (zooming in and out by gesture) for the chart (this does not affect dragging). + */ + @Generated + @Selector("setScaleEnabled:") + public native void setScaleEnabled(boolean enabled); + + /** + * Sets the minimum scale value to which can be zoomed out. 1 = fitScreen + */ + @Generated + @Selector("setScaleMinima:scaleY:") + public native void setScaleMinimaScaleY(@NFloat double scaleX, @NFloat double scaleY); + + @Generated + @Selector("setScaleXEnabled:") + public native void setScaleXEnabled(boolean value); + + @Generated + @Selector("setScaleYEnabled:") + public native void setScaleYEnabled(boolean value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + /** + * Sets custom offsets for the current ChartViewPort (the offsets on the sides of the actual chart window). Setting this will prevent the chart from automatically calculating it’s offsets. Use resetViewPortOffsets() to undo this. + * ONLY USE THIS WHEN YOU KNOW WHAT YOU ARE DOING, else use setExtraOffsets(...). + */ + @Generated + @Selector("setViewPortOffsetsWithLeft:top:right:bottom:") + public native void setViewPortOffsetsWithLeftTopRightBottom(@NFloat double left, @NFloat double top, + @NFloat double right, @NFloat double bottom); + + /** + * Sets the size of the area (range on the x-axis) that should be maximum visible at once (no further zooming out allowed). + * If this is e.g. set to 10, no more than a range of 10 values on the x-axis can be viewed at once without scrolling. + * If you call this method, chart must have data or it has no effect. + */ + @Generated + @Selector("setVisibleXRangeMaximum:") + public native void setVisibleXRangeMaximum(double maxXRange); + + /** + * Sets the size of the area (range on the x-axis) that should be minimum visible at once (no further zooming in allowed). + * If this is e.g. set to 10, no less than a range of 10 values on the x-axis can be viewed at once without scrolling. + * If you call this method, chart must have data or it has no effect. + */ + @Generated + @Selector("setVisibleXRangeMinimum:") + public native void setVisibleXRangeMinimum(double minXRange); + + /** + * Limits the maximum and minimum value count that can be visible by pinching and zooming. + * e.g. minRange=10, maxRange=100 no less than 10 values and no more that 100 values can be viewed + * at once without scrolling. + * If you call this method, chart must have data or it has no effect. + */ + @Generated + @Selector("setVisibleXRangeWithMinXRange:maxXRange:") + public native void setVisibleXRangeWithMinXRangeMaxXRange(double minXRange, double maxXRange); + + /** + * Sets the size of the area (range on the y-axis) that should be maximum visible at once. + * \param yRange + * + * \param axis - the axis for which this limit should apply + */ + @Generated + @Selector("setVisibleYRangeMaximum:axis:") + public native void setVisibleYRangeMaximumAxis(double maxYRange, @NInt long axis); + + /** + * Sets the size of the area (range on the y-axis) that should be minimum visible at once, no further zooming in possible. + * \param yRange + * + * \param axis - the axis for which this limit should apply + */ + @Generated + @Selector("setVisibleYRangeMinimum:axis:") + public native void setVisibleYRangeMinimumAxis(double minYRange, @NInt long axis); + + /** + * Limits the maximum and minimum y range that can be visible by pinching and zooming. + * \param minYRange + * + * \param maxYRange + * + * \param axis + */ + @Generated + @Selector("setVisibleYRangeWithMinYRange:maxYRange:axis:") + public native void setVisibleYRangeWithMinYRangeMaxYRangeAxis(double minYRange, double maxYRange, @NInt long axis); + + /** + * The X axis renderer. This is a read-write property so you can set your own custom renderer here. + * default: An instance of XAxisRenderer + */ + @Generated + @Selector("setXAxisRenderer:") + public native void setXAxisRenderer(ChartXAxisRenderer value); + + /** + * Sets a maximum width to the specified y axis. + * Zero (0.0) means there’s no maximum width + */ + @Generated + @Selector("setYAxisMaxWidth:width:") + public native void setYAxisMaxWidthWidth(@NInt long axis, @NFloat double width); + + /** + * Sets a minimum width to the specified y axis. + */ + @Generated + @Selector("setYAxisMinWidth:width:") + public native void setYAxisMinWidthWidth(@NInt long axis, @NFloat double width); + + @Generated + @Selector("stopDeceleration") + public native void stopDeceleration(); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("transitionFromView:toView:duration:options:completion:") + public static native void transitionFromViewToViewDurationOptionsCompletion( + UIView fromView, + UIView toView, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); + + @Generated + @Selector("transitionWithView:duration:options:animations:completion:") + public static native void transitionWithViewDurationOptionsAnimationsCompletion( + UIView view, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttribute(@NInt long attribute); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( + @NInt long semanticContentAttribute, @NInt long layoutDirection); + + /** + * returns: + * The x and y values in the chart at the given touch point + * (encapsulated in a CGPoint). This method transforms pixel coordinates to + * coordinates / values in the chart. This is the opposite method to + * getPixelsForValues(...). + */ + @Generated + @Selector("valueForTouchPointWithPoint:axis:") + @ByValue + public native CGPoint valueForTouchPointWithPointAxis(@ByValue CGPoint pt, @NInt long axis); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("visibleXRange") + public native double visibleXRange(); + + /** + * The X axis renderer. This is a read-write property so you can set your own custom renderer here. + * default: An instance of XAxisRenderer + */ + @Generated + @Selector("xAxisRenderer") + public native ChartXAxisRenderer xAxisRenderer(); + + @Generated + @Selector("xRange") + public native double xRange(); + + /** + * Zooms by the specified scale factor to the specified values on the specified axis. + * \param scaleX + * + * \param scaleY + * + * \param xValue + * + * \param yValue + * + * \param axis which axis should be used as a reference for the y-axis + * + * \param duration the duration of the animation in seconds + * + * \param easing + */ + @Generated + @Selector("zoomAndCenterViewAnimatedWithScaleX:scaleY:xValue:yValue:axis:duration:") + public native void zoomAndCenterViewAnimatedWithScaleXScaleYXValueYValueAxisDuration(@NFloat double scaleX, + @NFloat double scaleY, double xValue, double yValue, @NInt long axis, double duration); + + /** + * Zooms by the specified scale factor to the specified values on the specified axis. + * \param scaleX + * + * \param scaleY + * + * \param xValue + * + * \param yValue + * + * \param axis which axis should be used as a reference for the y-axis + * + * \param duration the duration of the animation in seconds + * + * \param easing + */ + @Generated + @Selector("zoomAndCenterViewAnimatedWithScaleX:scaleY:xValue:yValue:axis:duration:easing:") + public native void zoomAndCenterViewAnimatedWithScaleXScaleYXValueYValueAxisDurationEasing( + @NFloat double scaleX, + @NFloat double scaleY, + double xValue, + double yValue, + @NInt long axis, + double duration, + @ObjCBlock(name = "call_zoomAndCenterViewAnimatedWithScaleXScaleYXValueYValueAxisDurationEasing") Block_zoomAndCenterViewAnimatedWithScaleXScaleYXValueYValueAxisDurationEasing easing); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_zoomAndCenterViewAnimatedWithScaleXScaleYXValueYValueAxisDurationEasing { + @Generated + double call_zoomAndCenterViewAnimatedWithScaleXScaleYXValueYValueAxisDurationEasing(double arg0, double arg1); + } + + /** + * Zooms by the specified scale factor to the specified values on the specified axis. + * \param scaleX + * + * \param scaleY + * + * \param xValue + * + * \param yValue + * + * \param axis which axis should be used as a reference for the y-axis + * + * \param duration the duration of the animation in seconds + * + * \param easing + */ + @Generated + @Selector("zoomAndCenterViewAnimatedWithScaleX:scaleY:xValue:yValue:axis:duration:easingOption:") + public native void zoomAndCenterViewAnimatedWithScaleXScaleYXValueYValueAxisDurationEasingOption( + @NFloat double scaleX, @NFloat double scaleY, double xValue, double yValue, @NInt long axis, + double duration, @NInt long easingOption); + + /** + * MARK: Viewport modifiers + * Zooms in by 1.4, into the charts center. + */ + @Generated + @Selector("zoomIn") + public native void zoomIn(); + + /** + * Zooms out by 0.7, from the charts center. + */ + @Generated + @Selector("zoomOut") + public native void zoomOut(); + + /** + * Zooms to the center of the chart with the given scale factor. + * \param scaleX if < 1 –> zoom out, if > 1 –> zoom in + * + * \param scaleY if < 1 –> zoom out, if > 1 –> zoom in + * + * \param xValue + * + * \param yValue + * + * \param axis + */ + @Generated + @Selector("zoomToCenterWithScaleX:scaleY:") + public native void zoomToCenterWithScaleXScaleY(@NFloat double scaleX, @NFloat double scaleY); + + /** + * Zooms in or out by the given scale factor. x and y are the coordinates + * (in pixels) of the zoom center. + * \param scaleX if < 1 –> zoom out, if > 1 –> zoom in + * + * \param scaleY if < 1 –> zoom out, if > 1 –> zoom in + * + * \param x + * + * \param y + */ + @Generated + @Selector("zoomWithScaleX:scaleY:x:y:") + public native void zoomWithScaleXScaleYXY(@NFloat double scaleX, @NFloat double scaleY, @NFloat double x, + @NFloat double y); + + /** + * Zooms in or out by the given scale factor. + * x and y are the values (not pixels) of the zoom center. + * \param scaleX if < 1 –> zoom out, if > 1 –> zoom in + * + * \param scaleY if < 1 –> zoom out, if > 1 –> zoom in + * + * \param xValue + * + * \param yValue + * + * \param axis + */ + @Generated + @Selector("zoomWithScaleX:scaleY:xValue:yValue:axis:") + public native void zoomWithScaleXScaleYXValueYValueAxis(@NFloat double scaleX, @NFloat double scaleY, + double xValue, double yValue, @NInt long axis); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineScatterCandleBubbleChartData.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineScatterCandleBubbleChartData.java index 1b9a11ea..5bf8bfbe 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineScatterCandleBubbleChartData.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineScatterCandleBubbleChartData.java @@ -32,139 +32,122 @@ @ObjCClassName("_TtC6Charts35BarLineScatterCandleBubbleChartData") @ObjCClassBinding public class BarLineScatterCandleBubbleChartData extends ChartData { - static { - NatJ.register(); - } - - @Generated - protected BarLineScatterCandleBubbleChartData(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native BarLineScatterCandleBubbleChartData alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native BarLineScatterCandleBubbleChartData init(); - - @Generated - @Selector("initWithDataSet:") - public native BarLineScatterCandleBubbleChartData initWithDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); - - @Generated - @Selector("initWithDataSets:") - public native BarLineScatterCandleBubbleChartData initWithDataSets( - NSArray dataSets); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected BarLineScatterCandleBubbleChartData(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native BarLineScatterCandleBubbleChartData alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native BarLineScatterCandleBubbleChartData init(); + + @Generated + @Selector("initWithDataSet:") + public native BarLineScatterCandleBubbleChartData initWithDataSet( + @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); + + @Generated + @Selector("initWithDataSets:") + public native BarLineScatterCandleBubbleChartData initWithDataSets(NSArray dataSets); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineScatterCandleBubbleChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineScatterCandleBubbleChartDataSet.java index 029e646f..116e68bd 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineScatterCandleBubbleChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineScatterCandleBubbleChartDataSet.java @@ -2,6 +2,7 @@ import apple.NSObject; +import apple.coregraphics.struct.CGPoint; import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSNumber; @@ -11,6 +12,7 @@ import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; +import org.moe.natj.general.ann.ByValue; import org.moe.natj.general.ann.Generated; import org.moe.natj.general.ann.Library; import org.moe.natj.general.ann.Mapped; @@ -29,419 +31,417 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; import org.moe.samples.simplechart.charts.protocol.IBarLineScatterCandleBubbleChartDataSet; +import org.moe.samples.simplechart.charts.protocol.IChartValueFormatter; @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts38BarLineScatterCandleBubbleChartDataSet") @ObjCClassBinding -public class BarLineScatterCandleBubbleChartDataSet extends ChartDataSet - implements IBarLineScatterCandleBubbleChartDataSet { - static { - NatJ.register(); - } - - @Generated - protected BarLineScatterCandleBubbleChartDataSet(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addColor:") - public native void addColor(UIColor color); - - @Generated - @Selector("addEntry:") - public native boolean addEntry(ChartDataEntry e); - - @Generated - @Selector("addEntryOrdered:") - public native boolean addEntryOrdered(ChartDataEntry e); - - @Generated - @Owned - @Selector("alloc") - public static native BarLineScatterCandleBubbleChartDataSet alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("axisDependency") - @NInt - public native long axisDependency(); - - @Generated - @Selector("calcMinMax") - public native void calcMinMax(); - - @Generated - @Selector("calcMinMaxYFromX:toX:") - public native void calcMinMaxYFromXToX(double fromX, double toX); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clear") - public native void clear(); - - @Generated - @Selector("colorAtIndex:") - public native UIColor colorAtIndex(@NInt long atIndex); - - @Generated - @Selector("colors") - public native NSArray colors(); - - @Generated - @Selector("contains:") - public native boolean contains(ChartDataEntry e); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawValuesEnabled") - public native boolean drawValuesEnabled(); - - @Generated - @Selector("entriesForXValue:") - public native NSArray entriesForXValue( - double xValue); - - @Generated - @Selector("entryCount") - @NInt - public native long entryCount(); - - @Generated - @Selector("entryForIndex:") - public native ChartDataEntry entryForIndex(@NInt long i); - - @Generated - @Selector("entryForXValue:closestToY:") - public native ChartDataEntry entryForXValueClosestToY(double xValue, - double yValue); - - @Generated - @Selector("entryForXValue:closestToY:rounding:") - public native ChartDataEntry entryForXValueClosestToYRounding( - double xValue, double yValue, @NInt long rounding); - - @Generated - @Selector("entryIndexWithEntry:") - @NInt - public native long entryIndexWithEntry(ChartDataEntry e); - - @Generated - @Selector("entryIndexWithX:closestToY:rounding:") - @NInt - public native long entryIndexWithXClosestToYRounding(double xValue, - double yValue, @NInt long rounding); - - @Generated - @Selector("form") - @NInt - public native long form(); - - @Generated - @Selector("formLineDashLengths") - public native NSArray formLineDashLengths(); - - @Generated - @Selector("formLineDashPhase") - @NFloat - public native double formLineDashPhase(); - - @Generated - @Selector("formLineWidth") - @NFloat - public native double formLineWidth(); - - @Generated - @Selector("formSize") - @NFloat - public native double formSize(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highlightColor") - public native UIColor highlightColor(); - - @Generated - @Selector("highlightEnabled") - public native boolean highlightEnabled(); - - @Generated - @Selector("highlightLineDashLengths") - public native NSArray highlightLineDashLengths(); - - @Generated - @Selector("highlightLineDashPhase") - @NFloat - public native double highlightLineDashPhase(); - - @Generated - @Selector("highlightLineWidth") - @NFloat - public native double highlightLineWidth(); - - @Generated - @Selector("init") - public native BarLineScatterCandleBubbleChartDataSet init(); - - @Generated - @Selector("initWithLabel:") - public native BarLineScatterCandleBubbleChartDataSet initWithLabel( - String label); - - @Generated - @Selector("initWithValues:") - public native BarLineScatterCandleBubbleChartDataSet initWithValues( - NSArray values); - - @Generated - @Selector("initWithValues:label:") - public native BarLineScatterCandleBubbleChartDataSet initWithValuesLabel( - NSArray values, String label); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawValuesEnabled") - public native boolean isDrawValuesEnabled(); - - @Generated - @Selector("isHighlightEnabled") - public native boolean isHighlightEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("isVisible") - public native boolean isVisible(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("label") - public native String label(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("needsFormatter") - public native boolean needsFormatter(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("removeEntry:") - public native boolean removeEntry(ChartDataEntry entry); - - @Generated - @Selector("removeEntryWithIndex:") - public native boolean removeEntryWithIndex(@NInt long index); - - @Generated - @Selector("removeEntryWithX:") - public native boolean removeEntryWithX(double x); - - @Generated - @Selector("removeFirst") - public native boolean removeFirst(); - - @Generated - @Selector("removeLast") - public native boolean removeLast(); - - @Generated - @Selector("resetColors") - public native void resetColors(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setColor:") - public native void setColor(UIColor color); - - @Generated - @Selector("setDrawValuesEnabled:") - public native void setDrawValuesEnabled(boolean value); - - @Generated - @Selector("setHighlightColor:") - public native void setHighlightColor(UIColor value); - - @Generated - @Selector("setHighlightEnabled:") - public native void setHighlightEnabled(boolean value); - - @Generated - @Selector("setHighlightLineDashLengths:") - public native void setHighlightLineDashLengths( - NSArray value); - - @Generated - @Selector("setHighlightLineDashPhase:") - public native void setHighlightLineDashPhase(@NFloat double value); - - @Generated - @Selector("setHighlightLineWidth:") - public native void setHighlightLineWidth(@NFloat double value); - - @Generated - @Selector("setValueFont:") - public native void setValueFont(UIFont value); - - @Generated - @Selector("setValueFormatter:") - public native void setValueFormatter( - @Mapped(ObjCObjectMapper.class) Object value); - - @Generated - @Selector("setValueTextColor:") - public native void setValueTextColor(UIColor value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setVisible:") - public native void setVisible(boolean value); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("valueColors") - public native NSArray valueColors(); - - @Generated - @Selector("valueFont") - public native UIFont valueFont(); - - @Generated - @Selector("valueFormatter") - @MappedReturn(ObjCObjectMapper.class) - public native Object valueFormatter(); - - @Generated - @Selector("valueTextColor") - public native UIColor valueTextColor(); - - @Generated - @Selector("valueTextColorAt:") - public native UIColor valueTextColorAt(@NInt long index); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("visible") - public native boolean visible(); - - @Generated - @Selector("xMax") - public native double xMax(); - - @Generated - @Selector("xMin") - public native double xMin(); - - @Generated - @Selector("yMax") - public native double yMax(); - - @Generated - @Selector("yMin") - public native double yMin(); +public class BarLineScatterCandleBubbleChartDataSet extends ChartDataSet implements + IBarLineScatterCandleBubbleChartDataSet { + static { + NatJ.register(); + } + + @Generated + protected BarLineScatterCandleBubbleChartDataSet(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addColor:") + public native void addColor(UIColor color); + + @Generated + @Selector("addEntry:") + public native boolean addEntry(ChartDataEntry e); + + @Generated + @Selector("addEntryOrdered:") + public native boolean addEntryOrdered(ChartDataEntry e); + + @Generated + @Owned + @Selector("alloc") + public static native BarLineScatterCandleBubbleChartDataSet alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("axisDependency") + @NInt + public native long axisDependency(); + + @Generated + @Selector("calcMinMax") + public native void calcMinMax(); + + @Generated + @Selector("calcMinMaxYFromX:toX:") + public native void calcMinMaxYFromXToX(double fromX, double toX); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clear") + public native void clear(); + + @Generated + @Selector("colorAtIndex:") + public native UIColor colorAtIndex(@NInt long atIndex); + + @Generated + @Selector("colors") + public native NSArray colors(); + + @Generated + @Selector("contains:") + public native boolean contains(ChartDataEntry e); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawIconsEnabled") + public native boolean drawIconsEnabled(); + + @Generated + @Selector("drawValuesEnabled") + public native boolean drawValuesEnabled(); + + @Generated + @Selector("entriesForXValue:") + public native NSArray entriesForXValue(double xValue); + + @Generated + @Selector("entryCount") + @NInt + public native long entryCount(); + + @Generated + @Selector("entryForIndex:") + public native ChartDataEntry entryForIndex(@NInt long i); + + @Generated + @Selector("entryForXValue:closestToY:") + public native ChartDataEntry entryForXValueClosestToY(double xValue, double yValue); + + @Generated + @Selector("entryForXValue:closestToY:rounding:") + public native ChartDataEntry entryForXValueClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("entryIndexWithEntry:") + @NInt + public native long entryIndexWithEntry(ChartDataEntry e); + + @Generated + @Selector("entryIndexWithX:closestToY:rounding:") + @NInt + public native long entryIndexWithXClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("form") + @NInt + public native long form(); + + @Generated + @Selector("formLineDashLengths") + public native NSArray formLineDashLengths(); + + @Generated + @Selector("formLineDashPhase") + @NFloat + public native double formLineDashPhase(); + + @Generated + @Selector("formLineWidth") + @NFloat + public native double formLineWidth(); + + @Generated + @Selector("formSize") + @NFloat + public native double formSize(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highlightColor") + public native UIColor highlightColor(); + + @Generated + @Selector("highlightEnabled") + public native boolean highlightEnabled(); + + @Generated + @Selector("highlightLineDashLengths") + public native NSArray highlightLineDashLengths(); + + @Generated + @Selector("highlightLineDashPhase") + @NFloat + public native double highlightLineDashPhase(); + + @Generated + @Selector("highlightLineWidth") + @NFloat + public native double highlightLineWidth(); + + @Generated + @Selector("iconsOffset") + @ByValue + public native CGPoint iconsOffset(); + + @Generated + @Selector("init") + public native BarLineScatterCandleBubbleChartDataSet init(); + + @Generated + @Selector("initWithEntries:") + public native BarLineScatterCandleBubbleChartDataSet initWithEntries(NSArray entries); + + @Generated + @Selector("initWithEntries:label:") + public native BarLineScatterCandleBubbleChartDataSet initWithEntriesLabel( + NSArray entries, String label); + + @Generated + @Selector("initWithLabel:") + public native BarLineScatterCandleBubbleChartDataSet initWithLabel(String label); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isDrawIconsEnabled") + public native boolean isDrawIconsEnabled(); + + @Generated + @Selector("isDrawValuesEnabled") + public native boolean isDrawValuesEnabled(); + + @Generated + @Selector("isHighlightEnabled") + public native boolean isHighlightEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("isVisible") + public native boolean isVisible(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("label") + public native String label(); + + @Generated + @Selector("needsFormatter") + public native boolean needsFormatter(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("notifyDataSetChanged") + public native void notifyDataSetChanged(); + + @Generated + @Selector("removeEntry:") + public native boolean removeEntry(ChartDataEntry entry); + + @Generated + @Selector("removeEntryWithIndex:") + public native boolean removeEntryWithIndex(@NInt long index); + + @Generated + @Selector("removeEntryWithX:") + public native boolean removeEntryWithX(double x); + + @Generated + @Selector("removeFirst") + public native boolean removeFirst(); + + @Generated + @Selector("removeLast") + public native boolean removeLast(); + + @Generated + @Selector("resetColors") + public native void resetColors(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setColor:") + public native void setColor(UIColor color); + + @Generated + @Selector("setDrawIconsEnabled:") + public native void setDrawIconsEnabled(boolean value); + + @Generated + @Selector("setDrawValuesEnabled:") + public native void setDrawValuesEnabled(boolean value); + + @Generated + @Selector("setHighlightColor:") + public native void setHighlightColor(UIColor value); + + @Generated + @Selector("setHighlightEnabled:") + public native void setHighlightEnabled(boolean value); + + @Generated + @Selector("setHighlightLineDashLengths:") + public native void setHighlightLineDashLengths(NSArray value); + + @Generated + @Selector("setHighlightLineDashPhase:") + public native void setHighlightLineDashPhase(@NFloat double value); + + @Generated + @Selector("setHighlightLineWidth:") + public native void setHighlightLineWidth(@NFloat double value); + + @Generated + @Selector("setIconsOffset:") + public native void setIconsOffset(@ByValue CGPoint value); + + @Generated + @Selector("setValueFont:") + public native void setValueFont(UIFont value); + + @Generated + @Selector("setValueFormatter:") + public native void setValueFormatter(@Mapped(ObjCObjectMapper.class) IChartValueFormatter value); + + @Generated + @Selector("setValueTextColor:") + public native void setValueTextColor(UIColor value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("setVisible:") + public native void setVisible(boolean value); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("valueColors") + public native NSArray valueColors(); + + @Generated + @Selector("valueFont") + public native UIFont valueFont(); + + @Generated + @Selector("valueFormatter") + @MappedReturn(ObjCObjectMapper.class) + public native IChartValueFormatter valueFormatter(); + + @Generated + @Selector("valueTextColor") + public native UIColor valueTextColor(); + + @Generated + @Selector("valueTextColorAt:") + public native UIColor valueTextColorAt(@NInt long index); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("visible") + public native boolean visible(); + + @Generated + @Selector("xMax") + public native double xMax(); + + @Generated + @Selector("xMin") + public native double xMin(); + + @Generated + @Selector("yMax") + public native double yMax(); + + @Generated + @Selector("yMin") + public native double yMin(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineScatterCandleBubbleChartRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineScatterCandleBubbleChartRenderer.java index 2dc93423..12ca2c6f 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineScatterCandleBubbleChartRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BarLineScatterCandleBubbleChartRenderer.java @@ -28,145 +28,127 @@ @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassBinding -public class BarLineScatterCandleBubbleChartRenderer extends - ChartDataRendererBase { - static { - NatJ.register(); - } - - @Generated - protected BarLineScatterCandleBubbleChartRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native BarLineScatterCandleBubbleChartRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native BarLineScatterCandleBubbleChartRenderer init(); - - @Generated - @Selector("initBuffers") - public native void initBuffers(); - - @Generated - @Selector("initWithAnimator:viewPortHandler:") - public native BarLineScatterCandleBubbleChartRenderer initWithAnimatorViewPortHandler( - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:") - public native BarLineScatterCandleBubbleChartRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); +public class BarLineScatterCandleBubbleChartRenderer extends ChartDataRendererBase { + static { + NatJ.register(); + } + + @Generated + protected BarLineScatterCandleBubbleChartRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native BarLineScatterCandleBubbleChartRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native BarLineScatterCandleBubbleChartRenderer init(); + + @Generated + @Selector("initBuffers") + public native void initBuffers(); + + @Generated + @Selector("initWithAnimator:viewPortHandler:") + public native BarLineScatterCandleBubbleChartRenderer initWithAnimatorViewPortHandler(ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:") + public native BarLineScatterCandleBubbleChartRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartData.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartData.java index 86253099..9b4e3f42 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartData.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartData.java @@ -33,142 +33,128 @@ @ObjCClassName("_TtC6Charts15BubbleChartData") @ObjCClassBinding public class BubbleChartData extends BarLineScatterCandleBubbleChartData { - static { - NatJ.register(); - } - - @Generated - protected BubbleChartData(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native BubbleChartData alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native BubbleChartData init(); - - @Generated - @Selector("initWithDataSet:") - public native BubbleChartData initWithDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); - - @Generated - @Selector("initWithDataSets:") - public native BubbleChartData initWithDataSets(NSArray dataSets); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setHighlightCircleWidth:") - public native void setHighlightCircleWidth(@NFloat double width); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected BubbleChartData(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native BubbleChartData alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native BubbleChartData init(); + + @Generated + @Selector("initWithDataSet:") + public native BubbleChartData initWithDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); + + @Generated + @Selector("initWithDataSets:") + public native BubbleChartData initWithDataSets(NSArray dataSets); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * Sets the width of the circle that surrounds the bubble when highlighted for all DataSet objects this data object contains + */ + @Generated + @Selector("setHighlightCircleWidth:") + public native void setHighlightCircleWidth(@NFloat double width); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartDataEntry.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartDataEntry.java index 2a5e5653..4d910d47 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartDataEntry.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartDataEntry.java @@ -5,6 +5,7 @@ import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSSet; +import apple.uikit.UIImage; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; @@ -32,172 +33,222 @@ @ObjCClassName("_TtC6Charts20BubbleChartDataEntry") @ObjCClassBinding public class BubbleChartDataEntry extends ChartDataEntry { - static { - NatJ.register(); - } - - @Generated - protected BubbleChartDataEntry(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native BubbleChartDataEntry alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native BubbleChartDataEntry init(); - - @Generated - @Selector("initWithX:y:") - public native BubbleChartDataEntry initWithXY(double x, double y); - - @Generated - @Selector("initWithX:y:data:") - public native BubbleChartDataEntry initWithXYData(double x, double y, - @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initWithX:y:size:") - public native BubbleChartDataEntry initWithXYSize(double x, double y, - @NFloat double size); - - @Generated - @Selector("initWithX:y:size:data:") - public native BubbleChartDataEntry initWithXYSizeData(double x, double y, - @NFloat double size, @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initWithY:") - public native BubbleChartDataEntry initWithY(double y); - - @Generated - @Selector("initWithY:data:") - public native BubbleChartDataEntry initWithYData(double y, - @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setSize:") - public native void setSize(@NFloat double value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("size") - @NFloat - public native double size(); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected BubbleChartDataEntry(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native BubbleChartDataEntry alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native BubbleChartDataEntry init(); + + @Generated + @Selector("initWithX:y:") + public native BubbleChartDataEntry initWithXY(double x, double y); + + @Generated + @Selector("initWithX:y:data:") + public native BubbleChartDataEntry initWithXYData(double x, double y, @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithX:y:icon:") + public native BubbleChartDataEntry initWithXYIcon(double x, double y, UIImage icon); + + @Generated + @Selector("initWithX:y:icon:data:") + public native BubbleChartDataEntry initWithXYIconData(double x, double y, UIImage icon, + @Mapped(ObjCObjectMapper.class) Object data); + + /** + * \param x The index on the x-axis. + * + * \param y The value on the y-axis. + * + * \param size The size of the bubble. + */ + @Generated + @Selector("initWithX:y:size:") + public native BubbleChartDataEntry initWithXYSize(double x, double y, @NFloat double size); + + /** + * \param x The index on the x-axis. + * + * \param y The value on the y-axis. + * + * \param size The size of the bubble. + * + * \param data Spot for additional data this Entry represents. + */ + @Generated + @Selector("initWithX:y:size:data:") + public native BubbleChartDataEntry initWithXYSizeData(double x, double y, @NFloat double size, + @Mapped(ObjCObjectMapper.class) Object data); + + /** + * \param x The index on the x-axis. + * + * \param y The value on the y-axis. + * + * \param size The size of the bubble. + * + * \param icon icon image + */ + @Generated + @Selector("initWithX:y:size:icon:") + public native BubbleChartDataEntry initWithXYSizeIcon(double x, double y, @NFloat double size, UIImage icon); + + /** + * \param x The index on the x-axis. + * + * \param y The value on the y-axis. + * + * \param size The size of the bubble. + * + * \param icon icon image + * + * \param data Spot for additional data this Entry represents. + */ + @Generated + @Selector("initWithX:y:size:icon:data:") + public native BubbleChartDataEntry initWithXYSizeIconData(double x, double y, @NFloat double size, UIImage icon, + @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithY:") + public native BubbleChartDataEntry initWithY(double y); + + @Generated + @Selector("initWithY:data:") + public native BubbleChartDataEntry initWithYData(double y, @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithY:icon:") + public native BubbleChartDataEntry initWithYIcon(double y, UIImage icon); + + @Generated + @Selector("initWithY:icon:data:") + public native BubbleChartDataEntry initWithYIconData(double y, UIImage icon, + @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * The size of the bubble. + */ + @Generated + @Selector("setSize:") + public native void setSize(@NFloat double value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + /** + * The size of the bubble. + */ + @Generated + @Selector("size") + @NFloat + public native double size(); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartDataSet.java index 1ccab6e6..2c8fe39e 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartDataSet.java @@ -2,6 +2,7 @@ import apple.NSObject; +import apple.coregraphics.struct.CGPoint; import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSNumber; @@ -11,6 +12,7 @@ import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; +import org.moe.natj.general.ann.ByValue; import org.moe.natj.general.ann.Generated; import org.moe.natj.general.ann.Library; import org.moe.natj.general.ann.Mapped; @@ -29,448 +31,441 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; import org.moe.samples.simplechart.charts.protocol.IBubbleChartDataSet; +import org.moe.samples.simplechart.charts.protocol.IChartValueFormatter; @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts18BubbleChartDataSet") @ObjCClassBinding -public class BubbleChartDataSet extends BarLineScatterCandleBubbleChartDataSet - implements IBubbleChartDataSet { - static { - NatJ.register(); - } - - @Generated - protected BubbleChartDataSet(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addColor:") - public native void addColor(UIColor color); - - @Generated - @Selector("addEntry:") - public native boolean addEntry(ChartDataEntry e); - - @Generated - @Selector("addEntryOrdered:") - public native boolean addEntryOrdered(ChartDataEntry e); - - @Generated - @Owned - @Selector("alloc") - public static native BubbleChartDataSet alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("axisDependency") - @NInt - public native long axisDependency(); - - @Generated - @Selector("calcMinMax") - public native void calcMinMax(); - - @Generated - @Selector("calcMinMaxWithEntry:") - public native void calcMinMaxWithEntry(ChartDataEntry e); - - @Generated - @Selector("calcMinMaxYFromX:toX:") - public native void calcMinMaxYFromXToX(double fromX, double toX); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clear") - public native void clear(); - - @Generated - @Selector("colorAtIndex:") - public native UIColor colorAtIndex(@NInt long atIndex); - - @Generated - @Selector("colors") - public native NSArray colors(); - - @Generated - @Selector("contains:") - public native boolean contains(ChartDataEntry e); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawValuesEnabled") - public native boolean drawValuesEnabled(); - - @Generated - @Selector("entriesForXValue:") - public native NSArray entriesForXValue( - double xValue); - - @Generated - @Selector("entryCount") - @NInt - public native long entryCount(); - - @Generated - @Selector("entryForIndex:") - public native ChartDataEntry entryForIndex(@NInt long i); - - @Generated - @Selector("entryForXValue:closestToY:") - public native ChartDataEntry entryForXValueClosestToY(double xValue, - double yValue); - - @Generated - @Selector("entryForXValue:closestToY:rounding:") - public native ChartDataEntry entryForXValueClosestToYRounding( - double xValue, double yValue, @NInt long rounding); - - @Generated - @Selector("entryIndexWithEntry:") - @NInt - public native long entryIndexWithEntry(ChartDataEntry e); - - @Generated - @Selector("entryIndexWithX:closestToY:rounding:") - @NInt - public native long entryIndexWithXClosestToYRounding(double xValue, - double yValue, @NInt long rounding); - - @Generated - @Selector("form") - @NInt - public native long form(); - - @Generated - @Selector("formLineDashLengths") - public native NSArray formLineDashLengths(); - - @Generated - @Selector("formLineDashPhase") - @NFloat - public native double formLineDashPhase(); - - @Generated - @Selector("formLineWidth") - @NFloat - public native double formLineWidth(); - - @Generated - @Selector("formSize") - @NFloat - public native double formSize(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highlightCircleWidth") - @NFloat - public native double highlightCircleWidth(); - - @Generated - @Selector("highlightColor") - public native UIColor highlightColor(); - - @Generated - @Selector("highlightEnabled") - public native boolean highlightEnabled(); - - @Generated - @Selector("highlightLineDashLengths") - public native NSArray highlightLineDashLengths(); - - @Generated - @Selector("highlightLineDashPhase") - @NFloat - public native double highlightLineDashPhase(); - - @Generated - @Selector("highlightLineWidth") - @NFloat - public native double highlightLineWidth(); - - @Generated - @Selector("init") - public native BubbleChartDataSet init(); - - @Generated - @Selector("initWithLabel:") - public native BubbleChartDataSet initWithLabel(String label); - - @Generated - @Selector("initWithValues:") - public native BubbleChartDataSet initWithValues( - NSArray values); - - @Generated - @Selector("initWithValues:label:") - public native BubbleChartDataSet initWithValuesLabel( - NSArray values, String label); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawValuesEnabled") - public native boolean isDrawValuesEnabled(); - - @Generated - @Selector("isHighlightEnabled") - public native boolean isHighlightEnabled(); - - @Generated - @Selector("isNormalizeSizeEnabled") - public native boolean isNormalizeSizeEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("isVisible") - public native boolean isVisible(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("label") - public native String label(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("maxSize") - @NFloat - public native double maxSize(); - - @Generated - @Selector("needsFormatter") - public native boolean needsFormatter(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("normalizeSizeEnabled") - public native boolean normalizeSizeEnabled(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("removeEntry:") - public native boolean removeEntry(ChartDataEntry entry); - - @Generated - @Selector("removeEntryWithIndex:") - public native boolean removeEntryWithIndex(@NInt long index); - - @Generated - @Selector("removeEntryWithX:") - public native boolean removeEntryWithX(double x); - - @Generated - @Selector("removeFirst") - public native boolean removeFirst(); - - @Generated - @Selector("removeLast") - public native boolean removeLast(); - - @Generated - @Selector("resetColors") - public native void resetColors(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setColor:") - public native void setColor(UIColor color); - - @Generated - @Selector("setDrawValuesEnabled:") - public native void setDrawValuesEnabled(boolean value); - - @Generated - @Selector("setHighlightCircleWidth:") - public native void setHighlightCircleWidth(@NFloat double value); - - @Generated - @Selector("setHighlightColor:") - public native void setHighlightColor(UIColor value); - - @Generated - @Selector("setHighlightEnabled:") - public native void setHighlightEnabled(boolean value); - - @Generated - @Selector("setHighlightLineDashLengths:") - public native void setHighlightLineDashLengths( - NSArray value); - - @Generated - @Selector("setHighlightLineDashPhase:") - public native void setHighlightLineDashPhase(@NFloat double value); - - @Generated - @Selector("setHighlightLineWidth:") - public native void setHighlightLineWidth(@NFloat double value); - - @Generated - @Selector("setNormalizeSizeEnabled:") - public native void setNormalizeSizeEnabled(boolean value); - - @Generated - @Selector("setValueFont:") - public native void setValueFont(UIFont value); - - @Generated - @Selector("setValueFormatter:") - public native void setValueFormatter( - @Mapped(ObjCObjectMapper.class) Object value); - - @Generated - @Selector("setValueTextColor:") - public native void setValueTextColor(UIColor value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setVisible:") - public native void setVisible(boolean value); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("valueColors") - public native NSArray valueColors(); - - @Generated - @Selector("valueFont") - public native UIFont valueFont(); - - @Generated - @Selector("valueFormatter") - @MappedReturn(ObjCObjectMapper.class) - public native Object valueFormatter(); - - @Generated - @Selector("valueTextColor") - public native UIColor valueTextColor(); - - @Generated - @Selector("valueTextColorAt:") - public native UIColor valueTextColorAt(@NInt long index); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("visible") - public native boolean visible(); - - @Generated - @Selector("xMax") - public native double xMax(); - - @Generated - @Selector("xMin") - public native double xMin(); - - @Generated - @Selector("yMax") - public native double yMax(); - - @Generated - @Selector("yMin") - public native double yMin(); +public class BubbleChartDataSet extends BarLineScatterCandleBubbleChartDataSet implements IBubbleChartDataSet { + static { + NatJ.register(); + } + + @Generated + protected BubbleChartDataSet(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addColor:") + public native void addColor(UIColor color); + + @Generated + @Selector("addEntry:") + public native boolean addEntry(ChartDataEntry e); + + @Generated + @Selector("addEntryOrdered:") + public native boolean addEntryOrdered(ChartDataEntry e); + + @Generated + @Owned + @Selector("alloc") + public static native BubbleChartDataSet alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("axisDependency") + @NInt + public native long axisDependency(); + + @Generated + @Selector("calcMinMax") + public native void calcMinMax(); + + @Generated + @Selector("calcMinMaxYFromX:toX:") + public native void calcMinMaxYFromXToX(double fromX, double toX); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clear") + public native void clear(); + + @Generated + @Selector("colorAtIndex:") + public native UIColor colorAtIndex(@NInt long atIndex); + + @Generated + @Selector("colors") + public native NSArray colors(); + + @Generated + @Selector("contains:") + public native boolean contains(ChartDataEntry e); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawIconsEnabled") + public native boolean drawIconsEnabled(); + + @Generated + @Selector("drawValuesEnabled") + public native boolean drawValuesEnabled(); + + @Generated + @Selector("entriesForXValue:") + public native NSArray entriesForXValue(double xValue); + + @Generated + @Selector("entryCount") + @NInt + public native long entryCount(); + + @Generated + @Selector("entryForIndex:") + public native ChartDataEntry entryForIndex(@NInt long i); + + @Generated + @Selector("entryForXValue:closestToY:") + public native ChartDataEntry entryForXValueClosestToY(double xValue, double yValue); + + @Generated + @Selector("entryForXValue:closestToY:rounding:") + public native ChartDataEntry entryForXValueClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("entryIndexWithEntry:") + @NInt + public native long entryIndexWithEntry(ChartDataEntry e); + + @Generated + @Selector("entryIndexWithX:closestToY:rounding:") + @NInt + public native long entryIndexWithXClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("form") + @NInt + public native long form(); + + @Generated + @Selector("formLineDashLengths") + public native NSArray formLineDashLengths(); + + @Generated + @Selector("formLineDashPhase") + @NFloat + public native double formLineDashPhase(); + + @Generated + @Selector("formLineWidth") + @NFloat + public native double formLineWidth(); + + @Generated + @Selector("formSize") + @NFloat + public native double formSize(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highlightCircleWidth") + @NFloat + public native double highlightCircleWidth(); + + @Generated + @Selector("highlightColor") + public native UIColor highlightColor(); + + @Generated + @Selector("highlightEnabled") + public native boolean highlightEnabled(); + + @Generated + @Selector("highlightLineDashLengths") + public native NSArray highlightLineDashLengths(); + + @Generated + @Selector("highlightLineDashPhase") + @NFloat + public native double highlightLineDashPhase(); + + @Generated + @Selector("highlightLineWidth") + @NFloat + public native double highlightLineWidth(); + + @Generated + @Selector("iconsOffset") + @ByValue + public native CGPoint iconsOffset(); + + @Generated + @Selector("init") + public native BubbleChartDataSet init(); + + @Generated + @Selector("initWithEntries:") + public native BubbleChartDataSet initWithEntries(NSArray entries); + + @Generated + @Selector("initWithEntries:label:") + public native BubbleChartDataSet initWithEntriesLabel(NSArray entries, String label); + + @Generated + @Selector("initWithLabel:") + public native BubbleChartDataSet initWithLabel(String label); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isDrawIconsEnabled") + public native boolean isDrawIconsEnabled(); + + @Generated + @Selector("isDrawValuesEnabled") + public native boolean isDrawValuesEnabled(); + + @Generated + @Selector("isHighlightEnabled") + public native boolean isHighlightEnabled(); + + @Generated + @Selector("isNormalizeSizeEnabled") + public native boolean isNormalizeSizeEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("isVisible") + public native boolean isVisible(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("label") + public native String label(); + + @Generated + @Selector("maxSize") + @NFloat + public native double maxSize(); + + @Generated + @Selector("needsFormatter") + public native boolean needsFormatter(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("normalizeSizeEnabled") + public native boolean normalizeSizeEnabled(); + + @Generated + @Selector("notifyDataSetChanged") + public native void notifyDataSetChanged(); + + @Generated + @Selector("removeEntry:") + public native boolean removeEntry(ChartDataEntry entry); + + @Generated + @Selector("removeEntryWithIndex:") + public native boolean removeEntryWithIndex(@NInt long index); + + @Generated + @Selector("removeEntryWithX:") + public native boolean removeEntryWithX(double x); + + @Generated + @Selector("removeFirst") + public native boolean removeFirst(); + + @Generated + @Selector("removeLast") + public native boolean removeLast(); + + @Generated + @Selector("resetColors") + public native void resetColors(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setColor:") + public native void setColor(UIColor color); + + @Generated + @Selector("setDrawIconsEnabled:") + public native void setDrawIconsEnabled(boolean value); + + @Generated + @Selector("setDrawValuesEnabled:") + public native void setDrawValuesEnabled(boolean value); + + @Generated + @Selector("setHighlightCircleWidth:") + public native void setHighlightCircleWidth(@NFloat double value); + + @Generated + @Selector("setHighlightColor:") + public native void setHighlightColor(UIColor value); + + @Generated + @Selector("setHighlightEnabled:") + public native void setHighlightEnabled(boolean value); + + @Generated + @Selector("setHighlightLineDashLengths:") + public native void setHighlightLineDashLengths(NSArray value); + + @Generated + @Selector("setHighlightLineDashPhase:") + public native void setHighlightLineDashPhase(@NFloat double value); + + @Generated + @Selector("setHighlightLineWidth:") + public native void setHighlightLineWidth(@NFloat double value); + + @Generated + @Selector("setIconsOffset:") + public native void setIconsOffset(@ByValue CGPoint value); + + @Generated + @Selector("setNormalizeSizeEnabled:") + public native void setNormalizeSizeEnabled(boolean value); + + @Generated + @Selector("setValueFont:") + public native void setValueFont(UIFont value); + + @Generated + @Selector("setValueFormatter:") + public native void setValueFormatter(@Mapped(ObjCObjectMapper.class) IChartValueFormatter value); + + @Generated + @Selector("setValueTextColor:") + public native void setValueTextColor(UIColor value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("setVisible:") + public native void setVisible(boolean value); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("valueColors") + public native NSArray valueColors(); + + @Generated + @Selector("valueFont") + public native UIFont valueFont(); + + @Generated + @Selector("valueFormatter") + @MappedReturn(ObjCObjectMapper.class) + public native IChartValueFormatter valueFormatter(); + + @Generated + @Selector("valueTextColor") + public native UIColor valueTextColor(); + + @Generated + @Selector("valueTextColorAt:") + public native UIColor valueTextColorAt(@NInt long index); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("visible") + public native boolean visible(); + + @Generated + @Selector("xMax") + public native double xMax(); + + @Generated + @Selector("xMin") + public native double xMin(); + + @Generated + @Selector("yMax") + public native double yMax(); + + @Generated + @Selector("yMin") + public native double yMin(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartRenderer.java index 9171331e..55b3b7ce 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartRenderer.java @@ -33,196 +33,175 @@ @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts19BubbleChartRenderer") @ObjCClassBinding -public class BubbleChartRenderer extends - BarLineScatterCandleBubbleChartRenderer { - static { - NatJ.register(); - } - - @Generated - protected BubbleChartRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native BubbleChartRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("dataProvider") - @MappedReturn(ObjCObjectMapper.class) - public native BubbleChartDataProvider dataProvider(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawDataSetWithContext:dataSet:") - public native void drawDataSetWithContextDataSet(CGContextRef context, - @Mapped(ObjCObjectMapper.class) IBubbleChartDataSet dataSet); - - @Generated - @Selector("drawDataWithContext:") - public native void drawDataWithContext(CGContextRef context); - - @Generated - @Selector("drawExtrasWithContext:") - public native void drawExtrasWithContext(CGContextRef context); - - @Generated - @Selector("drawHighlightedWithContext:indices:") - public native void drawHighlightedWithContextIndices(CGContextRef context, - NSArray indices); - - @Generated - @Selector("drawValuesWithContext:") - public native void drawValuesWithContext(CGContextRef context); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native BubbleChartRenderer init(); - - @Generated - @Selector("initBuffers") - public native void initBuffers(); - - @Generated - @Selector("initWithAnimator:viewPortHandler:") - public native BubbleChartRenderer initWithAnimatorViewPortHandler( - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithDataProvider:animator:viewPortHandler:") - public native BubbleChartRenderer initWithDataProviderAnimatorViewPortHandler( - @Mapped(ObjCObjectMapper.class) BubbleChartDataProvider dataProvider, - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:") - public native BubbleChartRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setDataProvider:") - public native void setDataProvider_unsafe( - @Mapped(ObjCObjectMapper.class) BubbleChartDataProvider value); - - @Generated - public void setDataProvider( - @Mapped(ObjCObjectMapper.class) BubbleChartDataProvider value) { - Object __old = dataProvider(); - if (value != null) { - org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); - } - setDataProvider_unsafe(value); - if (__old != null) { - org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); - } - } - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); +public class BubbleChartRenderer extends BarLineScatterCandleBubbleChartRenderer { + static { + NatJ.register(); + } + + @Generated + protected BubbleChartRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native BubbleChartRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("dataProvider") + @MappedReturn(ObjCObjectMapper.class) + public native BubbleChartDataProvider dataProvider(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawDataSetWithContext:dataSet:dataSetIndex:") + public native void drawDataSetWithContextDataSetDataSetIndex(CGContextRef context, + @Mapped(ObjCObjectMapper.class) IBubbleChartDataSet dataSet, @NInt long dataSetIndex); + + @Generated + @Selector("drawDataWithContext:") + public native void drawDataWithContext(CGContextRef context); + + @Generated + @Selector("drawExtrasWithContext:") + public native void drawExtrasWithContext(CGContextRef context); + + @Generated + @Selector("drawHighlightedWithContext:indices:") + public native void drawHighlightedWithContextIndices(CGContextRef context, NSArray indices); + + @Generated + @Selector("drawValuesWithContext:") + public native void drawValuesWithContext(CGContextRef context); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native BubbleChartRenderer init(); + + @Generated + @Selector("initBuffers") + public native void initBuffers(); + + @Generated + @Selector("initWithAnimator:viewPortHandler:") + public native BubbleChartRenderer initWithAnimatorViewPortHandler(ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithDataProvider:animator:viewPortHandler:") + public native BubbleChartRenderer initWithDataProviderAnimatorViewPortHandler( + @Mapped(ObjCObjectMapper.class) BubbleChartDataProvider dataProvider, ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:") + public native BubbleChartRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setDataProvider:") + public native void setDataProvider_unsafe(@Mapped(ObjCObjectMapper.class) BubbleChartDataProvider value); + + @Generated + public void setDataProvider(@Mapped(ObjCObjectMapper.class) BubbleChartDataProvider value) { + Object __old = dataProvider(); + if (value != null) { + org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); + } + setDataProvider_unsafe(value); + if (__old != null) { + org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); + } + } + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartView.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartView.java index 6f56a956..072aa883 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartView.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/BubbleChartView.java @@ -11,6 +11,7 @@ import apple.foundation.NSSet; import apple.uikit.UITraitCollection; import apple.uikit.UIView; +import apple.uikit.protocol.UIAppearanceContainer; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.c.ann.Variadic; import org.moe.natj.general.NatJ; @@ -42,471 +43,440 @@ @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts15BubbleChartView") @ObjCClassBinding -public class BubbleChartView extends BarLineChartViewBase implements - BubbleChartDataProvider { - static { - NatJ.register(); - } - - @Generated - protected BubbleChartView(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") - public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( - double frameStartTime, - double frameDuration, - @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); - - @Generated - @Owned - @Selector("alloc") - public static native BubbleChartView alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") - public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:animations:") - public static native void animateWithDurationAnimations( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); - - @Generated - @Selector("animateWithDuration:animations:completion:") - public static native void animateWithDurationAnimationsCompletion( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); - - @Generated - @Selector("animateWithDuration:delay:options:animations:completion:") - public static native void animateWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") - public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( - double duration, - double delay, - @NFloat double dampingRatio, - @NFloat double velocity, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); - - @Generated - @Selector("appearance") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearance(); - - @Generated - @ProtocolClassMethod("appearance") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearance() { - return appearance(); - } - - @Generated - @Selector("appearanceForTraitCollection:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollection( - UITraitCollection trait); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollection") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollection(UITraitCollection trait) { - return appearanceForTraitCollection(trait); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceForTraitCollection:whenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceForTraitCollectionWhenContainedIn(trait, - ContainerClass, varargs); - } - - @Generated - @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes) { - return appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - trait, containerTypes); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceWhenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceWhenContainedIn(ContainerClass, varargs); - } - - @Generated - @Selector("appearanceWhenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes) { - return appearanceWhenContainedInInstancesOfClasses(containerTypes); - } - - @Generated - @Selector("areAnimationsEnabled") - public static native boolean areAnimationsEnabled(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("beginAnimations:context:") - public static native void beginAnimationsContext(String animationID, - VoidPtr context); - - @Generated - @Selector("bubbleData") - public native BubbleChartData bubbleData(); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("centerOffsets") - @ByValue - public native CGPoint centerOffsets(); - - @Generated - @Selector("chartXMax") - public native double chartXMax(); - - @Generated - @Selector("chartXMin") - public native double chartXMin(); - - @Generated - @Selector("chartYMax") - public native double chartYMax(); - - @Generated - @Selector("chartYMin") - public native double chartYMin(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clearTextInputContextIdentifier:") - public static native void clearTextInputContextIdentifier(String identifier); - - @Generated - @Selector("commitAnimations") - public static native void commitAnimations(); - - @Generated - @Selector("data") - public native ChartData data(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("getTransformerForAxis:") - public native ChartTransformer getTransformerForAxis(@NInt long forAxis); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highestVisibleX") - public native double highestVisibleX(); - - @Generated - @Selector("inheritedAnimationDuration") - public static native double inheritedAnimationDuration(); - - @Generated - @Selector("init") - public native BubbleChartView init(); - - @Generated - @Selector("initWithCoder:") - public native BubbleChartView initWithCoder(NSCoder aDecoder); - - @Generated - @Selector("initWithFrame:") - public native BubbleChartView initWithFrame(@ByValue CGRect frame); - - @Generated - @Selector("initialize") - public native void initialize(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isInvertedWithAxis:") - public native boolean isInvertedWithAxis(@NInt long axis); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("layerClass") - public static native Class layerClass(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("lowestVisibleX") - public native double lowestVisibleX(); - - @Generated - @Selector("maxHighlightDistance") - @NFloat - public native double maxHighlightDistance(); - - @Generated - @Selector("maxVisibleCount") - @NInt - public native long maxVisibleCount(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("performSystemAnimation:onViews:options:animations:completion:") - public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( - @NUInt long animation, - NSArray views, - @NUInt long options, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("performWithoutAnimation:") - public static native void performWithoutAnimation( - @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); - - @Generated - @Selector("requiresConstraintBasedLayout") - public static native boolean requiresConstraintBasedLayout(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setAnimationBeginsFromCurrentState:") - public static native void setAnimationBeginsFromCurrentState( - boolean fromCurrentState); - - @Generated - @Selector("setAnimationCurve:") - public static native void setAnimationCurve(@NInt long curve); - - @Generated - @Selector("setAnimationDelay:") - public static native void setAnimationDelay(double delay); - - @Generated - @Selector("setAnimationDelegate:") - public static native void setAnimationDelegate( - @Mapped(ObjCObjectMapper.class) Object delegate); - - @Generated - @Selector("setAnimationDidStopSelector:") - public static native void setAnimationDidStopSelector(SEL selector); - - @Generated - @Selector("setAnimationDuration:") - public static native void setAnimationDuration_static(double duration); - - @Generated - @Selector("setAnimationRepeatAutoreverses:") - public static native void setAnimationRepeatAutoreverses( - boolean repeatAutoreverses); - - @Generated - @Selector("setAnimationRepeatCount:") - public static native void setAnimationRepeatCount_static(float repeatCount); - - @Generated - @Selector("setAnimationStartDate:") - public static native void setAnimationStartDate(NSDate startDate); - - @Generated - @Selector("setAnimationTransition:forView:cache:") - public static native void setAnimationTransitionForViewCache( - @NInt long transition, UIView view, boolean cache); - - @Generated - @Selector("setAnimationWillStartSelector:") - public static native void setAnimationWillStartSelector(SEL selector); - - @Generated - @Selector("setAnimationsEnabled:") - public static native void setAnimationsEnabled(boolean enabled); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transitionFromView:toView:duration:options:completion:") - public static native void transitionFromViewToViewDurationOptionsCompletion( - UIView fromView, - UIView toView, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); - - @Generated - @Selector("transitionWithView:duration:options:animations:completion:") - public static native void transitionWithViewDurationOptionsAnimationsCompletion( - UIView view, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttribute( - @NInt long attribute); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( - @NInt long semanticContentAttribute, @NInt long layoutDirection); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("xRange") - public native double xRange(); +public class BubbleChartView extends BarLineChartViewBase implements BubbleChartDataProvider { + static { + NatJ.register(); + } + + @Generated + protected BubbleChartView(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") + public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( + double frameStartTime, + double frameDuration, + @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); + + @Generated + @Owned + @Selector("alloc") + public static native BubbleChartView alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") + public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:animations:") + public static native void animateWithDurationAnimations( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); + + @Generated + @Selector("animateWithDuration:animations:completion:") + public static native void animateWithDurationAnimationsCompletion( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); + + @Generated + @Selector("animateWithDuration:delay:options:animations:completion:") + public static native void animateWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") + public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( + double duration, + double delay, + @NFloat double dampingRatio, + @NFloat double velocity, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); + + @Generated + @Selector("appearance") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearance(); + + @Generated + @ProtocolClassMethod("appearance") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearance() { + return appearance(); + } + + @Generated + @Selector("appearanceForTraitCollection:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollection(UITraitCollection trait); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollection") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollection(UITraitCollection trait) { + return appearanceForTraitCollection(trait); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceForTraitCollection:whenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs) { + return appearanceForTraitCollectionWhenContainedIn(trait, ContainerClass, varargs); + } + + @Generated + @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes) { + return appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait, containerTypes); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceWhenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedIn( + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedIn(@Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, + Object... varargs) { + return appearanceWhenContainedIn(ContainerClass, varargs); + } + + @Generated + @Selector("appearanceWhenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes) { + return appearanceWhenContainedInInstancesOfClasses(containerTypes); + } + + @Generated + @Selector("areAnimationsEnabled") + public static native boolean areAnimationsEnabled(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("beginAnimations:context:") + public static native void beginAnimationsContext(String animationID, VoidPtr context); + + @Generated + @Selector("bubbleData") + public native BubbleChartData bubbleData(); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("centerOffsets") + @ByValue + public native CGPoint centerOffsets(); + + @Generated + @Selector("chartXMax") + public native double chartXMax(); + + @Generated + @Selector("chartXMin") + public native double chartXMin(); + + @Generated + @Selector("chartYMax") + public native double chartYMax(); + + @Generated + @Selector("chartYMin") + public native double chartYMin(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clearTextInputContextIdentifier:") + public static native void clearTextInputContextIdentifier(String identifier); + + @Generated + @Selector("commitAnimations") + public static native void commitAnimations(); + + @Generated + @Selector("data") + public native ChartData data(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("getTransformerForAxis:") + public native ChartTransformer getTransformerForAxis(@NInt long forAxis); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highestVisibleX") + public native double highestVisibleX(); + + @Generated + @Selector("inheritedAnimationDuration") + public static native double inheritedAnimationDuration(); + + @Generated + @Selector("init") + public native BubbleChartView init(); + + @Generated + @Selector("initWithCoder:") + public native BubbleChartView initWithCoder(NSCoder aDecoder); + + @Generated + @Selector("initWithFrame:") + public native BubbleChartView initWithFrame(@ByValue CGRect frame); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isInvertedWithAxis:") + public native boolean isInvertedWithAxis(@NInt long axis); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("layerClass") + public static native Class layerClass(); + + @Generated + @Selector("lowestVisibleX") + public native double lowestVisibleX(); + + @Generated + @Selector("maxHighlightDistance") + @NFloat + public native double maxHighlightDistance(); + + @Generated + @Selector("maxVisibleCount") + @NInt + public native long maxVisibleCount(); + + @Generated + @Selector("modifyAnimationsWithRepeatCount:autoreverses:animations:") + public static native void modifyAnimationsWithRepeatCountAutoreversesAnimations( + @NFloat double count, + boolean autoreverses, + @ObjCBlock(name = "call_modifyAnimationsWithRepeatCountAutoreversesAnimations") UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("performSystemAnimation:onViews:options:animations:completion:") + public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( + @NUInt long animation, + NSArray views, + @NUInt long options, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("performWithoutAnimation:") + public static native void performWithoutAnimation( + @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); + + @Generated + @Selector("requiresConstraintBasedLayout") + public static native boolean requiresConstraintBasedLayout(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setAnimationBeginsFromCurrentState:") + public static native void setAnimationBeginsFromCurrentState(boolean fromCurrentState); + + @Generated + @Selector("setAnimationCurve:") + public static native void setAnimationCurve(@NInt long curve); + + @Generated + @Selector("setAnimationDelay:") + public static native void setAnimationDelay(double delay); + + @Generated + @Selector("setAnimationDelegate:") + public static native void setAnimationDelegate(@Mapped(ObjCObjectMapper.class) Object delegate); + + @Generated + @Selector("setAnimationDidStopSelector:") + public static native void setAnimationDidStopSelector(SEL selector); + + @Generated + @Selector("setAnimationDuration:") + public static native void setAnimationDuration_static(double duration); + + @Generated + @Selector("setAnimationRepeatAutoreverses:") + public static native void setAnimationRepeatAutoreverses(boolean repeatAutoreverses); + + @Generated + @Selector("setAnimationRepeatCount:") + public static native void setAnimationRepeatCount_static(float repeatCount); + + @Generated + @Selector("setAnimationStartDate:") + public static native void setAnimationStartDate(NSDate startDate); + + @Generated + @Selector("setAnimationTransition:forView:cache:") + public static native void setAnimationTransitionForViewCache(@NInt long transition, UIView view, boolean cache); + + @Generated + @Selector("setAnimationWillStartSelector:") + public static native void setAnimationWillStartSelector(SEL selector); + + @Generated + @Selector("setAnimationsEnabled:") + public static native void setAnimationsEnabled(boolean enabled); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("transitionFromView:toView:duration:options:completion:") + public static native void transitionFromViewToViewDurationOptionsCompletion( + UIView fromView, + UIView toView, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); + + @Generated + @Selector("transitionWithView:duration:options:animations:completion:") + public static native void transitionWithViewDurationOptionsAnimationsCompletion( + UIView view, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttribute(@NInt long attribute); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( + @NInt long semanticContentAttribute, @NInt long layoutDirection); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("xRange") + public native double xRange(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleChartData.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleChartData.java index 82652509..5868ed94 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleChartData.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleChartData.java @@ -32,138 +32,121 @@ @ObjCClassName("_TtC6Charts15CandleChartData") @ObjCClassBinding public class CandleChartData extends BarLineScatterCandleBubbleChartData { - static { - NatJ.register(); - } - - @Generated - protected CandleChartData(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native CandleChartData alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native CandleChartData init(); - - @Generated - @Selector("initWithDataSet:") - public native CandleChartData initWithDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); - - @Generated - @Selector("initWithDataSets:") - public native CandleChartData initWithDataSets(NSArray dataSets); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected CandleChartData(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native CandleChartData alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native CandleChartData init(); + + @Generated + @Selector("initWithDataSet:") + public native CandleChartData initWithDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); + + @Generated + @Selector("initWithDataSets:") + public native CandleChartData initWithDataSets(NSArray dataSets); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleChartDataEntry.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleChartDataEntry.java index 29e5aee6..0d90376e 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleChartDataEntry.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleChartDataEntry.java @@ -5,6 +5,7 @@ import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSSet; +import apple.uikit.UIImage; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; @@ -31,212 +32,257 @@ @ObjCClassName("_TtC6Charts20CandleChartDataEntry") @ObjCClassBinding public class CandleChartDataEntry extends ChartDataEntry { - static { - NatJ.register(); - } - - @Generated - protected CandleChartDataEntry(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native CandleChartDataEntry alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("bodyRange") - public native double bodyRange(); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("close") - public native double close(); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("high") - public native double high(); - - @Generated - @Selector("init") - public native CandleChartDataEntry init(); - - @Generated - @Selector("initWithX:shadowH:shadowL:open:close:") - public native CandleChartDataEntry initWithXShadowHShadowLOpenClose( - double x, double shadowH, double shadowL, double open, double close); - - @Generated - @Selector("initWithX:shadowH:shadowL:open:close:data:") - public native CandleChartDataEntry initWithXShadowHShadowLOpenCloseData( - double x, double shadowH, double shadowL, double open, - double close, @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initWithX:y:") - public native CandleChartDataEntry initWithXY(double x, double y); - - @Generated - @Selector("initWithX:y:data:") - public native CandleChartDataEntry initWithXYData(double x, double y, - @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initWithY:") - public native CandleChartDataEntry initWithY(double y); - - @Generated - @Selector("initWithY:data:") - public native CandleChartDataEntry initWithYData(double y, - @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("low") - public native double low(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("open") - public native double open(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setClose:") - public native void setClose(double value); - - @Generated - @Selector("setHigh:") - public native void setHigh(double value); - - @Generated - @Selector("setLow:") - public native void setLow(double value); - - @Generated - @Selector("setOpen:") - public native void setOpen(double value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setY:") - public native void setY(double value); - - @Generated - @Selector("shadowRange") - public native double shadowRange(); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("y") - public native double y(); + static { + NatJ.register(); + } + + @Generated + protected CandleChartDataEntry(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native CandleChartDataEntry alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + /** + * The body size (difference between open and close). + */ + @Generated + @Selector("bodyRange") + public native double bodyRange(); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + /** + * close value + */ + @Generated + @Selector("close") + public native double close(); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + /** + * shadow-high value + */ + @Generated + @Selector("high") + public native double high(); + + @Generated + @Selector("init") + public native CandleChartDataEntry init(); + + @Generated + @Selector("initWithX:shadowH:shadowL:open:close:") + public native CandleChartDataEntry initWithXShadowHShadowLOpenClose(double x, double shadowH, double shadowL, + double open, double close); + + @Generated + @Selector("initWithX:shadowH:shadowL:open:close:data:") + public native CandleChartDataEntry initWithXShadowHShadowLOpenCloseData(double x, double shadowH, double shadowL, + double open, double close, @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithX:shadowH:shadowL:open:close:icon:") + public native CandleChartDataEntry initWithXShadowHShadowLOpenCloseIcon(double x, double shadowH, double shadowL, + double open, double close, UIImage icon); + + @Generated + @Selector("initWithX:shadowH:shadowL:open:close:icon:data:") + public native CandleChartDataEntry initWithXShadowHShadowLOpenCloseIconData(double x, double shadowH, + double shadowL, double open, double close, UIImage icon, @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithX:y:") + public native CandleChartDataEntry initWithXY(double x, double y); + + @Generated + @Selector("initWithX:y:data:") + public native CandleChartDataEntry initWithXYData(double x, double y, @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithX:y:icon:") + public native CandleChartDataEntry initWithXYIcon(double x, double y, UIImage icon); + + @Generated + @Selector("initWithX:y:icon:data:") + public native CandleChartDataEntry initWithXYIconData(double x, double y, UIImage icon, + @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithY:") + public native CandleChartDataEntry initWithY(double y); + + @Generated + @Selector("initWithY:data:") + public native CandleChartDataEntry initWithYData(double y, @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithY:icon:") + public native CandleChartDataEntry initWithYIcon(double y, UIImage icon); + + @Generated + @Selector("initWithY:icon:data:") + public native CandleChartDataEntry initWithYIconData(double y, UIImage icon, + @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + /** + * shadow-low value + */ + @Generated + @Selector("low") + public native double low(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + /** + * open value + */ + @Generated + @Selector("open") + public native double open(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * close value + */ + @Generated + @Selector("setClose:") + public native void setClose(double value); + + /** + * shadow-high value + */ + @Generated + @Selector("setHigh:") + public native void setHigh(double value); + + /** + * shadow-low value + */ + @Generated + @Selector("setLow:") + public native void setLow(double value); + + /** + * open value + */ + @Generated + @Selector("setOpen:") + public native void setOpen(double value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + /** + * the center value of the candle. (Middle value between high and low) + */ + @Generated + @Selector("setY:") + public native void setY(double value); + + /** + * The overall range (difference) between shadow-high and shadow-low. + */ + @Generated + @Selector("shadowRange") + public native double shadowRange(); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * the center value of the candle. (Middle value between high and low) + */ + @Generated + @Selector("y") + public native double y(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleChartDataSet.java index 99894773..5330dc15 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleChartDataSet.java @@ -2,6 +2,7 @@ import apple.NSObject; +import apple.coregraphics.struct.CGPoint; import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSNumber; @@ -11,6 +12,7 @@ import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; +import org.moe.natj.general.ann.ByValue; import org.moe.natj.general.ann.Generated; import org.moe.natj.general.ann.Library; import org.moe.natj.general.ann.Mapped; @@ -29,542 +31,535 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; import org.moe.samples.simplechart.charts.protocol.ICandleChartDataSet; +import org.moe.samples.simplechart.charts.protocol.IChartValueFormatter; @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts18CandleChartDataSet") @ObjCClassBinding -public class CandleChartDataSet extends LineScatterCandleRadarChartDataSet - implements ICandleChartDataSet { - static { - NatJ.register(); - } - - @Generated - protected CandleChartDataSet(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addColor:") - public native void addColor(UIColor color); - - @Generated - @Selector("addEntry:") - public native boolean addEntry(ChartDataEntry e); - - @Generated - @Selector("addEntryOrdered:") - public native boolean addEntryOrdered(ChartDataEntry e); - - @Generated - @Owned - @Selector("alloc") - public static native CandleChartDataSet alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("axisDependency") - @NInt - public native long axisDependency(); - - @Generated - @Selector("barSpace") - @NFloat - public native double barSpace(); - - @Generated - @Selector("calcMinMax") - public native void calcMinMax(); - - @Generated - @Selector("calcMinMaxWithEntry:") - public native void calcMinMaxWithEntry(ChartDataEntry e); - - @Generated - @Selector("calcMinMaxYFromX:toX:") - public native void calcMinMaxYFromXToX(double fromX, double toX); - - @Generated - @Selector("calcMinMaxYWithEntry:") - public native void calcMinMaxYWithEntry(ChartDataEntry e); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clear") - public native void clear(); - - @Generated - @Selector("colorAtIndex:") - public native UIColor colorAtIndex(@NInt long atIndex); - - @Generated - @Selector("colors") - public native NSArray colors(); - - @Generated - @Selector("contains:") - public native boolean contains(ChartDataEntry e); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("decreasingColor") - public native UIColor decreasingColor(); - - @Generated - @Selector("decreasingFilled") - public native boolean decreasingFilled(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawHorizontalHighlightIndicatorEnabled") - public native boolean drawHorizontalHighlightIndicatorEnabled(); - - @Generated - @Selector("drawValuesEnabled") - public native boolean drawValuesEnabled(); - - @Generated - @Selector("drawVerticalHighlightIndicatorEnabled") - public native boolean drawVerticalHighlightIndicatorEnabled(); - - @Generated - @Selector("entriesForXValue:") - public native NSArray entriesForXValue( - double xValue); - - @Generated - @Selector("entryCount") - @NInt - public native long entryCount(); - - @Generated - @Selector("entryForIndex:") - public native ChartDataEntry entryForIndex(@NInt long i); - - @Generated - @Selector("entryForXValue:closestToY:") - public native ChartDataEntry entryForXValueClosestToY(double xValue, - double yValue); - - @Generated - @Selector("entryForXValue:closestToY:rounding:") - public native ChartDataEntry entryForXValueClosestToYRounding( - double xValue, double yValue, @NInt long rounding); - - @Generated - @Selector("entryIndexWithEntry:") - @NInt - public native long entryIndexWithEntry(ChartDataEntry e); - - @Generated - @Selector("entryIndexWithX:closestToY:rounding:") - @NInt - public native long entryIndexWithXClosestToYRounding(double xValue, - double yValue, @NInt long rounding); - - @Generated - @Selector("form") - @NInt - public native long form(); - - @Generated - @Selector("formLineDashLengths") - public native NSArray formLineDashLengths(); - - @Generated - @Selector("formLineDashPhase") - @NFloat - public native double formLineDashPhase(); - - @Generated - @Selector("formLineWidth") - @NFloat - public native double formLineWidth(); - - @Generated - @Selector("formSize") - @NFloat - public native double formSize(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highlightColor") - public native UIColor highlightColor(); - - @Generated - @Selector("highlightEnabled") - public native boolean highlightEnabled(); - - @Generated - @Selector("highlightLineDashLengths") - public native NSArray highlightLineDashLengths(); - - @Generated - @Selector("highlightLineDashPhase") - @NFloat - public native double highlightLineDashPhase(); - - @Generated - @Selector("highlightLineWidth") - @NFloat - public native double highlightLineWidth(); - - @Generated - @Selector("increasingColor") - public native UIColor increasingColor(); - - @Generated - @Selector("increasingFilled") - public native boolean increasingFilled(); - - @Generated - @Selector("init") - public native CandleChartDataSet init(); - - @Generated - @Selector("initWithLabel:") - public native CandleChartDataSet initWithLabel(String label); - - @Generated - @Selector("initWithValues:") - public native CandleChartDataSet initWithValues( - NSArray values); - - @Generated - @Selector("initWithValues:label:") - public native CandleChartDataSet initWithValuesLabel( - NSArray values, String label); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDecreasingFilled") - public native boolean isDecreasingFilled(); - - @Generated - @Selector("isDrawValuesEnabled") - public native boolean isDrawValuesEnabled(); - - @Generated - @Selector("isHighlightEnabled") - public native boolean isHighlightEnabled(); - - @Generated - @Selector("isHorizontalHighlightIndicatorEnabled") - public native boolean isHorizontalHighlightIndicatorEnabled(); - - @Generated - @Selector("isIncreasingFilled") - public native boolean isIncreasingFilled(); - - @Generated - @Selector("isShadowColorSameAsCandle") - public native boolean isShadowColorSameAsCandle(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("isVerticalHighlightIndicatorEnabled") - public native boolean isVerticalHighlightIndicatorEnabled(); - - @Generated - @Selector("isVisible") - public native boolean isVisible(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("label") - public native String label(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("needsFormatter") - public native boolean needsFormatter(); - - @Generated - @Selector("neutralColor") - public native UIColor neutralColor(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("removeEntry:") - public native boolean removeEntry(ChartDataEntry entry); - - @Generated - @Selector("removeEntryWithIndex:") - public native boolean removeEntryWithIndex(@NInt long index); - - @Generated - @Selector("removeEntryWithX:") - public native boolean removeEntryWithX(double x); - - @Generated - @Selector("removeFirst") - public native boolean removeFirst(); - - @Generated - @Selector("removeLast") - public native boolean removeLast(); - - @Generated - @Selector("resetColors") - public native void resetColors(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setBarSpace:") - public native void setBarSpace(@NFloat double value); - - @Generated - @Selector("setColor:") - public native void setColor(UIColor color); - - @Generated - @Selector("setDecreasingColor:") - public native void setDecreasingColor(UIColor value); - - @Generated - @Selector("setDecreasingFilled:") - public native void setDecreasingFilled(boolean value); - - @Generated - @Selector("setDrawHighlightIndicators:") - public native void setDrawHighlightIndicators(boolean enabled); - - @Generated - @Selector("setDrawHorizontalHighlightIndicatorEnabled:") - public native void setDrawHorizontalHighlightIndicatorEnabled(boolean value); - - @Generated - @Selector("setDrawValuesEnabled:") - public native void setDrawValuesEnabled(boolean value); - - @Generated - @Selector("setDrawVerticalHighlightIndicatorEnabled:") - public native void setDrawVerticalHighlightIndicatorEnabled(boolean value); - - @Generated - @Selector("setHighlightColor:") - public native void setHighlightColor(UIColor value); - - @Generated - @Selector("setHighlightEnabled:") - public native void setHighlightEnabled(boolean value); - - @Generated - @Selector("setHighlightLineDashLengths:") - public native void setHighlightLineDashLengths( - NSArray value); - - @Generated - @Selector("setHighlightLineDashPhase:") - public native void setHighlightLineDashPhase(@NFloat double value); - - @Generated - @Selector("setHighlightLineWidth:") - public native void setHighlightLineWidth(@NFloat double value); - - @Generated - @Selector("setIncreasingColor:") - public native void setIncreasingColor(UIColor value); - - @Generated - @Selector("setIncreasingFilled:") - public native void setIncreasingFilled(boolean value); - - @Generated - @Selector("setNeutralColor:") - public native void setNeutralColor(UIColor value); - - @Generated - @Selector("setShadowColor:") - public native void setShadowColor(UIColor value); - - @Generated - @Selector("setShadowColorSameAsCandle:") - public native void setShadowColorSameAsCandle(boolean value); - - @Generated - @Selector("setShadowWidth:") - public native void setShadowWidth(@NFloat double value); - - @Generated - @Selector("setShowCandleBar:") - public native void setShowCandleBar(boolean value); - - @Generated - @Selector("setValueFont:") - public native void setValueFont(UIFont value); - - @Generated - @Selector("setValueFormatter:") - public native void setValueFormatter( - @Mapped(ObjCObjectMapper.class) Object value); - - @Generated - @Selector("setValueTextColor:") - public native void setValueTextColor(UIColor value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setVisible:") - public native void setVisible(boolean value); - - @Generated - @Selector("shadowColor") - public native UIColor shadowColor(); - - @Generated - @Selector("shadowColorSameAsCandle") - public native boolean shadowColorSameAsCandle(); - - @Generated - @Selector("shadowWidth") - @NFloat - public native double shadowWidth(); - - @Generated - @Selector("showCandleBar") - public native boolean showCandleBar(); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("valueColors") - public native NSArray valueColors(); - - @Generated - @Selector("valueFont") - public native UIFont valueFont(); - - @Generated - @Selector("valueFormatter") - @MappedReturn(ObjCObjectMapper.class) - public native Object valueFormatter(); - - @Generated - @Selector("valueTextColor") - public native UIColor valueTextColor(); - - @Generated - @Selector("valueTextColorAt:") - public native UIColor valueTextColorAt(@NInt long index); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("visible") - public native boolean visible(); - - @Generated - @Selector("xMax") - public native double xMax(); - - @Generated - @Selector("xMin") - public native double xMin(); - - @Generated - @Selector("yMax") - public native double yMax(); - - @Generated - @Selector("yMin") - public native double yMin(); +public class CandleChartDataSet extends LineScatterCandleRadarChartDataSet implements ICandleChartDataSet { + static { + NatJ.register(); + } + + @Generated + protected CandleChartDataSet(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addColor:") + public native void addColor(UIColor color); + + @Generated + @Selector("addEntry:") + public native boolean addEntry(ChartDataEntry e); + + @Generated + @Selector("addEntryOrdered:") + public native boolean addEntryOrdered(ChartDataEntry e); + + @Generated + @Owned + @Selector("alloc") + public static native CandleChartDataSet alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("axisDependency") + @NInt + public native long axisDependency(); + + @Generated + @Selector("barSpace") + @NFloat + public native double barSpace(); + + @Generated + @Selector("calcMinMax") + public native void calcMinMax(); + + @Generated + @Selector("calcMinMaxYFromX:toX:") + public native void calcMinMaxYFromXToX(double fromX, double toX); + + @Generated + @Selector("calcMinMaxYWithEntry:") + public native void calcMinMaxYWithEntry(ChartDataEntry e); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clear") + public native void clear(); + + @Generated + @Selector("colorAtIndex:") + public native UIColor colorAtIndex(@NInt long atIndex); + + @Generated + @Selector("colors") + public native NSArray colors(); + + @Generated + @Selector("contains:") + public native boolean contains(ChartDataEntry e); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("decreasingColor") + public native UIColor decreasingColor(); + + @Generated + @Selector("decreasingFilled") + public native boolean decreasingFilled(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawHorizontalHighlightIndicatorEnabled") + public native boolean drawHorizontalHighlightIndicatorEnabled(); + + @Generated + @Selector("drawIconsEnabled") + public native boolean drawIconsEnabled(); + + @Generated + @Selector("drawValuesEnabled") + public native boolean drawValuesEnabled(); + + @Generated + @Selector("drawVerticalHighlightIndicatorEnabled") + public native boolean drawVerticalHighlightIndicatorEnabled(); + + @Generated + @Selector("entriesForXValue:") + public native NSArray entriesForXValue(double xValue); + + @Generated + @Selector("entryCount") + @NInt + public native long entryCount(); + + @Generated + @Selector("entryForIndex:") + public native ChartDataEntry entryForIndex(@NInt long i); + + @Generated + @Selector("entryForXValue:closestToY:") + public native ChartDataEntry entryForXValueClosestToY(double xValue, double yValue); + + @Generated + @Selector("entryForXValue:closestToY:rounding:") + public native ChartDataEntry entryForXValueClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("entryIndexWithEntry:") + @NInt + public native long entryIndexWithEntry(ChartDataEntry e); + + @Generated + @Selector("entryIndexWithX:closestToY:rounding:") + @NInt + public native long entryIndexWithXClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("form") + @NInt + public native long form(); + + @Generated + @Selector("formLineDashLengths") + public native NSArray formLineDashLengths(); + + @Generated + @Selector("formLineDashPhase") + @NFloat + public native double formLineDashPhase(); + + @Generated + @Selector("formLineWidth") + @NFloat + public native double formLineWidth(); + + @Generated + @Selector("formSize") + @NFloat + public native double formSize(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highlightColor") + public native UIColor highlightColor(); + + @Generated + @Selector("highlightEnabled") + public native boolean highlightEnabled(); + + @Generated + @Selector("highlightLineDashLengths") + public native NSArray highlightLineDashLengths(); + + @Generated + @Selector("highlightLineDashPhase") + @NFloat + public native double highlightLineDashPhase(); + + @Generated + @Selector("highlightLineWidth") + @NFloat + public native double highlightLineWidth(); + + @Generated + @Selector("iconsOffset") + @ByValue + public native CGPoint iconsOffset(); + + @Generated + @Selector("increasingColor") + public native UIColor increasingColor(); + + @Generated + @Selector("increasingFilled") + public native boolean increasingFilled(); + + @Generated + @Selector("init") + public native CandleChartDataSet init(); + + @Generated + @Selector("initWithEntries:") + public native CandleChartDataSet initWithEntries(NSArray entries); + + @Generated + @Selector("initWithEntries:label:") + public native CandleChartDataSet initWithEntriesLabel(NSArray entries, String label); + + @Generated + @Selector("initWithLabel:") + public native CandleChartDataSet initWithLabel(String label); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isDecreasingFilled") + public native boolean isDecreasingFilled(); + + @Generated + @Selector("isDrawIconsEnabled") + public native boolean isDrawIconsEnabled(); + + @Generated + @Selector("isDrawValuesEnabled") + public native boolean isDrawValuesEnabled(); + + @Generated + @Selector("isHighlightEnabled") + public native boolean isHighlightEnabled(); + + @Generated + @Selector("isHorizontalHighlightIndicatorEnabled") + public native boolean isHorizontalHighlightIndicatorEnabled(); + + @Generated + @Selector("isIncreasingFilled") + public native boolean isIncreasingFilled(); + + @Generated + @Selector("isShadowColorSameAsCandle") + public native boolean isShadowColorSameAsCandle(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("isVerticalHighlightIndicatorEnabled") + public native boolean isVerticalHighlightIndicatorEnabled(); + + @Generated + @Selector("isVisible") + public native boolean isVisible(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("label") + public native String label(); + + @Generated + @Selector("needsFormatter") + public native boolean needsFormatter(); + + @Generated + @Selector("neutralColor") + public native UIColor neutralColor(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("notifyDataSetChanged") + public native void notifyDataSetChanged(); + + @Generated + @Selector("removeEntry:") + public native boolean removeEntry(ChartDataEntry entry); + + @Generated + @Selector("removeEntryWithIndex:") + public native boolean removeEntryWithIndex(@NInt long index); + + @Generated + @Selector("removeEntryWithX:") + public native boolean removeEntryWithX(double x); + + @Generated + @Selector("removeFirst") + public native boolean removeFirst(); + + @Generated + @Selector("removeLast") + public native boolean removeLast(); + + @Generated + @Selector("resetColors") + public native void resetColors(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setBarSpace:") + public native void setBarSpace(@NFloat double value); + + @Generated + @Selector("setColor:") + public native void setColor(UIColor color); + + @Generated + @Selector("setDecreasingColor:") + public native void setDecreasingColor(UIColor value); + + @Generated + @Selector("setDecreasingFilled:") + public native void setDecreasingFilled(boolean value); + + @Generated + @Selector("setDrawHighlightIndicators:") + public native void setDrawHighlightIndicators(boolean enabled); + + @Generated + @Selector("setDrawHorizontalHighlightIndicatorEnabled:") + public native void setDrawHorizontalHighlightIndicatorEnabled(boolean value); + + @Generated + @Selector("setDrawIconsEnabled:") + public native void setDrawIconsEnabled(boolean value); + + @Generated + @Selector("setDrawValuesEnabled:") + public native void setDrawValuesEnabled(boolean value); + + @Generated + @Selector("setDrawVerticalHighlightIndicatorEnabled:") + public native void setDrawVerticalHighlightIndicatorEnabled(boolean value); + + @Generated + @Selector("setHighlightColor:") + public native void setHighlightColor(UIColor value); + + @Generated + @Selector("setHighlightEnabled:") + public native void setHighlightEnabled(boolean value); + + @Generated + @Selector("setHighlightLineDashLengths:") + public native void setHighlightLineDashLengths(NSArray value); + + @Generated + @Selector("setHighlightLineDashPhase:") + public native void setHighlightLineDashPhase(@NFloat double value); + + @Generated + @Selector("setHighlightLineWidth:") + public native void setHighlightLineWidth(@NFloat double value); + + @Generated + @Selector("setIconsOffset:") + public native void setIconsOffset(@ByValue CGPoint value); + + @Generated + @Selector("setIncreasingColor:") + public native void setIncreasingColor(UIColor value); + + @Generated + @Selector("setIncreasingFilled:") + public native void setIncreasingFilled(boolean value); + + @Generated + @Selector("setNeutralColor:") + public native void setNeutralColor(UIColor value); + + @Generated + @Selector("setShadowColor:") + public native void setShadowColor(UIColor value); + + @Generated + @Selector("setShadowColorSameAsCandle:") + public native void setShadowColorSameAsCandle(boolean value); + + @Generated + @Selector("setShadowWidth:") + public native void setShadowWidth(@NFloat double value); + + @Generated + @Selector("setShowCandleBar:") + public native void setShowCandleBar(boolean value); + + @Generated + @Selector("setValueFont:") + public native void setValueFont(UIFont value); + + @Generated + @Selector("setValueFormatter:") + public native void setValueFormatter(@Mapped(ObjCObjectMapper.class) IChartValueFormatter value); + + @Generated + @Selector("setValueTextColor:") + public native void setValueTextColor(UIColor value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("setVisible:") + public native void setVisible(boolean value); + + @Generated + @Selector("shadowColor") + public native UIColor shadowColor(); + + @Generated + @Selector("shadowColorSameAsCandle") + public native boolean shadowColorSameAsCandle(); + + @Generated + @Selector("shadowWidth") + @NFloat + public native double shadowWidth(); + + @Generated + @Selector("showCandleBar") + public native boolean showCandleBar(); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("valueColors") + public native NSArray valueColors(); + + @Generated + @Selector("valueFont") + public native UIFont valueFont(); + + @Generated + @Selector("valueFormatter") + @MappedReturn(ObjCObjectMapper.class) + public native IChartValueFormatter valueFormatter(); + + @Generated + @Selector("valueTextColor") + public native UIColor valueTextColor(); + + @Generated + @Selector("valueTextColorAt:") + public native UIColor valueTextColorAt(@NInt long index); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("visible") + public native boolean visible(); + + @Generated + @Selector("xMax") + public native double xMax(); + + @Generated + @Selector("xMin") + public native double xMin(); + + @Generated + @Selector("yMax") + public native double yMax(); + + @Generated + @Selector("yMin") + public native double yMin(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleStickChartRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleStickChartRenderer.java index 7fbacb63..5020af47 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleStickChartRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleStickChartRenderer.java @@ -33,196 +33,175 @@ @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts24CandleStickChartRenderer") @ObjCClassBinding -public class CandleStickChartRenderer extends - LineScatterCandleRadarChartRenderer { - static { - NatJ.register(); - } - - @Generated - protected CandleStickChartRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native CandleStickChartRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("dataProvider") - @MappedReturn(ObjCObjectMapper.class) - public native CandleChartDataProvider dataProvider(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawDataSetWithContext:dataSet:") - public native void drawDataSetWithContextDataSet(CGContextRef context, - @Mapped(ObjCObjectMapper.class) ICandleChartDataSet dataSet); - - @Generated - @Selector("drawDataWithContext:") - public native void drawDataWithContext(CGContextRef context); - - @Generated - @Selector("drawExtrasWithContext:") - public native void drawExtrasWithContext(CGContextRef context); - - @Generated - @Selector("drawHighlightedWithContext:indices:") - public native void drawHighlightedWithContextIndices(CGContextRef context, - NSArray indices); - - @Generated - @Selector("drawValuesWithContext:") - public native void drawValuesWithContext(CGContextRef context); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native CandleStickChartRenderer init(); - - @Generated - @Selector("initBuffers") - public native void initBuffers(); - - @Generated - @Selector("initWithAnimator:viewPortHandler:") - public native CandleStickChartRenderer initWithAnimatorViewPortHandler( - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithDataProvider:animator:viewPortHandler:") - public native CandleStickChartRenderer initWithDataProviderAnimatorViewPortHandler( - @Mapped(ObjCObjectMapper.class) CandleChartDataProvider dataProvider, - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:") - public native CandleStickChartRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setDataProvider:") - public native void setDataProvider_unsafe( - @Mapped(ObjCObjectMapper.class) CandleChartDataProvider value); - - @Generated - public void setDataProvider( - @Mapped(ObjCObjectMapper.class) CandleChartDataProvider value) { - Object __old = dataProvider(); - if (value != null) { - org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); - } - setDataProvider_unsafe(value); - if (__old != null) { - org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); - } - } - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); +public class CandleStickChartRenderer extends LineScatterCandleRadarChartRenderer { + static { + NatJ.register(); + } + + @Generated + protected CandleStickChartRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native CandleStickChartRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("dataProvider") + @MappedReturn(ObjCObjectMapper.class) + public native CandleChartDataProvider dataProvider(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawDataSetWithContext:dataSet:") + public native void drawDataSetWithContextDataSet(CGContextRef context, + @Mapped(ObjCObjectMapper.class) ICandleChartDataSet dataSet); + + @Generated + @Selector("drawDataWithContext:") + public native void drawDataWithContext(CGContextRef context); + + @Generated + @Selector("drawExtrasWithContext:") + public native void drawExtrasWithContext(CGContextRef context); + + @Generated + @Selector("drawHighlightedWithContext:indices:") + public native void drawHighlightedWithContextIndices(CGContextRef context, NSArray indices); + + @Generated + @Selector("drawValuesWithContext:") + public native void drawValuesWithContext(CGContextRef context); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native CandleStickChartRenderer init(); + + @Generated + @Selector("initBuffers") + public native void initBuffers(); + + @Generated + @Selector("initWithAnimator:viewPortHandler:") + public native CandleStickChartRenderer initWithAnimatorViewPortHandler(ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithDataProvider:animator:viewPortHandler:") + public native CandleStickChartRenderer initWithDataProviderAnimatorViewPortHandler( + @Mapped(ObjCObjectMapper.class) CandleChartDataProvider dataProvider, ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:") + public native CandleStickChartRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setDataProvider:") + public native void setDataProvider_unsafe(@Mapped(ObjCObjectMapper.class) CandleChartDataProvider value); + + @Generated + public void setDataProvider(@Mapped(ObjCObjectMapper.class) CandleChartDataProvider value) { + Object __old = dataProvider(); + if (value != null) { + org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); + } + setDataProvider_unsafe(value); + if (__old != null) { + org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); + } + } + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleStickChartView.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleStickChartView.java index 41d28413..e9970a0f 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleStickChartView.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CandleStickChartView.java @@ -11,6 +11,7 @@ import apple.foundation.NSSet; import apple.uikit.UITraitCollection; import apple.uikit.UIView; +import apple.uikit.protocol.UIAppearanceContainer; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.c.ann.Variadic; import org.moe.natj.general.NatJ; @@ -37,472 +38,448 @@ import org.moe.natj.objc.map.ObjCObjectMapper; import org.moe.samples.simplechart.charts.protocol.CandleChartDataProvider; +/** + * Financial chart type that draws candle-sticks. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts20CandleStickChartView") @ObjCClassBinding -public class CandleStickChartView extends BarLineChartViewBase implements - CandleChartDataProvider { - static { - NatJ.register(); - } - - @Generated - protected CandleStickChartView(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") - public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( - double frameStartTime, - double frameDuration, - @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); - - @Generated - @Owned - @Selector("alloc") - public static native CandleStickChartView alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") - public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:animations:") - public static native void animateWithDurationAnimations( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); - - @Generated - @Selector("animateWithDuration:animations:completion:") - public static native void animateWithDurationAnimationsCompletion( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); - - @Generated - @Selector("animateWithDuration:delay:options:animations:completion:") - public static native void animateWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") - public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( - double duration, - double delay, - @NFloat double dampingRatio, - @NFloat double velocity, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); - - @Generated - @Selector("appearance") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearance(); - - @Generated - @ProtocolClassMethod("appearance") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearance() { - return appearance(); - } - - @Generated - @Selector("appearanceForTraitCollection:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollection( - UITraitCollection trait); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollection") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollection(UITraitCollection trait) { - return appearanceForTraitCollection(trait); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceForTraitCollection:whenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceForTraitCollectionWhenContainedIn(trait, - ContainerClass, varargs); - } - - @Generated - @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes) { - return appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - trait, containerTypes); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceWhenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceWhenContainedIn(ContainerClass, varargs); - } - - @Generated - @Selector("appearanceWhenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes) { - return appearanceWhenContainedInInstancesOfClasses(containerTypes); - } - - @Generated - @Selector("areAnimationsEnabled") - public static native boolean areAnimationsEnabled(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("beginAnimations:context:") - public static native void beginAnimationsContext(String animationID, - VoidPtr context); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("candleData") - public native CandleChartData candleData(); - - @Generated - @Selector("centerOffsets") - @ByValue - public native CGPoint centerOffsets(); - - @Generated - @Selector("chartXMax") - public native double chartXMax(); - - @Generated - @Selector("chartXMin") - public native double chartXMin(); - - @Generated - @Selector("chartYMax") - public native double chartYMax(); - - @Generated - @Selector("chartYMin") - public native double chartYMin(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clearTextInputContextIdentifier:") - public static native void clearTextInputContextIdentifier(String identifier); - - @Generated - @Selector("commitAnimations") - public static native void commitAnimations(); - - @Generated - @Selector("data") - public native ChartData data(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("getTransformerForAxis:") - public native ChartTransformer getTransformerForAxis(@NInt long forAxis); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highestVisibleX") - public native double highestVisibleX(); - - @Generated - @Selector("inheritedAnimationDuration") - public static native double inheritedAnimationDuration(); - - @Generated - @Selector("init") - public native CandleStickChartView init(); - - @Generated - @Selector("initWithCoder:") - public native CandleStickChartView initWithCoder(NSCoder aDecoder); - - @Generated - @Selector("initWithFrame:") - public native CandleStickChartView initWithFrame(@ByValue CGRect frame); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isInvertedWithAxis:") - public native boolean isInvertedWithAxis(@NInt long axis); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("layerClass") - public static native Class layerClass(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("lowestVisibleX") - public native double lowestVisibleX(); - - @Generated - @Selector("maxHighlightDistance") - @NFloat - public native double maxHighlightDistance(); - - @Generated - @Selector("maxVisibleCount") - @NInt - public native long maxVisibleCount(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("performSystemAnimation:onViews:options:animations:completion:") - public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( - @NUInt long animation, - NSArray views, - @NUInt long options, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("performWithoutAnimation:") - public static native void performWithoutAnimation( - @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); - - @Generated - @Selector("requiresConstraintBasedLayout") - public static native boolean requiresConstraintBasedLayout(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setAnimationBeginsFromCurrentState:") - public static native void setAnimationBeginsFromCurrentState( - boolean fromCurrentState); - - @Generated - @Selector("setAnimationCurve:") - public static native void setAnimationCurve(@NInt long curve); - - @Generated - @Selector("setAnimationDelay:") - public static native void setAnimationDelay(double delay); - - @Generated - @Selector("setAnimationDelegate:") - public static native void setAnimationDelegate( - @Mapped(ObjCObjectMapper.class) Object delegate); - - @Generated - @Selector("setAnimationDidStopSelector:") - public static native void setAnimationDidStopSelector(SEL selector); - - @Generated - @Selector("setAnimationDuration:") - public static native void setAnimationDuration_static(double duration); - - @Generated - @Selector("setAnimationRepeatAutoreverses:") - public static native void setAnimationRepeatAutoreverses( - boolean repeatAutoreverses); - - @Generated - @Selector("setAnimationRepeatCount:") - public static native void setAnimationRepeatCount_static(float repeatCount); - - @Generated - @Selector("setAnimationStartDate:") - public static native void setAnimationStartDate(NSDate startDate); - - @Generated - @Selector("setAnimationTransition:forView:cache:") - public static native void setAnimationTransitionForViewCache( - @NInt long transition, UIView view, boolean cache); - - @Generated - @Selector("setAnimationWillStartSelector:") - public static native void setAnimationWillStartSelector(SEL selector); - - @Generated - @Selector("setAnimationsEnabled:") - public static native void setAnimationsEnabled(boolean enabled); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transitionFromView:toView:duration:options:completion:") - public static native void transitionFromViewToViewDurationOptionsCompletion( - UIView fromView, - UIView toView, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); - - @Generated - @Selector("transitionWithView:duration:options:animations:completion:") - public static native void transitionWithViewDurationOptionsAnimationsCompletion( - UIView view, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttribute( - @NInt long attribute); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( - @NInt long semanticContentAttribute, @NInt long layoutDirection); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("xRange") - public native double xRange(); +public class CandleStickChartView extends BarLineChartViewBase implements CandleChartDataProvider { + static { + NatJ.register(); + } + + @Generated + protected CandleStickChartView(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") + public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( + double frameStartTime, + double frameDuration, + @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); + + @Generated + @Owned + @Selector("alloc") + public static native CandleStickChartView alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") + public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:animations:") + public static native void animateWithDurationAnimations( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); + + @Generated + @Selector("animateWithDuration:animations:completion:") + public static native void animateWithDurationAnimationsCompletion( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); + + @Generated + @Selector("animateWithDuration:delay:options:animations:completion:") + public static native void animateWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") + public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( + double duration, + double delay, + @NFloat double dampingRatio, + @NFloat double velocity, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); + + @Generated + @Selector("appearance") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearance(); + + @Generated + @ProtocolClassMethod("appearance") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearance() { + return appearance(); + } + + @Generated + @Selector("appearanceForTraitCollection:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollection(UITraitCollection trait); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollection") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollection(UITraitCollection trait) { + return appearanceForTraitCollection(trait); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceForTraitCollection:whenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs) { + return appearanceForTraitCollectionWhenContainedIn(trait, ContainerClass, varargs); + } + + @Generated + @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes) { + return appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait, containerTypes); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceWhenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedIn( + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedIn(@Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, + Object... varargs) { + return appearanceWhenContainedIn(ContainerClass, varargs); + } + + @Generated + @Selector("appearanceWhenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes) { + return appearanceWhenContainedInInstancesOfClasses(containerTypes); + } + + @Generated + @Selector("areAnimationsEnabled") + public static native boolean areAnimationsEnabled(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("beginAnimations:context:") + public static native void beginAnimationsContext(String animationID, VoidPtr context); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("candleData") + public native CandleChartData candleData(); + + @Generated + @Selector("centerOffsets") + @ByValue + public native CGPoint centerOffsets(); + + @Generated + @Selector("chartXMax") + public native double chartXMax(); + + @Generated + @Selector("chartXMin") + public native double chartXMin(); + + @Generated + @Selector("chartYMax") + public native double chartYMax(); + + @Generated + @Selector("chartYMin") + public native double chartYMin(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clearTextInputContextIdentifier:") + public static native void clearTextInputContextIdentifier(String identifier); + + @Generated + @Selector("commitAnimations") + public static native void commitAnimations(); + + @Generated + @Selector("data") + public native ChartData data(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("getTransformerForAxis:") + public native ChartTransformer getTransformerForAxis(@NInt long forAxis); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highestVisibleX") + public native double highestVisibleX(); + + @Generated + @Selector("inheritedAnimationDuration") + public static native double inheritedAnimationDuration(); + + @Generated + @Selector("init") + public native CandleStickChartView init(); + + @Generated + @Selector("initWithCoder:") + public native CandleStickChartView initWithCoder(NSCoder aDecoder); + + @Generated + @Selector("initWithFrame:") + public native CandleStickChartView initWithFrame(@ByValue CGRect frame); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isInvertedWithAxis:") + public native boolean isInvertedWithAxis(@NInt long axis); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("layerClass") + public static native Class layerClass(); + + @Generated + @Selector("lowestVisibleX") + public native double lowestVisibleX(); + + @Generated + @Selector("maxHighlightDistance") + @NFloat + public native double maxHighlightDistance(); + + @Generated + @Selector("maxVisibleCount") + @NInt + public native long maxVisibleCount(); + + @Generated + @Selector("modifyAnimationsWithRepeatCount:autoreverses:animations:") + public static native void modifyAnimationsWithRepeatCountAutoreversesAnimations( + @NFloat double count, + boolean autoreverses, + @ObjCBlock(name = "call_modifyAnimationsWithRepeatCountAutoreversesAnimations") UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("performSystemAnimation:onViews:options:animations:completion:") + public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( + @NUInt long animation, + NSArray views, + @NUInt long options, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("performWithoutAnimation:") + public static native void performWithoutAnimation( + @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); + + @Generated + @Selector("requiresConstraintBasedLayout") + public static native boolean requiresConstraintBasedLayout(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setAnimationBeginsFromCurrentState:") + public static native void setAnimationBeginsFromCurrentState(boolean fromCurrentState); + + @Generated + @Selector("setAnimationCurve:") + public static native void setAnimationCurve(@NInt long curve); + + @Generated + @Selector("setAnimationDelay:") + public static native void setAnimationDelay(double delay); + + @Generated + @Selector("setAnimationDelegate:") + public static native void setAnimationDelegate(@Mapped(ObjCObjectMapper.class) Object delegate); + + @Generated + @Selector("setAnimationDidStopSelector:") + public static native void setAnimationDidStopSelector(SEL selector); + + @Generated + @Selector("setAnimationDuration:") + public static native void setAnimationDuration_static(double duration); + + @Generated + @Selector("setAnimationRepeatAutoreverses:") + public static native void setAnimationRepeatAutoreverses(boolean repeatAutoreverses); + + @Generated + @Selector("setAnimationRepeatCount:") + public static native void setAnimationRepeatCount_static(float repeatCount); + + @Generated + @Selector("setAnimationStartDate:") + public static native void setAnimationStartDate(NSDate startDate); + + @Generated + @Selector("setAnimationTransition:forView:cache:") + public static native void setAnimationTransitionForViewCache(@NInt long transition, UIView view, boolean cache); + + @Generated + @Selector("setAnimationWillStartSelector:") + public static native void setAnimationWillStartSelector(SEL selector); + + @Generated + @Selector("setAnimationsEnabled:") + public static native void setAnimationsEnabled(boolean enabled); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("transitionFromView:toView:duration:options:completion:") + public static native void transitionFromViewToViewDurationOptionsCompletion( + UIView fromView, + UIView toView, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); + + @Generated + @Selector("transitionWithView:duration:options:animations:completion:") + public static native void transitionWithViewDurationOptionsAnimationsCompletion( + UIView view, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttribute(@NInt long attribute); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( + @NInt long semanticContentAttribute, @NInt long layoutDirection); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("xRange") + public native double xRange(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartAnimator.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartAnimator.java index adac2928..00852fc5 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartAnimator.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartAnimator.java @@ -31,319 +31,358 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartAnimator extends NSObject { - static { - NatJ.register(); - } - - @Generated - protected ChartAnimator(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartAnimator alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("animateWithXAxisDuration:") - public native void animateWithXAxisDuration(double xAxisDuration); - - @Generated - @Selector("animateWithXAxisDuration:easing:") - public native void animateWithXAxisDurationEasing( - double xAxisDuration, - @ObjCBlock(name = "call_animateWithXAxisDurationEasing") Block_animateWithXAxisDurationEasing easing); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_animateWithXAxisDurationEasing { - @Generated - double call_animateWithXAxisDurationEasing(double arg0, double arg1); - } - - @Generated - @Selector("animateWithXAxisDuration:easingOption:") - public native void animateWithXAxisDurationEasingOption( - double xAxisDuration, @NInt long easingOption); - - @Generated - @Selector("animateWithXAxisDuration:yAxisDuration:") - public native void animateWithXAxisDurationYAxisDuration( - double xAxisDuration, double yAxisDuration); - - @Generated - @Selector("animateWithXAxisDuration:yAxisDuration:easing:") - public native void animateWithXAxisDurationYAxisDurationEasing( - double xAxisDuration, - double yAxisDuration, - @ObjCBlock(name = "call_animateWithXAxisDurationYAxisDurationEasing") Block_animateWithXAxisDurationYAxisDurationEasing easing); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_animateWithXAxisDurationYAxisDurationEasing { - @Generated - double call_animateWithXAxisDurationYAxisDurationEasing(double arg0, - double arg1); - } - - @Generated - @Selector("animateWithXAxisDuration:yAxisDuration:easingOption:") - public native void animateWithXAxisDurationYAxisDurationEasingOption( - double xAxisDuration, double yAxisDuration, @NInt long easingOption); - - @Generated - @Selector("animateWithXAxisDuration:yAxisDuration:easingOptionX:easingOptionY:") - public native void animateWithXAxisDurationYAxisDurationEasingOptionXEasingOptionY( - double xAxisDuration, double yAxisDuration, - @NInt long easingOptionX, @NInt long easingOptionY); - - @Generated - @Selector("animateWithXAxisDuration:yAxisDuration:easingX:easingY:") - public native void animateWithXAxisDurationYAxisDurationEasingXEasingY( - double xAxisDuration, - double yAxisDuration, - @ObjCBlock(name = "call_animateWithXAxisDurationYAxisDurationEasingXEasingY_2") Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_2 easingX, - @ObjCBlock(name = "call_animateWithXAxisDurationYAxisDurationEasingXEasingY_3") Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_3 easingY); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_2 { - @Generated - double call_animateWithXAxisDurationYAxisDurationEasingXEasingY_2( - double arg0, double arg1); - } - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_3 { - @Generated - double call_animateWithXAxisDurationYAxisDurationEasingXEasingY_3( - double arg0, double arg1); - } - - @Generated - @Selector("animateWithYAxisDuration:") - public native void animateWithYAxisDuration(double yAxisDuration); - - @Generated - @Selector("animateWithYAxisDuration:easing:") - public native void animateWithYAxisDurationEasing( - double yAxisDuration, - @ObjCBlock(name = "call_animateWithYAxisDurationEasing") Block_animateWithYAxisDurationEasing easing); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_animateWithYAxisDurationEasing { - @Generated - double call_animateWithYAxisDurationEasing(double arg0, double arg1); - } - - @Generated - @Selector("animateWithYAxisDuration:easingOption:") - public native void animateWithYAxisDurationEasingOption( - double yAxisDuration, @NInt long easingOption); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("delegate") - @MappedReturn(ObjCObjectMapper.class) - public native ChartAnimatorDelegate delegate(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartAnimator init(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("phaseX") - public native double phaseX(); - - @Generated - @Selector("phaseY") - public native double phaseY(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setDelegate:") - public native void setDelegate_unsafe( - @Mapped(ObjCObjectMapper.class) ChartAnimatorDelegate value); - - @Generated - public void setDelegate( - @Mapped(ObjCObjectMapper.class) ChartAnimatorDelegate value) { - Object __old = delegate(); - if (value != null) { - org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); - } - setDelegate_unsafe(value); - if (__old != null) { - org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); - } - } - - @Generated - @Selector("setPhaseX:") - public native void setPhaseX(double value); - - @Generated - @Selector("setPhaseY:") - public native void setPhaseY(double value); - - @Generated - @Selector("setStopBlock:") - public native void setStopBlock( - @ObjCBlock(name = "call_setStopBlock") Block_setStopBlock value); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_setStopBlock { - @Generated - void call_setStopBlock(); - } - - @Generated - @Selector("setUpdateBlock:") - public native void setUpdateBlock( - @ObjCBlock(name = "call_setUpdateBlock") Block_setUpdateBlock value); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_setUpdateBlock { - @Generated - void call_setUpdateBlock(); - } - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("stop") - public native void stop(); - - @Generated - @Selector("stopBlock") - @ObjCBlock(name = "call_stopBlock_ret") - public native Block_stopBlock_ret stopBlock(); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_stopBlock_ret { - @Generated - void call_stopBlock_ret(); - } - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("updateBlock") - @ObjCBlock(name = "call_updateBlock_ret") - public native Block_updateBlock_ret updateBlock(); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_updateBlock_ret { - @Generated - void call_updateBlock_ret(); - } - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartAnimator(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartAnimator alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + /** + * Animates the drawing / rendering of the chart the x-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param xAxisDuration duration for animating the x axis + * + * \param easing an easing function for the animation + */ + @Generated + @Selector("animateWithXAxisDuration:easing:") + public native void animateWithXAxisDurationEasing(double xAxisDuration, + @ObjCBlock(name = "call_animateWithXAxisDurationEasing") Block_animateWithXAxisDurationEasing easing); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_animateWithXAxisDurationEasing { + @Generated + double call_animateWithXAxisDurationEasing(double arg0, double arg1); + } + + /** + * Animates the drawing / rendering of the chart the x-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param xAxisDuration duration for animating the x axis + * + * \param easingOption the easing function for the animation + */ + @Generated + @Selector("animateWithXAxisDuration:easingOption:") + public native void animateWithXAxisDurationEasingOption(double xAxisDuration, @NInt long easingOption); + + /** + * Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param xAxisDuration duration for animating the x axis + * + * \param yAxisDuration duration for animating the y axis + * + * \param easing an easing function for the animation + */ + @Generated + @Selector("animateWithXAxisDuration:yAxisDuration:easing:") + public native void animateWithXAxisDurationYAxisDurationEasing( + double xAxisDuration, + double yAxisDuration, + @ObjCBlock(name = "call_animateWithXAxisDurationYAxisDurationEasing") Block_animateWithXAxisDurationYAxisDurationEasing easing); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_animateWithXAxisDurationYAxisDurationEasing { + @Generated + double call_animateWithXAxisDurationYAxisDurationEasing(double arg0, double arg1); + } + + /** + * Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param xAxisDuration duration for animating the x axis + * + * \param yAxisDuration duration for animating the y axis + * + * \param easingOption the easing function for the animation + */ + @Generated + @Selector("animateWithXAxisDuration:yAxisDuration:easingOption:") + public native void animateWithXAxisDurationYAxisDurationEasingOption(double xAxisDuration, double yAxisDuration, + @NInt long easingOption); + + /** + * Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param xAxisDuration duration for animating the x axis + * + * \param yAxisDuration duration for animating the y axis + * + * \param easingOptionX the easing function for the animation on the x axis + * + * \param easingOptionY the easing function for the animation on the y axis + */ + @Generated + @Selector("animateWithXAxisDuration:yAxisDuration:easingOptionX:easingOptionY:") + public native void animateWithXAxisDurationYAxisDurationEasingOptionXEasingOptionY(double xAxisDuration, + double yAxisDuration, @NInt long easingOptionX, @NInt long easingOptionY); + + /** + * Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param xAxisDuration duration for animating the x axis + * + * \param yAxisDuration duration for animating the y axis + * + * \param easingX an easing function for the animation on the x axis + * + * \param easingY an easing function for the animation on the y axis + */ + @Generated + @Selector("animateWithXAxisDuration:yAxisDuration:easingX:easingY:") + public native void animateWithXAxisDurationYAxisDurationEasingXEasingY( + double xAxisDuration, + double yAxisDuration, + @ObjCBlock(name = "call_animateWithXAxisDurationYAxisDurationEasingXEasingY_2") Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_2 easingX, + @ObjCBlock(name = "call_animateWithXAxisDurationYAxisDurationEasingXEasingY_3") Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_3 easingY); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_2 { + @Generated + double call_animateWithXAxisDurationYAxisDurationEasingXEasingY_2(double arg0, double arg1); + } + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_3 { + @Generated + double call_animateWithXAxisDurationYAxisDurationEasingXEasingY_3(double arg0, double arg1); + } + + /** + * Animates the drawing / rendering of the chart the y-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param yAxisDuration duration for animating the y axis + * + * \param easing an easing function for the animation + */ + @Generated + @Selector("animateWithYAxisDuration:easing:") + public native void animateWithYAxisDurationEasing(double yAxisDuration, + @ObjCBlock(name = "call_animateWithYAxisDurationEasing") Block_animateWithYAxisDurationEasing easing); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_animateWithYAxisDurationEasing { + @Generated + double call_animateWithYAxisDurationEasing(double arg0, double arg1); + } + + /** + * Animates the drawing / rendering of the chart the y-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param yAxisDuration duration for animating the y axis + * + * \param easingOption the easing function for the animation + */ + @Generated + @Selector("animateWithYAxisDuration:easingOption:") + public native void animateWithYAxisDurationEasingOption(double yAxisDuration, @NInt long easingOption); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("delegate") + @MappedReturn(ObjCObjectMapper.class) + public native ChartAnimatorDelegate delegate(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartAnimator init(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + /** + * the phase that is animated and influences the drawn values on the x-axis + */ + @Generated + @Selector("phaseX") + public native double phaseX(); + + /** + * the phase that is animated and influences the drawn values on the y-axis + */ + @Generated + @Selector("phaseY") + public native double phaseY(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setDelegate:") + public native void setDelegate_unsafe(@Mapped(ObjCObjectMapper.class) ChartAnimatorDelegate value); + + @Generated + public void setDelegate(@Mapped(ObjCObjectMapper.class) ChartAnimatorDelegate value) { + Object __old = delegate(); + if (value != null) { + org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); + } + setDelegate_unsafe(value); + if (__old != null) { + org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); + } + } + + /** + * the phase that is animated and influences the drawn values on the x-axis + */ + @Generated + @Selector("setPhaseX:") + public native void setPhaseX(double value); + + /** + * the phase that is animated and influences the drawn values on the y-axis + */ + @Generated + @Selector("setPhaseY:") + public native void setPhaseY(double value); + + @Generated + @Selector("setStopBlock:") + public native void setStopBlock(@ObjCBlock(name = "call_setStopBlock") Block_setStopBlock value); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_setStopBlock { + @Generated + void call_setStopBlock(); + } + + @Generated + @Selector("setUpdateBlock:") + public native void setUpdateBlock(@ObjCBlock(name = "call_setUpdateBlock") Block_setUpdateBlock value); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_setUpdateBlock { + @Generated + void call_setUpdateBlock(); + } + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("stop") + public native void stop(); + + @Generated + @Selector("stopBlock") + @ObjCBlock(name = "call_stopBlock_ret") + public native Block_stopBlock_ret stopBlock(); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_stopBlock_ret { + @Generated + void call_stopBlock_ret(); + } + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("updateBlock") + @ObjCBlock(name = "call_updateBlock_ret") + public native Block_updateBlock_ret updateBlock(); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_updateBlock_ret { + @Generated + void call_updateBlock_ret(); + } + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartAxisBase.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartAxisBase.java index cf46407b..8537dc1c 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartAxisBase.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartAxisBase.java @@ -29,479 +29,680 @@ import org.moe.natj.objc.map.ObjCObjectMapper; import org.moe.samples.simplechart.charts.protocol.IChartAxisValueFormatter; +/** + * Base class for all axes + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartAxisBase extends ChartComponentBase { - static { - NatJ.register(); - } - - @Generated - protected ChartAxisBase(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addLimitLine:") - public native void addLimitLine(ChartLimitLine line); - - @Generated - @Owned - @Selector("alloc") - public static native ChartAxisBase alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("axisLineColor") - public native UIColor axisLineColor(); - - @Generated - @Selector("axisLineDashLengths") - public native NSArray axisLineDashLengths(); - - @Generated - @Selector("axisLineDashPhase") - @NFloat - public native double axisLineDashPhase(); - - @Generated - @Selector("axisLineWidth") - @NFloat - public native double axisLineWidth(); - - @Generated - @Selector("axisMaxValue") - public native double axisMaxValue(); - - @Generated - @Selector("axisMaximum") - public native double axisMaximum(); - - @Generated - @Selector("axisMinValue") - public native double axisMinValue(); - - @Generated - @Selector("axisMinimum") - public native double axisMinimum(); - - @Generated - @Selector("axisRange") - public native double axisRange(); - - @Generated - @Selector("calculateWithMin:max:") - public native void calculateWithMinMax(double dataMin, double dataMax); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("centerAxisLabelsEnabled") - public native boolean centerAxisLabelsEnabled(); - - @Generated - @Selector("centeredEntries") - public native NSArray centeredEntries(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("decimals") - @NInt - public native long decimals(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawAxisLineEnabled") - public native boolean drawAxisLineEnabled(); - - @Generated - @Selector("drawGridLinesEnabled") - public native boolean drawGridLinesEnabled(); - - @Generated - @Selector("drawLabelsEnabled") - public native boolean drawLabelsEnabled(); - - @Generated - @Selector("drawLimitLinesBehindDataEnabled") - public native boolean drawLimitLinesBehindDataEnabled(); - - @Generated - @Selector("entries") - public native NSArray entries(); - - @Generated - @Selector("entryCount") - @NInt - public native long entryCount(); - - @Generated - @Selector("forceLabelsEnabled") - public native boolean forceLabelsEnabled(); - - @Generated - @Selector("getFormattedLabel:") - public native String getFormattedLabel(@NInt long index); - - @Generated - @Selector("getLongestLabel") - public native String getLongestLabel(); - - @Generated - @Selector("granularity") - public native double granularity(); - - @Generated - @Selector("granularityEnabled") - public native boolean granularityEnabled(); - - @Generated - @Selector("gridAntialiasEnabled") - public native boolean gridAntialiasEnabled(); - - @Generated - @Selector("gridColor") - public native UIColor gridColor(); - - @Generated - @Selector("gridLineCap") - public native int gridLineCap(); - - @Generated - @Selector("gridLineDashLengths") - public native NSArray gridLineDashLengths(); - - @Generated - @Selector("gridLineDashPhase") - @NFloat - public native double gridLineDashPhase(); - - @Generated - @Selector("gridLineWidth") - @NFloat - public native double gridLineWidth(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartAxisBase init(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isAxisMaxCustom") - public native boolean isAxisMaxCustom(); - - @Generated - @Selector("isAxisMinCustom") - public native boolean isAxisMinCustom(); - - @Generated - @Selector("isCenterAxisLabelsEnabled") - public native boolean isCenterAxisLabelsEnabled(); - - @Generated - @Selector("isDrawAxisLineEnabled") - public native boolean isDrawAxisLineEnabled(); - - @Generated - @Selector("isDrawGridLinesEnabled") - public native boolean isDrawGridLinesEnabled(); - - @Generated - @Selector("isDrawLabelsEnabled") - public native boolean isDrawLabelsEnabled(); - - @Generated - @Selector("isDrawLimitLinesBehindDataEnabled") - public native boolean isDrawLimitLinesBehindDataEnabled(); - - @Generated - @Selector("isForceLabelsEnabled") - public native boolean isForceLabelsEnabled(); - - @Generated - @Selector("isGranularityEnabled") - public native boolean isGranularityEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("labelCount") - @NInt - public native long labelCount(); - - @Generated - @Selector("labelFont") - public native UIFont labelFont(); - - @Generated - @Selector("labelTextColor") - public native UIColor labelTextColor(); - - @Generated - @Selector("limitLines") - public native NSArray limitLines(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("removeAllLimitLines") - public native void removeAllLimitLines(); - - @Generated - @Selector("removeLimitLine:") - public native void removeLimitLine(ChartLimitLine line); - - @Generated - @Selector("resetCustomAxisMax") - public native void resetCustomAxisMax(); - - @Generated - @Selector("resetCustomAxisMin") - public native void resetCustomAxisMin(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setAxisLineColor:") - public native void setAxisLineColor(UIColor value); - - @Generated - @Selector("setAxisLineDashLengths:") - public native void setAxisLineDashLengths(NSArray value); - - @Generated - @Selector("setAxisLineDashPhase:") - public native void setAxisLineDashPhase(@NFloat double value); - - @Generated - @Selector("setAxisLineWidth:") - public native void setAxisLineWidth(@NFloat double value); - - @Generated - @Selector("setAxisMaxValue:") - public native void setAxisMaxValue(double value); - - @Generated - @Selector("setAxisMaximum:") - public native void setAxisMaximum(double value); - - @Generated - @Selector("setAxisMinValue:") - public native void setAxisMinValue(double value); - - @Generated - @Selector("setAxisMinimum:") - public native void setAxisMinimum(double value); - - @Generated - @Selector("setAxisRange:") - public native void setAxisRange(double value); - - @Generated - @Selector("setCenterAxisLabelsEnabled:") - public native void setCenterAxisLabelsEnabled(boolean value); - - @Generated - @Selector("setCenteredEntries:") - public native void setCenteredEntries(NSArray value); - - @Generated - @Selector("setDecimals:") - public native void setDecimals(@NInt long value); - - @Generated - @Selector("setDrawAxisLineEnabled:") - public native void setDrawAxisLineEnabled(boolean value); - - @Generated - @Selector("setDrawGridLinesEnabled:") - public native void setDrawGridLinesEnabled(boolean value); - - @Generated - @Selector("setDrawLabelsEnabled:") - public native void setDrawLabelsEnabled(boolean value); - - @Generated - @Selector("setDrawLimitLinesBehindDataEnabled:") - public native void setDrawLimitLinesBehindDataEnabled(boolean value); - - @Generated - @Selector("setEntries:") - public native void setEntries(NSArray value); - - @Generated - @Selector("setForceLabelsEnabled:") - public native void setForceLabelsEnabled(boolean value); - - @Generated - @Selector("setGranularity:") - public native void setGranularity(double value); - - @Generated - @Selector("setGranularityEnabled:") - public native void setGranularityEnabled(boolean value); - - @Generated - @Selector("setGridAntialiasEnabled:") - public native void setGridAntialiasEnabled(boolean value); - - @Generated - @Selector("setGridColor:") - public native void setGridColor(UIColor value); - - @Generated - @Selector("setGridLineCap:") - public native void setGridLineCap(int value); - - @Generated - @Selector("setGridLineDashLengths:") - public native void setGridLineDashLengths(NSArray value); - - @Generated - @Selector("setGridLineDashPhase:") - public native void setGridLineDashPhase(@NFloat double value); - - @Generated - @Selector("setGridLineWidth:") - public native void setGridLineWidth(@NFloat double value); - - @Generated - @Selector("setLabelCount:") - public native void setLabelCount(@NInt long value); - - @Generated - @Selector("setLabelCount:force:") - public native void setLabelCountForce(@NInt long count, boolean force); - - @Generated - @Selector("setLabelFont:") - public native void setLabelFont(UIFont value); - - @Generated - @Selector("setLabelTextColor:") - public native void setLabelTextColor(UIColor value); - - @Generated - @Selector("setSpaceMax:") - public native void setSpaceMax(double value); - - @Generated - @Selector("setSpaceMin:") - public native void setSpaceMin(double value); - - @Generated - @Selector("setValueFormatter:") - public native void setValueFormatter( - @Mapped(ObjCObjectMapper.class) IChartAxisValueFormatter value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("spaceMax") - public native double spaceMax(); - - @Generated - @Selector("spaceMin") - public native double spaceMin(); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("valueFormatter") - @MappedReturn(ObjCObjectMapper.class) - public native IChartAxisValueFormatter valueFormatter(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartAxisBase(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + /** + * Adds a new ChartLimitLine to this axis. + */ + @Generated + @Selector("addLimitLine:") + public native void addLimitLine(ChartLimitLine line); + + @Generated + @Owned + @Selector("alloc") + public static native ChartAxisBase alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("axisLineColor") + public native UIColor axisLineColor(); + + @Generated + @Selector("axisLineDashLengths") + public native NSArray axisLineDashLengths(); + + @Generated + @Selector("axisLineDashPhase") + @NFloat + public native double axisLineDashPhase(); + + @Generated + @Selector("axisLineWidth") + @NFloat + public native double axisLineWidth(); + + /** + * The maximum number of labels on the axis + */ + @Generated + @Selector("axisMaxLabels") + @NInt + public native long axisMaxLabels(); + + /** + * The maximum value for this axis. + * If set, this value will not be calculated automatically depending on the provided data. + * Use resetCustomAxisMax() to undo this. + */ + @Generated + @Selector("axisMaximum") + public native double axisMaximum(); + + /** + * The minumum number of labels on the axis + */ + @Generated + @Selector("axisMinLabels") + @NInt + public native long axisMinLabels(); + + /** + * The minimum value for this axis. + * If set, this value will not be calculated automatically depending on the provided data. + * Use resetCustomAxisMin() to undo this. + */ + @Generated + @Selector("axisMinimum") + public native double axisMinimum(); + + /** + * the total range of values this axis covers + */ + @Generated + @Selector("axisRange") + public native double axisRange(); + + /** + * Calculates the minimum, maximum and range values of the YAxis with the given minimum and maximum values from the chart data. + * \param dataMin the y-min value according to chart data + * + * \param dataMax the y-max value according to chart + */ + @Generated + @Selector("calculateWithMin:max:") + public native void calculateWithMinMax(double dataMin, double dataMax); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + /** + * Centers the axis labels instead of drawing them at their original position. + * This is useful especially for grouped BarChart. + */ + @Generated + @Selector("centerAxisLabelsEnabled") + public native boolean centerAxisLabelsEnabled(); + + /** + * axis label entries only used for centered labels + */ + @Generated + @Selector("centeredEntries") + public native NSArray centeredEntries(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + /** + * the number of decimal digits to use (for the default formatter + */ + @Generated + @Selector("decimals") + @NInt + public native long decimals(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawAxisLineEnabled") + public native boolean drawAxisLineEnabled(); + + /** + * Are the grid lines drawn behind the data or in front of the data? + * default: true + */ + @Generated + @Selector("drawGridLinesBehindDataEnabled") + public native boolean drawGridLinesBehindDataEnabled(); + + @Generated + @Selector("drawGridLinesEnabled") + public native boolean drawGridLinesEnabled(); + + /** + * flag that indicates of the labels of this axis should be drawn or not + */ + @Generated + @Selector("drawLabelsEnabled") + public native boolean drawLabelsEnabled(); + + /** + * Are the LimitLines drawn behind the data or in front of the data? + * default: false + */ + @Generated + @Selector("drawLimitLinesBehindDataEnabled") + public native boolean drawLimitLinesBehindDataEnabled(); + + /** + * the actual array of entries + */ + @Generated + @Selector("entries") + public native NSArray entries(); + + /** + * the number of entries the legend contains + */ + @Generated + @Selector("entryCount") + @NInt + public native long entryCount(); + + /** + * if true, the set number of y-labels will be forced + */ + @Generated + @Selector("forceLabelsEnabled") + public native boolean forceLabelsEnabled(); + + /** + * returns: + * The formatted label at the specified index. This will either use the auto-formatter or the custom formatter (if one is set). + */ + @Generated + @Selector("getFormattedLabel:") + public native String getFormattedLabel(@NInt long index); + + @Generated + @Selector("getLongestLabel") + public native String getLongestLabel(); + + /** + * The minimum interval between axis values. + * This can be used to avoid label duplicating when zooming in. + * default: 1.0 + */ + @Generated + @Selector("granularity") + public native double granularity(); + + /** + * When true, axis labels are controlled by the granularity property. + * When false, axis values could possibly be repeated. + * This could happen if two adjacent axis values are rounded to same value. + * If using granularity this could be avoided by having fewer axis values visible. + */ + @Generated + @Selector("granularityEnabled") + public native boolean granularityEnabled(); + + /** + * the flag can be used to turn off the antialias for grid lines + */ + @Generated + @Selector("gridAntialiasEnabled") + public native boolean gridAntialiasEnabled(); + + @Generated + @Selector("gridColor") + public native UIColor gridColor(); + + @Generated + @Selector("gridLineCap") + public native int gridLineCap(); + + @Generated + @Selector("gridLineDashLengths") + public native NSArray gridLineDashLengths(); + + @Generated + @Selector("gridLineDashPhase") + @NFloat + public native double gridLineDashPhase(); + + @Generated + @Selector("gridLineWidth") + @NFloat + public native double gridLineWidth(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartAxisBase init(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isAxisMaxCustom") + public native boolean isAxisMaxCustom(); + + @Generated + @Selector("isAxisMinCustom") + public native boolean isAxisMinCustom(); + + @Generated + @Selector("isCenterAxisLabelsEnabled") + public native boolean isCenterAxisLabelsEnabled(); + + @Generated + @Selector("isDrawAxisLineEnabled") + public native boolean isDrawAxisLineEnabled(); + + /** + * Are the grid lines drawn behind the data or in front of the data? + * default: true + */ + @Generated + @Selector("isDrawGridLinesBehindDataEnabled") + public native boolean isDrawGridLinesBehindDataEnabled(); + + @Generated + @Selector("isDrawGridLinesEnabled") + public native boolean isDrawGridLinesEnabled(); + + @Generated + @Selector("isDrawLabelsEnabled") + public native boolean isDrawLabelsEnabled(); + + /** + * Are the LimitLines drawn behind the data or in front of the data? + * default: false + */ + @Generated + @Selector("isDrawLimitLinesBehindDataEnabled") + public native boolean isDrawLimitLinesBehindDataEnabled(); + + /** + * true if focing the y-label count is enabled. Default: false + */ + @Generated + @Selector("isForceLabelsEnabled") + public native boolean isForceLabelsEnabled(); + + /** + * The minimum interval between axis values. + */ + @Generated + @Selector("isGranularityEnabled") + public native boolean isGranularityEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + /** + * the number of label entries the axis should have + * max = 25, + * min = 2, + * default = 6, + * be aware that this number is not fixed and can only be approximated + */ + @Generated + @Selector("labelCount") + @NInt + public native long labelCount(); + + @Generated + @Selector("labelFont") + public native UIFont labelFont(); + + @Generated + @Selector("labelTextColor") + public native UIColor labelTextColor(); + + /** + * The LimitLines of this axis. + */ + @Generated + @Selector("limitLines") + public native NSArray limitLines(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + /** + * Removes all LimitLines from the axis. + */ + @Generated + @Selector("removeAllLimitLines") + public native void removeAllLimitLines(); + + /** + * Removes the specified ChartLimitLine from the axis. + */ + @Generated + @Selector("removeLimitLine:") + public native void removeLimitLine(ChartLimitLine line); + + /** + * By calling this method, any custom maximum value that has been previously set is reseted, and the calculation is done automatically. + */ + @Generated + @Selector("resetCustomAxisMax") + public native void resetCustomAxisMax(); + + /** + * By calling this method, any custom minimum value that has been previously set is reseted, and the calculation is done automatically. + */ + @Generated + @Selector("resetCustomAxisMin") + public native void resetCustomAxisMin(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setAxisLineColor:") + public native void setAxisLineColor(UIColor value); + + @Generated + @Selector("setAxisLineDashLengths:") + public native void setAxisLineDashLengths(NSArray value); + + @Generated + @Selector("setAxisLineDashPhase:") + public native void setAxisLineDashPhase(@NFloat double value); + + @Generated + @Selector("setAxisLineWidth:") + public native void setAxisLineWidth(@NFloat double value); + + /** + * The maximum number of labels on the axis + */ + @Generated + @Selector("setAxisMaxLabels:") + public native void setAxisMaxLabels(@NInt long value); + + /** + * The maximum value for this axis. + * If set, this value will not be calculated automatically depending on the provided data. + * Use resetCustomAxisMax() to undo this. + */ + @Generated + @Selector("setAxisMaximum:") + public native void setAxisMaximum(double value); + + /** + * The minumum number of labels on the axis + */ + @Generated + @Selector("setAxisMinLabels:") + public native void setAxisMinLabels(@NInt long value); + + /** + * The minimum value for this axis. + * If set, this value will not be calculated automatically depending on the provided data. + * Use resetCustomAxisMin() to undo this. + */ + @Generated + @Selector("setAxisMinimum:") + public native void setAxisMinimum(double value); + + /** + * the total range of values this axis covers + */ + @Generated + @Selector("setAxisRange:") + public native void setAxisRange(double value); + + /** + * Centers the axis labels instead of drawing them at their original position. + * This is useful especially for grouped BarChart. + */ + @Generated + @Selector("setCenterAxisLabelsEnabled:") + public native void setCenterAxisLabelsEnabled(boolean value); + + /** + * axis label entries only used for centered labels + */ + @Generated + @Selector("setCenteredEntries:") + public native void setCenteredEntries(NSArray value); + + /** + * the number of decimal digits to use (for the default formatter + */ + @Generated + @Selector("setDecimals:") + public native void setDecimals(@NInt long value); + + @Generated + @Selector("setDrawAxisLineEnabled:") + public native void setDrawAxisLineEnabled(boolean value); + + /** + * Are the grid lines drawn behind the data or in front of the data? + * default: true + */ + @Generated + @Selector("setDrawGridLinesBehindDataEnabled:") + public native void setDrawGridLinesBehindDataEnabled(boolean value); + + @Generated + @Selector("setDrawGridLinesEnabled:") + public native void setDrawGridLinesEnabled(boolean value); + + /** + * flag that indicates of the labels of this axis should be drawn or not + */ + @Generated + @Selector("setDrawLabelsEnabled:") + public native void setDrawLabelsEnabled(boolean value); + + /** + * Are the LimitLines drawn behind the data or in front of the data? + * default: false + */ + @Generated + @Selector("setDrawLimitLinesBehindDataEnabled:") + public native void setDrawLimitLinesBehindDataEnabled(boolean value); + + /** + * the actual array of entries + */ + @Generated + @Selector("setEntries:") + public native void setEntries(NSArray value); + + /** + * if true, the set number of y-labels will be forced + */ + @Generated + @Selector("setForceLabelsEnabled:") + public native void setForceLabelsEnabled(boolean value); + + /** + * The minimum interval between axis values. + * This can be used to avoid label duplicating when zooming in. + * default: 1.0 + */ + @Generated + @Selector("setGranularity:") + public native void setGranularity(double value); + + /** + * When true, axis labels are controlled by the granularity property. + * When false, axis values could possibly be repeated. + * This could happen if two adjacent axis values are rounded to same value. + * If using granularity this could be avoided by having fewer axis values visible. + */ + @Generated + @Selector("setGranularityEnabled:") + public native void setGranularityEnabled(boolean value); + + /** + * the flag can be used to turn off the antialias for grid lines + */ + @Generated + @Selector("setGridAntialiasEnabled:") + public native void setGridAntialiasEnabled(boolean value); + + @Generated + @Selector("setGridColor:") + public native void setGridColor(UIColor value); + + @Generated + @Selector("setGridLineCap:") + public native void setGridLineCap(int value); + + @Generated + @Selector("setGridLineDashLengths:") + public native void setGridLineDashLengths(NSArray value); + + @Generated + @Selector("setGridLineDashPhase:") + public native void setGridLineDashPhase(@NFloat double value); + + @Generated + @Selector("setGridLineWidth:") + public native void setGridLineWidth(@NFloat double value); + + /** + * the number of label entries the axis should have + * max = 25, + * min = 2, + * default = 6, + * be aware that this number is not fixed and can only be approximated + */ + @Generated + @Selector("setLabelCount:") + public native void setLabelCount(@NInt long value); + + @Generated + @Selector("setLabelCount:force:") + public native void setLabelCountForce(@NInt long count, boolean force); + + @Generated + @Selector("setLabelFont:") + public native void setLabelFont(UIFont value); + + @Generated + @Selector("setLabelTextColor:") + public native void setLabelTextColor(UIColor value); + + /** + * Extra spacing for axisMaximum to be added to automatically calculated axisMaximum + */ + @Generated + @Selector("setSpaceMax:") + public native void setSpaceMax(double value); + + /** + * Extra spacing for axisMinimum to be added to automatically calculated axisMinimum + */ + @Generated + @Selector("setSpaceMin:") + public native void setSpaceMin(double value); + + /** + * Sets the formatter to be used for formatting the axis labels. + * If no formatter is set, the chart will automatically determine a reasonable formatting (concerning decimals) for all the values that are drawn inside the chart. + * Use nil to use the formatter calculated by the chart. + */ + @Generated + @Selector("setValueFormatter:") + public native void setValueFormatter(@Mapped(ObjCObjectMapper.class) IChartAxisValueFormatter value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + /** + * Extra spacing for axisMaximum to be added to automatically calculated axisMaximum + */ + @Generated + @Selector("spaceMax") + public native double spaceMax(); + + /** + * Extra spacing for axisMinimum to be added to automatically calculated axisMinimum + */ + @Generated + @Selector("spaceMin") + public native double spaceMin(); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + /** + * Sets the formatter to be used for formatting the axis labels. + * If no formatter is set, the chart will automatically determine a reasonable formatting (concerning decimals) for all the values that are drawn inside the chart. + * Use nil to use the formatter calculated by the chart. + */ + @Generated + @Selector("valueFormatter") + @MappedReturn(ObjCObjectMapper.class) + public native IChartAxisValueFormatter valueFormatter(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartAxisRendererBase.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartAxisRendererBase.java index d892c1ed..44d97bbf 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartAxisRendererBase.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartAxisRendererBase.java @@ -30,181 +30,195 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartAxisRendererBase extends ChartRenderer { - static { - NatJ.register(); - } - - @Generated - protected ChartAxisRendererBase(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartAxisRendererBase alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("axis") - public native ChartAxisBase axis(); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("computeAxisValuesWithMin:max:") - public native void computeAxisValuesWithMinMax(double min, double max); - - @Generated - @Selector("computeAxisWithMin:max:inverted:") - public native void computeAxisWithMinMaxInverted(double min, double max, - boolean inverted); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartAxisRendererBase init(); - - @Generated - @Selector("initWithViewPortHandler:") - public native ChartAxisRendererBase initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:transformer:axis:") - public native ChartAxisRendererBase initWithViewPortHandlerTransformerAxis( - ChartViewPortHandler viewPortHandler, ChartTransformer transformer, - ChartAxisBase axis); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("renderAxisLabelsWithContext:") - public native void renderAxisLabelsWithContext(CGContextRef context); - - @Generated - @Selector("renderAxisLineWithContext:") - public native void renderAxisLineWithContext(CGContextRef context); - - @Generated - @Selector("renderGridLinesWithContext:") - public native void renderGridLinesWithContext(CGContextRef context); - - @Generated - @Selector("renderLimitLinesWithContext:") - public native void renderLimitLinesWithContext(CGContextRef context); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setAxis:") - public native void setAxis(ChartAxisBase value); - - @Generated - @Selector("setTransformer:") - public native void setTransformer(ChartTransformer value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transformer") - public native ChartTransformer transformer(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartAxisRendererBase(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartAxisRendererBase alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + /** + * base axis this axis renderer works with + */ + @Generated + @Selector("axis") + public native ChartAxisBase axis(); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + /** + * Sets up the axis values. Computes the desired number of labels between the two given extremes. + */ + @Generated + @Selector("computeAxisValuesWithMin:max:") + public native void computeAxisValuesWithMinMax(double min, double max); + + /** + * Computes the axis values. + * \param min the minimum value in the data object for this axis + * + * \param max the maximum value in the data object for this axis + */ + @Generated + @Selector("computeAxisWithMin:max:inverted:") + public native void computeAxisWithMinMaxInverted(double min, double max, boolean inverted); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartAxisRendererBase init(); + + @Generated + @Selector("initWithViewPortHandler:") + public native ChartAxisRendererBase initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:transformer:axis:") + public native ChartAxisRendererBase initWithViewPortHandlerTransformerAxis(ChartViewPortHandler viewPortHandler, + ChartTransformer transformer, ChartAxisBase axis); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + /** + * Draws the axis labels on the specified context + */ + @Generated + @Selector("renderAxisLabelsWithContext:") + public native void renderAxisLabelsWithContext(CGContextRef context); + + /** + * Draws the line that goes alongside the axis. + */ + @Generated + @Selector("renderAxisLineWithContext:") + public native void renderAxisLineWithContext(CGContextRef context); + + /** + * Draws the grid lines belonging to the axis. + */ + @Generated + @Selector("renderGridLinesWithContext:") + public native void renderGridLinesWithContext(CGContextRef context); + + /** + * Draws the LimitLines associated with this axis to the screen. + */ + @Generated + @Selector("renderLimitLinesWithContext:") + public native void renderLimitLinesWithContext(CGContextRef context); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * base axis this axis renderer works with + */ + @Generated + @Selector("setAxis:") + public native void setAxis(ChartAxisBase value); + + /** + * transformer to transform values to screen pixels and return + */ + @Generated + @Selector("setTransformer:") + public native void setTransformer(ChartTransformer value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + /** + * transformer to transform values to screen pixels and return + */ + @Generated + @Selector("transformer") + public native ChartTransformer transformer(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartBaseDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartBaseDataSet.java index fe18bfb3..cb8fdcd5 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartBaseDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartBaseDataSet.java @@ -2,15 +2,18 @@ import apple.NSObject; +import apple.coregraphics.struct.CGPoint; import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSNumber; import apple.foundation.NSSet; +import apple.foundation.protocol.NSCopying; import apple.uikit.UIColor; import apple.uikit.UIFont; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; +import org.moe.natj.general.ann.ByValue; import org.moe.natj.general.ann.Generated; import org.moe.natj.general.ann.Library; import org.moe.natj.general.ann.Mapped; @@ -36,407 +39,456 @@ @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts16ChartBaseDataSet") @ObjCClassBinding -public class ChartBaseDataSet extends NSObject implements IChartDataSet { - static { - NatJ.register(); - } - - @Generated - protected ChartBaseDataSet(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addColor:") - public native void addColor(UIColor color); - - @Generated - @Selector("addEntry:") - public native boolean addEntry(ChartDataEntry e); - - @Generated - @Selector("addEntryOrdered:") - public native boolean addEntryOrdered(ChartDataEntry e); - - @Generated - @Owned - @Selector("alloc") - public static native ChartBaseDataSet alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("axisDependency") - @NInt - public native long axisDependency(); - - @Generated - @Selector("calcMinMax") - public native void calcMinMax(); - - @Generated - @Selector("calcMinMaxYFromX:toX:") - public native void calcMinMaxYFromXToX(double fromX, double toX); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clear") - public native void clear(); - - @Generated - @Selector("colorAtIndex:") - public native UIColor colorAtIndex(@NInt long index); - - @Generated - @Selector("colors") - public native NSArray colors(); - - @Generated - @Selector("contains:") - public native boolean contains(ChartDataEntry e); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("debugDescription") - public native String debugDescription(); - - @Generated - @Selector("description") - public native String description(); - - @Generated - @Selector("drawValuesEnabled") - public native boolean drawValuesEnabled(); - - @Generated - @Selector("entriesForXValue:") - public native NSArray entriesForXValue(double x); - - @Generated - @Selector("entryCount") - @NInt - public native long entryCount(); - - @Generated - @Selector("entryForIndex:") - public native ChartDataEntry entryForIndex(@NInt long i); - - @Generated - @Selector("entryForXValue:closestToY:") - public native ChartDataEntry entryForXValueClosestToY(double x, double y); - - @Generated - @Selector("entryForXValue:closestToY:rounding:") - public native ChartDataEntry entryForXValueClosestToYRounding(double x, - double y, @NInt long rounding); - - @Generated - @Selector("entryIndexWithEntry:") - @NInt - public native long entryIndexWithEntry(ChartDataEntry e); - - @Generated - @Selector("entryIndexWithX:closestToY:rounding:") - @NInt - public native long entryIndexWithXClosestToYRounding(double xValue, - double y, @NInt long rounding); - - @Generated - @Selector("form") - @NInt - public native long form(); - - @Generated - @Selector("formLineDashLengths") - public native NSArray formLineDashLengths(); - - @Generated - @Selector("formLineDashPhase") - @NFloat - public native double formLineDashPhase(); - - @Generated - @Selector("formLineWidth") - @NFloat - public native double formLineWidth(); - - @Generated - @Selector("formSize") - @NFloat - public native double formSize(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highlightEnabled") - public native boolean highlightEnabled(); - - @Generated - @Selector("init") - public native ChartBaseDataSet init(); - - @Generated - @Selector("initWithLabel:") - public native ChartBaseDataSet initWithLabel(String label); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawValuesEnabled") - public native boolean isDrawValuesEnabled(); - - @Generated - @Selector("isHighlightEnabled") - public native boolean isHighlightEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("isVisible") - public native boolean isVisible(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("label") - public native String label(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("needsFormatter") - public native boolean needsFormatter(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("removeEntry:") - public native boolean removeEntry(ChartDataEntry entry); - - @Generated - @Selector("removeEntryWithIndex:") - public native boolean removeEntryWithIndex(@NInt long index); - - @Generated - @Selector("removeEntryWithX:") - public native boolean removeEntryWithX(double x); - - @Generated - @Selector("removeFirst") - public native boolean removeFirst(); - - @Generated - @Selector("removeLast") - public native boolean removeLast(); - - @Generated - @Selector("resetColors") - public native void resetColors(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setAxisDependency:") - public native void setAxisDependency(@NInt long value); - - @Generated - @Selector("setColor:") - public native void setColor(UIColor color); - - @Generated - @Selector("setColor:alpha:") - public native void setColorAlpha(UIColor color, @NFloat double alpha); - - @Generated - @Selector("setColors:") - public native void setColors(NSArray value); - - @Generated - @Selector("setColors:alpha:") - public native void setColorsAlpha(NSArray colors, - @NFloat double alpha); - - @Generated - @Selector("setDrawValuesEnabled:") - public native void setDrawValuesEnabled(boolean value); - - @Generated - @Selector("setForm:") - public native void setForm(@NInt long value); - - @Generated - @Selector("setFormLineDashLengths:") - public native void setFormLineDashLengths(NSArray value); - - @Generated - @Selector("setFormLineDashPhase:") - public native void setFormLineDashPhase(@NFloat double value); - - @Generated - @Selector("setFormLineWidth:") - public native void setFormLineWidth(@NFloat double value); - - @Generated - @Selector("setFormSize:") - public native void setFormSize(@NFloat double value); - - @Generated - @Selector("setHighlightEnabled:") - public native void setHighlightEnabled(boolean value); - - @Generated - @Selector("setLabel:") - public native void setLabel(String value); - - @Generated - @Selector("setValueColors:") - public native void setValueColors(NSArray value); - - @Generated - @Selector("setValueFont:") - public native void setValueFont(UIFont value); - - @Selector("setValueFormatter:") - public native void setValueFormatter( - @Mapped(ObjCObjectMapper.class) Object value); - - @Generated - @Selector("setValueTextColor:") - public native void setValueTextColor(UIColor value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setVisible:") - public native void setVisible(boolean value); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("valueColors") - public native NSArray valueColors(); - - @Generated - @Selector("valueFont") - public native UIFont valueFont(); - - @Selector("valueFormatter") - @MappedReturn(ObjCObjectMapper.class) - public native Object valueFormatter(); - - @Generated - @Selector("valueTextColor") - public native UIColor valueTextColor(); - - @Generated - @Selector("valueTextColorAt:") - public native UIColor valueTextColorAt(@NInt long index); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("visible") - public native boolean visible(); - - @Generated - @Selector("xMax") - public native double xMax(); - - @Generated - @Selector("xMin") - public native double xMin(); - - @Generated - @Selector("yMax") - public native double yMax(); - - @Generated - @Selector("yMin") - public native double yMin(); +public class ChartBaseDataSet extends NSObject implements IChartDataSet, NSCopying { + static { + NatJ.register(); + } + + @Generated + protected ChartBaseDataSet(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addColor:") + public native void addColor(UIColor color); + + @Generated + @Selector("addEntry:") + public native boolean addEntry(ChartDataEntry e); + + @Generated + @Selector("addEntryOrdered:") + public native boolean addEntryOrdered(ChartDataEntry e); + + @Generated + @Owned + @Selector("alloc") + public static native ChartBaseDataSet alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("axisDependency") + @NInt + public native long axisDependency(); + + @Generated + @Selector("calcMinMax") + public native void calcMinMax(); + + @Generated + @Selector("calcMinMaxYFromX:toX:") + public native void calcMinMaxYFromXToX(double fromX, double toX); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clear") + public native void clear(); + + @Generated + @Selector("colorAtIndex:") + public native UIColor colorAtIndex(@NInt long index); + + @Generated + @Selector("colors") + public native NSArray colors(); + + @Generated + @Selector("contains:") + public native boolean contains(ChartDataEntry e); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("debugDescription") + public native String debugDescription(); + + @Generated + @Selector("description") + public native String description(); + + @Generated + @Selector("drawIconsEnabled") + public native boolean drawIconsEnabled(); + + @Generated + @Selector("drawValuesEnabled") + public native boolean drawValuesEnabled(); + + @Generated + @Selector("entriesForXValue:") + public native NSArray entriesForXValue(double x); + + @Generated + @Selector("entryCount") + @NInt + public native long entryCount(); + + @Generated + @Selector("entryForIndex:") + public native ChartDataEntry entryForIndex(@NInt long i); + + @Generated + @Selector("entryForXValue:closestToY:") + public native ChartDataEntry entryForXValueClosestToY(double x, double y); + + @Generated + @Selector("entryForXValue:closestToY:rounding:") + public native ChartDataEntry entryForXValueClosestToYRounding(double x, double y, @NInt long rounding); + + @Generated + @Selector("entryIndexWithEntry:") + @NInt + public native long entryIndexWithEntry(ChartDataEntry e); + + @Generated + @Selector("entryIndexWithX:closestToY:rounding:") + @NInt + public native long entryIndexWithXClosestToYRounding(double xValue, double y, @NInt long rounding); + + @Generated + @Selector("form") + @NInt + public native long form(); + + @Generated + @Selector("formLineDashLengths") + public native NSArray formLineDashLengths(); + + @Generated + @Selector("formLineDashPhase") + @NFloat + public native double formLineDashPhase(); + + @Generated + @Selector("formLineWidth") + @NFloat + public native double formLineWidth(); + + @Generated + @Selector("formSize") + @NFloat + public native double formSize(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highlightEnabled") + public native boolean highlightEnabled(); + + @Generated + @Selector("iconsOffset") + @ByValue + public native CGPoint iconsOffset(); + + @Generated + @Selector("init") + public native ChartBaseDataSet init(); + + @Generated + @Selector("initWithLabel:") + public native ChartBaseDataSet initWithLabel(String label); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isDrawIconsEnabled") + public native boolean isDrawIconsEnabled(); + + @Generated + @Selector("isDrawValuesEnabled") + public native boolean isDrawValuesEnabled(); + + @Generated + @Selector("isHighlightEnabled") + public native boolean isHighlightEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("isVisible") + public native boolean isVisible(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("label") + public native String label(); + + @Generated + @Selector("needsFormatter") + public native boolean needsFormatter(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("notifyDataSetChanged") + public native void notifyDataSetChanged(); + + @Generated + @Selector("removeEntry:") + public native boolean removeEntry(ChartDataEntry entry); + + @Generated + @Selector("removeEntryWithIndex:") + public native boolean removeEntryWithIndex(@NInt long index); + + @Generated + @Selector("removeEntryWithX:") + public native boolean removeEntryWithX(double x); + + @Generated + @Selector("removeFirst") + public native boolean removeFirst(); + + @Generated + @Selector("removeLast") + public native boolean removeLast(); + + @Generated + @Selector("resetColors") + public native void resetColors(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * The axis this DataSet should be plotted against. + */ + @Generated + @Selector("setAxisDependency:") + public native void setAxisDependency(@NInt long value); + + @Generated + @Selector("setColor:") + public native void setColor(UIColor color); + + /** + * Sets colors to a single color a specific alpha value. + * \param color the color to set + * + * \param alpha alpha to apply to the set color + */ + @Generated + @Selector("setColor:alpha:") + public native void setColorAlpha(UIColor color, @NFloat double alpha); + + /** + * All the colors that are used for this DataSet. + * Colors are reused as soon as the number of Entries the DataSet represents is higher than the size of the colors array. + */ + @Generated + @Selector("setColors:") + public native void setColors(NSArray value); + + /** + * Sets colors with a specific alpha value. + * \param colors the colors to set + * + * \param alpha alpha to apply to the set colors + */ + @Generated + @Selector("setColors:alpha:") + public native void setColorsAlpha(NSArray colors, @NFloat double alpha); + + @Generated + @Selector("setDrawIconsEnabled:") + public native void setDrawIconsEnabled(boolean value); + + @Generated + @Selector("setDrawValuesEnabled:") + public native void setDrawValuesEnabled(boolean value); + + /** + * The form to draw for this dataset in the legend. + */ + @Generated + @Selector("setForm:") + public native void setForm(@NInt long value); + + /** + * Line dash configuration for legend shapes that consist of lines. + * This is the actual dash pattern. + * I.e. [2, 3] will paint [– – ] + * [1, 3, 4, 2] will paint [- –– - –– ] + */ + @Generated + @Selector("setFormLineDashLengths:") + public native void setFormLineDashLengths(NSArray value); + + /** + * Line dash configuration for legend shapes that consist of lines. + * This is how much (in pixels) into the dash pattern are we starting from. + */ + @Generated + @Selector("setFormLineDashPhase:") + public native void setFormLineDashPhase(@NFloat double value); + + /** + * The line width for drawing the form of this dataset in the legend + * Return NaN to use the default legend form line width. + */ + @Generated + @Selector("setFormLineWidth:") + public native void setFormLineWidth(@NFloat double value); + + /** + * The form size to draw for this dataset in the legend. + * Return NaN to use the default legend form size. + */ + @Generated + @Selector("setFormSize:") + public native void setFormSize(@NFloat double value); + + @Generated + @Selector("setHighlightEnabled:") + public native void setHighlightEnabled(boolean value); + + @Generated + @Selector("setIconsOffset:") + public native void setIconsOffset(@ByValue CGPoint value); + + /** + * The label string that describes the DataSet. + */ + @Generated + @Selector("setLabel:") + public native void setLabel(String value); + + /** + * List representing all colors that are used for drawing the actual values for this DataSet + */ + @Generated + @Selector("setValueColors:") + public native void setValueColors(NSArray value); + + @Generated + @Selector("setValueFont:") + public native void setValueFont(UIFont value); + + @Generated + @Selector("setValueFormatter:") + public native void setValueFormatter(@Mapped(ObjCObjectMapper.class) IChartValueFormatter value); + + @Generated + @Selector("setValueTextColor:") + public native void setValueTextColor(UIColor value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("setVisible:") + public native void setVisible(boolean value); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("valueColors") + public native NSArray valueColors(); + + @Generated + @Selector("valueFont") + public native UIFont valueFont(); + + @Generated + @Selector("valueFormatter") + @MappedReturn(ObjCObjectMapper.class) + public native IChartValueFormatter valueFormatter(); + + @Generated + @Selector("valueTextColor") + public native UIColor valueTextColor(); + + @Generated + @Selector("valueTextColorAt:") + public native UIColor valueTextColorAt(@NInt long index); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("visible") + public native boolean visible(); + + @Generated + @Selector("xMax") + public native double xMax(); + + @Generated + @Selector("xMin") + public native double xMin(); + + @Generated + @Selector("yMax") + public native double yMax(); + + @Generated + @Selector("yMin") + public native double yMin(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartColorTemplates.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartColorTemplates.java index d8b9dc78..30791b07 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartColorTemplates.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartColorTemplates.java @@ -32,157 +32,141 @@ @ObjCClassName("_TtC6Charts19ChartColorTemplates") @ObjCClassBinding public class ChartColorTemplates extends NSObject { - static { - NatJ.register(); - } - - @Generated - protected ChartColorTemplates(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartColorTemplates alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("colorFromString:") - public static native UIColor colorFromString(String colorString); - - @Generated - @Selector("colorful") - public static native NSArray colorful(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartColorTemplates init(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("joyful") - public static native NSArray joyful(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("liberty") - public static native NSArray liberty(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("material") - public static native NSArray material(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("pastel") - public static native NSArray pastel(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("vordiplom") - public static native NSArray vordiplom(); + static { + NatJ.register(); + } + + @Generated + protected ChartColorTemplates(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartColorTemplates alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("colorFromString:") + public static native UIColor colorFromString(String colorString); + + @Generated + @Selector("colorful") + public static native NSArray colorful(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartColorTemplates init(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("joyful") + public static native NSArray joyful(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("liberty") + public static native NSArray liberty(); + + @Generated + @Selector("material") + public static native NSArray material(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("pastel") + public static native NSArray pastel(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("vordiplom") + public static native NSArray vordiplom(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartComponentBase.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartComponentBase.java index eb488eb0..d5bfa06a 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartComponentBase.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartComponentBase.java @@ -25,164 +25,173 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +/** + * This class encapsulates everything both Axis, Legend and LimitLines have in common + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartComponentBase extends NSObject { - static { - NatJ.register(); - } - - @Generated - protected ChartComponentBase(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartComponentBase alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("enabled") - public native boolean enabled(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartComponentBase init(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isEnabled") - public native boolean isEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setEnabled:") - public native void setEnabled(boolean value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setXOffset:") - public native void setXOffset(@NFloat double value); - - @Generated - @Selector("setYOffset:") - public native void setYOffset(@NFloat double value); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("xOffset") - @NFloat - public native double xOffset(); - - @Generated - @Selector("yOffset") - @NFloat - public native double yOffset(); + static { + NatJ.register(); + } + + @Generated + protected ChartComponentBase(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartComponentBase alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * flag that indicates if this component is enabled or not + */ + @Generated + @Selector("enabled") + public native boolean enabled(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartComponentBase init(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isEnabled") + public native boolean isEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * flag that indicates if this component is enabled or not + */ + @Generated + @Selector("setEnabled:") + public native void setEnabled(boolean value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + /** + * The offset this component has on the x-axis + * default: 5.0 + */ + @Generated + @Selector("setXOffset:") + public native void setXOffset(@NFloat double value); + + /** + * The offset this component has on the x-axis + * default: 5.0 (or 0.0 on ChartYAxis) + */ + @Generated + @Selector("setYOffset:") + public native void setYOffset(@NFloat double value); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * The offset this component has on the x-axis + * default: 5.0 + */ + @Generated + @Selector("xOffset") + @NFloat + public native double xOffset(); + + /** + * The offset this component has on the x-axis + * default: 5.0 (or 0.0 on ChartYAxis) + */ + @Generated + @Selector("yOffset") + @NFloat + public native double yOffset(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartData.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartData.java index 3bcce7ac..75d66051 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartData.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartData.java @@ -35,313 +35,472 @@ @ObjCClassName("_TtC6Charts9ChartData") @ObjCClassBinding public class ChartData extends NSObject { - static { - NatJ.register(); - } - - @Generated - protected ChartData(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addDataSet:") - public native void addDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); - - @Generated - @Selector("addEntry:dataSetIndex:") - public native void addEntryDataSetIndex(ChartDataEntry e, - @NInt long dataSetIndex); - - @Generated - @Owned - @Selector("alloc") - public static native ChartData alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("calcMinMax") - public native void calcMinMax(); - - @Generated - @Selector("calcMinMaxWithDataSet:") - public native void calcMinMaxWithDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet d); - - @Generated - @Selector("calcMinMaxWithEntry:axis:") - public native void calcMinMaxWithEntryAxis(ChartDataEntry e, @NInt long axis); - - @Generated - @Selector("calcMinMaxYFromX:toX:") - public native void calcMinMaxYFromXToX(double fromX, double toX); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clearValues") - public native void clearValues(); - - @Generated - @Selector("containsWithDataSet:") - public native boolean containsWithDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); - - @Generated - @Selector("dataSetCount") - @NInt - public native long dataSetCount(); - - @Generated - @Selector("dataSets") - public native NSArray dataSets(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("entryCount") - @NInt - public native long entryCount(); - - @Generated - @Selector("entryForHighlight:") - public native ChartDataEntry entryForHighlight(ChartHighlight highlight); - - @Generated - @Selector("getColors") - public native NSArray getColors(); - - @Generated - @Selector("getDataSetByIndex:") - @MappedReturn(ObjCObjectMapper.class) - public native IChartDataSet getDataSetByIndex(@NInt long index); - - @Generated - @Selector("getDataSetByLabel:ignorecase:") - @MappedReturn(ObjCObjectMapper.class) - public native IChartDataSet getDataSetByLabelIgnorecase(String label, - boolean ignorecase); - - @Generated - @Selector("getDataSetForEntry:") - @MappedReturn(ObjCObjectMapper.class) - public native IChartDataSet getDataSetForEntry(ChartDataEntry e); - - @Generated - @Selector("getFirstLeftWithDataSets:") - @MappedReturn(ObjCObjectMapper.class) - public native IChartDataSet getFirstLeftWithDataSets(NSArray dataSets); - - @Generated - @Selector("getFirstRightWithDataSets:") - @MappedReturn(ObjCObjectMapper.class) - public native IChartDataSet getFirstRightWithDataSets(NSArray dataSets); - - @Generated - @Selector("getYMaxWithAxis:") - public native double getYMaxWithAxis(@NInt long axis); - - @Generated - @Selector("getYMinWithAxis:") - public native double getYMinWithAxis(@NInt long axis); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highlightEnabled") - public native boolean highlightEnabled(); - - @Generated - @Selector("indexOfDataSet:") - @NInt - public native long indexOfDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); - - @Generated - @Selector("init") - public native ChartData init(); - - @Generated - @Selector("initWithDataSet:") - public native ChartData initWithDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); - - @Generated - @Selector("initWithDataSets:") - public native ChartData initWithDataSets(NSArray dataSets); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isHighlightEnabled") - public native boolean isHighlightEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("maxEntryCountSet") - @MappedReturn(ObjCObjectMapper.class) - public native IChartDataSet maxEntryCountSet(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataChanged") - public native void notifyDataChanged(); - - @Generated - @Selector("removeDataSet:") - public native boolean removeDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); - - @Generated - @Selector("removeDataSetByIndex:") - public native boolean removeDataSetByIndex(@NInt long index); - - @Generated - @Selector("removeEntry:dataSetIndex:") - public native boolean removeEntryDataSetIndex(ChartDataEntry entry, - @NInt long dataSetIndex); - - @Generated - @Selector("removeEntryWithXValue:dataSetIndex:") - public native boolean removeEntryWithXValueDataSetIndex(double xValue, - @NInt long dataSetIndex); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setDataSets:") - public native void setDataSets(NSArray value); - - @Generated - @Selector("setDrawValues:") - public native void setDrawValues(boolean enabled); - - @Generated - @Selector("setHighlightEnabled:") - public native void setHighlightEnabled(boolean value); - - @Generated - @Selector("setValueFont:") - public native void setValueFont(UIFont font); - - @Generated - @Selector("setValueFormatter:") - public native void setValueFormatter( - @Mapped(ObjCObjectMapper.class) IChartValueFormatter formatter); - - @Generated - @Selector("setValueTextColor:") - public native void setValueTextColor(UIColor color); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("xMax") - public native double xMax(); - - @Generated - @Selector("xMin") - public native double xMin(); - - @Generated - @Selector("yMax") - public native double yMax(); - - @Generated - @Selector("yMin") - public native double yMin(); + static { + NatJ.register(); + } + + @Generated + protected ChartData(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + /** + * When the data entry labels are generated identifiers, set this property to prepend a string before each identifier + * For example, if a label is “#3”, settings this property to “Item” allows it to be spoken as “Item #3” + */ + @Generated + @Selector("accessibilityEntryLabelPrefix") + public native String accessibilityEntryLabelPrefix(); + + /** + * When the data entry value requires a unit, use this property to append the string representation of the unit to the value + * For example, if a value is “44.1”, setting this property to “m” allows it to be spoken as “44.1 m” + */ + @Generated + @Selector("accessibilityEntryLabelSuffix") + public native String accessibilityEntryLabelSuffix(); + + /** + * If the data entry value is a count, set this to true to allow plurals and other grammatical changes + * default: false + */ + @Generated + @Selector("accessibilityEntryLabelSuffixIsCount") + public native boolean accessibilityEntryLabelSuffixIsCount(); + + @Generated + @Selector("addDataSet:") + public native void addDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); + + /** + * Adds an Entry to the DataSet at the specified index. Entries are added to the end of the list. + */ + @Generated + @Selector("addEntry:dataSetIndex:") + public native void addEntryDataSetIndex(ChartDataEntry e, @NInt long dataSetIndex); + + @Generated + @Owned + @Selector("alloc") + public static native ChartData alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + /** + * calc minimum and maximum y value over all datasets + */ + @Generated + @Selector("calcMinMax") + public native void calcMinMax(); + + /** + * Adjusts the minimum and maximum values based on the given DataSet. + */ + @Generated + @Selector("calcMinMaxWithDataSet:") + public native void calcMinMaxWithDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet d); + + /** + * Adjusts the current minimum and maximum values based on the provided Entry object. + */ + @Generated + @Selector("calcMinMaxWithEntry:axis:") + public native void calcMinMaxWithEntryAxis(ChartDataEntry e, @NInt long axis); + + @Generated + @Selector("calcMinMaxYFromX:toX:") + public native void calcMinMaxYFromXToX(double fromX, double toX); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + /** + * Clears this data object from all DataSets and removes all Entries. + * Don’t forget to invalidate the chart after this. + */ + @Generated + @Selector("clearValues") + public native void clearValues(); + + /** + * Checks if this data object contains the specified DataSet. + * + * returns: + * true if so, false ifnot. + */ + @Generated + @Selector("containsWithDataSet:") + public native boolean containsWithDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); + + /** + * The number of LineDataSets this object contains + */ + @Generated + @Selector("dataSetCount") + @NInt + public native long dataSetCount(); + + /** + * All DataSet objects this ChartData object holds. + */ + @Generated + @Selector("dataSets") + public native NSArray dataSets(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * The total entry count across all DataSet objects this data object contains. + */ + @Generated + @Selector("entryCount") + @NInt + public native long entryCount(); + + /** + * Get the Entry for a corresponding highlight object + * \param highlight + * + * + * returns: + * The entry that is highlighted + */ + @Generated + @Selector("entryForHighlight:") + public native ChartDataEntry entryForHighlight(ChartHighlight highlight); + + /** + * returns: + * All colors used across all DataSet objects this object represents. + */ + @Generated + @Selector("getColors") + public native NSArray getColors(); + + @Generated + @Selector("getDataSetByIndex:") + @MappedReturn(ObjCObjectMapper.class) + public native IChartDataSet getDataSetByIndex(@NInt long index); + + /** + * IMPORTANT: This method does calculations at runtime. Use with care in performance critical situations. + * \param label + * + * \param ignorecase + * + * + * returns: + * The DataSet Object with the given label. Sensitive or not. + */ + @Generated + @Selector("getDataSetByLabel:ignorecase:") + @MappedReturn(ObjCObjectMapper.class) + public native IChartDataSet getDataSetByLabelIgnorecase(String label, boolean ignorecase); + + /** + * returns: + * The DataSet that contains the provided Entry, or null, if no DataSet contains this entry. + */ + @Generated + @Selector("getDataSetForEntry:") + @MappedReturn(ObjCObjectMapper.class) + public native IChartDataSet getDataSetForEntry(ChartDataEntry e); + + /** + * returns: + * The first DataSet from the datasets-array that has it’s dependency on the left axis. Returns null if no DataSet with left dependency could be found. + */ + @Generated + @Selector("getFirstLeftWithDataSets:") + @MappedReturn(ObjCObjectMapper.class) + public native IChartDataSet getFirstLeftWithDataSets(NSArray dataSets); + + /** + * returns: + * The first DataSet from the datasets-array that has it’s dependency on the right axis. Returns null if no DataSet with right dependency could be found. + */ + @Generated + @Selector("getFirstRightWithDataSets:") + @MappedReturn(ObjCObjectMapper.class) + public native IChartDataSet getFirstRightWithDataSets(NSArray dataSets); + + @Generated + @Selector("getYMaxWithAxis:") + public native double getYMaxWithAxis(@NInt long axis); + + @Generated + @Selector("getYMinWithAxis:") + public native double getYMinWithAxis(@NInt long axis); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + /** + * Enables / disables highlighting values for all DataSets this data object contains. + * If set to true, this means that values can be highlighted programmatically or by touch gesture. + */ + @Generated + @Selector("highlightEnabled") + public native boolean highlightEnabled(); + + /** + * returns: + * The index of the provided DataSet in the DataSet array of this data object, or -1 if it does not exist. + */ + @Generated + @Selector("indexOfDataSet:") + @NInt + public native long indexOfDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); + + @Generated + @Selector("init") + public native ChartData init(); + + @Generated + @Selector("initWithDataSet:") + public native ChartData initWithDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); + + @Generated + @Selector("initWithDataSets:") + public native ChartData initWithDataSets(NSArray dataSets); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + /** + * if true, value highlightning is enabled + */ + @Generated + @Selector("isHighlightEnabled") + public native boolean isHighlightEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + /** + * The DataSet object with the maximum number of entries or null if there are no DataSets. + */ + @Generated + @Selector("maxEntryCountSet") + @MappedReturn(ObjCObjectMapper.class) + public native IChartDataSet maxEntryCountSet(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + /** + * Call this method to let the ChartData know that the underlying data has changed. + * Calling this performs all necessary recalculations needed when the contained data has changed. + */ + @Generated + @Selector("notifyDataChanged") + public native void notifyDataChanged(); + + /** + * Removes the given DataSet from this data object. + * Also recalculates all minimum and maximum values. + * + * returns: + * true if a DataSet was removed, false ifno DataSet could be removed. + */ + @Generated + @Selector("removeDataSet:") + public native boolean removeDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); + + /** + * Removes the DataSet at the given index in the DataSet array from the data object. + * Also recalculates all minimum and maximum values. + * + * returns: + * true if a DataSet was removed, false ifno DataSet could be removed. + */ + @Generated + @Selector("removeDataSetByIndex:") + public native boolean removeDataSetByIndex(@NInt long index); + + /** + * Removes the given Entry object from the DataSet at the specified index. + */ + @Generated + @Selector("removeEntry:dataSetIndex:") + public native boolean removeEntryDataSetIndex(ChartDataEntry entry, @NInt long dataSetIndex); + + /** + * Removes the Entry object closest to the given xIndex from the ChartDataSet at the + * specified index. + * + * returns: + * true if an entry was removed, false ifno Entry was found that meets the specified requirements. + */ + @Generated + @Selector("removeEntryWithXValue:dataSetIndex:") + public native boolean removeEntryWithXValueDataSetIndex(double xValue, @NInt long dataSetIndex); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * When the data entry labels are generated identifiers, set this property to prepend a string before each identifier + * For example, if a label is “#3”, settings this property to “Item” allows it to be spoken as “Item #3” + */ + @Generated + @Selector("setAccessibilityEntryLabelPrefix:") + public native void setAccessibilityEntryLabelPrefix(String value); + + /** + * When the data entry value requires a unit, use this property to append the string representation of the unit to the value + * For example, if a value is “44.1”, setting this property to “m” allows it to be spoken as “44.1 m” + */ + @Generated + @Selector("setAccessibilityEntryLabelSuffix:") + public native void setAccessibilityEntryLabelSuffix(String value); + + /** + * If the data entry value is a count, set this to true to allow plurals and other grammatical changes + * default: false + */ + @Generated + @Selector("setAccessibilityEntryLabelSuffixIsCount:") + public native void setAccessibilityEntryLabelSuffixIsCount(boolean value); + + /** + * All DataSet objects this ChartData object holds. + */ + @Generated + @Selector("setDataSets:") + public native void setDataSets(NSArray value); + + /** + * Enables / disables drawing values (value-text) for all DataSets this data object contains. + */ + @Generated + @Selector("setDrawValues:") + public native void setDrawValues(boolean enabled); + + /** + * Enables / disables highlighting values for all DataSets this data object contains. + * If set to true, this means that values can be highlighted programmatically or by touch gesture. + */ + @Generated + @Selector("setHighlightEnabled:") + public native void setHighlightEnabled(boolean value); + + /** + * Sets the font for all value-labels for all DataSets this data object contains. + */ + @Generated + @Selector("setValueFont:") + public native void setValueFont(UIFont font); + + /** + * Sets a custom IValueFormatter for all DataSets this data object contains. + */ + @Generated + @Selector("setValueFormatter:") + public native void setValueFormatter(@Mapped(ObjCObjectMapper.class) IChartValueFormatter formatter); + + /** + * Sets the color of the value-text (color in which the value-labels are drawn) for all DataSets this data object contains. + */ + @Generated + @Selector("setValueTextColor:") + public native void setValueTextColor(UIColor color); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * The maximum x-value the data object contains. + */ + @Generated + @Selector("xMax") + public native double xMax(); + + /** + * The minimum x-value the data object contains. + */ + @Generated + @Selector("xMin") + public native double xMin(); + + /** + * The greatest y-value the data object contains. + */ + @Generated + @Selector("yMax") + public native double yMax(); + + /** + * The smallest y-value the data object contains. + */ + @Generated + @Selector("yMin") + public native double yMin(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataApproximator.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataApproximator.java index 3d03cfd2..2e1de46d 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataApproximator.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataApproximator.java @@ -31,134 +31,130 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartDataApproximator extends NSObject { - static { - NatJ.register(); - } - - @Generated - protected ChartDataApproximator(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartDataApproximator alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartDataApproximator init(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("reduceWithDouglasPeuker:tolerance:") - public static native NSArray reduceWithDouglasPeukerTolerance( - NSArray points, @NFloat double tolerance); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartDataApproximator(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartDataApproximator alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartDataApproximator init(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + /** + * uses the douglas peuker algorithm to reduce the given arraylist of entries + */ + @Generated + @Selector("reduceWithDouglasPeuker:tolerance:") + public static native NSArray reduceWithDouglasPeukerTolerance(NSArray points, + @NFloat double tolerance); + + /** + * uses the douglas peuker algorithm to reduce the given arraylist of entries to given number of points + * More algorithm details here - http://psimpl.sourceforge.net/douglas-peucker.html + */ + @Generated + @Selector("reduceWithDouglasPeukerN:resultCount:") + public static native NSArray reduceWithDouglasPeukerNResultCount( + NSArray points, long resultCount); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataEntry.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataEntry.java index fb5b6239..624f6070 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataEntry.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataEntry.java @@ -5,6 +5,8 @@ import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSSet; +import apple.foundation.protocol.NSCopying; +import apple.uikit.UIImage; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; @@ -30,166 +32,203 @@ @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts14ChartDataEntry") @ObjCClassBinding -public class ChartDataEntry extends ChartDataEntryBase { - static { - NatJ.register(); - } - - @Generated - protected ChartDataEntry(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartDataEntry alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public native String description(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartDataEntry init(); - - @Generated - @Selector("initWithX:y:") - public native ChartDataEntry initWithXY(double x, double y); - - @Generated - @Selector("initWithX:y:data:") - public native ChartDataEntry initWithXYData(double x, double y, - @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initWithY:") - public native ChartDataEntry initWithY(double y); - - @Generated - @Selector("initWithY:data:") - public native ChartDataEntry initWithYData(double y, - @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isEqual:") - public native boolean isEqual(@Mapped(ObjCObjectMapper.class) Object object); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setX:") - public native void setX(double value); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("x") - public native double x(); +public class ChartDataEntry extends ChartDataEntryBase implements NSCopying { + static { + NatJ.register(); + } + + @Generated + protected ChartDataEntry(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartDataEntry alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public native String description(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartDataEntry init(); + + /** + * An Entry represents one single entry in the chart. + * \param x the x value + * + * \param y the y value (the actual value of the entry) + */ + @Generated + @Selector("initWithX:y:") + public native ChartDataEntry initWithXY(double x, double y); + + /** + * An Entry represents one single entry in the chart. + * \param x the x value + * + * \param y the y value (the actual value of the entry) + * + * \param data Space for additional data this Entry represents. + */ + @Generated + @Selector("initWithX:y:data:") + public native ChartDataEntry initWithXYData(double x, double y, @Mapped(ObjCObjectMapper.class) Object data); + + /** + * An Entry represents one single entry in the chart. + * \param x the x value + * + * \param y the y value (the actual value of the entry) + * + * \param icon icon image + */ + @Generated + @Selector("initWithX:y:icon:") + public native ChartDataEntry initWithXYIcon(double x, double y, UIImage icon); + + /** + * An Entry represents one single entry in the chart. + * \param x the x value + * + * \param y the y value (the actual value of the entry) + * + * \param icon icon image + * + * \param data Space for additional data this Entry represents. + */ + @Generated + @Selector("initWithX:y:icon:data:") + public native ChartDataEntry initWithXYIconData(double x, double y, UIImage icon, + @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithY:") + public native ChartDataEntry initWithY(double y); + + @Generated + @Selector("initWithY:data:") + public native ChartDataEntry initWithYData(double y, @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithY:icon:") + public native ChartDataEntry initWithYIcon(double y, UIImage icon); + + @Generated + @Selector("initWithY:icon:data:") + public native ChartDataEntry initWithYIconData(double y, UIImage icon, @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isEqual:") + public native boolean isEqual(@Mapped(ObjCObjectMapper.class) Object object); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + /** + * the x value + */ + @Generated + @Selector("setX:") + public native void setX(double value); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * the x value + */ + @Generated + @Selector("x") + public native double x(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataEntryBase.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataEntryBase.java index da887a59..cea22388 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataEntryBase.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataEntryBase.java @@ -5,6 +5,7 @@ import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSSet; +import apple.uikit.UIImage; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; @@ -31,159 +32,198 @@ @ObjCClassName("_TtC6Charts18ChartDataEntryBase") @ObjCClassBinding public class ChartDataEntryBase extends NSObject { - static { - NatJ.register(); - } - - @Generated - protected ChartDataEntryBase(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartDataEntryBase alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("data") - @MappedReturn(ObjCObjectMapper.class) - public native Object data(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public native String description(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartDataEntryBase init(); - - @Generated - @Selector("initWithY:") - public native ChartDataEntryBase initWithY(double y); - - @Generated - @Selector("initWithY:data:") - public native ChartDataEntryBase initWithYData(double y, - @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isEqual:") - public native boolean isEqual(@Mapped(ObjCObjectMapper.class) Object object); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setData:") - public native void setData(@Mapped(ObjCObjectMapper.class) Object value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setY:") - public native void setY(double value); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("y") - public native double y(); + static { + NatJ.register(); + } + + @Generated + protected ChartDataEntryBase(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartDataEntryBase alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + /** + * optional spot for additional data this Entry represents + */ + @Generated + @Selector("data") + @MappedReturn(ObjCObjectMapper.class) + public native Object data(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public native String description(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + /** + * optional icon image + */ + @Generated + @Selector("icon") + public native UIImage icon(); + + @Generated + @Selector("init") + public native ChartDataEntryBase init(); + + /** + * An Entry represents one single entry in the chart. + * \param y the y value (the actual value of the entry) + */ + @Generated + @Selector("initWithY:") + public native ChartDataEntryBase initWithY(double y); + + /** + * \param y the y value (the actual value of the entry) + * + * \param data Space for additional data this Entry represents. + */ + @Generated + @Selector("initWithY:data:") + public native ChartDataEntryBase initWithYData(double y, @Mapped(ObjCObjectMapper.class) Object data); + + /** + * \param y the y value (the actual value of the entry) + * + * \param icon icon image + */ + @Generated + @Selector("initWithY:icon:") + public native ChartDataEntryBase initWithYIcon(double y, UIImage icon); + + /** + * \param y the y value (the actual value of the entry) + * + * \param icon icon image + * + * \param data Space for additional data this Entry represents. + */ + @Generated + @Selector("initWithY:icon:data:") + public native ChartDataEntryBase initWithYIconData(double y, UIImage icon, + @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isEqual:") + public native boolean isEqual(@Mapped(ObjCObjectMapper.class) Object object); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * optional spot for additional data this Entry represents + */ + @Generated + @Selector("setData:") + public native void setData(@Mapped(ObjCObjectMapper.class) Object value); + + /** + * optional icon image + */ + @Generated + @Selector("setIcon:") + public native void setIcon(UIImage value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + /** + * the y value + */ + @Generated + @Selector("setY:") + public native void setY(double value); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * the y value + */ + @Generated + @Selector("y") + public native double y(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataRendererBase.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataRendererBase.java index f8e04fb6..fe855d32 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataRendererBase.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataRendererBase.java @@ -31,173 +31,159 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartDataRendererBase extends ChartRenderer { - static { - NatJ.register(); - } - - @Generated - protected ChartDataRendererBase(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartDataRendererBase alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("animator") - public native ChartAnimator animator(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawDataWithContext:") - public native void drawDataWithContext(CGContextRef context); - - @Generated - @Selector("drawExtrasWithContext:") - public native void drawExtrasWithContext(CGContextRef context); - - @Generated - @Selector("drawHighlightedWithContext:indices:") - public native void drawHighlightedWithContextIndices(CGContextRef context, - NSArray indices); - - @Generated - @Selector("drawValuesWithContext:") - public native void drawValuesWithContext(CGContextRef context); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartDataRendererBase init(); - - @Generated - @Selector("initBuffers") - public native void initBuffers(); - - @Generated - @Selector("initWithAnimator:viewPortHandler:") - public native ChartDataRendererBase initWithAnimatorViewPortHandler( - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:") - public native ChartDataRendererBase initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawingValuesAllowedWithDataProvider:") - public native boolean isDrawingValuesAllowedWithDataProvider( - @Mapped(ObjCObjectMapper.class) ChartDataProvider dataProvider); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setAnimator:") - public native void setAnimator(ChartAnimator value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartDataRendererBase(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartDataRendererBase alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("animator") + public native ChartAnimator animator(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawDataWithContext:") + public native void drawDataWithContext(CGContextRef context); + + @Generated + @Selector("drawExtrasWithContext:") + public native void drawExtrasWithContext(CGContextRef context); + + /** + * Draws all highlight indicators for the values that are currently highlighted. + * \param indices the highlighted values + */ + @Generated + @Selector("drawHighlightedWithContext:indices:") + public native void drawHighlightedWithContextIndices(CGContextRef context, NSArray indices); + + @Generated + @Selector("drawValuesWithContext:") + public native void drawValuesWithContext(CGContextRef context); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartDataRendererBase init(); + + /** + * An opportunity for initializing internal buffers used for rendering with a new size. + * Since this might do memory allocations, it should only be called if necessary. + */ + @Generated + @Selector("initBuffers") + public native void initBuffers(); + + @Generated + @Selector("initWithAnimator:viewPortHandler:") + public native ChartDataRendererBase initWithAnimatorViewPortHandler(ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:") + public native ChartDataRendererBase initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isDrawingValuesAllowedWithDataProvider:") + public native boolean isDrawingValuesAllowedWithDataProvider( + @Mapped(ObjCObjectMapper.class) ChartDataProvider dataProvider); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataSet.java index 4ace930a..6e865f26 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDataSet.java @@ -25,262 +25,367 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +/** + * The DataSet class represents one group or type of entries (Entry) in the Chart that belong together. + * It is designed to logically separate different groups of values inside the Chart (e.g. the values for a specific line in the LineChart, or the values of a specific group of bars in the BarChart). + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts12ChartDataSet") @ObjCClassBinding public class ChartDataSet extends ChartBaseDataSet { - static { - NatJ.register(); - } - - @Generated - protected ChartDataSet(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addEntry:") - public native boolean addEntry(ChartDataEntry e); - - @Generated - @Selector("addEntryOrdered:") - public native boolean addEntryOrdered(ChartDataEntry e); - - @Generated - @Owned - @Selector("alloc") - public static native ChartDataSet alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("calcMinMax") - public native void calcMinMax(); - - @Generated - @Selector("calcMinMaxXWithEntry:") - public native void calcMinMaxXWithEntry(ChartDataEntry e); - - @Generated - @Selector("calcMinMaxYFromX:toX:") - public native void calcMinMaxYFromXToX(double fromX, double toX); - - @Generated - @Selector("calcMinMaxYWithEntry:") - public native void calcMinMaxYWithEntry(ChartDataEntry e); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clear") - public native void clear(); - - @Generated - @Selector("contains:") - public native boolean contains(ChartDataEntry e); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("entriesForXValue:") - public native NSArray entriesForXValue( - double xValue); - - @Generated - @Selector("entryCount") - @NInt - public native long entryCount(); - - @Generated - @Selector("entryForIndex:") - public native ChartDataEntry entryForIndex(@NInt long i); - - @Generated - @Selector("entryForXValue:closestToY:") - public native ChartDataEntry entryForXValueClosestToY(double xValue, - double yValue); - - @Generated - @Selector("entryForXValue:closestToY:rounding:") - public native ChartDataEntry entryForXValueClosestToYRounding( - double xValue, double yValue, @NInt long rounding); - - @Generated - @Selector("entryIndexWithEntry:") - @NInt - public native long entryIndexWithEntry(ChartDataEntry e); - - @Generated - @Selector("entryIndexWithX:closestToY:rounding:") - @NInt - public native long entryIndexWithXClosestToYRounding(double xValue, - double yValue, @NInt long rounding); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartDataSet init(); - - @Generated - @Selector("initWithLabel:") - public native ChartDataSet initWithLabel(String label); - - @Generated - @Selector("initWithValues:") - public native ChartDataSet initWithValues( - NSArray values); - - @Generated - @Selector("initWithValues:label:") - public native ChartDataSet initWithValuesLabel( - NSArray values, String label); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("removeEntry:") - public native boolean removeEntry(ChartDataEntry entry); - - @Generated - @Selector("removeFirst") - public native boolean removeFirst(); - - @Generated - @Selector("removeLast") - public native boolean removeLast(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setValues:") - public native void setValues(NSArray value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("values") - public native NSArray values(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("xMax") - public native double xMax(); - - @Generated - @Selector("xMin") - public native double xMin(); - - @Generated - @Selector("yMax") - public native double yMax(); - - @Generated - @Selector("yMin") - public native double yMin(); + static { + NatJ.register(); + } + + @Generated + protected ChartDataSet(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + /** + * Adds an Entry to the DataSet dynamically. + * Entries are added to the end of the list. + * This will also recalculate the current minimum and maximum values of the DataSet and the value-sum. + * \param e the entry to add + * + * + * returns: + * True + */ + @Generated + @Deprecated + @Selector("addEntry:") + public native boolean addEntry(ChartDataEntry e); + + /** + * Adds an Entry to the DataSet dynamically. + * Entries are added to their appropriate index respective to it’s x-index. + * This will also recalculate the current minimum and maximum values of the DataSet and the value-sum. + * \param e the entry to add + * + * + * returns: + * True + */ + @Generated + @Selector("addEntryOrdered:") + public native boolean addEntryOrdered(ChartDataEntry e); + + @Generated + @Owned + @Selector("alloc") + public static native ChartDataSet alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("calcMinMax") + public native void calcMinMax(); + + @Generated + @Selector("calcMinMaxXWithEntry:") + public native void calcMinMaxXWithEntry(ChartDataEntry e); + + @Generated + @Selector("calcMinMaxYFromX:toX:") + public native void calcMinMaxYFromXToX(double fromX, double toX); + + @Generated + @Selector("calcMinMaxYWithEntry:") + public native void calcMinMaxYWithEntry(ChartDataEntry e); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + /** + * Removes all values from this DataSet and recalculates min and max value. + */ + @Generated + @Deprecated + @Selector("clear") + public native void clear(); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("entries") + public native NSArray entries(); + + /** + * returns: + * All Entry objects found at the given xIndex with binary search. + * An empty array if no Entry object at that index. + */ + @Generated + @Selector("entriesForXValue:") + public native NSArray entriesForXValue(double xValue); + + /** + * The number of y-values this DataSet represents + */ + @Generated + @Deprecated + @Selector("entryCount") + @NInt + public native long entryCount(); + + /** + * throws: + * out of bounds + * if i is out of bounds, it may throw an out-of-bounds exception + * + * returns: + * The entry object found at the given index (not x-value!) + */ + @Generated + @Deprecated + @Selector("entryForIndex:") + public native ChartDataEntry entryForIndex(@NInt long i); + + /** + * \param xValue the x-value + * + * \param closestToY If there are multiple y-values for the specified x-value, + * + * + * returns: + * The first Entry object found at the given x-value with binary search. + * If the no Entry at the specified x-value is found, this method returns the Entry at the closest x-value. + * nil if no Entry object at that x-value. + */ + @Generated + @Selector("entryForXValue:closestToY:") + public native ChartDataEntry entryForXValueClosestToY(double xValue, double yValue); + + /** + * \param xValue the x-value + * + * \param closestToY If there are multiple y-values for the specified x-value, + * + * \param rounding determine whether to round up/down/closest if there is no Entry matching the provided x-value + * + * + * returns: + * The first Entry object found at the given x-value with binary search. + * If the no Entry at the specified x-value is found, this method returns the Entry at the closest x-value according to the rounding. + * nil if no Entry object at that x-value. + */ + @Generated + @Selector("entryForXValue:closestToY:rounding:") + public native ChartDataEntry entryForXValueClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + /** + * \param e the entry to search for + * + * + * returns: + * The array-index of the specified entry + */ + @Generated + @Deprecated + @Selector("entryIndexWithEntry:") + @NInt + public native long entryIndexWithEntry(ChartDataEntry e); + + /** + * \param xValue x-value of the entry to search for + * + * \param closestToY If there are multiple y-values for the specified x-value, + * + * \param rounding Rounding method if exact value was not found + * + * + * returns: + * The array-index of the specified entry. + * If the no Entry at the specified x-value is found, this method returns the index of the Entry at the closest x-value according to the rounding. + */ + @Generated + @Selector("entryIndexWithX:closestToY:rounding:") + @NInt + public native long entryIndexWithXClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartDataSet init(); + + @Generated + @Selector("initWithEntries:") + public native ChartDataSet initWithEntries(NSArray entries); + + @Generated + @Selector("initWithEntries:label:") + public native ChartDataSet initWithEntriesLabel(NSArray entries, String label); + + @Generated + @Selector("initWithLabel:") + public native ChartDataSet initWithLabel(String label); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("objectAtIndexedSubscript:") + public native ChartDataEntry objectAtIndexedSubscript(long position); + + @Generated + @Selector("removeAllWithKeepingCapacity:") + public native void removeAllWithKeepingCapacity(boolean keepCapacity); + + @Generated + @Selector("removeEntry:") + public native boolean removeEntry(ChartDataEntry entry); + + /** + * Removes the first Entry (at index 0) of this DataSet from the entries array. + * + * returns: + * true if successful, false if not. + */ + @Generated + @Deprecated + @Selector("removeFirst") + public native boolean removeFirst(); + + /** + * Removes the last Entry (at index size-1) of this DataSet from the entries array. + * + * returns: + * true if successful, false if not. + */ + @Generated + @Deprecated + @Selector("removeLast") + public native boolean removeLast(); + + /** + * Used to replace all entries of a data set while retaining styling properties. + * This is a separate method from a setter on entries to encourage usage + * of Collection conformances. + * \param entries new entries to replace existing entries in the dataset + */ + @Generated + @Selector("replaceEntries:") + public native void replaceEntries(NSArray entries); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setObject:atIndexedSubscript:") + public native void setObjectAtIndexedSubscript(ChartDataEntry newValue, long position); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * The maximum x-value this DataSet holds + */ + @Generated + @Selector("xMax") + public native double xMax(); + + /** + * The minimum x-value this DataSet holds + */ + @Generated + @Selector("xMin") + public native double xMin(); + + /** + * The maximum y-value this DataSet holds + */ + @Generated + @Selector("yMax") + public native double yMax(); + + /** + * The minimum y-value this DataSet holds + */ + @Generated + @Selector("yMin") + public native double yMin(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDefaultAxisValueFormatter.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDefaultAxisValueFormatter.java index bcaff529..0045343f 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDefaultAxisValueFormatter.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDefaultAxisValueFormatter.java @@ -31,209 +31,189 @@ @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassBinding -public class ChartDefaultAxisValueFormatter extends NSObject implements - IChartAxisValueFormatter { - static { - NatJ.register(); - } - - @Generated - protected ChartDefaultAxisValueFormatter(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartDefaultAxisValueFormatter alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("block") - @ObjCBlock(name = "call_block_ret") - public native Block_block_ret block(); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_block_ret { - @Generated - String call_block_ret(double arg0, ChartAxisBase arg1); - } - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("formatter") - public native NSNumberFormatter formatter(); - - @Generated - @Selector("hasAutoDecimals") - public native boolean hasAutoDecimals(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartDefaultAxisValueFormatter init(); - - @Generated - @Selector("initWithBlock:") - public native ChartDefaultAxisValueFormatter initWithBlock( - @ObjCBlock(name = "call_initWithBlock") Block_initWithBlock block); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_initWithBlock { - @Generated - String call_initWithBlock(double arg0, ChartAxisBase arg1); - } - - @Generated - @Selector("initWithDecimals:") - public native ChartDefaultAxisValueFormatter initWithDecimals( - @NInt long decimals); - - @Generated - @Selector("initWithFormatter:") - public native ChartDefaultAxisValueFormatter initWithFormatter( - NSNumberFormatter formatter); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setBlock:") - public native void setBlock( - @ObjCBlock(name = "call_setBlock") Block_setBlock value); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_setBlock { - @Generated - String call_setBlock(double arg0, ChartAxisBase arg1); - } - - @Generated - @Selector("setFormatter:") - public native void setFormatter(NSNumberFormatter value); - - @Generated - @Selector("setHasAutoDecimals:") - public native void setHasAutoDecimals(boolean value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("stringForValue:axis:") - public native String stringForValueAxis(double value, ChartAxisBase axis); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("withBlock:") - public static native ChartDefaultAxisValueFormatter withBlock( - @ObjCBlock(name = "call_withBlock") Block_withBlock block); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_withBlock { - @Generated - String call_withBlock(double arg0, ChartAxisBase arg1); - } +public class ChartDefaultAxisValueFormatter extends NSObject implements IChartAxisValueFormatter { + static { + NatJ.register(); + } + + @Generated + protected ChartDefaultAxisValueFormatter(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartDefaultAxisValueFormatter alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("block") + @ObjCBlock(name = "call_block_ret") + public native Block_block_ret block(); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_block_ret { + @Generated + String call_block_ret(double arg0, ChartAxisBase arg1); + } + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("formatter") + public native NSNumberFormatter formatter(); + + @Generated + @Selector("hasAutoDecimals") + public native boolean hasAutoDecimals(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartDefaultAxisValueFormatter init(); + + @Generated + @Selector("initWithBlock:") + public native ChartDefaultAxisValueFormatter initWithBlock( + @ObjCBlock(name = "call_initWithBlock") Block_initWithBlock block); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_initWithBlock { + @Generated + String call_initWithBlock(double arg0, ChartAxisBase arg1); + } + + @Generated + @Selector("initWithDecimals:") + public native ChartDefaultAxisValueFormatter initWithDecimals(@NInt long decimals); + + @Generated + @Selector("initWithFormatter:") + public native ChartDefaultAxisValueFormatter initWithFormatter(NSNumberFormatter formatter); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setBlock:") + public native void setBlock(@ObjCBlock(name = "call_setBlock") Block_setBlock value); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_setBlock { + @Generated + String call_setBlock(double arg0, ChartAxisBase arg1); + } + + @Generated + @Selector("setFormatter:") + public native void setFormatter(NSNumberFormatter value); + + @Generated + @Selector("setHasAutoDecimals:") + public native void setHasAutoDecimals(boolean value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("stringForValue:axis:") + public native String stringForValueAxis(double value, ChartAxisBase axis); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("withBlock:") + public static native ChartDefaultAxisValueFormatter withBlock( + @ObjCBlock(name = "call_withBlock") Block_withBlock block); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_withBlock { + @Generated + String call_withBlock(double arg0, ChartAxisBase arg1); + } } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDefaultFillFormatter.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDefaultFillFormatter.java index a82b1d72..41c2a06e 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDefaultFillFormatter.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDefaultFillFormatter.java @@ -29,203 +29,179 @@ import org.moe.samples.simplechart.charts.protocol.ILineChartDataSet; import org.moe.samples.simplechart.charts.protocol.LineChartDataProvider; +/** + * Default formatter that calculates the position of the filled line. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassBinding -public class ChartDefaultFillFormatter extends NSObject implements - IChartFillFormatter { - static { - NatJ.register(); - } - - @Generated - protected ChartDefaultFillFormatter(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartDefaultFillFormatter alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("block") - @ObjCBlock(name = "call_block_ret") - public native Block_block_ret block(); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_block_ret { - @Generated - @NFloat - double call_block_ret(@Mapped(ObjCObjectMapper.class) Object arg0, - @Mapped(ObjCObjectMapper.class) Object arg1); - } - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - public double getFillLinePositionWithDataSetDataProvider( - ILineChartDataSet dataSet, - LineChartDataProvider dataProvider) { - return getFillLinePositionWithDataSetDataProvider((Object) dataSet, (Object) dataProvider); - } - - @Selector("getFillLinePositionWithDataSet:dataProvider:") - @NFloat - public native double getFillLinePositionWithDataSetDataProvider( - @Mapped(ObjCObjectMapper.class) Object dataSet, - @Mapped(ObjCObjectMapper.class) Object dataProvider); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartDefaultFillFormatter init(); - - @Generated - @Selector("initWithBlock:") - public native ChartDefaultFillFormatter initWithBlock( - @ObjCBlock(name = "call_initWithBlock") Block_initWithBlock block); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_initWithBlock { - @Generated - @NFloat - double call_initWithBlock(@Mapped(ObjCObjectMapper.class) Object arg0, - @Mapped(ObjCObjectMapper.class) Object arg1); - } - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setBlock:") - public native void setBlock( - @ObjCBlock(name = "call_setBlock") Block_setBlock value); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_setBlock { - @Generated - @NFloat - double call_setBlock(@Mapped(ObjCObjectMapper.class) Object arg0, - @Mapped(ObjCObjectMapper.class) Object arg1); - } - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("withBlock:") - public static native ChartDefaultFillFormatter withBlock( - @ObjCBlock(name = "call_withBlock") Block_withBlock block); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_withBlock { - @Generated - @NFloat - double call_withBlock(@Mapped(ObjCObjectMapper.class) Object arg0, - @Mapped(ObjCObjectMapper.class) Object arg1); - } +public class ChartDefaultFillFormatter extends NSObject implements IChartFillFormatter { + static { + NatJ.register(); + } + + @Generated + protected ChartDefaultFillFormatter(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartDefaultFillFormatter alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("block") + @ObjCBlock(name = "call_block_ret") + public native Block_block_ret block(); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_block_ret { + @Generated + @NFloat + double call_block_ret(@Mapped(ObjCObjectMapper.class) Object arg0, @Mapped(ObjCObjectMapper.class) Object arg1); + } + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("getFillLinePositionWithDataSet:dataProvider:") + @NFloat + public native double getFillLinePositionWithDataSetDataProvider( + @Mapped(ObjCObjectMapper.class) ILineChartDataSet dataSet, + @Mapped(ObjCObjectMapper.class) LineChartDataProvider dataProvider); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartDefaultFillFormatter init(); + + @Generated + @Selector("initWithBlock:") + public native ChartDefaultFillFormatter initWithBlock( + @ObjCBlock(name = "call_initWithBlock") Block_initWithBlock block); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_initWithBlock { + @Generated + @NFloat + double call_initWithBlock(@Mapped(ObjCObjectMapper.class) Object arg0, + @Mapped(ObjCObjectMapper.class) Object arg1); + } + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setBlock:") + public native void setBlock(@ObjCBlock(name = "call_setBlock") Block_setBlock value); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_setBlock { + @Generated + @NFloat + double call_setBlock(@Mapped(ObjCObjectMapper.class) Object arg0, @Mapped(ObjCObjectMapper.class) Object arg1); + } + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("withBlock:") + public static native ChartDefaultFillFormatter withBlock(@ObjCBlock(name = "call_withBlock") Block_withBlock block); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_withBlock { + @Generated + @NFloat + double call_withBlock(@Mapped(ObjCObjectMapper.class) Object arg0, @Mapped(ObjCObjectMapper.class) Object arg1); + } } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDefaultValueFormatter.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDefaultValueFormatter.java index 3e8e17ab..a830b860 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDefaultValueFormatter.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDefaultValueFormatter.java @@ -31,215 +31,189 @@ @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassBinding -public class ChartDefaultValueFormatter extends NSObject implements - IChartValueFormatter { - static { - NatJ.register(); - } - - @Generated - protected ChartDefaultValueFormatter(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartDefaultValueFormatter alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("block") - @ObjCBlock(name = "call_block_ret") - public native Block_block_ret block(); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_block_ret { - @Generated - String call_block_ret(double arg0, ChartDataEntry arg1, - @NInt long arg2, ChartViewPortHandler arg3); - } - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("formatter") - public native NSNumberFormatter formatter(); - - @Generated - @Selector("hasAutoDecimals") - public native boolean hasAutoDecimals(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartDefaultValueFormatter init(); - - @Generated - @Selector("initWithBlock:") - public native ChartDefaultValueFormatter initWithBlock( - @ObjCBlock(name = "call_initWithBlock") Block_initWithBlock block); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_initWithBlock { - @Generated - String call_initWithBlock(double arg0, ChartDataEntry arg1, - @NInt long arg2, ChartViewPortHandler arg3); - } - - @Generated - @Selector("initWithDecimals:") - public native ChartDefaultValueFormatter initWithDecimals( - @NInt long decimals); - - @Generated - @Selector("initWithFormatter:") - public native ChartDefaultValueFormatter initWithFormatter( - NSNumberFormatter formatter); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setBlock:") - public native void setBlock( - @ObjCBlock(name = "call_setBlock") Block_setBlock value); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_setBlock { - @Generated - String call_setBlock(double arg0, ChartDataEntry arg1, @NInt long arg2, - ChartViewPortHandler arg3); - } - - @Generated - @Selector("setFormatter:") - public native void setFormatter(NSNumberFormatter value); - - @Generated - @Selector("setHasAutoDecimals:") - public native void setHasAutoDecimals(boolean value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("stringForValue:entry:dataSetIndex:viewPortHandler:") - public native String stringForValueEntryDataSetIndexViewPortHandler( - double value, ChartDataEntry entry, @NInt long dataSetIndex, - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("withBlock:") - public static native ChartDefaultValueFormatter withBlock( - @ObjCBlock(name = "call_withBlock") Block_withBlock block); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_withBlock { - @Generated - String call_withBlock(double arg0, ChartDataEntry arg1, - @NInt long arg2, ChartViewPortHandler arg3); - } +public class ChartDefaultValueFormatter extends NSObject implements IChartValueFormatter { + static { + NatJ.register(); + } + + @Generated + protected ChartDefaultValueFormatter(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartDefaultValueFormatter alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("block") + @ObjCBlock(name = "call_block_ret") + public native Block_block_ret block(); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_block_ret { + @Generated + String call_block_ret(double arg0, ChartDataEntry arg1, @NInt long arg2, ChartViewPortHandler arg3); + } + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("formatter") + public native NSNumberFormatter formatter(); + + @Generated + @Selector("hasAutoDecimals") + public native boolean hasAutoDecimals(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartDefaultValueFormatter init(); + + @Generated + @Selector("initWithBlock:") + public native ChartDefaultValueFormatter initWithBlock( + @ObjCBlock(name = "call_initWithBlock") Block_initWithBlock block); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_initWithBlock { + @Generated + String call_initWithBlock(double arg0, ChartDataEntry arg1, @NInt long arg2, ChartViewPortHandler arg3); + } + + @Generated + @Selector("initWithDecimals:") + public native ChartDefaultValueFormatter initWithDecimals(@NInt long decimals); + + @Generated + @Selector("initWithFormatter:") + public native ChartDefaultValueFormatter initWithFormatter(NSNumberFormatter formatter); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setBlock:") + public native void setBlock(@ObjCBlock(name = "call_setBlock") Block_setBlock value); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_setBlock { + @Generated + String call_setBlock(double arg0, ChartDataEntry arg1, @NInt long arg2, ChartViewPortHandler arg3); + } + + @Generated + @Selector("setFormatter:") + public native void setFormatter(NSNumberFormatter value); + + @Generated + @Selector("setHasAutoDecimals:") + public native void setHasAutoDecimals(boolean value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("stringForValue:entry:dataSetIndex:viewPortHandler:") + public native String stringForValueEntryDataSetIndexViewPortHandler(double value, ChartDataEntry entry, + @NInt long dataSetIndex, ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("withBlock:") + public static native ChartDefaultValueFormatter withBlock(@ObjCBlock(name = "call_withBlock") Block_withBlock block); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_withBlock { + @Generated + String call_withBlock(double arg0, ChartDataEntry arg1, @NInt long arg2, ChartViewPortHandler arg3); + } } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDescription.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDescription.java index 7cfc4a79..d7b77092 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDescription.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartDescription.java @@ -31,162 +31,170 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartDescription extends ChartComponentBase { - static { - NatJ.register(); - } - - @Generated - protected ChartDescription(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartDescription alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("font") - public native UIFont font(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartDescription init(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setFont:") - public native void setFont(UIFont value); - - @Generated - @Selector("setText:") - public native void setText(String value); - - @Generated - @Selector("setTextAlign:") - public native void setTextAlign(@NInt long value); - - @Generated - @Selector("setTextColor:") - public native void setTextColor(UIColor value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("text") - public native String text(); - - @Generated - @Selector("textAlign") - @NInt - public native long textAlign(); - - @Generated - @Selector("textColor") - public native UIColor textColor(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartDescription(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartDescription alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * Font object used for drawing the description text. + */ + @Generated + @Selector("font") + public native UIFont font(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartDescription init(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * Font object used for drawing the description text. + */ + @Generated + @Selector("setFont:") + public native void setFont(UIFont value); + + /** + * The text to be shown as the description. + */ + @Generated + @Selector("setText:") + public native void setText(String value); + + /** + * The text alignment of the description text. Default RIGHT. + */ + @Generated + @Selector("setTextAlign:") + public native void setTextAlign(@NInt long value); + + /** + * Text color used for drawing the description text + */ + @Generated + @Selector("setTextColor:") + public native void setTextColor(UIColor value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + /** + * The text to be shown as the description. + */ + @Generated + @Selector("text") + public native String text(); + + /** + * The text alignment of the description text. Default RIGHT. + */ + @Generated + @Selector("textAlign") + @NInt + public native long textAlign(); + + /** + * Text color used for drawing the description text + */ + @Generated + @Selector("textColor") + public native UIColor textColor(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartFill.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartFill.java index c43f7851..1ebd7242 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartFill.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartFill.java @@ -40,272 +40,250 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartFill extends NSObject { - static { - NatJ.register(); - } - - @Generated - protected ChartFill(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartFill alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("color") - public native CGColorRef color(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("fillPathWithContext:rect:") - public native void fillPathWithContextRect(CGContextRef context, - @ByValue CGRect rect); - - @Generated - @Selector("fillWithCGColor:") - public static native ChartFill fillWithCGColor(CGColorRef CGColor); - - @Generated - @Selector("fillWithCGImage:") - public static native ChartFill fillWithCGImage(CGImageRef CGImage); - - @Generated - @Selector("fillWithCGImage:tiled:") - public static native ChartFill fillWithCGImageTiled(CGImageRef CGImage, - boolean tiled); - - @Generated - @Selector("fillWithCGLayer:") - public static native ChartFill fillWithCGLayer(CGLayerRef CGLayer); - - @Generated - @Selector("fillWithColor:") - public static native ChartFill fillWithColor(UIColor color); - - @Generated - @Selector("fillWithImage:") - public static native ChartFill fillWithImage(UIImage image); - - @Generated - @Selector("fillWithImage:tiled:") - public static native ChartFill fillWithImageTiled(UIImage image, - boolean tiled); - - @Generated - @Selector("fillWithLinearGradient:angle:") - public static native ChartFill fillWithLinearGradientAngle( - CGGradientRef linearGradient, @NFloat double angle); - - @Generated - @Selector("fillWithRadialGradient:") - public static native ChartFill fillWithRadialGradient( - CGGradientRef radialGradient); - - @Generated - @Selector("fillWithRadialGradient:startOffsetPercent:startRadiusPercent:endOffsetPercent:endRadiusPercent:") - public static native ChartFill fillWithRadialGradientStartOffsetPercentStartRadiusPercentEndOffsetPercentEndRadiusPercent( - CGGradientRef radialGradient, @ByValue CGPoint startOffsetPercent, - @NFloat double startRadiusPercent, - @ByValue CGPoint endOffsetPercent, @NFloat double endRadiusPercent); - - @Generated - @Selector("gradient") - public native CGGradientRef gradient(); - - @Generated - @Selector("gradientAngle") - @NFloat - public native double gradientAngle(); - - @Generated - @Selector("gradientEndOffsetPercent") - @ByValue - public native CGPoint gradientEndOffsetPercent(); - - @Generated - @Selector("gradientEndRadiusPercent") - @NFloat - public native double gradientEndRadiusPercent(); - - @Generated - @Selector("gradientStartOffsetPercent") - @ByValue - public native CGPoint gradientStartOffsetPercent(); - - @Generated - @Selector("gradientStartRadiusPercent") - @NFloat - public native double gradientStartRadiusPercent(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("image") - public native CGImageRef image(); - - @Generated - @Selector("init") - public native ChartFill init(); - - @Generated - @Selector("initWithCGColor:") - public native ChartFill initWithCGColor(CGColorRef CGColor); - - @Generated - @Selector("initWithCGImage:") - public native ChartFill initWithCGImage(CGImageRef CGImage); - - @Generated - @Selector("initWithCGImage:tiled:") - public native ChartFill initWithCGImageTiled(CGImageRef CGImage, - boolean tiled); - - @Generated - @Selector("initWithCGLayer:") - public native ChartFill initWithCGLayer(CGLayerRef CGLayer); - - @Generated - @Selector("initWithColor:") - public native ChartFill initWithColor(UIColor color); - - @Generated - @Selector("initWithImage:") - public native ChartFill initWithImage(UIImage image); - - @Generated - @Selector("initWithImage:tiled:") - public native ChartFill initWithImageTiled(UIImage image, boolean tiled); - - @Generated - @Selector("initWithLinearGradient:angle:") - public native ChartFill initWithLinearGradientAngle( - CGGradientRef linearGradient, @NFloat double angle); - - @Generated - @Selector("initWithRadialGradient:") - public native ChartFill initWithRadialGradient(CGGradientRef radialGradient); - - @Generated - @Selector("initWithRadialGradient:startOffsetPercent:startRadiusPercent:endOffsetPercent:endRadiusPercent:") - public native ChartFill initWithRadialGradientStartOffsetPercentStartRadiusPercentEndOffsetPercentEndRadiusPercent( - CGGradientRef radialGradient, @ByValue CGPoint startOffsetPercent, - @NFloat double startRadiusPercent, - @ByValue CGPoint endOffsetPercent, @NFloat double endRadiusPercent); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("layer") - public native CGLayerRef layer(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("type") - @NInt - public native long type(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartFill(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartFill alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("color") + public native CGColorRef color(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * Draws the provided path in filled mode with the provided area + */ + @Generated + @Selector("fillPathWithContext:rect:") + public native void fillPathWithContextRect(CGContextRef context, @ByValue CGRect rect); + + @Generated + @Selector("fillWithCGColor:") + public static native ChartFill fillWithCGColor(CGColorRef CGColor); + + @Generated + @Selector("fillWithCGImage:") + public static native ChartFill fillWithCGImage(CGImageRef CGImage); + + @Generated + @Selector("fillWithCGImage:tiled:") + public static native ChartFill fillWithCGImageTiled(CGImageRef CGImage, boolean tiled); + + @Generated + @Selector("fillWithCGLayer:") + public static native ChartFill fillWithCGLayer(CGLayerRef CGLayer); + + @Generated + @Selector("fillWithColor:") + public static native ChartFill fillWithColor(UIColor color); + + @Generated + @Selector("fillWithImage:") + public static native ChartFill fillWithImage(UIImage image); + + @Generated + @Selector("fillWithImage:tiled:") + public static native ChartFill fillWithImageTiled(UIImage image, boolean tiled); + + @Generated + @Selector("fillWithLinearGradient:angle:") + public static native ChartFill fillWithLinearGradientAngle(CGGradientRef linearGradient, @NFloat double angle); + + @Generated + @Selector("fillWithRadialGradient:") + public static native ChartFill fillWithRadialGradient(CGGradientRef radialGradient); + + @Generated + @Selector("fillWithRadialGradient:startOffsetPercent:startRadiusPercent:endOffsetPercent:endRadiusPercent:") + public static native ChartFill fillWithRadialGradientStartOffsetPercentStartRadiusPercentEndOffsetPercentEndRadiusPercent( + CGGradientRef radialGradient, @ByValue CGPoint startOffsetPercent, @NFloat double startRadiusPercent, + @ByValue CGPoint endOffsetPercent, @NFloat double endRadiusPercent); + + @Generated + @Selector("gradient") + public native CGGradientRef gradient(); + + @Generated + @Selector("gradientAngle") + @NFloat + public native double gradientAngle(); + + @Generated + @Selector("gradientEndOffsetPercent") + @ByValue + public native CGPoint gradientEndOffsetPercent(); + + @Generated + @Selector("gradientEndRadiusPercent") + @NFloat + public native double gradientEndRadiusPercent(); + + @Generated + @Selector("gradientStartOffsetPercent") + @ByValue + public native CGPoint gradientStartOffsetPercent(); + + @Generated + @Selector("gradientStartRadiusPercent") + @NFloat + public native double gradientStartRadiusPercent(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("image") + public native CGImageRef image(); + + @Generated + @Selector("init") + public native ChartFill init(); + + @Generated + @Selector("initWithCGColor:") + public native ChartFill initWithCGColor(CGColorRef CGColor); + + @Generated + @Selector("initWithCGImage:") + public native ChartFill initWithCGImage(CGImageRef CGImage); + + @Generated + @Selector("initWithCGImage:tiled:") + public native ChartFill initWithCGImageTiled(CGImageRef CGImage, boolean tiled); + + @Generated + @Selector("initWithCGLayer:") + public native ChartFill initWithCGLayer(CGLayerRef CGLayer); + + @Generated + @Selector("initWithColor:") + public native ChartFill initWithColor(UIColor color); + + @Generated + @Selector("initWithImage:") + public native ChartFill initWithImage(UIImage image); + + @Generated + @Selector("initWithImage:tiled:") + public native ChartFill initWithImageTiled(UIImage image, boolean tiled); + + @Generated + @Selector("initWithLinearGradient:angle:") + public native ChartFill initWithLinearGradientAngle(CGGradientRef linearGradient, @NFloat double angle); + + @Generated + @Selector("initWithRadialGradient:") + public native ChartFill initWithRadialGradient(CGGradientRef radialGradient); + + @Generated + @Selector("initWithRadialGradient:startOffsetPercent:startRadiusPercent:endOffsetPercent:endRadiusPercent:") + public native ChartFill initWithRadialGradientStartOffsetPercentStartRadiusPercentEndOffsetPercentEndRadiusPercent( + CGGradientRef radialGradient, @ByValue CGPoint startOffsetPercent, @NFloat double startRadiusPercent, + @ByValue CGPoint endOffsetPercent, @NFloat double endRadiusPercent); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("layer") + public native CGLayerRef layer(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("type") + @NInt + public native long type(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartHighlight.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartHighlight.java index 2fbdeb0c..a712d11b 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartHighlight.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartHighlight.java @@ -32,234 +32,304 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartHighlight extends NSObject { - static { - NatJ.register(); - } - - @Generated - protected ChartHighlight(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartHighlight alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("axis") - @NInt - public native long axis(); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("dataIndex") - @NInt - public native long dataIndex(); - - @Generated - @Selector("dataSetIndex") - @NInt - public native long dataSetIndex(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public native String description(); - - @Generated - @Selector("drawX") - @NFloat - public native double drawX(); - - @Generated - @Selector("drawY") - @NFloat - public native double drawY(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartHighlight init(); - - @Generated - @Selector("initWithX:dataSetIndex:stackIndex:") - public native ChartHighlight initWithXDataSetIndexStackIndex(double x, - @NInt long dataSetIndex, @NInt long stackIndex); - - @Generated - @Selector("initWithX:y:dataSetIndex:") - public native ChartHighlight initWithXYDataSetIndex(double x, double y, - @NInt long dataSetIndex); - - @Generated - @Selector("initWithX:y:xPx:yPx:dataIndex:dataSetIndex:stackIndex:axis:") - public native ChartHighlight initWithXYXPxYPxDataIndexDataSetIndexStackIndexAxis( - double x, double y, @NFloat double xPx, @NFloat double yPx, - @NInt long dataIndex, @NInt long dataSetIndex, - @NInt long stackIndex, @NInt long axis); - - @Generated - @Selector("initWithX:y:xPx:yPx:dataSetIndex:axis:") - public native ChartHighlight initWithXYXPxYPxDataSetIndexAxis(double x, - double y, @NFloat double xPx, @NFloat double yPx, - @NInt long dataSetIndex, @NInt long axis); - - @Generated - @Selector("initWithX:y:xPx:yPx:dataSetIndex:stackIndex:axis:") - public native ChartHighlight initWithXYXPxYPxDataSetIndexStackIndexAxis( - double x, double y, @NFloat double xPx, @NFloat double yPx, - @NInt long dataSetIndex, @NInt long stackIndex, @NInt long axis); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isEqual:") - public native boolean isEqual(@Mapped(ObjCObjectMapper.class) Object object); - - @Generated - @Selector("isStacked") - public native boolean isStacked(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setDataIndex:") - public native void setDataIndex(@NInt long value); - - @Generated - @Selector("setDrawWithPt:") - public native void setDrawWithPt(@ByValue CGPoint pt); - - @Generated - @Selector("setDrawWithX:y:") - public native void setDrawWithXY(@NFloat double x, @NFloat double y); - - @Generated - @Selector("setDrawX:") - public native void setDrawX(@NFloat double value); - - @Generated - @Selector("setDrawY:") - public native void setDrawY(@NFloat double value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("stackIndex") - @NInt - public native long stackIndex(); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("x") - public native double x(); - - @Generated - @Selector("xPx") - @NFloat - public native double xPx(); - - @Generated - @Selector("y") - public native double y(); - - @Generated - @Selector("yPx") - @NFloat - public native double yPx(); + static { + NatJ.register(); + } + + @Generated + protected ChartHighlight(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartHighlight alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("axis") + @NInt + public native long axis(); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + /** + * the index of the data object - in case it refers to more than one + */ + @Generated + @Selector("dataIndex") + @NInt + public native long dataIndex(); + + @Generated + @Selector("dataSetIndex") + @NInt + public native long dataSetIndex(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public native String description(); + + /** + * the x-position (pixels) on which this highlight object was last drawn + */ + @Generated + @Selector("drawX") + @NFloat + public native double drawX(); + + /** + * the y-position (pixels) on which this highlight object was last drawn + */ + @Generated + @Selector("drawY") + @NFloat + public native double drawY(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartHighlight init(); + + /** + * \param x the x-value of the highlighted value + * + * \param dataSetIndex the index of the DataSet the highlighted value belongs to + * + * \param stackIndex references which value of a stacked-bar entry has been selected + */ + @Generated + @Selector("initWithX:dataSetIndex:stackIndex:") + public native ChartHighlight initWithXDataSetIndexStackIndex(double x, @NInt long dataSetIndex, + @NInt long stackIndex); + + /** + * \param x the x-value of the highlighted value + * + * \param y the y-value of the highlighted value + * + * \param dataSetIndex the index of the DataSet the highlighted value belongs to + * + * \param dataIndex The data index to search in (only used in CombinedChartView currently) + */ + @Generated + @Selector("initWithX:y:dataSetIndex:dataIndex:") + public native ChartHighlight initWithXYDataSetIndexDataIndex(double x, double y, @NInt long dataSetIndex, + @NInt long dataIndex); + + /** + * \param x the x-value of the highlighted value + * + * \param y the y-value of the highlighted value + * + * \param xPx the x-pixel of the highlighted value + * + * \param yPx the y-pixel of the highlighted value + * + * \param dataIndex the index of the Data the highlighted value belongs to + * + * \param dataSetIndex the index of the DataSet the highlighted value belongs to + * + * \param stackIndex references which value of a stacked-bar entry has been selected + * + * \param axis the axis the highlighted value belongs to + */ + @Generated + @Selector("initWithX:y:xPx:yPx:dataIndex:dataSetIndex:stackIndex:axis:") + public native ChartHighlight initWithXYXPxYPxDataIndexDataSetIndexStackIndexAxis(double x, double y, + @NFloat double xPx, @NFloat double yPx, @NInt long dataIndex, @NInt long dataSetIndex, + @NInt long stackIndex, @NInt long axis); + + /** + * \param x the x-value of the highlighted value + * + * \param y the y-value of the highlighted value + * + * \param xPx the x-pixel of the highlighted value + * + * \param yPx the y-pixel of the highlighted value + * + * \param dataIndex the index of the Data the highlighted value belongs to + * + * \param dataSetIndex the index of the DataSet the highlighted value belongs to + * + * \param stackIndex references which value of a stacked-bar entry has been selected + * + * \param axis the axis the highlighted value belongs to + */ + @Generated + @Selector("initWithX:y:xPx:yPx:dataSetIndex:axis:") + public native ChartHighlight initWithXYXPxYPxDataSetIndexAxis(double x, double y, @NFloat double xPx, + @NFloat double yPx, @NInt long dataSetIndex, @NInt long axis); + + /** + * \param x the x-value of the highlighted value + * + * \param y the y-value of the highlighted value + * + * \param xPx the x-pixel of the highlighted value + * + * \param yPx the y-pixel of the highlighted value + * + * \param dataSetIndex the index of the DataSet the highlighted value belongs to + * + * \param stackIndex references which value of a stacked-bar entry has been selected + * + * \param axis the axis the highlighted value belongs to + */ + @Generated + @Selector("initWithX:y:xPx:yPx:dataSetIndex:stackIndex:axis:") + public native ChartHighlight initWithXYXPxYPxDataSetIndexStackIndexAxis(double x, double y, @NFloat double xPx, + @NFloat double yPx, @NInt long dataSetIndex, @NInt long stackIndex, @NInt long axis); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isEqual:") + public native boolean isEqual(@Mapped(ObjCObjectMapper.class) Object object); + + @Generated + @Selector("isStacked") + public native boolean isStacked(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * the index of the data object - in case it refers to more than one + */ + @Generated + @Selector("setDataIndex:") + public native void setDataIndex(@NInt long value); + + /** + * Sets the x- and y-position (pixels) where this highlight was last drawn. + */ + @Generated + @Selector("setDrawWithPt:") + public native void setDrawWithPt(@ByValue CGPoint pt); + + /** + * Sets the x- and y-position (pixels) where this highlight was last drawn. + */ + @Generated + @Selector("setDrawWithX:y:") + public native void setDrawWithXY(@NFloat double x, @NFloat double y); + + /** + * the x-position (pixels) on which this highlight object was last drawn + */ + @Generated + @Selector("setDrawX:") + public native void setDrawX(@NFloat double value); + + /** + * the y-position (pixels) on which this highlight object was last drawn + */ + @Generated + @Selector("setDrawY:") + public native void setDrawY(@NFloat double value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("stackIndex") + @NInt + public native long stackIndex(); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("x") + public native double x(); + + @Generated + @Selector("xPx") + @NFloat + public native double xPx(); + + @Generated + @Selector("y") + public native double y(); + + @Generated + @Selector("yPx") + @NFloat + public native double yPx(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartHighlighter.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartHighlighter.java index 90aea613..9d821df5 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartHighlighter.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartHighlighter.java @@ -36,177 +36,195 @@ @ObjCClassName("_TtC6Charts16ChartHighlighter") @ObjCClassBinding public class ChartHighlighter extends NSObject implements IChartHighlighter { - static { - NatJ.register(); - } - - @Generated - protected ChartHighlighter(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartHighlighter alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("chart") - @MappedReturn(ObjCObjectMapper.class) - public native ChartDataProvider chart(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("getHighlightWithX:y:") - public native ChartHighlight getHighlightWithXY(@NFloat double x, - @NFloat double y); - - @Generated - @Selector("getHighlightWithXValue:x:y:") - public native ChartHighlight getHighlightWithXValueXY(double xVal, - @NFloat double x, @NFloat double y); - - @Generated - @Selector("getHighlightsWithXValue:x:y:") - public native NSArray getHighlightsWithXValueXY( - double xValue, @NFloat double x, @NFloat double y); - - @Generated - @Selector("getValsForTouchWithX:y:") - @ByValue - public native CGPoint getValsForTouchWithXY(@NFloat double x, - @NFloat double y); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartHighlighter init(); - - @Generated - @Selector("initWithChart:") - public native ChartHighlighter initWithChart( - @Mapped(ObjCObjectMapper.class) Object chart); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setChart:") - public native void setChart_unsafe( - @Mapped(ObjCObjectMapper.class) ChartDataProvider value); - - @Generated - public void setChart(@Mapped(ObjCObjectMapper.class) ChartDataProvider value) { - Object __old = chart(); - if (value != null) { - org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); - } - setChart_unsafe(value); - if (__old != null) { - org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); - } - } - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartHighlighter(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartHighlighter alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + /** + * instance of the data-provider + */ + @Generated + @Selector("chart") + @MappedReturn(ObjCObjectMapper.class) + public native ChartDataProvider chart(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("getHighlightWithX:y:") + public native ChartHighlight getHighlightWithXY(@NFloat double x, @NFloat double y); + + /** + * \param xValue + * + * \param x + * + * \param y + * + * + * returns: + * The corresponding ChartHighlight for a given x-value and xy-touch position in pixels. + */ + @Generated + @Selector("getHighlightWithXValue:x:y:") + public native ChartHighlight getHighlightWithXValueXY(double xVal, @NFloat double x, @NFloat double y); + + /** + * \param xValue the transformed x-value of the x-touch position + * + * \param x touch position + * + * \param y touch position + * + * + * returns: + * A list of Highlight objects representing the entries closest to the given xVal. + * The returned list contains two objects per DataSet (closest rounding up, closest rounding down). + */ + @Generated + @Selector("getHighlightsWithXValue:x:y:") + public native NSArray getHighlightsWithXValueXY(double xValue, @NFloat double x, + @NFloat double y); + + /** + * \param x + * + * + * returns: + * The corresponding x-pos for a given touch-position in pixels. + */ + @Generated + @Selector("getValsForTouchWithX:y:") + @ByValue + public native CGPoint getValsForTouchWithXY(@NFloat double x, @NFloat double y); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartHighlighter init(); + + @Generated + @Selector("initWithChart:") + public native ChartHighlighter initWithChart(@Mapped(ObjCObjectMapper.class) Object chart); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * instance of the data-provider + */ + @Generated + @Selector("setChart:") + public native void setChart_unsafe(@Mapped(ObjCObjectMapper.class) ChartDataProvider value); + + /** + * instance of the data-provider + */ + @Generated + public void setChart(@Mapped(ObjCObjectMapper.class) ChartDataProvider value) { + Object __old = chart(); + if (value != null) { + org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); + } + setChart_unsafe(value); + if (__old != null) { + org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); + } + } + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartIndexAxisValueFormatter.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartIndexAxisValueFormatter.java index 9e4d36de..c836bce5 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartIndexAxisValueFormatter.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartIndexAxisValueFormatter.java @@ -25,157 +25,141 @@ import org.moe.natj.objc.map.ObjCObjectMapper; import org.moe.samples.simplechart.charts.protocol.IChartAxisValueFormatter; +/** + * This formatter is used for passing an array of x-axis labels, on whole x steps. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassBinding -public class ChartIndexAxisValueFormatter extends NSObject implements - IChartAxisValueFormatter { - static { - NatJ.register(); - } - - @Generated - protected ChartIndexAxisValueFormatter(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartIndexAxisValueFormatter alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartIndexAxisValueFormatter init(); - - @Generated - @Selector("initWithValues:") - public native ChartIndexAxisValueFormatter initWithValues( - NSArray values); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setValues:") - public native void setValues(NSArray value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("stringForValue:axis:") - public native String stringForValueAxis(double value, ChartAxisBase axis); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("values") - public native NSArray values(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("withValues:") - public static native ChartIndexAxisValueFormatter withValues( - NSArray values); +public class ChartIndexAxisValueFormatter extends NSObject implements IChartAxisValueFormatter { + static { + NatJ.register(); + } + + @Generated + protected ChartIndexAxisValueFormatter(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartIndexAxisValueFormatter alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartIndexAxisValueFormatter init(); + + @Generated + @Selector("initWithValues:") + public native ChartIndexAxisValueFormatter initWithValues(NSArray values); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setValues:") + public native void setValues(NSArray value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("stringForValue:axis:") + public native String stringForValueAxis(double value, ChartAxisBase axis); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("values") + public native NSArray values(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("withValues:") + public static native ChartIndexAxisValueFormatter withValues(NSArray values); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLegend.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLegend.java index 46dae10c..17059287 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLegend.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLegend.java @@ -36,454 +36,510 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartLegend extends ChartComponentBase { - static { - NatJ.register(); - } - - @Generated - protected ChartLegend(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartLegend alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("calculateDimensionsWithLabelFont:viewPortHandler:") - public native void calculateDimensionsWithLabelFontViewPortHandler( - UIFont labelFont, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("calculatedLabelBreakPoints") - public native NSArray calculatedLabelBreakPoints(); - - @Generated - @Selector("calculatedLabelSizes") - public native NSArray calculatedLabelSizes(); - - @Generated - @Selector("calculatedLineSizes") - public native NSArray calculatedLineSizes(); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("colorsObjc") - public native NSArray colorsObjc(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("direction") - @NInt - public native long direction(); - - @Generated - @Selector("drawInside") - public native boolean drawInside(); - - @Generated - @Selector("entries") - public native NSArray entries(); - - @Generated - @Selector("extraColorsObjc") - public native NSArray extraColorsObjc(); - - @Generated - @Selector("extraEntries") - public native NSArray extraEntries(); - - @Generated - @Selector("extraLabelsObjc") - public native NSArray extraLabelsObjc(); - - @Generated - @Selector("font") - public native UIFont font(); - - @Generated - @Selector("form") - @NInt - public native long form(); - - @Generated - @Selector("formLineDashLengths") - public native NSArray formLineDashLengths(); - - @Generated - @Selector("formLineDashPhase") - @NFloat - public native double formLineDashPhase(); - - @Generated - @Selector("formLineWidth") - @NFloat - public native double formLineWidth(); - - @Generated - @Selector("formSize") - @NFloat - public native double formSize(); - - @Generated - @Selector("formToTextSpace") - @NFloat - public native double formToTextSpace(); - - @Generated - @Selector("getLabel:") - public native String getLabel(@NInt long index); - - @Generated - @Selector("getMaximumEntrySizeWithFont:") - @ByValue - public native CGSize getMaximumEntrySizeWithFont(UIFont font); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("horizontalAlignment") - @NInt - public native long horizontalAlignment(); - - @Generated - @Selector("init") - public native ChartLegend init(); - - @Generated - @Selector("initWithColors:labels:") - public native ChartLegend initWithColorsLabels( - NSArray colors, - NSArray labels); - - @Generated - @Selector("initWithEntries:") - public native ChartLegend initWithEntries( - NSArray entries); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawInsideEnabled") - public native boolean isDrawInsideEnabled(); - - @Generated - @Selector("isLegendCustom") - public native boolean isLegendCustom(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("isWordWrapEnabled") - public native boolean isWordWrapEnabled(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("labelsObjc") - public native NSArray labelsObjc(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("maxSizePercent") - @NFloat - public native double maxSizePercent(); - - @Generated - @Selector("neededHeight") - @NFloat - public native double neededHeight(); - - @Generated - @Selector("neededWidth") - @NFloat - public native double neededWidth(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("orientation") - @NInt - public native long orientation(); - - @Generated - @Selector("position") - @NInt - public native long position(); - - @Generated - @Selector("resetCustom") - public native void resetCustom(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setCalculatedLabelBreakPoints:") - public native void setCalculatedLabelBreakPoints( - NSArray value); - - @Generated - @Selector("setCalculatedLabelSizes:") - public native void setCalculatedLabelSizes(NSArray value); - - @Generated - @Selector("setCalculatedLineSizes:") - public native void setCalculatedLineSizes(NSArray value); - - @Generated - @Selector("setColorsObjc:") - public native void setColorsObjc(NSArray value); - - @Generated - @Selector("setCustomWithColors:labels:") - public native void setCustomWithColorsLabels( - NSArray colors, - NSArray labels); - - @Generated - @Selector("setCustomWithEntries:") - public native void setCustomWithEntries( - NSArray entries); - - @Generated - @Selector("setDirection:") - public native void setDirection(@NInt long value); - - @Generated - @Selector("setDrawInside:") - public native void setDrawInside(boolean value); - - @Generated - @Selector("setEntries:") - public native void setEntries(NSArray value); - - @Generated - @Selector("setExtraEntries:") - public native void setExtraEntries(NSArray value); - - @Generated - @Selector("setExtraWithColors:labels:") - public native void setExtraWithColorsLabels( - NSArray colors, - NSArray labels); - - @Generated - @Selector("setFont:") - public native void setFont(UIFont value); - - @Generated - @Selector("setForm:") - public native void setForm(@NInt long value); - - @Generated - @Selector("setFormLineDashLengths:") - public native void setFormLineDashLengths(NSArray value); - - @Generated - @Selector("setFormLineDashPhase:") - public native void setFormLineDashPhase(@NFloat double value); - - @Generated - @Selector("setFormLineWidth:") - public native void setFormLineWidth(@NFloat double value); - - @Generated - @Selector("setFormSize:") - public native void setFormSize(@NFloat double value); - - @Generated - @Selector("setFormToTextSpace:") - public native void setFormToTextSpace(@NFloat double value); - - @Generated - @Selector("setHorizontalAlignment:") - public native void setHorizontalAlignment(@NInt long value); - - @Generated - @Selector("setLabelsObjc:") - public native void setLabelsObjc(NSArray value); - - @Generated - @Selector("setMaxSizePercent:") - public native void setMaxSizePercent(@NFloat double value); - - @Generated - @Selector("setNeededHeight:") - public native void setNeededHeight(@NFloat double value); - - @Generated - @Selector("setNeededWidth:") - public native void setNeededWidth(@NFloat double value); - - @Generated - @Selector("setOrientation:") - public native void setOrientation(@NInt long value); - - @Generated - @Selector("setPosition:") - public native void setPosition(@NInt long value); - - @Generated - @Selector("setStackSpace:") - public native void setStackSpace(@NFloat double value); - - @Generated - @Selector("setTextColor:") - public native void setTextColor(UIColor value); - - @Generated - @Selector("setTextHeightMax:") - public native void setTextHeightMax(@NFloat double value); - - @Generated - @Selector("setTextWidthMax:") - public native void setTextWidthMax(@NFloat double value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setVerticalAlignment:") - public native void setVerticalAlignment(@NInt long value); - - @Generated - @Selector("setWordWrapEnabled:") - public native void setWordWrapEnabled(boolean value); - - @Generated - @Selector("setXEntrySpace:") - public native void setXEntrySpace(@NFloat double value); - - @Generated - @Selector("setYEntrySpace:") - public native void setYEntrySpace(@NFloat double value); - - @Generated - @Selector("stackSpace") - @NFloat - public native double stackSpace(); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("textColor") - public native UIColor textColor(); - - @Generated - @Selector("textHeightMax") - @NFloat - public native double textHeightMax(); - - @Generated - @Selector("textWidthMax") - @NFloat - public native double textWidthMax(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("verticalAlignment") - @NInt - public native long verticalAlignment(); - - @Generated - @Selector("wordWrapEnabled") - public native boolean wordWrapEnabled(); - - @Generated - @Selector("xEntrySpace") - @NFloat - public native double xEntrySpace(); - - @Generated - @Selector("yEntrySpace") - @NFloat - public native double yEntrySpace(); + static { + NatJ.register(); + } + + @Generated + protected ChartLegend(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartLegend alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("calculateDimensionsWithLabelFont:viewPortHandler:") + public native void calculateDimensionsWithLabelFontViewPortHandler(UIFont labelFont, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("calculatedLabelBreakPoints") + public native NSArray calculatedLabelBreakPoints(); + + @Generated + @Selector("calculatedLabelSizes") + public native NSArray calculatedLabelSizes(); + + @Generated + @Selector("calculatedLineSizes") + public native NSArray calculatedLineSizes(); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * The text direction of the legend + */ + @Generated + @Selector("direction") + @NInt + public native long direction(); + + /** + * Flag indicating whether the legend will draw inside the chart or outside + */ + @Generated + @Selector("drawInside") + public native boolean drawInside(); + + /** + * The legend entries array + */ + @Generated + @Selector("entries") + public native NSArray entries(); + + /** + * Entries that will be appended to the end of the auto calculated entries after calculating the legend. + * (if the legend has already been calculated, you will need to call notifyDataSetChanged() to let the changes take effect) + */ + @Generated + @Selector("extraEntries") + public native NSArray extraEntries(); + + @Generated + @Selector("font") + public native UIFont font(); + + /** + * The form/shape of the legend forms + */ + @Generated + @Selector("form") + @NInt + public native long form(); + + /** + * Line dash configuration for shapes that consist of lines. + * This is the actual dash pattern. + * I.e. [2, 3] will paint [– – ] + * [1, 3, 4, 2] will paint [- –– - –– ] + */ + @Generated + @Selector("formLineDashLengths") + public native NSArray formLineDashLengths(); + + /** + * Line dash configuration for shapes that consist of lines. + * This is how much (in pixels) into the dash pattern are we starting from. + */ + @Generated + @Selector("formLineDashPhase") + @NFloat + public native double formLineDashPhase(); + + /** + * The line width for forms that consist of lines + */ + @Generated + @Selector("formLineWidth") + @NFloat + public native double formLineWidth(); + + /** + * The size of the legend forms + */ + @Generated + @Selector("formSize") + @NFloat + public native double formSize(); + + @Generated + @Selector("formToTextSpace") + @NFloat + public native double formToTextSpace(); + + @Generated + @Selector("getMaximumEntrySizeWithFont:") + @ByValue + public native CGSize getMaximumEntrySizeWithFont(UIFont font); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + /** + * The horizontal alignment of the legend + */ + @Generated + @Selector("horizontalAlignment") + @NInt + public native long horizontalAlignment(); + + @Generated + @Selector("init") + public native ChartLegend init(); + + @Generated + @Selector("initWithEntries:") + public native ChartLegend initWithEntries(NSArray entries); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + /** + * Flag indicating whether the legend will draw inside the chart or outside + */ + @Generated + @Selector("isDrawInsideEnabled") + public native boolean isDrawInsideEnabled(); + + /** + * default: false (automatic legend) + * true if a custom legend entries has been set + */ + @Generated + @Selector("isLegendCustom") + public native boolean isLegendCustom(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + /** + * if this is set, then word wrapping the legend is enabled. + */ + @Generated + @Selector("isWordWrapEnabled") + public native boolean isWordWrapEnabled(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + /** + * The maximum relative size out of the whole chart view in percent. + * If the legend is to the right/left of the chart, then this affects the width of the legend. + * If the legend is to the top/bottom of the chart, then this affects the height of the legend. + * default: 0.95 (95%) + */ + @Generated + @Selector("maxSizePercent") + @NFloat + public native double maxSizePercent(); + + @Generated + @Selector("neededHeight") + @NFloat + public native double neededHeight(); + + @Generated + @Selector("neededWidth") + @NFloat + public native double neededWidth(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + /** + * The orientation of the legend + */ + @Generated + @Selector("orientation") + @NInt + public native long orientation(); + + /** + * Calling this will disable the custom legend entries (set by setLegend(...)). Instead, the entries will again be calculated automatically (after notifyDataSetChanged() is called). + */ + @Generated + @Selector("resetCustom") + public native void resetCustom(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setCalculatedLabelBreakPoints:") + public native void setCalculatedLabelBreakPoints(NSArray value); + + @Generated + @Selector("setCalculatedLabelSizes:") + public native void setCalculatedLabelSizes(NSArray value); + + @Generated + @Selector("setCalculatedLineSizes:") + public native void setCalculatedLineSizes(NSArray value); + + /** + * MARK: - Custom legend + * Sets a custom legend’s entries array. + *
    + *
  • + * A nil label will start a group. + * This will disable the feature that automatically calculates the legend entries from the datasets. + * Call resetCustom(...) to re-enable automatic calculation (and then notifyDataSetChanged() is needed). + *
  • + *
+ */ + @Generated + @Selector("setCustomWithEntries:") + public native void setCustomWithEntries(NSArray entries); + + /** + * The text direction of the legend + */ + @Generated + @Selector("setDirection:") + public native void setDirection(@NInt long value); + + /** + * Flag indicating whether the legend will draw inside the chart or outside + */ + @Generated + @Selector("setDrawInside:") + public native void setDrawInside(boolean value); + + /** + * The legend entries array + */ + @Generated + @Selector("setEntries:") + public native void setEntries(NSArray value); + + /** + * Entries that will be appended to the end of the auto calculated entries after calculating the legend. + * (if the legend has already been calculated, you will need to call notifyDataSetChanged() to let the changes take effect) + */ + @Generated + @Selector("setExtraEntries:") + public native void setExtraEntries(NSArray value); + + @Generated + @Selector("setFont:") + public native void setFont(UIFont value); + + /** + * The form/shape of the legend forms + */ + @Generated + @Selector("setForm:") + public native void setForm(@NInt long value); + + /** + * Line dash configuration for shapes that consist of lines. + * This is the actual dash pattern. + * I.e. [2, 3] will paint [– – ] + * [1, 3, 4, 2] will paint [- –– - –– ] + */ + @Generated + @Selector("setFormLineDashLengths:") + public native void setFormLineDashLengths(NSArray value); + + /** + * Line dash configuration for shapes that consist of lines. + * This is how much (in pixels) into the dash pattern are we starting from. + */ + @Generated + @Selector("setFormLineDashPhase:") + public native void setFormLineDashPhase(@NFloat double value); + + /** + * The line width for forms that consist of lines + */ + @Generated + @Selector("setFormLineWidth:") + public native void setFormLineWidth(@NFloat double value); + + /** + * The size of the legend forms + */ + @Generated + @Selector("setFormSize:") + public native void setFormSize(@NFloat double value); + + @Generated + @Selector("setFormToTextSpace:") + public native void setFormToTextSpace(@NFloat double value); + + /** + * The horizontal alignment of the legend + */ + @Generated + @Selector("setHorizontalAlignment:") + public native void setHorizontalAlignment(@NInt long value); + + /** + * The maximum relative size out of the whole chart view in percent. + * If the legend is to the right/left of the chart, then this affects the width of the legend. + * If the legend is to the top/bottom of the chart, then this affects the height of the legend. + * default: 0.95 (95%) + */ + @Generated + @Selector("setMaxSizePercent:") + public native void setMaxSizePercent(@NFloat double value); + + @Generated + @Selector("setNeededHeight:") + public native void setNeededHeight(@NFloat double value); + + @Generated + @Selector("setNeededWidth:") + public native void setNeededWidth(@NFloat double value); + + /** + * The orientation of the legend + */ + @Generated + @Selector("setOrientation:") + public native void setOrientation(@NInt long value); + + @Generated + @Selector("setStackSpace:") + public native void setStackSpace(@NFloat double value); + + @Generated + @Selector("setTextColor:") + public native void setTextColor(UIColor value); + + @Generated + @Selector("setTextHeightMax:") + public native void setTextHeightMax(@NFloat double value); + + @Generated + @Selector("setTextWidthMax:") + public native void setTextWidthMax(@NFloat double value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + /** + * The vertical alignment of the legend + */ + @Generated + @Selector("setVerticalAlignment:") + public native void setVerticalAlignment(@NInt long value); + + /** + * flag that indicates if word wrapping is enabled + * this is currently supported only for orientation == Horizontal. + * you may want to set maxSizePercent when word wrapping, to set the point where the text wraps. + * default: true + */ + @Generated + @Selector("setWordWrapEnabled:") + public native void setWordWrapEnabled(boolean value); + + @Generated + @Selector("setXEntrySpace:") + public native void setXEntrySpace(@NFloat double value); + + @Generated + @Selector("setYEntrySpace:") + public native void setYEntrySpace(@NFloat double value); + + @Generated + @Selector("stackSpace") + @NFloat + public native double stackSpace(); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("textColor") + public native UIColor textColor(); + + @Generated + @Selector("textHeightMax") + @NFloat + public native double textHeightMax(); + + @Generated + @Selector("textWidthMax") + @NFloat + public native double textWidthMax(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * The vertical alignment of the legend + */ + @Generated + @Selector("verticalAlignment") + @NInt + public native long verticalAlignment(); + + /** + * flag that indicates if word wrapping is enabled + * this is currently supported only for orientation == Horizontal. + * you may want to set maxSizePercent when word wrapping, to set the point where the text wraps. + * default: true + */ + @Generated + @Selector("wordWrapEnabled") + public native boolean wordWrapEnabled(); + + @Generated + @Selector("xEntrySpace") + @NFloat + public native double xEntrySpace(); + + @Generated + @Selector("yEntrySpace") + @NFloat + public native double yEntrySpace(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLegendEntry.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLegendEntry.java index b3e7c3ac..c38dbe2e 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLegendEntry.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLegendEntry.java @@ -32,196 +32,261 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartLegendEntry extends NSObject { - static { - NatJ.register(); - } - - @Generated - protected ChartLegendEntry(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartLegendEntry alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("form") - @NInt - public native long form(); - - @Generated - @Selector("formColor") - public native UIColor formColor(); - - @Generated - @Selector("formLineDashLengths") - public native NSArray formLineDashLengths(); - - @Generated - @Selector("formLineDashPhase") - @NFloat - public native double formLineDashPhase(); - - @Generated - @Selector("formLineWidth") - @NFloat - public native double formLineWidth(); - - @Generated - @Selector("formSize") - @NFloat - public native double formSize(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartLegendEntry init(); - - @Generated - @Selector("initWithLabel:form:formSize:formLineWidth:formLineDashPhase:formLineDashLengths:formColor:") - public native ChartLegendEntry initWithLabelFormFormSizeFormLineWidthFormLineDashPhaseFormLineDashLengthsFormColor( - String label, @NInt long form, @NFloat double formSize, - @NFloat double formLineWidth, @NFloat double formLineDashPhase, - NSArray formLineDashLengths, UIColor formColor); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("label") - public native String label(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setForm:") - public native void setForm(@NInt long value); - - @Generated - @Selector("setFormColor:") - public native void setFormColor(UIColor value); - - @Generated - @Selector("setFormLineDashLengths:") - public native void setFormLineDashLengths(NSArray value); - - @Generated - @Selector("setFormLineDashPhase:") - public native void setFormLineDashPhase(@NFloat double value); - - @Generated - @Selector("setFormLineWidth:") - public native void setFormLineWidth(@NFloat double value); - - @Generated - @Selector("setFormSize:") - public native void setFormSize(@NFloat double value); - - @Generated - @Selector("setLabel:") - public native void setLabel(String value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartLegendEntry(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartLegendEntry alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * The form to draw for this entry. + * None will avoid drawing a form, and any related space. + * Empty will avoid drawing a form, but keep its space. + * Default will use the Legend’s default. + */ + @Generated + @Selector("form") + @NInt + public native long form(); + + /** + * The color for drawing the form + */ + @Generated + @Selector("formColor") + public native UIColor formColor(); + + /** + * Line dash configuration for shapes that consist of lines. + * This is the actual dash pattern. + * I.e. [2, 3] will paint [– – ] + * [1, 3, 4, 2] will paint [- –– - –– ] + * Set to nil to use the legend’s default. + */ + @Generated + @Selector("formLineDashLengths") + public native NSArray formLineDashLengths(); + + /** + * Line dash configuration for shapes that consist of lines. + * This is how much (in pixels) into the dash pattern are we starting from. + * Set to NaN to use the legend’s default. + */ + @Generated + @Selector("formLineDashPhase") + @NFloat + public native double formLineDashPhase(); + + /** + * Line width used for shapes that consist of lines. + * Set to NaN to use the legend’s default. + */ + @Generated + @Selector("formLineWidth") + @NFloat + public native double formLineWidth(); + + /** + * Form size will be considered except for when .None is used + * Set as NaN to use the legend’s default + */ + @Generated + @Selector("formSize") + @NFloat + public native double formSize(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartLegendEntry init(); + + /** + * \param label The legend entry text. + * A nil label will start a group. + * + * \param form The form to draw for this entry. + * + * \param formSize Set to NaN to use the legend’s default. + * + * \param formLineWidth Set to NaN to use the legend’s default. + * + * \param formLineDashPhase Line dash configuration. + * + * \param formLineDashLengths Line dash configurationas NaN to use the legend’s default. + * + * \param formColor The color for drawing the form. + */ + @Generated + @Selector("initWithLabel:form:formSize:formLineWidth:formLineDashPhase:formLineDashLengths:formColor:") + public native ChartLegendEntry initWithLabelFormFormSizeFormLineWidthFormLineDashPhaseFormLineDashLengthsFormColor( + String label, @NInt long form, @NFloat double formSize, @NFloat double formLineWidth, + @NFloat double formLineDashPhase, NSArray formLineDashLengths, UIColor formColor); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + /** + * The legend entry text. + * A nil label will start a group. + */ + @Generated + @Selector("label") + public native String label(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * The form to draw for this entry. + * None will avoid drawing a form, and any related space. + * Empty will avoid drawing a form, but keep its space. + * Default will use the Legend’s default. + */ + @Generated + @Selector("setForm:") + public native void setForm(@NInt long value); + + /** + * The color for drawing the form + */ + @Generated + @Selector("setFormColor:") + public native void setFormColor(UIColor value); + + /** + * Line dash configuration for shapes that consist of lines. + * This is the actual dash pattern. + * I.e. [2, 3] will paint [– – ] + * [1, 3, 4, 2] will paint [- –– - –– ] + * Set to nil to use the legend’s default. + */ + @Generated + @Selector("setFormLineDashLengths:") + public native void setFormLineDashLengths(NSArray value); + + /** + * Line dash configuration for shapes that consist of lines. + * This is how much (in pixels) into the dash pattern are we starting from. + * Set to NaN to use the legend’s default. + */ + @Generated + @Selector("setFormLineDashPhase:") + public native void setFormLineDashPhase(@NFloat double value); + + /** + * Line width used for shapes that consist of lines. + * Set to NaN to use the legend’s default. + */ + @Generated + @Selector("setFormLineWidth:") + public native void setFormLineWidth(@NFloat double value); + + /** + * Form size will be considered except for when .None is used + * Set as NaN to use the legend’s default + */ + @Generated + @Selector("setFormSize:") + public native void setFormSize(@NFloat double value); + + /** + * The legend entry text. + * A nil label will start a group. + */ + @Generated + @Selector("setLabel:") + public native void setLabel(String value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLegendRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLegendRenderer.java index 4ff5f311..1af20532 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLegendRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLegendRenderer.java @@ -33,167 +33,163 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartLegendRenderer extends ChartRenderer { - static { - NatJ.register(); - } - - @Generated - protected ChartLegendRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartLegendRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("computeLegendWithData:") - public native void computeLegendWithData(ChartData data); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawFormWithContext:x:y:entry:legend:") - public native void drawFormWithContextXYEntryLegend(CGContextRef context, - @NFloat double x, @NFloat double y, ChartLegendEntry entry, - ChartLegend legend); - - @Generated - @Selector("drawLabelWithContext:x:y:label:font:textColor:") - public native void drawLabelWithContextXYLabelFontTextColor( - CGContextRef context, @NFloat double x, @NFloat double y, - String label, UIFont font, UIColor textColor); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartLegendRenderer init(); - - @Generated - @Selector("initWithViewPortHandler:") - public native ChartLegendRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:legend:") - public native ChartLegendRenderer initWithViewPortHandlerLegend( - ChartViewPortHandler viewPortHandler, ChartLegend legend); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("legend") - public native ChartLegend legend(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("renderLegendWithContext:") - public native void renderLegendWithContext(CGContextRef context); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setLegend:") - public native void setLegend(ChartLegend value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartLegendRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartLegendRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + /** + * Prepares the legend and calculates all needed forms, labels and colors. + */ + @Generated + @Selector("computeLegendWithData:") + public native void computeLegendWithData(ChartData data); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * Draws the Legend-form at the given position with the color at the given index. + */ + @Generated + @Selector("drawFormWithContext:x:y:entry:legend:") + public native void drawFormWithContextXYEntryLegend(CGContextRef context, @NFloat double x, @NFloat double y, + ChartLegendEntry entry, ChartLegend legend); + + /** + * Draws the provided label at the given position. + */ + @Generated + @Selector("drawLabelWithContext:x:y:label:font:textColor:") + public native void drawLabelWithContextXYLabelFontTextColor(CGContextRef context, @NFloat double x, + @NFloat double y, String label, UIFont font, UIColor textColor); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartLegendRenderer init(); + + @Generated + @Selector("initWithViewPortHandler:") + public native ChartLegendRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:legend:") + public native ChartLegendRenderer initWithViewPortHandlerLegend(ChartViewPortHandler viewPortHandler, + ChartLegend legend); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + /** + * the legend object this renderer renders + */ + @Generated + @Selector("legend") + public native ChartLegend legend(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("renderLegendWithContext:") + public native void renderLegendWithContext(CGContextRef context); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * the legend object this renderer renders + */ + @Generated + @Selector("setLegend:") + public native void setLegend(ChartLegend value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLimitLine.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLimitLine.java index b5c53aad..e0a5e889 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLimitLine.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartLimitLine.java @@ -29,226 +29,226 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +/** + * The limit line is an additional feature for all Line, Bar and ScatterCharts. + * It allows the displaying of an additional line in the chart that marks a certain maximum / limit on the specified axis (x- or y-axis). + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts14ChartLimitLine") @ObjCClassBinding public class ChartLimitLine extends ChartComponentBase { - static { - NatJ.register(); - } - - @Generated - protected ChartLimitLine(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartLimitLine alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawLabelEnabled") - public native boolean drawLabelEnabled(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartLimitLine init(); - - @Generated - @Selector("initWithLimit:") - public native ChartLimitLine initWithLimit(double limit); - - @Generated - @Selector("initWithLimit:label:") - public native ChartLimitLine initWithLimitLabel(double limit, String label); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("label") - public native String label(); - - @Generated - @Selector("labelPosition") - @NInt - public native long labelPosition(); - - @Generated - @Selector("limit") - public native double limit(); - - @Generated - @Selector("lineColor") - public native UIColor lineColor(); - - @Generated - @Selector("lineDashLengths") - public native NSArray lineDashLengths(); - - @Generated - @Selector("lineDashPhase") - @NFloat - public native double lineDashPhase(); - - @Generated - @Selector("lineWidth") - @NFloat - public native double lineWidth(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setDrawLabelEnabled:") - public native void setDrawLabelEnabled(boolean value); - - @Generated - @Selector("setLabel:") - public native void setLabel(String value); - - @Generated - @Selector("setLabelPosition:") - public native void setLabelPosition(@NInt long value); - - @Generated - @Selector("setLimit:") - public native void setLimit(double value); - - @Generated - @Selector("setLineColor:") - public native void setLineColor(UIColor value); - - @Generated - @Selector("setLineDashLengths:") - public native void setLineDashLengths(NSArray value); - - @Generated - @Selector("setLineDashPhase:") - public native void setLineDashPhase(@NFloat double value); - - @Generated - @Selector("setLineWidth:") - public native void setLineWidth(@NFloat double value); - - @Generated - @Selector("setValueFont:") - public native void setValueFont(UIFont value); - - @Generated - @Selector("setValueTextColor:") - public native void setValueTextColor(UIColor value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("valueFont") - public native UIFont valueFont(); - - @Generated - @Selector("valueTextColor") - public native UIColor valueTextColor(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartLimitLine(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartLimitLine alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawLabelEnabled") + public native boolean drawLabelEnabled(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartLimitLine init(); + + @Generated + @Selector("initWithLimit:") + public native ChartLimitLine initWithLimit(double limit); + + @Generated + @Selector("initWithLimit:label:") + public native ChartLimitLine initWithLimitLabel(double limit, String label); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("label") + public native String label(); + + @Generated + @Selector("labelPosition") + @NInt + public native long labelPosition(); + + /** + * limit / maximum (the y-value or xIndex) + */ + @Generated + @Selector("limit") + public native double limit(); + + @Generated + @Selector("lineColor") + public native UIColor lineColor(); + + @Generated + @Selector("lineDashLengths") + public native NSArray lineDashLengths(); + + @Generated + @Selector("lineDashPhase") + @NFloat + public native double lineDashPhase(); + + /** + * set the line width of the chart (min = 0.2, max = 12); default 2 + */ + @Generated + @Selector("lineWidth") + @NFloat + public native double lineWidth(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setDrawLabelEnabled:") + public native void setDrawLabelEnabled(boolean value); + + @Generated + @Selector("setLabel:") + public native void setLabel(String value); + + @Generated + @Selector("setLabelPosition:") + public native void setLabelPosition(@NInt long value); + + /** + * limit / maximum (the y-value or xIndex) + */ + @Generated + @Selector("setLimit:") + public native void setLimit(double value); + + @Generated + @Selector("setLineColor:") + public native void setLineColor(UIColor value); + + @Generated + @Selector("setLineDashLengths:") + public native void setLineDashLengths(NSArray value); + + @Generated + @Selector("setLineDashPhase:") + public native void setLineDashPhase(@NFloat double value); + + /** + * set the line width of the chart (min = 0.2, max = 12); default 2 + */ + @Generated + @Selector("setLineWidth:") + public native void setLineWidth(@NFloat double value); + + @Generated + @Selector("setValueFont:") + public native void setValueFont(UIFont value); + + @Generated + @Selector("setValueTextColor:") + public native void setValueTextColor(UIColor value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("valueFont") + public native UIFont valueFont(); + + @Generated + @Selector("valueTextColor") + public native UIColor valueTextColor(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartMarkerImage.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartMarkerImage.java index 58d73400..1b121880 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartMarkerImage.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartMarkerImage.java @@ -35,190 +35,184 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartMarkerImage extends NSObject implements IChartMarker { - static { - NatJ.register(); - } - - @Generated - protected ChartMarkerImage(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartMarkerImage alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("chartView") - public native ChartViewBase chartView(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawWithContext:point:") - public native void drawWithContextPoint(CGContextRef context, - @ByValue CGPoint point); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("image") - public native UIImage image(); - - @Generated - @Selector("init") - public native ChartMarkerImage init(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("offset") - @ByValue - public native CGPoint offset(); - - @Generated - @Selector("offsetForDrawingAtPoint:") - @ByValue - public native CGPoint offsetForDrawingAtPoint(@ByValue CGPoint point); - - @Generated - @Selector("refreshContentWithEntry:highlight:") - public native void refreshContentWithEntryHighlight(ChartDataEntry entry, - ChartHighlight highlight); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setChartView:") - public native void setChartView_unsafe(ChartViewBase value); - - @Generated - public void setChartView(ChartViewBase value) { - Object __old = chartView(); - if (value != null) { - org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); - } - setChartView_unsafe(value); - if (__old != null) { - org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); - } - } - - @Generated - @Selector("setImage:") - public native void setImage(UIImage value); - - @Generated - @Selector("setOffset:") - public native void setOffset(@ByValue CGPoint value); - - @Generated - @Selector("setSize:") - public native void setSize(@ByValue CGSize value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("size") - @ByValue - public native CGSize size(); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartMarkerImage(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartMarkerImage alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("chartView") + public native ChartViewBase chartView(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawWithContext:point:") + public native void drawWithContextPoint(CGContextRef context, @ByValue CGPoint point); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + /** + * The marker image to render + */ + @Generated + @Selector("image") + public native UIImage image(); + + @Generated + @Selector("init") + public native ChartMarkerImage init(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("offset") + @ByValue + public native CGPoint offset(); + + @Generated + @Selector("offsetForDrawingAtPoint:") + @ByValue + public native CGPoint offsetForDrawingAtPoint(@ByValue CGPoint point); + + @Generated + @Selector("refreshContentWithEntry:highlight:") + public native void refreshContentWithEntryHighlight(ChartDataEntry entry, ChartHighlight highlight); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setChartView:") + public native void setChartView_unsafe(ChartViewBase value); + + @Generated + public void setChartView(ChartViewBase value) { + Object __old = chartView(); + if (value != null) { + org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); + } + setChartView_unsafe(value); + if (__old != null) { + org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); + } + } + + /** + * The marker image to render + */ + @Generated + @Selector("setImage:") + public native void setImage(UIImage value); + + @Generated + @Selector("setOffset:") + public native void setOffset(@ByValue CGPoint value); + + /** + * As long as size is 0.0/0.0 - it will default to the image’s size + */ + @Generated + @Selector("setSize:") + public native void setSize(@ByValue CGSize value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + /** + * As long as size is 0.0/0.0 - it will default to the image’s size + */ + @Generated + @Selector("size") + @ByValue + public native CGSize size(); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartMarkerView.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartMarkerView.java index 4da53acd..5d1be91f 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartMarkerView.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartMarkerView.java @@ -6,12 +6,14 @@ import apple.coregraphics.struct.CGPoint; import apple.coregraphics.struct.CGRect; import apple.foundation.NSArray; +import apple.foundation.NSBundle; import apple.foundation.NSCoder; import apple.foundation.NSDate; import apple.foundation.NSMethodSignature; import apple.foundation.NSSet; import apple.uikit.UITraitCollection; import apple.uikit.UIView; +import apple.uikit.protocol.UIAppearanceContainer; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.c.ann.Variadic; import org.moe.natj.general.NatJ; @@ -42,454 +44,426 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartMarkerView extends NSUIView implements IChartMarker { - static { - NatJ.register(); - } - - @Generated - protected ChartMarkerView(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") - public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( - double frameStartTime, - double frameDuration, - @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); - - @Generated - @Owned - @Selector("alloc") - public static native ChartMarkerView alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") - public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:animations:") - public static native void animateWithDurationAnimations( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); - - @Generated - @Selector("animateWithDuration:animations:completion:") - public static native void animateWithDurationAnimationsCompletion( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); - - @Generated - @Selector("animateWithDuration:delay:options:animations:completion:") - public static native void animateWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") - public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( - double duration, - double delay, - @NFloat double dampingRatio, - @NFloat double velocity, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); - - @Generated - @Selector("appearance") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearance(); - - @Generated - @ProtocolClassMethod("appearance") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearance() { - return appearance(); - } - - @Generated - @Selector("appearanceForTraitCollection:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollection( - UITraitCollection trait); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollection") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollection(UITraitCollection trait) { - return appearanceForTraitCollection(trait); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceForTraitCollection:whenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceForTraitCollectionWhenContainedIn(trait, - ContainerClass, varargs); - } - - @Generated - @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes) { - return appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - trait, containerTypes); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceWhenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceWhenContainedIn(ContainerClass, varargs); - } - - @Generated - @Selector("appearanceWhenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes) { - return appearanceWhenContainedInInstancesOfClasses(containerTypes); - } - - @Generated - @Selector("areAnimationsEnabled") - public static native boolean areAnimationsEnabled(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("beginAnimations:context:") - public static native void beginAnimationsContext(String animationID, - VoidPtr context); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("chartView") - public native ChartViewBase chartView(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clearTextInputContextIdentifier:") - public static native void clearTextInputContextIdentifier(String identifier); - - @Generated - @Selector("commitAnimations") - public static native void commitAnimations(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawWithContext:point:") - public native void drawWithContextPoint(CGContextRef context, - @ByValue CGPoint point); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("inheritedAnimationDuration") - public static native double inheritedAnimationDuration(); - - @Generated - @Selector("init") - public native ChartMarkerView init(); - - @Generated - @Selector("initWithCoder:") - public native ChartMarkerView initWithCoder(NSCoder aDecoder); - - @Generated - @Selector("initWithFrame:") - public native ChartMarkerView initWithFrame(@ByValue CGRect frame); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("layerClass") - public static native Class layerClass(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("offset") - @ByValue - public native CGPoint offset(); - - @Generated - @Selector("offsetForDrawingAtPoint:") - @ByValue - public native CGPoint offsetForDrawingAtPoint(@ByValue CGPoint point); - - @Generated - @Selector("performSystemAnimation:onViews:options:animations:completion:") - public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( - @NUInt long animation, - NSArray views, - @NUInt long options, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("performWithoutAnimation:") - public static native void performWithoutAnimation( - @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); - - @Generated - @Selector("refreshContentWithEntry:highlight:") - public native void refreshContentWithEntryHighlight(ChartDataEntry entry, - ChartHighlight highlight); - - @Generated - @Selector("requiresConstraintBasedLayout") - public static native boolean requiresConstraintBasedLayout(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setAnimationBeginsFromCurrentState:") - public static native void setAnimationBeginsFromCurrentState( - boolean fromCurrentState); - - @Generated - @Selector("setAnimationCurve:") - public static native void setAnimationCurve(@NInt long curve); - - @Generated - @Selector("setAnimationDelay:") - public static native void setAnimationDelay(double delay); - - @Generated - @Selector("setAnimationDelegate:") - public static native void setAnimationDelegate( - @Mapped(ObjCObjectMapper.class) Object delegate); - - @Generated - @Selector("setAnimationDidStopSelector:") - public static native void setAnimationDidStopSelector(SEL selector); - - @Generated - @Selector("setAnimationDuration:") - public static native void setAnimationDuration_static(double duration); - - @Generated - @Selector("setAnimationRepeatAutoreverses:") - public static native void setAnimationRepeatAutoreverses( - boolean repeatAutoreverses); - - @Generated - @Selector("setAnimationRepeatCount:") - public static native void setAnimationRepeatCount_static(float repeatCount); - - @Generated - @Selector("setAnimationStartDate:") - public static native void setAnimationStartDate(NSDate startDate); - - @Generated - @Selector("setAnimationTransition:forView:cache:") - public static native void setAnimationTransitionForViewCache( - @NInt long transition, UIView view, boolean cache); - - @Generated - @Selector("setAnimationWillStartSelector:") - public static native void setAnimationWillStartSelector(SEL selector); - - @Generated - @Selector("setAnimationsEnabled:") - public static native void setAnimationsEnabled(boolean enabled); - - @Generated - @Selector("setChartView:") - public native void setChartView_unsafe(ChartViewBase value); - - @Generated - public void setChartView(ChartViewBase value) { - Object __old = chartView(); - if (value != null) { - org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); - } - setChartView_unsafe(value); - if (__old != null) { - org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); - } - } - - @Generated - @Selector("setOffset:") - public native void setOffset(@ByValue CGPoint value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transitionFromView:toView:duration:options:completion:") - public static native void transitionFromViewToViewDurationOptionsCompletion( - UIView fromView, - UIView toView, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); - - @Generated - @Selector("transitionWithView:duration:options:animations:completion:") - public static native void transitionWithViewDurationOptionsAnimationsCompletion( - UIView view, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttribute( - @NInt long attribute); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( - @NInt long semanticContentAttribute, @NInt long layoutDirection); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("viewFromXib") - public static native ChartMarkerView viewFromXib(); + static { + NatJ.register(); + } + + @Generated + protected ChartMarkerView(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") + public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( + double frameStartTime, + double frameDuration, + @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); + + @Generated + @Owned + @Selector("alloc") + public static native ChartMarkerView alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") + public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:animations:") + public static native void animateWithDurationAnimations( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); + + @Generated + @Selector("animateWithDuration:animations:completion:") + public static native void animateWithDurationAnimationsCompletion( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); + + @Generated + @Selector("animateWithDuration:delay:options:animations:completion:") + public static native void animateWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") + public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( + double duration, + double delay, + @NFloat double dampingRatio, + @NFloat double velocity, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); + + @Generated + @Selector("appearance") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearance(); + + @Generated + @ProtocolClassMethod("appearance") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearance() { + return appearance(); + } + + @Generated + @Selector("appearanceForTraitCollection:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollection(UITraitCollection trait); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollection") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollection(UITraitCollection trait) { + return appearanceForTraitCollection(trait); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceForTraitCollection:whenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs) { + return appearanceForTraitCollectionWhenContainedIn(trait, ContainerClass, varargs); + } + + @Generated + @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes) { + return appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait, containerTypes); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceWhenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedIn( + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedIn(@Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, + Object... varargs) { + return appearanceWhenContainedIn(ContainerClass, varargs); + } + + @Generated + @Selector("appearanceWhenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes) { + return appearanceWhenContainedInInstancesOfClasses(containerTypes); + } + + @Generated + @Selector("areAnimationsEnabled") + public static native boolean areAnimationsEnabled(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("beginAnimations:context:") + public static native void beginAnimationsContext(String animationID, VoidPtr context); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("chartView") + public native ChartViewBase chartView(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clearTextInputContextIdentifier:") + public static native void clearTextInputContextIdentifier(String identifier); + + @Generated + @Selector("commitAnimations") + public static native void commitAnimations(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawWithContext:point:") + public native void drawWithContextPoint(CGContextRef context, @ByValue CGPoint point); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("inheritedAnimationDuration") + public static native double inheritedAnimationDuration(); + + @Generated + @Selector("init") + public native ChartMarkerView init(); + + @Generated + @Selector("initWithCoder:") + public native ChartMarkerView initWithCoder(NSCoder coder); + + @Generated + @Selector("initWithFrame:") + public native ChartMarkerView initWithFrame(@ByValue CGRect frame); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("layerClass") + public static native Class layerClass(); + + @Generated + @Selector("modifyAnimationsWithRepeatCount:autoreverses:animations:") + public static native void modifyAnimationsWithRepeatCountAutoreversesAnimations( + @NFloat double count, + boolean autoreverses, + @ObjCBlock(name = "call_modifyAnimationsWithRepeatCountAutoreversesAnimations") UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("offset") + @ByValue + public native CGPoint offset(); + + @Generated + @Selector("offsetForDrawingAtPoint:") + @ByValue + public native CGPoint offsetForDrawingAtPoint(@ByValue CGPoint point); + + @Generated + @Selector("performSystemAnimation:onViews:options:animations:completion:") + public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( + @NUInt long animation, + NSArray views, + @NUInt long options, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("performWithoutAnimation:") + public static native void performWithoutAnimation( + @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); + + @Generated + @Selector("refreshContentWithEntry:highlight:") + public native void refreshContentWithEntryHighlight(ChartDataEntry entry, ChartHighlight highlight); + + @Generated + @Selector("requiresConstraintBasedLayout") + public static native boolean requiresConstraintBasedLayout(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setAnimationBeginsFromCurrentState:") + public static native void setAnimationBeginsFromCurrentState(boolean fromCurrentState); + + @Generated + @Selector("setAnimationCurve:") + public static native void setAnimationCurve(@NInt long curve); + + @Generated + @Selector("setAnimationDelay:") + public static native void setAnimationDelay(double delay); + + @Generated + @Selector("setAnimationDelegate:") + public static native void setAnimationDelegate(@Mapped(ObjCObjectMapper.class) Object delegate); + + @Generated + @Selector("setAnimationDidStopSelector:") + public static native void setAnimationDidStopSelector(SEL selector); + + @Generated + @Selector("setAnimationDuration:") + public static native void setAnimationDuration_static(double duration); + + @Generated + @Selector("setAnimationRepeatAutoreverses:") + public static native void setAnimationRepeatAutoreverses(boolean repeatAutoreverses); + + @Generated + @Selector("setAnimationRepeatCount:") + public static native void setAnimationRepeatCount_static(float repeatCount); + + @Generated + @Selector("setAnimationStartDate:") + public static native void setAnimationStartDate(NSDate startDate); + + @Generated + @Selector("setAnimationTransition:forView:cache:") + public static native void setAnimationTransitionForViewCache(@NInt long transition, UIView view, boolean cache); + + @Generated + @Selector("setAnimationWillStartSelector:") + public static native void setAnimationWillStartSelector(SEL selector); + + @Generated + @Selector("setAnimationsEnabled:") + public static native void setAnimationsEnabled(boolean enabled); + + @Generated + @Selector("setChartView:") + public native void setChartView_unsafe(ChartViewBase value); + + @Generated + public void setChartView(ChartViewBase value) { + Object __old = chartView(); + if (value != null) { + org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); + } + setChartView_unsafe(value); + if (__old != null) { + org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); + } + } + + @Generated + @Selector("setOffset:") + public native void setOffset(@ByValue CGPoint value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("transitionFromView:toView:duration:options:completion:") + public static native void transitionFromViewToViewDurationOptionsCompletion( + UIView fromView, + UIView toView, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); + + @Generated + @Selector("transitionWithView:duration:options:animations:completion:") + public static native void transitionWithViewDurationOptionsAnimationsCompletion( + UIView view, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttribute(@NInt long attribute); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( + @NInt long semanticContentAttribute, @NInt long layoutDirection); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("viewFromXibIn:") + public static native ChartMarkerView viewFromXibIn(NSBundle bundle); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartRange.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartRange.java index 04b8b4c3..c8761421 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartRange.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartRange.java @@ -29,161 +29,152 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartRange extends NSObject { - static { - NatJ.register(); - } - - @Generated - protected ChartRange(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartRange alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("contains:") - public native boolean contains(double value); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("from") - public native double from(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartRange init(); - - @Generated - @Selector("initFrom:to:") - public native ChartRange initFromTo(double from, double to); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isLarger:") - public native boolean isLarger(double value); - - @Generated - @Selector("isSmaller:") - public native boolean isSmaller(double value); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setFrom:") - public native void setFrom(double value); - - @Generated - @Selector("setTo:") - public native void setTo(double value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("to") - public native double to(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartRange(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartRange alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + /** + * \param value + * + * + * returns: + * true if this range contains (if the value is in between) the given value, false ifnot. + */ + @Generated + @Selector("contains:") + public native boolean contains(double value); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("from") + public native double from(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartRange init(); + + @Generated + @Selector("initFrom:to:") + public native ChartRange initFromTo(double from, double to); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isLarger:") + public native boolean isLarger(double value); + + @Generated + @Selector("isSmaller:") + public native boolean isSmaller(double value); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setFrom:") + public native void setFrom(double value); + + @Generated + @Selector("setTo:") + public native void setTo(double value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("to") + public native double to(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartRenderer.java index 0854e22f..96bdf3ff 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartRenderer.java @@ -29,142 +29,124 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartRenderer extends NSObject { - static { - NatJ.register(); - } - - @Generated - protected ChartRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartRenderer init(); - - @Generated - @Selector("initWithViewPortHandler:") - public native ChartRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setViewPortHandler:") - public native void setViewPortHandler(ChartViewPortHandler value); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("viewPortHandler") - public native ChartViewPortHandler viewPortHandler(); + static { + NatJ.register(); + } + + @Generated + protected ChartRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartRenderer init(); + + @Generated + @Selector("initWithViewPortHandler:") + public native ChartRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * the component that handles the drawing area of the chart and it’s offsets + */ + @Generated + @Selector("viewPortHandler") + public native ChartViewPortHandler viewPortHandler(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartTransformer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartTransformer.java index 63b485f8..96561aff 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartTransformer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartTransformer.java @@ -28,175 +28,177 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +/** + * Transformer class that contains all matrices and is responsible for transforming values into pixels on the screen and backwards. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartTransformer extends NSObject { - static { - NatJ.register(); - } - - @Generated - protected ChartTransformer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartTransformer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartTransformer init(); - - @Generated - @Selector("initWithViewPortHandler:") - public native ChartTransformer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("pixelForValuesWithX:y:") - @ByValue - public native CGPoint pixelForValuesWithXY(double x, double y); - - @Generated - @Selector("pixelToValueMatrix") - @ByValue - public native CGAffineTransform pixelToValueMatrix(); - - @Generated - @Selector("prepareMatrixOffsetWithInverted:") - public native void prepareMatrixOffsetWithInverted(boolean inverted); - - @Generated - @Selector("prepareMatrixValuePxWithChartXMin:deltaX:deltaY:chartYMin:") - public native void prepareMatrixValuePxWithChartXMinDeltaXDeltaYChartYMin( - double chartXMin, @NFloat double deltaX, @NFloat double deltaY, - double chartYMin); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("valueForTouchPoint:") - @ByValue - public native CGPoint valueForTouchPoint(@ByValue CGPoint point); - - @Generated - @Selector("valueForTouchPointWithX:y:") - @ByValue - public native CGPoint valueForTouchPointWithXY(@NFloat double x, - @NFloat double y); - - @Generated - @Selector("valueToPixelMatrix") - @ByValue - public native CGAffineTransform valueToPixelMatrix(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartTransformer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartTransformer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartTransformer init(); + + @Generated + @Selector("initWithViewPortHandler:") + public native ChartTransformer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("pixelForValuesWithX:y:") + @ByValue + public native CGPoint pixelForValuesWithXY(double x, double y); + + @Generated + @Selector("pixelToValueMatrix") + @ByValue + public native CGAffineTransform pixelToValueMatrix(); + + /** + * Prepares the matrix that contains all offsets. + */ + @Generated + @Selector("prepareMatrixOffsetWithInverted:") + public native void prepareMatrixOffsetWithInverted(boolean inverted); + + /** + * Prepares the matrix that transforms values to pixels. Calculates the scale factors from the charts size and offsets. + */ + @Generated + @Selector("prepareMatrixValuePxWithChartXMin:deltaX:deltaY:chartYMin:") + public native void prepareMatrixValuePxWithChartXMinDeltaXDeltaYChartYMin(double chartXMin, @NFloat double deltaX, + @NFloat double deltaY, double chartYMin); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + /** + * returns: + * The x and y values in the chart at the given touch point + * (encapsulated in a CGPoint). This method transforms pixel coordinates to + * coordinates / values in the chart. + */ + @Generated + @Selector("valueForTouchPoint:") + @ByValue + public native CGPoint valueForTouchPoint(@ByValue CGPoint point); + + /** + * returns: + * The x and y values in the chart at the given touch point + * (x/y). This method transforms pixel coordinates to + * coordinates / values in the chart. + */ + @Generated + @Selector("valueForTouchPointWithX:y:") + @ByValue + public native CGPoint valueForTouchPointWithXY(@NFloat double x, @NFloat double y); + + @Generated + @Selector("valueToPixelMatrix") + @ByValue + public native CGAffineTransform valueToPixelMatrix(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartTransformerHorizontalBarChart.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartTransformerHorizontalBarChart.java index 3cd37a73..d9a5b44c 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartTransformerHorizontalBarChart.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartTransformerHorizontalBarChart.java @@ -29,138 +29,124 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartTransformerHorizontalBarChart extends ChartTransformer { - static { - NatJ.register(); - } - - @Generated - protected ChartTransformerHorizontalBarChart(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartTransformerHorizontalBarChart alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartTransformerHorizontalBarChart init(); - - @Generated - @Selector("initWithViewPortHandler:") - public native ChartTransformerHorizontalBarChart initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("prepareMatrixOffsetWithInverted:") - public native void prepareMatrixOffsetWithInverted(boolean inverted); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartTransformerHorizontalBarChart(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartTransformerHorizontalBarChart alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartTransformerHorizontalBarChart init(); + + @Generated + @Selector("initWithViewPortHandler:") + public native ChartTransformerHorizontalBarChart initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + /** + * Prepares the matrix that contains all offsets. + */ + @Generated + @Selector("prepareMatrixOffsetWithInverted:") + public native void prepareMatrixOffsetWithInverted(boolean inverted); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartViewBase.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartViewBase.java index 521117d2..7d0f38ff 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartViewBase.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartViewBase.java @@ -17,6 +17,7 @@ import apple.uikit.UITouch; import apple.uikit.UITraitCollection; import apple.uikit.UIView; +import apple.uikit.protocol.UIAppearanceContainer; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.c.ann.Variadic; import org.moe.natj.general.NatJ; @@ -52,916 +53,1193 @@ @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts13ChartViewBase") @ObjCClassBinding -public class ChartViewBase extends NSUIView implements ChartAnimatorDelegate, - ChartDataProvider { - static { - NatJ.register(); - } - - @Generated - protected ChartViewBase(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") - public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( - double frameStartTime, - double frameDuration, - @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); - - @Generated - @Selector("addViewportJob:") - public native void addViewportJob(ChartViewPortJob job); - - @Generated - @Owned - @Selector("alloc") - public static native ChartViewBase alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") - public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:animations:") - public static native void animateWithDurationAnimations( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); - - @Generated - @Selector("animateWithDuration:animations:completion:") - public static native void animateWithDurationAnimationsCompletion( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); - - @Generated - @Selector("animateWithDuration:delay:options:animations:completion:") - public static native void animateWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") - public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( - double duration, - double delay, - @NFloat double dampingRatio, - @NFloat double velocity, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); - - @Generated - @Selector("animateWithXAxisDuration:") - public native void animateWithXAxisDuration(double xAxisDuration); - - @Generated - @Selector("animateWithXAxisDuration:easing:") - public native void animateWithXAxisDurationEasing( - double xAxisDuration, - @ObjCBlock(name = "call_animateWithXAxisDurationEasing") Block_animateWithXAxisDurationEasing easing); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_animateWithXAxisDurationEasing { - @Generated - double call_animateWithXAxisDurationEasing(double arg0, double arg1); - } - - @Generated - @Selector("animateWithXAxisDuration:easingOption:") - public native void animateWithXAxisDurationEasingOption( - double xAxisDuration, @NInt long easingOption); - - @Generated - @Selector("animateWithXAxisDuration:yAxisDuration:") - public native void animateWithXAxisDurationYAxisDuration( - double xAxisDuration, double yAxisDuration); - - @Generated - @Selector("animateWithXAxisDuration:yAxisDuration:easing:") - public native void animateWithXAxisDurationYAxisDurationEasing( - double xAxisDuration, - double yAxisDuration, - @ObjCBlock(name = "call_animateWithXAxisDurationYAxisDurationEasing") Block_animateWithXAxisDurationYAxisDurationEasing easing); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_animateWithXAxisDurationYAxisDurationEasing { - @Generated - double call_animateWithXAxisDurationYAxisDurationEasing(double arg0, - double arg1); - } - - @Generated - @Selector("animateWithXAxisDuration:yAxisDuration:easingOption:") - public native void animateWithXAxisDurationYAxisDurationEasingOption( - double xAxisDuration, double yAxisDuration, @NInt long easingOption); - - @Generated - @Selector("animateWithXAxisDuration:yAxisDuration:easingOptionX:easingOptionY:") - public native void animateWithXAxisDurationYAxisDurationEasingOptionXEasingOptionY( - double xAxisDuration, double yAxisDuration, - @NInt long easingOptionX, @NInt long easingOptionY); - - @Generated - @Selector("animateWithXAxisDuration:yAxisDuration:easingX:easingY:") - public native void animateWithXAxisDurationYAxisDurationEasingXEasingY( - double xAxisDuration, - double yAxisDuration, - @ObjCBlock(name = "call_animateWithXAxisDurationYAxisDurationEasingXEasingY_2") Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_2 easingX, - @ObjCBlock(name = "call_animateWithXAxisDurationYAxisDurationEasingXEasingY_3") Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_3 easingY); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_2 { - @Generated - double call_animateWithXAxisDurationYAxisDurationEasingXEasingY_2( - double arg0, double arg1); - } - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_3 { - @Generated - double call_animateWithXAxisDurationYAxisDurationEasingXEasingY_3( - double arg0, double arg1); - } - - @Generated - @Selector("animateWithYAxisDuration:") - public native void animateWithYAxisDuration(double yAxisDuration); - - @Generated - @Selector("animateWithYAxisDuration:easing:") - public native void animateWithYAxisDurationEasing( - double yAxisDuration, - @ObjCBlock(name = "call_animateWithYAxisDurationEasing") Block_animateWithYAxisDurationEasing easing); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_animateWithYAxisDurationEasing { - @Generated - double call_animateWithYAxisDurationEasing(double arg0, double arg1); - } - - @Generated - @Selector("animateWithYAxisDuration:easingOption:") - public native void animateWithYAxisDurationEasingOption( - double yAxisDuration, @NInt long easingOption); - - @Generated - @Selector("animatorStopped:") - public native void animatorStopped(ChartAnimator chartAnimator); - - @Generated - @Selector("animatorUpdated:") - public native void animatorUpdated(ChartAnimator chartAnimator); - - @Generated - @Selector("appearance") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearance(); - - @Generated - @ProtocolClassMethod("appearance") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearance() { - return appearance(); - } - - @Generated - @Selector("appearanceForTraitCollection:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollection( - UITraitCollection trait); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollection") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollection(UITraitCollection trait) { - return appearanceForTraitCollection(trait); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceForTraitCollection:whenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceForTraitCollectionWhenContainedIn(trait, - ContainerClass, varargs); - } - - @Generated - @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes) { - return appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - trait, containerTypes); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceWhenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceWhenContainedIn(ContainerClass, varargs); - } - - @Generated - @Selector("appearanceWhenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes) { - return appearanceWhenContainedInInstancesOfClasses(containerTypes); - } - - @Generated - @Selector("areAnimationsEnabled") - public static native boolean areAnimationsEnabled(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("beginAnimations:context:") - public static native void beginAnimationsContext(String animationID, - VoidPtr context); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("centerOffsets") - @ByValue - public native CGPoint centerOffsets(); - - @Generated - @Selector("chartAnimator") - public native ChartAnimator chartAnimator(); - - @Generated - @Selector("chartDescription") - public native ChartDescription chartDescription(); - - @Generated - @Selector("chartXMax") - public native double chartXMax(); - - @Generated - @Selector("chartXMin") - public native double chartXMin(); - - @Generated - @Selector("chartYMax") - public native double chartYMax(); - - @Generated - @Selector("chartYMin") - public native double chartYMin(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clear") - public native void clear(); - - @Generated - @Selector("clearAllViewportJobs") - public native void clearAllViewportJobs(); - - @Generated - @Selector("clearTextInputContextIdentifier:") - public static native void clearTextInputContextIdentifier(String identifier); - - @Generated - @Selector("clearValues") - public native void clearValues(); - - @Generated - @Selector("commitAnimations") - public static native void commitAnimations(); - - @Generated - @Selector("contentRect") - @ByValue - public native CGRect contentRect(); - - @Generated - @Selector("data") - public native ChartData data(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("delegate") - @MappedReturn(ObjCObjectMapper.class) - public native ChartViewDelegate delegate(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("descriptionFont") - public native UIFont descriptionFont(); - - @Generated - @Selector("descriptionText") - public native String descriptionText(); - - @Generated - @Selector("descriptionTextAlign") - @NInt - public native long descriptionTextAlign(); - - @Generated - @Selector("descriptionTextColor") - public native UIColor descriptionTextColor(); - - @Generated - @Selector("dragDecelerationEnabled") - public native boolean dragDecelerationEnabled(); - - @Generated - @Selector("dragDecelerationFrictionCoef") - @NFloat - public native double dragDecelerationFrictionCoef(); - - @Generated - @Selector("drawMarkers") - public native boolean drawMarkers(); - - @Generated - @Selector("drawRect:") - public native void drawRect(@ByValue CGRect rect); - - @Generated - @Selector("extraBottomOffset") - @NFloat - public native double extraBottomOffset(); - - @Generated - @Selector("extraLeftOffset") - @NFloat - public native double extraLeftOffset(); - - @Generated - @Selector("extraRightOffset") - @NFloat - public native double extraRightOffset(); - - @Generated - @Selector("extraTopOffset") - @NFloat - public native double extraTopOffset(); - - @Generated - @Selector("getChartImageWithTransparent:") - public native UIImage getChartImageWithTransparent(boolean transparent); - - @Generated - @Selector("getHighlightByTouchPoint:") - public native ChartHighlight getHighlightByTouchPoint(@ByValue CGPoint pt); - - @Generated - @Selector("getMarkerPositionWithHighlight:") - @ByValue - public native CGPoint getMarkerPositionWithHighlight( - ChartHighlight highlight); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highlightPerTapEnabled") - public native boolean highlightPerTapEnabled(); - - @Generated - @Selector("highlightValue:") - public native void highlightValue(ChartHighlight highlight); - - @Generated - @Selector("highlightValue:callDelegate:") - public native void highlightValueCallDelegate(ChartHighlight highlight, - boolean callDelegate); - - @Generated - @Selector("highlightValueWithX:dataSetIndex:") - public native void highlightValueWithXDataSetIndex(double x, - @NInt long dataSetIndex); - - @Generated - @Selector("highlightValueWithX:dataSetIndex:callDelegate:") - public native void highlightValueWithXDataSetIndexCallDelegate(double x, - @NInt long dataSetIndex, boolean callDelegate); - - @Generated - @Selector("highlightValueWithX:y:dataSetIndex:") - public native void highlightValueWithXYDataSetIndex(double x, double y, - @NInt long dataSetIndex); - - @Generated - @Selector("highlightValueWithX:y:dataSetIndex:callDelegate:") - public native void highlightValueWithXYDataSetIndexCallDelegate(double x, - double y, @NInt long dataSetIndex, boolean callDelegate); - - @Generated - @Selector("highlightValues:") - public native void highlightValues(NSArray highs); - - @Generated - @Selector("highlighted") - public native NSArray highlighted(); - - @Generated - @Selector("highlighter") - @MappedReturn(ObjCObjectMapper.class) - public native IChartHighlighter highlighter(); - - @Generated - @Selector("inheritedAnimationDuration") - public static native double inheritedAnimationDuration(); - - @Generated - @Selector("init") - public native ChartViewBase init(); - - @Generated - @Selector("initWithCoder:") - public native ChartViewBase initWithCoder(NSCoder aDecoder); - - @Generated - @Selector("initWithFrame:") - public native ChartViewBase initWithFrame(@ByValue CGRect frame); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDragDecelerationEnabled") - public native boolean isDragDecelerationEnabled(); - - @Generated - @Selector("isDrawMarkersEnabled") - public native boolean isDrawMarkersEnabled(); - - @Generated - @Selector("isEmpty") - public native boolean isEmpty(); - - @Generated - @Selector("isHighLightPerTapEnabled") - public native boolean isHighLightPerTapEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("lastHighlighted") - public native ChartHighlight lastHighlighted(); - - @Generated - @Selector("layerClass") - public static native Class layerClass(); - - @Generated - @Selector("legend") - public native ChartLegend legend(); - - @Generated - @Selector("legendRenderer") - public native ChartLegendRenderer legendRenderer(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("marker") - @MappedReturn(ObjCObjectMapper.class) - public native IChartMarker marker(); - - @Generated - @Selector("maxHighlightDistance") - @NFloat - public native double maxHighlightDistance(); - - @Generated - @Selector("maxVisibleCount") - @NInt - public native long maxVisibleCount(); - - @Generated - @Selector("midPoint") - @ByValue - public native CGPoint midPoint(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("noDataFont") - public native UIFont noDataFont(); - - @Generated - @Selector("noDataText") - public native String noDataText(); - - @Generated - @Selector("noDataTextColor") - public native UIColor noDataTextColor(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("nsuiTouchesBegan:withEvent:") - public native void nsuiTouchesBeganWithEvent( - NSSet touches, UIEvent event); - - @Generated - @Selector("nsuiTouchesCancelled:withEvent:") - public native void nsuiTouchesCancelledWithEvent( - NSSet touches, UIEvent event); - - @Generated - @Selector("nsuiTouchesEnded:withEvent:") - public native void nsuiTouchesEndedWithEvent( - NSSet touches, UIEvent event); - - @Generated - @Selector("nsuiTouchesMoved:withEvent:") - public native void nsuiTouchesMovedWithEvent( - NSSet touches, UIEvent event); - - @Generated - @Selector("observeValueForKeyPath:ofObject:change:context:") - public native void observeValueForKeyPathOfObjectChangeContext( - String keyPath, @Mapped(ObjCObjectMapper.class) Object object, - NSDictionary change, VoidPtr context); - - @Generated - @Selector("performSystemAnimation:onViews:options:animations:completion:") - public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( - @NUInt long animation, - NSArray views, - @NUInt long options, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("performWithoutAnimation:") - public static native void performWithoutAnimation( - @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); - - @Generated - @Selector("removeViewportJob:") - public native void removeViewportJob(ChartViewPortJob job); - - @Generated - @Selector("renderer") - public native ChartDataRendererBase renderer(); - - @Generated - @Selector("requiresConstraintBasedLayout") - public static native boolean requiresConstraintBasedLayout(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setAnimationBeginsFromCurrentState:") - public static native void setAnimationBeginsFromCurrentState( - boolean fromCurrentState); - - @Generated - @Selector("setAnimationCurve:") - public static native void setAnimationCurve(@NInt long curve); - - @Generated - @Selector("setAnimationDelay:") - public static native void setAnimationDelay(double delay); - - @Generated - @Selector("setAnimationDelegate:") - public static native void setAnimationDelegate( - @Mapped(ObjCObjectMapper.class) Object delegate); - - @Generated - @Selector("setAnimationDidStopSelector:") - public static native void setAnimationDidStopSelector(SEL selector); - - @Generated - @Selector("setAnimationDuration:") - public static native void setAnimationDuration_static(double duration); - - @Generated - @Selector("setAnimationRepeatAutoreverses:") - public static native void setAnimationRepeatAutoreverses( - boolean repeatAutoreverses); - - @Generated - @Selector("setAnimationRepeatCount:") - public static native void setAnimationRepeatCount_static(float repeatCount); - - @Generated - @Selector("setAnimationStartDate:") - public static native void setAnimationStartDate(NSDate startDate); - - @Generated - @Selector("setAnimationTransition:forView:cache:") - public static native void setAnimationTransitionForViewCache( - @NInt long transition, UIView view, boolean cache); - - @Generated - @Selector("setAnimationWillStartSelector:") - public static native void setAnimationWillStartSelector(SEL selector); - - @Generated - @Selector("setAnimationsEnabled:") - public static native void setAnimationsEnabled(boolean enabled); - - @Generated - @Selector("setChartDescription:") - public native void setChartDescription(ChartDescription value); - - @Generated - @Selector("setData:") - public native void setData(ChartData value); - - @Generated - @Selector("setDelegate:") - public native void setDelegate_unsafe( - @Mapped(ObjCObjectMapper.class) ChartViewDelegate value); - - @Generated - public void setDelegate( - @Mapped(ObjCObjectMapper.class) ChartViewDelegate value) { - Object __old = delegate(); - if (value != null) { - org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); - } - setDelegate_unsafe(value); - if (__old != null) { - org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); - } - } - - @Generated - @Selector("setDescriptionFont:") - public native void setDescriptionFont(UIFont value); - - @Generated - @Selector("setDescriptionText:") - public native void setDescriptionText(String value); - - @Generated - @Selector("setDescriptionTextAlign:") - public native void setDescriptionTextAlign(@NInt long value); - - @Generated - @Selector("setDescriptionTextColor:") - public native void setDescriptionTextColor(UIColor value); - - @Generated - @Selector("setDragDecelerationEnabled:") - public native void setDragDecelerationEnabled(boolean value); - - @Generated - @Selector("setDragDecelerationFrictionCoef:") - public native void setDragDecelerationFrictionCoef(@NFloat double value); - - @Generated - @Selector("setDrawMarkers:") - public native void setDrawMarkers(boolean value); - - @Generated - @Selector("setExtraBottomOffset:") - public native void setExtraBottomOffset(@NFloat double value); - - @Generated - @Selector("setExtraLeftOffset:") - public native void setExtraLeftOffset(@NFloat double value); - - @Generated - @Selector("setExtraOffsetsWithLeft:top:right:bottom:") - public native void setExtraOffsetsWithLeftTopRightBottom( - @NFloat double left, @NFloat double top, @NFloat double right, - @NFloat double bottom); - - @Generated - @Selector("setExtraRightOffset:") - public native void setExtraRightOffset(@NFloat double value); - - @Generated - @Selector("setExtraTopOffset:") - public native void setExtraTopOffset(@NFloat double value); - - @Generated - @Selector("setHighlightPerTapEnabled:") - public native void setHighlightPerTapEnabled(boolean value); - - @Generated - @Selector("setHighlighter:") - public native void setHighlighter( - @Mapped(ObjCObjectMapper.class) IChartHighlighter value); - - @Generated - @Selector("setLastHighlighted:") - public native void setLastHighlighted(ChartHighlight value); - - @Generated - @Selector("setMarker:") - public native void setMarker( - @Mapped(ObjCObjectMapper.class) IChartMarker value); - - @Generated - @Selector("setMaxHighlightDistance:") - public native void setMaxHighlightDistance(@NFloat double value); - - @Generated - @Selector("setNoDataFont:") - public native void setNoDataFont(UIFont value); - - @Generated - @Selector("setNoDataText:") - public native void setNoDataText(String value); - - @Generated - @Selector("setNoDataTextColor:") - public native void setNoDataTextColor(UIColor value); - - @Generated - @Selector("setRenderer:") - public native void setRenderer(ChartDataRendererBase value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transitionFromView:toView:duration:options:completion:") - public static native void transitionFromViewToViewDurationOptionsCompletion( - UIView fromView, - UIView toView, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); - - @Generated - @Selector("transitionWithView:duration:options:animations:completion:") - public static native void transitionWithViewDurationOptionsAnimationsCompletion( - UIView view, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttribute( - @NInt long attribute); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( - @NInt long semanticContentAttribute, @NInt long layoutDirection); - - @Generated - @Selector("valuesToHighlight") - public native boolean valuesToHighlight(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("viewPortHandler") - public native ChartViewPortHandler viewPortHandler(); - - @Generated - @Selector("xAxis") - public native ChartXAxis xAxis(); - - @Generated - @Selector("xRange") - public native double xRange(); +public class ChartViewBase extends NSUIView implements ChartAnimatorDelegate, ChartDataProvider { + static { + NatJ.register(); + } + + @Generated + protected ChartViewBase(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("accessibilityChildren") + public native NSArray accessibilityChildren(); + + @Generated + @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") + public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( + double frameStartTime, + double frameDuration, + @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); + + @Generated + @Selector("addViewportJob:") + public native void addViewportJob(ChartViewPortJob job); + + @Generated + @Owned + @Selector("alloc") + public static native ChartViewBase alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") + public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:animations:") + public static native void animateWithDurationAnimations( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); + + @Generated + @Selector("animateWithDuration:animations:completion:") + public static native void animateWithDurationAnimationsCompletion( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); + + @Generated + @Selector("animateWithDuration:delay:options:animations:completion:") + public static native void animateWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") + public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( + double duration, + double delay, + @NFloat double dampingRatio, + @NFloat double velocity, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); + + /** + * Animates the drawing / rendering of the chart the x-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param xAxisDuration duration for animating the x axis + */ + @Generated + @Selector("animateWithXAxisDuration:") + public native void animateWithXAxisDuration(double xAxisDuration); + + /** + * Animates the drawing / rendering of the chart the x-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param xAxisDuration duration for animating the x axis + * + * \param easing an easing function for the animation + */ + @Generated + @Selector("animateWithXAxisDuration:easing:") + public native void animateWithXAxisDurationEasing(double xAxisDuration, + @ObjCBlock(name = "call_animateWithXAxisDurationEasing") Block_animateWithXAxisDurationEasing easing); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_animateWithXAxisDurationEasing { + @Generated + double call_animateWithXAxisDurationEasing(double arg0, double arg1); + } + + /** + * Animates the drawing / rendering of the chart the x-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param xAxisDuration duration for animating the x axis + * + * \param easingOption the easing function for the animation + */ + @Generated + @Selector("animateWithXAxisDuration:easingOption:") + public native void animateWithXAxisDurationEasingOption(double xAxisDuration, @NInt long easingOption); + + /** + * Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param xAxisDuration duration for animating the x axis + * + * \param yAxisDuration duration for animating the y axis + */ + @Generated + @Selector("animateWithXAxisDuration:yAxisDuration:") + public native void animateWithXAxisDurationYAxisDuration(double xAxisDuration, double yAxisDuration); + + /** + * Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param xAxisDuration duration for animating the x axis + * + * \param yAxisDuration duration for animating the y axis + * + * \param easing an easing function for the animation + */ + @Generated + @Selector("animateWithXAxisDuration:yAxisDuration:easing:") + public native void animateWithXAxisDurationYAxisDurationEasing( + double xAxisDuration, + double yAxisDuration, + @ObjCBlock(name = "call_animateWithXAxisDurationYAxisDurationEasing") Block_animateWithXAxisDurationYAxisDurationEasing easing); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_animateWithXAxisDurationYAxisDurationEasing { + @Generated + double call_animateWithXAxisDurationYAxisDurationEasing(double arg0, double arg1); + } + + /** + * Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param xAxisDuration duration for animating the x axis + * + * \param yAxisDuration duration for animating the y axis + * + * \param easingOption the easing function for the animation + */ + @Generated + @Selector("animateWithXAxisDuration:yAxisDuration:easingOption:") + public native void animateWithXAxisDurationYAxisDurationEasingOption(double xAxisDuration, double yAxisDuration, + @NInt long easingOption); + + /** + * Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param xAxisDuration duration for animating the x axis + * + * \param yAxisDuration duration for animating the y axis + * + * \param easingOptionX the easing function for the animation on the x axis + * + * \param easingOptionY the easing function for the animation on the y axis + */ + @Generated + @Selector("animateWithXAxisDuration:yAxisDuration:easingOptionX:easingOptionY:") + public native void animateWithXAxisDurationYAxisDurationEasingOptionXEasingOptionY(double xAxisDuration, + double yAxisDuration, @NInt long easingOptionX, @NInt long easingOptionY); + + /** + * Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param xAxisDuration duration for animating the x axis + * + * \param yAxisDuration duration for animating the y axis + * + * \param easingX an easing function for the animation on the x axis + * + * \param easingY an easing function for the animation on the y axis + */ + @Generated + @Selector("animateWithXAxisDuration:yAxisDuration:easingX:easingY:") + public native void animateWithXAxisDurationYAxisDurationEasingXEasingY( + double xAxisDuration, + double yAxisDuration, + @ObjCBlock(name = "call_animateWithXAxisDurationYAxisDurationEasingXEasingY_2") Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_2 easingX, + @ObjCBlock(name = "call_animateWithXAxisDurationYAxisDurationEasingXEasingY_3") Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_3 easingY); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_2 { + @Generated + double call_animateWithXAxisDurationYAxisDurationEasingXEasingY_2(double arg0, double arg1); + } + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_animateWithXAxisDurationYAxisDurationEasingXEasingY_3 { + @Generated + double call_animateWithXAxisDurationYAxisDurationEasingXEasingY_3(double arg0, double arg1); + } + + /** + * Animates the drawing / rendering of the chart the y-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param yAxisDuration duration for animating the y axis + */ + @Generated + @Selector("animateWithYAxisDuration:") + public native void animateWithYAxisDuration(double yAxisDuration); + + /** + * Animates the drawing / rendering of the chart the y-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param yAxisDuration duration for animating the y axis + * + * \param easing an easing function for the animation + */ + @Generated + @Selector("animateWithYAxisDuration:easing:") + public native void animateWithYAxisDurationEasing(double yAxisDuration, + @ObjCBlock(name = "call_animateWithYAxisDurationEasing") Block_animateWithYAxisDurationEasing easing); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_animateWithYAxisDurationEasing { + @Generated + double call_animateWithYAxisDurationEasing(double arg0, double arg1); + } + + /** + * Animates the drawing / rendering of the chart the y-axis with the specified animation time. + * If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. + * \param yAxisDuration duration for animating the y axis + * + * \param easingOption the easing function for the animation + */ + @Generated + @Selector("animateWithYAxisDuration:easingOption:") + public native void animateWithYAxisDurationEasingOption(double yAxisDuration, @NInt long easingOption); + + @Generated + @Selector("animatorStopped:") + public native void animatorStopped(ChartAnimator chartAnimator); + + @Generated + @Selector("animatorUpdated:") + public native void animatorUpdated(ChartAnimator chartAnimator); + + @Generated + @Selector("appearance") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearance(); + + @Generated + @ProtocolClassMethod("appearance") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearance() { + return appearance(); + } + + @Generated + @Selector("appearanceForTraitCollection:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollection(UITraitCollection trait); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollection") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollection(UITraitCollection trait) { + return appearanceForTraitCollection(trait); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceForTraitCollection:whenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs) { + return appearanceForTraitCollectionWhenContainedIn(trait, ContainerClass, varargs); + } + + @Generated + @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes) { + return appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait, containerTypes); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceWhenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedIn( + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedIn(@Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, + Object... varargs) { + return appearanceWhenContainedIn(ContainerClass, varargs); + } + + @Generated + @Selector("appearanceWhenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes) { + return appearanceWhenContainedInInstancesOfClasses(containerTypes); + } + + @Generated + @Selector("areAnimationsEnabled") + public static native boolean areAnimationsEnabled(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("beginAnimations:context:") + public static native void beginAnimationsContext(String animationID, VoidPtr context); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("centerOffsets") + @ByValue + public native CGPoint centerOffsets(); + + /** + * The animator responsible for animating chart values. + */ + @Generated + @Selector("chartAnimator") + public native ChartAnimator chartAnimator(); + + /** + * The Description object of the chart. + * This should have been called just “description”, but + */ + @Generated + @Selector("chartDescription") + public native ChartDescription chartDescription(); + + @Generated + @Selector("chartXMax") + public native double chartXMax(); + + @Generated + @Selector("chartXMin") + public native double chartXMin(); + + @Generated + @Selector("chartYMax") + public native double chartYMax(); + + @Generated + @Selector("chartYMin") + public native double chartYMin(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + /** + * Clears the chart from all data (sets it to null) and refreshes it (by calling setNeedsDisplay()). + */ + @Generated + @Selector("clear") + public native void clear(); + + @Generated + @Selector("clearAllViewportJobs") + public native void clearAllViewportJobs(); + + @Generated + @Selector("clearTextInputContextIdentifier:") + public static native void clearTextInputContextIdentifier(String identifier); + + /** + * Removes all DataSets (and thereby Entries) from the chart. Does not set the data object to nil. Also refreshes the chart by calling setNeedsDisplay(). + */ + @Generated + @Selector("clearValues") + public native void clearValues(); + + @Generated + @Selector("commitAnimations") + public static native void commitAnimations(); + + /** + * The rectangle that defines the borders of the chart-value surface (into which the actual values are drawn). + */ + @Generated + @Selector("contentRect") + @ByValue + public native CGRect contentRect(); + + @Generated + @Selector("data") + public native ChartData data(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + /** + * delegate to receive chart events + */ + @Generated + @Selector("delegate") + @MappedReturn(ObjCObjectMapper.class) + public native ChartViewDelegate delegate(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * If set to true, chart continues to scroll after touch up + */ + @Generated + @Selector("dragDecelerationEnabled") + public native boolean dragDecelerationEnabled(); + + /** + * Deceleration friction coefficient in [0 ; 1] interval, higher values indicate that speed will decrease slowly, for example if it set to 0, it will stop immediately. + * 1 is an invalid value, and will be converted to 0.999 automatically. + * default: true + */ + @Generated + @Selector("dragDecelerationFrictionCoef") + @NFloat + public native double dragDecelerationFrictionCoef(); + + /** + * true if drawing the marker is enabled when tapping on values + * (use the marker property to specify a marker) + */ + @Generated + @Selector("drawMarkers") + public native boolean drawMarkers(); + + @Generated + @Selector("drawRect:") + public native void drawRect(@ByValue CGRect rect); + + /** + * An extra offset to be appended to the viewport’s bottom + */ + @Generated + @Selector("extraBottomOffset") + @NFloat + public native double extraBottomOffset(); + + /** + * An extra offset to be appended to the viewport’s left + */ + @Generated + @Selector("extraLeftOffset") + @NFloat + public native double extraLeftOffset(); + + /** + * An extra offset to be appended to the viewport’s right + */ + @Generated + @Selector("extraRightOffset") + @NFloat + public native double extraRightOffset(); + + /** + * An extra offset to be appended to the viewport’s top + */ + @Generated + @Selector("extraTopOffset") + @NFloat + public native double extraTopOffset(); + + /** + * returns: + * The bitmap that represents the chart. + */ + @Generated + @Selector("getChartImageWithTransparent:") + public native UIImage getChartImageWithTransparent(boolean transparent); + + /** + * returns: + * The Highlight object (contains x-index and DataSet index) of the + * selected value at the given touch point inside the Line-, Scatter-, or + * CandleStick-Chart. + */ + @Generated + @Selector("getHighlightByTouchPoint:") + public native ChartHighlight getHighlightByTouchPoint(@ByValue CGPoint pt); + + /** + * returns: + * The actual position in pixels of the MarkerView for the given Entry in the given DataSet. + */ + @Generated + @Selector("getMarkerPositionWithHighlight:") + @ByValue + public native CGPoint getMarkerPositionWithHighlight(ChartHighlight highlight); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + /** + * Set this to false to prevent values from being highlighted by tap gesture. + * Values can still be highlighted via drag or programmatically. + * default: true + */ + @Generated + @Selector("highlightPerTapEnabled") + public native boolean highlightPerTapEnabled(); + + /** + * Highlights the values represented by the provided Highlight object + * This method will not call the delegate. + * \param highlight contains information about which entry should be highlighted + */ + @Generated + @Selector("highlightValue:") + public native void highlightValue(ChartHighlight highlight); + + /** + * Highlights the value selected by touch gesture. + */ + @Generated + @Selector("highlightValue:callDelegate:") + public native void highlightValueCallDelegate(ChartHighlight highlight, boolean callDelegate); + + /** + * Highlights any y-value at the given x-value in the given DataSet. + * Provide -1 as the dataSetIndex to undo all highlighting. + * This method will call the delegate. + * \param x The x-value to highlight + * + * \param dataSetIndex The dataset index to search in + * + * \param dataIndex The data index to search in (only used in CombinedChartView currently) + */ + @Generated + @Selector("highlightValueWithX:dataSetIndex:dataIndex:") + public native void highlightValueWithXDataSetIndexDataIndex(double x, @NInt long dataSetIndex, @NInt long dataIndex); + + /** + * Highlights any y-value at the given x-value in the given DataSet. + * Provide -1 as the dataSetIndex to undo all highlighting. + * \param x The x-value to highlight + * + * \param dataSetIndex The dataset index to search in + * + * \param dataIndex The data index to search in (only used in CombinedChartView currently) + * + * \param callDelegate Should the delegate be called for this change + */ + @Generated + @Selector("highlightValueWithX:dataSetIndex:dataIndex:callDelegate:") + public native void highlightValueWithXDataSetIndexDataIndexCallDelegate(double x, @NInt long dataSetIndex, + @NInt long dataIndex, boolean callDelegate); + + /** + * Highlights the value at the given x-value and y-value in the given DataSet. + * Provide -1 as the dataSetIndex to undo all highlighting. + * This method will call the delegate. + * \param x The x-value to highlight + * + * \param y The y-value to highlight. Supply NaN for “any” + * + * \param dataSetIndex The dataset index to search in + * + * \param dataIndex The data index to search in (only used in CombinedChartView currently) + */ + @Generated + @Selector("highlightValueWithX:y:dataSetIndex:dataIndex:") + public native void highlightValueWithXYDataSetIndexDataIndex(double x, double y, @NInt long dataSetIndex, + @NInt long dataIndex); + + /** + * Highlights the value at the given x-value and y-value in the given DataSet. + * Provide -1 as the dataSetIndex to undo all highlighting. + * \param x The x-value to highlight + * + * \param y The y-value to highlight. Supply NaN for “any” + * + * \param dataSetIndex The dataset index to search in + * + * \param dataIndex The data index to search in (only used in CombinedChartView currently) + * + * \param callDelegate Should the delegate be called for this change + */ + @Generated + @Selector("highlightValueWithX:y:dataSetIndex:dataIndex:callDelegate:") + public native void highlightValueWithXYDataSetIndexDataIndexCallDelegate(double x, double y, + @NInt long dataSetIndex, @NInt long dataIndex, boolean callDelegate); + + /** + * Highlights the values at the given indices in the given DataSets. Provide + * null or an empty array to undo all highlighting. + * This should be used to programmatically highlight values. + * This method will not call the delegate. + */ + @Generated + @Selector("highlightValues:") + public native void highlightValues(NSArray highs); + + /** + * The array of currently highlighted values. This might an empty if nothing is highlighted. + */ + @Generated + @Selector("highlighted") + public native NSArray highlighted(); + + @Generated + @Selector("highlighter") + @MappedReturn(ObjCObjectMapper.class) + public native IChartHighlighter highlighter(); + + @Generated + @Selector("inheritedAnimationDuration") + public static native double inheritedAnimationDuration(); + + @Generated + @Selector("init") + public native ChartViewBase init(); + + @Generated + @Selector("initWithCoder:") + public native ChartViewBase initWithCoder(NSCoder aDecoder); + + @Generated + @Selector("initWithFrame:") + public native ChartViewBase initWithFrame(@ByValue CGRect frame); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + /** + * default: true + * true if chart continues to scroll after touch up, false ifnot. + */ + @Generated + @Selector("isDragDecelerationEnabled") + public native boolean isDragDecelerationEnabled(); + + /** + * returns: + * true if drawing the marker is enabled when tapping on values + * (use the marker property to specify a marker) + */ + @Generated + @Selector("isDrawMarkersEnabled") + public native boolean isDrawMarkersEnabled(); + + /** + * returns: + * true if the chart is empty (meaning it’s data object is either null or contains no entries). + */ + @Generated + @Selector("isEmpty") + public native boolean isEmpty(); + + /** + * true if values can be highlighted via tap gesture, false ifnot. + */ + @Generated + @Selector("isHighLightPerTapEnabled") + public native boolean isHighLightPerTapEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + /** + * The last value that was highlighted via touch. + */ + @Generated + @Selector("lastHighlighted") + public native ChartHighlight lastHighlighted(); + + @Generated + @Selector("layerClass") + public static native Class layerClass(); + + /** + * The Legend object of the chart. This method can be used to get an instance of the legend in order to customize the automatically generated Legend. + */ + @Generated + @Selector("legend") + public native ChartLegend legend(); + + /** + * The renderer object responsible for rendering / drawing the Legend. + */ + @Generated + @Selector("legendRenderer") + public native ChartLegendRenderer legendRenderer(); + + /** + * The marker that is displayed when a value is clicked on the chart + */ + @Generated + @Selector("marker") + @MappedReturn(ObjCObjectMapper.class) + public native IChartMarker marker(); + + @Generated + @Selector("maxHighlightDistance") + @NFloat + public native double maxHighlightDistance(); + + @Generated + @Selector("maxVisibleCount") + @NInt + public native long maxVisibleCount(); + + /** + * note: + * (Equivalent of getCenter() in MPAndroidChart, as center is already a standard in iOS that returns the center point relative to superview, and MPAndroidChart returns relative to self)* + * The center point of the chart (the whole View) in pixels. + */ + @Generated + @Selector("midPoint") + @ByValue + public native CGPoint midPoint(); + + @Generated + @Selector("modifyAnimationsWithRepeatCount:autoreverses:animations:") + public static native void modifyAnimationsWithRepeatCountAutoreversesAnimations( + @NFloat double count, + boolean autoreverses, + @ObjCBlock(name = "call_modifyAnimationsWithRepeatCountAutoreversesAnimations") UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + /** + * Font to be used for the no data text. + */ + @Generated + @Selector("noDataFont") + public native UIFont noDataFont(); + + /** + * text that is displayed when the chart is empty + */ + @Generated + @Selector("noDataText") + public native String noDataText(); + + /** + * alignment of the no data text + */ + @Generated + @Selector("noDataTextAlignment") + @NInt + public native long noDataTextAlignment(); + + /** + * color of the no data text + */ + @Generated + @Selector("noDataTextColor") + public native UIColor noDataTextColor(); + + /** + * Lets the chart know its underlying data has changed and should perform all necessary recalculations. + * It is crucial that this method is called everytime data is changed dynamically. Not calling this method can lead to crashes or unexpected behaviour. + */ + @Generated + @Selector("notifyDataSetChanged") + public native void notifyDataSetChanged(); + + @Generated + @Selector("nsuiTouchesBegan:withEvent:") + public native void nsuiTouchesBeganWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("nsuiTouchesCancelled:withEvent:") + public native void nsuiTouchesCancelledWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("nsuiTouchesEnded:withEvent:") + public native void nsuiTouchesEndedWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("nsuiTouchesMoved:withEvent:") + public native void nsuiTouchesMovedWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("observeValueForKeyPath:ofObject:change:context:") + public native void observeValueForKeyPathOfObjectChangeContext(String keyPath, + @Mapped(ObjCObjectMapper.class) Object object, NSDictionary change, VoidPtr context); + + @Generated + @Selector("performSystemAnimation:onViews:options:animations:completion:") + public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( + @NUInt long animation, + NSArray views, + @NUInt long options, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("performWithoutAnimation:") + public static native void performWithoutAnimation( + @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); + + @Generated + @Selector("removeViewportJob:") + public native void removeViewportJob(ChartViewPortJob job); + + /** + * object responsible for rendering the data + */ + @Generated + @Selector("renderer") + public native ChartDataRendererBase renderer(); + + @Generated + @Selector("requiresConstraintBasedLayout") + public static native boolean requiresConstraintBasedLayout(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setAnimationBeginsFromCurrentState:") + public static native void setAnimationBeginsFromCurrentState(boolean fromCurrentState); + + @Generated + @Selector("setAnimationCurve:") + public static native void setAnimationCurve(@NInt long curve); + + @Generated + @Selector("setAnimationDelay:") + public static native void setAnimationDelay(double delay); + + @Generated + @Selector("setAnimationDelegate:") + public static native void setAnimationDelegate(@Mapped(ObjCObjectMapper.class) Object delegate); + + @Generated + @Selector("setAnimationDidStopSelector:") + public static native void setAnimationDidStopSelector(SEL selector); + + @Generated + @Selector("setAnimationDuration:") + public static native void setAnimationDuration_static(double duration); + + @Generated + @Selector("setAnimationRepeatAutoreverses:") + public static native void setAnimationRepeatAutoreverses(boolean repeatAutoreverses); + + @Generated + @Selector("setAnimationRepeatCount:") + public static native void setAnimationRepeatCount_static(float repeatCount); + + @Generated + @Selector("setAnimationStartDate:") + public static native void setAnimationStartDate(NSDate startDate); + + @Generated + @Selector("setAnimationTransition:forView:cache:") + public static native void setAnimationTransitionForViewCache(@NInt long transition, UIView view, boolean cache); + + @Generated + @Selector("setAnimationWillStartSelector:") + public static native void setAnimationWillStartSelector(SEL selector); + + @Generated + @Selector("setAnimationsEnabled:") + public static native void setAnimationsEnabled(boolean enabled); + + /** + * The Description object of the chart. + * This should have been called just “description”, but + */ + @Generated + @Selector("setChartDescription:") + public native void setChartDescription(ChartDescription value); + + /** + * The data for the chart + */ + @Generated + @Selector("setData:") + public native void setData(ChartData value); + + /** + * delegate to receive chart events + */ + @Generated + @Selector("setDelegate:") + public native void setDelegate_unsafe(@Mapped(ObjCObjectMapper.class) ChartViewDelegate value); + + /** + * delegate to receive chart events + */ + @Generated + public void setDelegate(@Mapped(ObjCObjectMapper.class) ChartViewDelegate value) { + Object __old = delegate(); + if (value != null) { + org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); + } + setDelegate_unsafe(value); + if (__old != null) { + org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); + } + } + + /** + * If set to true, chart continues to scroll after touch up + */ + @Generated + @Selector("setDragDecelerationEnabled:") + public native void setDragDecelerationEnabled(boolean value); + + /** + * Deceleration friction coefficient in [0 ; 1] interval, higher values indicate that speed will decrease slowly, for example if it set to 0, it will stop immediately. + * 1 is an invalid value, and will be converted to 0.999 automatically. + * default: true + */ + @Generated + @Selector("setDragDecelerationFrictionCoef:") + public native void setDragDecelerationFrictionCoef(@NFloat double value); + + /** + * true if drawing the marker is enabled when tapping on values + * (use the marker property to specify a marker) + */ + @Generated + @Selector("setDrawMarkers:") + public native void setDrawMarkers(boolean value); + + /** + * An extra offset to be appended to the viewport’s bottom + */ + @Generated + @Selector("setExtraBottomOffset:") + public native void setExtraBottomOffset(@NFloat double value); + + /** + * An extra offset to be appended to the viewport’s left + */ + @Generated + @Selector("setExtraLeftOffset:") + public native void setExtraLeftOffset(@NFloat double value); + + @Generated + @Selector("setExtraOffsetsWithLeft:top:right:bottom:") + public native void setExtraOffsetsWithLeftTopRightBottom(@NFloat double left, @NFloat double top, + @NFloat double right, @NFloat double bottom); + + /** + * An extra offset to be appended to the viewport’s right + */ + @Generated + @Selector("setExtraRightOffset:") + public native void setExtraRightOffset(@NFloat double value); + + /** + * An extra offset to be appended to the viewport’s top + */ + @Generated + @Selector("setExtraTopOffset:") + public native void setExtraTopOffset(@NFloat double value); + + /** + * Set this to false to prevent values from being highlighted by tap gesture. + * Values can still be highlighted via drag or programmatically. + * default: true + */ + @Generated + @Selector("setHighlightPerTapEnabled:") + public native void setHighlightPerTapEnabled(boolean value); + + @Generated + @Selector("setHighlighter:") + public native void setHighlighter(@Mapped(ObjCObjectMapper.class) IChartHighlighter value); + + /** + * The last value that was highlighted via touch. + */ + @Generated + @Selector("setLastHighlighted:") + public native void setLastHighlighted(ChartHighlight value); + + /** + * The marker that is displayed when a value is clicked on the chart + */ + @Generated + @Selector("setMarker:") + public native void setMarker(@Mapped(ObjCObjectMapper.class) IChartMarker value); + + /** + * The maximum distance in screen pixels away from an entry causing it to highlight. + * default: 500.0 + */ + @Generated + @Selector("setMaxHighlightDistance:") + public native void setMaxHighlightDistance(@NFloat double value); + + /** + * Font to be used for the no data text. + */ + @Generated + @Selector("setNoDataFont:") + public native void setNoDataFont(UIFont value); + + /** + * text that is displayed when the chart is empty + */ + @Generated + @Selector("setNoDataText:") + public native void setNoDataText(String value); + + /** + * alignment of the no data text + */ + @Generated + @Selector("setNoDataTextAlignment:") + public native void setNoDataTextAlignment(@NInt long value); + + /** + * color of the no data text + */ + @Generated + @Selector("setNoDataTextColor:") + public native void setNoDataTextColor(UIColor value); + + /** + * object responsible for rendering the data + */ + @Generated + @Selector("setRenderer:") + public native void setRenderer(ChartDataRendererBase value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("transitionFromView:toView:duration:options:completion:") + public static native void transitionFromViewToViewDurationOptionsCompletion( + UIView fromView, + UIView toView, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); + + @Generated + @Selector("transitionWithView:duration:options:animations:completion:") + public static native void transitionWithViewDurationOptionsAnimationsCompletion( + UIView view, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttribute(@NInt long attribute); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( + @NInt long semanticContentAttribute, @NInt long layoutDirection); + + /** + * Checks if the highlight array is null, has a length of zero or if the first object is null. + * + * returns: + * true if there are values to highlight, false ifthere are no values to highlight. + */ + @Generated + @Selector("valuesToHighlight") + public native boolean valuesToHighlight(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * returns: + * The ViewPortHandler of the chart that is responsible for the + * content area of the chart and its offsets and dimensions. + */ + @Generated + @Selector("viewPortHandler") + public native ChartViewPortHandler viewPortHandler(); + + /** + * returns: + * The object representing all x-labels, this method can be used to + * acquire the XAxis object and modify it (e.g. change the position of the + * labels) + */ + @Generated + @Selector("xAxis") + public native ChartXAxis xAxis(); + + @Generated + @Selector("xRange") + public native double xRange(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartViewPortHandler.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartViewPortHandler.java index 0c4a771d..175e090b 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartViewPortHandler.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartViewPortHandler.java @@ -29,422 +29,530 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +/** + * Class that contains information about the charts current viewport settings, including offsets, scale & translation levels, … + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartViewPortHandler extends NSObject { - static { - NatJ.register(); - } - - @Generated - protected ChartViewPortHandler(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartViewPortHandler alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("canZoomInMoreX") - public native boolean canZoomInMoreX(); - - @Generated - @Selector("canZoomInMoreY") - public native boolean canZoomInMoreY(); - - @Generated - @Selector("canZoomOutMoreX") - public native boolean canZoomOutMoreX(); - - @Generated - @Selector("canZoomOutMoreY") - public native boolean canZoomOutMoreY(); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("centerViewPortWithPt:chart:") - public native void centerViewPortWithPtChart(@ByValue CGPoint pt, - ChartViewBase chart); - - @Generated - @Selector("chartHeight") - @NFloat - public native double chartHeight(); - - @Generated - @Selector("chartWidth") - @NFloat - public native double chartWidth(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("contentBottom") - @NFloat - public native double contentBottom(); - - @Generated - @Selector("contentCenter") - @ByValue - public native CGPoint contentCenter(); - - @Generated - @Selector("contentHeight") - @NFloat - public native double contentHeight(); - - @Generated - @Selector("contentLeft") - @NFloat - public native double contentLeft(); - - @Generated - @Selector("contentRect") - @ByValue - public native CGRect contentRect(); - - @Generated - @Selector("contentRight") - @NFloat - public native double contentRight(); - - @Generated - @Selector("contentTop") - @NFloat - public native double contentTop(); - - @Generated - @Selector("contentWidth") - @NFloat - public native double contentWidth(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("fitScreen") - @ByValue - public native CGAffineTransform fitScreen(); - - @Generated - @Selector("hasChartDimens") - public native boolean hasChartDimens(); - - @Generated - @Selector("hasNoDragOffset") - public native boolean hasNoDragOffset(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartViewPortHandler init(); - - @Generated - @Selector("initWithWidth:height:") - public native ChartViewPortHandler initWithWidthHeight( - @NFloat double width, @NFloat double height); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isFullyZoomedOut") - public native boolean isFullyZoomedOut(); - - @Generated - @Selector("isFullyZoomedOutX") - public native boolean isFullyZoomedOutX(); - - @Generated - @Selector("isFullyZoomedOutY") - public native boolean isFullyZoomedOutY(); - - @Generated - @Selector("isInBoundsBottom:") - public native boolean isInBoundsBottom(@NFloat double y); - - @Generated - @Selector("isInBoundsLeft:") - public native boolean isInBoundsLeft(@NFloat double x); - - @Generated - @Selector("isInBoundsRight:") - public native boolean isInBoundsRight(@NFloat double x); - - @Generated - @Selector("isInBoundsTop:") - public native boolean isInBoundsTop(@NFloat double y); - - @Generated - @Selector("isInBoundsWithX:y:") - public native boolean isInBoundsWithXY(@NFloat double x, @NFloat double y); - - @Generated - @Selector("isInBoundsX:") - public native boolean isInBoundsX(@NFloat double x); - - @Generated - @Selector("isInBoundsY:") - public native boolean isInBoundsY(@NFloat double y); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("maxScaleX") - @NFloat - public native double maxScaleX(); - - @Generated - @Selector("maxScaleY") - @NFloat - public native double maxScaleY(); - - @Generated - @Selector("minScaleX") - @NFloat - public native double minScaleX(); - - @Generated - @Selector("minScaleY") - @NFloat - public native double minScaleY(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("offsetBottom") - @NFloat - public native double offsetBottom(); - - @Generated - @Selector("offsetLeft") - @NFloat - public native double offsetLeft(); - - @Generated - @Selector("offsetRight") - @NFloat - public native double offsetRight(); - - @Generated - @Selector("offsetTop") - @NFloat - public native double offsetTop(); - - @Generated - @Selector("refreshWithNewMatrix:chart:invalidate:") - @ByValue - public native CGAffineTransform refreshWithNewMatrixChartInvalidate( - @ByValue CGAffineTransform newMatrix, ChartViewBase chart, - boolean invalidate); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("restrainViewPortWithOffsetLeft:offsetTop:offsetRight:offsetBottom:") - public native void restrainViewPortWithOffsetLeftOffsetTopOffsetRightOffsetBottom( - @NFloat double offsetLeft, @NFloat double offsetTop, - @NFloat double offsetRight, @NFloat double offsetBottom); - - @Generated - @Selector("scaleX") - @NFloat - public native double scaleX(); - - @Generated - @Selector("scaleY") - @NFloat - public native double scaleY(); - - @Generated - @Selector("setChartDimensWithWidth:height:") - public native void setChartDimensWithWidthHeight(@NFloat double width, - @NFloat double height); - - @Generated - @Selector("setDragOffsetX:") - public native void setDragOffsetX(@NFloat double offset); - - @Generated - @Selector("setDragOffsetY:") - public native void setDragOffsetY(@NFloat double offset); - - @Generated - @Selector("setMaximumScaleX:") - public native void setMaximumScaleX(@NFloat double xScale); - - @Generated - @Selector("setMaximumScaleY:") - public native void setMaximumScaleY(@NFloat double yScale); - - @Generated - @Selector("setMinMaxScaleXWithMinScaleX:maxScaleX:") - public native void setMinMaxScaleXWithMinScaleXMaxScaleX( - @NFloat double minScaleX, @NFloat double maxScaleX); - - @Generated - @Selector("setMinMaxScaleYWithMinScaleY:maxScaleY:") - public native void setMinMaxScaleYWithMinScaleYMaxScaleY( - @NFloat double minScaleY, @NFloat double maxScaleY); - - @Generated - @Selector("setMinimumScaleX:") - public native void setMinimumScaleX(@NFloat double xScale); - - @Generated - @Selector("setMinimumScaleY:") - public native void setMinimumScaleY(@NFloat double yScale); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setZoomWithScaleX:scaleY:") - @ByValue - public native CGAffineTransform setZoomWithScaleXScaleY( - @NFloat double scaleX, @NFloat double scaleY); - - @Generated - @Selector("setZoomWithScaleX:scaleY:x:y:") - @ByValue - public native CGAffineTransform setZoomWithScaleXScaleYXY( - @NFloat double scaleX, @NFloat double scaleY, @NFloat double x, - @NFloat double y); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("touchMatrix") - @ByValue - public native CGAffineTransform touchMatrix(); - - @Generated - @Selector("transX") - @NFloat - public native double transX(); - - @Generated - @Selector("transY") - @NFloat - public native double transY(); - - @Generated - @Selector("translateWithPt:") - @ByValue - public native CGAffineTransform translateWithPt(@ByValue CGPoint pt); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("zoomInX:y:") - @ByValue - public native CGAffineTransform zoomInXY(@NFloat double x, @NFloat double y); - - @Generated - @Selector("zoomOutWithX:y:") - @ByValue - public native CGAffineTransform zoomOutWithXY(@NFloat double x, - @NFloat double y); - - @Generated - @Selector("zoomWithScaleX:scaleY:") - @ByValue - public native CGAffineTransform zoomWithScaleXScaleY(@NFloat double scaleX, - @NFloat double scaleY); - - @Generated - @Selector("zoomWithScaleX:scaleY:x:y:") - @ByValue - public native CGAffineTransform zoomWithScaleXScaleYXY( - @NFloat double scaleX, @NFloat double scaleY, @NFloat double x, - @NFloat double y); + static { + NatJ.register(); + } + + @Generated + protected ChartViewPortHandler(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartViewPortHandler alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + /** + * true if the chart is not yet fully zoomed in on the x-axis + */ + @Generated + @Selector("canZoomInMoreX") + public native boolean canZoomInMoreX(); + + /** + * true if the chart is not yet fully zoomed in on the y-axis + */ + @Generated + @Selector("canZoomInMoreY") + public native boolean canZoomInMoreY(); + + /** + * true if the chart is not yet fully zoomed out on the x-axis + */ + @Generated + @Selector("canZoomOutMoreX") + public native boolean canZoomOutMoreX(); + + /** + * true if the chart is not yet fully zoomed out on the y-axis + */ + @Generated + @Selector("canZoomOutMoreY") + public native boolean canZoomOutMoreY(); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + /** + * Centers the viewport around the specified position (x-index and y-value) in the chart. + * Centering the viewport outside the bounds of the chart is not possible. + * Makes most sense in combination with the setScaleMinima(…) method. + */ + @Generated + @Selector("centerViewPortWithPt:chart:") + public native void centerViewPortWithPtChart(@ByValue CGPoint pt, ChartViewBase chart); + + @Generated + @Selector("chartHeight") + @NFloat + public native double chartHeight(); + + @Generated + @Selector("chartWidth") + @NFloat + public native double chartWidth(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("contentBottom") + @NFloat + public native double contentBottom(); + + @Generated + @Selector("contentCenter") + @ByValue + public native CGPoint contentCenter(); + + @Generated + @Selector("contentHeight") + @NFloat + public native double contentHeight(); + + @Generated + @Selector("contentLeft") + @NFloat + public native double contentLeft(); + + @Generated + @Selector("contentRect") + @ByValue + public native CGRect contentRect(); + + @Generated + @Selector("contentRight") + @NFloat + public native double contentRight(); + + @Generated + @Selector("contentTop") + @NFloat + public native double contentTop(); + + @Generated + @Selector("contentWidth") + @NFloat + public native double contentWidth(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * Resets all zooming and dragging and makes the chart fit exactly it’s bounds. + */ + @Generated + @Selector("fitScreen") + @ByValue + public native CGAffineTransform fitScreen(); + + @Generated + @Selector("hasChartDimens") + public native boolean hasChartDimens(); + + /** + * true if both drag offsets (x and y) are zero or smaller. + */ + @Generated + @Selector("hasNoDragOffset") + public native boolean hasNoDragOffset(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartViewPortHandler init(); + + /** + * Constructor - don’t forget calling setChartDimens(…) + */ + @Generated + @Selector("initWithWidth:height:") + public native ChartViewPortHandler initWithWidthHeight(@NFloat double width, @NFloat double height); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + /** + * if the chart is fully zoomed out, return true + */ + @Generated + @Selector("isFullyZoomedOut") + public native boolean isFullyZoomedOut(); + + /** + * true if the chart is fully zoomed out on it’s x-axis (horizontal). + */ + @Generated + @Selector("isFullyZoomedOutX") + public native boolean isFullyZoomedOutX(); + + /** + * true if the chart is fully zoomed out on it’s y-axis (vertical). + */ + @Generated + @Selector("isFullyZoomedOutY") + public native boolean isFullyZoomedOutY(); + + @Generated + @Selector("isInBoundsBottom:") + public native boolean isInBoundsBottom(@NFloat double y); + + @Generated + @Selector("isInBoundsLeft:") + public native boolean isInBoundsLeft(@NFloat double x); + + @Generated + @Selector("isInBoundsRight:") + public native boolean isInBoundsRight(@NFloat double x); + + @Generated + @Selector("isInBoundsTop:") + public native boolean isInBoundsTop(@NFloat double y); + + /** + * A method to check whether coordinate lies within the viewport. + * \param point a coordinate. + */ + @Generated + @Selector("isInBoundsWithPoint:") + public native boolean isInBoundsWithPoint(@ByValue CGPoint point); + + @Generated + @Selector("isInBoundsWithX:y:") + public native boolean isInBoundsWithXY(@NFloat double x, @NFloat double y); + + @Generated + @Selector("isInBoundsX:") + public native boolean isInBoundsX(@NFloat double x); + + @Generated + @Selector("isInBoundsY:") + public native boolean isInBoundsY(@NFloat double y); + + /** + * A method to check whether a line between two coordinates intersects with the view port by using a linear function. + * Linear function (calculus): y = ax + b + * Note: this method will not check for collision with the right edge of the view port, as we assume lines run from left + * to right (e.g. startPoint < endPoint). + * \param startPoint the start coordinate of the line. + * + * \param endPoint the end coordinate of the line. + */ + @Generated + @Selector("isIntersectingLineFrom:to:") + public native boolean isIntersectingLineFromTo(@ByValue CGPoint startPoint, @ByValue CGPoint endPoint); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + /** + * The minimum x-scale factor + */ + @Generated + @Selector("maxScaleX") + @NFloat + public native double maxScaleX(); + + /** + * The minimum y-scale factor + */ + @Generated + @Selector("maxScaleY") + @NFloat + public native double maxScaleY(); + + /** + * The minimum x-scale factor + */ + @Generated + @Selector("minScaleX") + @NFloat + public native double minScaleX(); + + /** + * The minimum y-scale factor + */ + @Generated + @Selector("minScaleY") + @NFloat + public native double minScaleY(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("offsetBottom") + @NFloat + public native double offsetBottom(); + + @Generated + @Selector("offsetLeft") + @NFloat + public native double offsetLeft(); + + @Generated + @Selector("offsetRight") + @NFloat + public native double offsetRight(); + + @Generated + @Selector("offsetTop") + @NFloat + public native double offsetTop(); + + /** + * call this method to refresh the graph with a given matrix + */ + @Generated + @Selector("refreshWithNewMatrix:chart:invalidate:") + @ByValue + public native CGAffineTransform refreshWithNewMatrixChartInvalidate(@ByValue CGAffineTransform newMatrix, + ChartViewBase chart, boolean invalidate); + + /** + * Zooms out to original size. + */ + @Generated + @Selector("resetZoom") + @ByValue + public native CGAffineTransform resetZoom(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("restrainViewPortWithOffsetLeft:offsetTop:offsetRight:offsetBottom:") + public native void restrainViewPortWithOffsetLeftOffsetTopOffsetRightOffsetBottom(@NFloat double offsetLeft, + @NFloat double offsetTop, @NFloat double offsetRight, @NFloat double offsetBottom); + + /** + * The current x-scale factor + */ + @Generated + @Selector("scaleX") + @NFloat + public native double scaleX(); + + /** + * The current y-scale factor + */ + @Generated + @Selector("scaleY") + @NFloat + public native double scaleY(); + + @Generated + @Selector("setChartDimensWithWidth:height:") + public native void setChartDimensWithWidthHeight(@NFloat double width, @NFloat double height); + + /** + * Set an offset in pixels that allows the user to drag the chart over it’s bounds on the x-axis. + */ + @Generated + @Selector("setDragOffsetX:") + public native void setDragOffsetX(@NFloat double offset); + + /** + * Set an offset in pixels that allows the user to drag the chart over it’s bounds on the y-axis. + */ + @Generated + @Selector("setDragOffsetY:") + public native void setDragOffsetY(@NFloat double offset); + + /** + * Sets the maximum scale factor for the x-axis + */ + @Generated + @Selector("setMaximumScaleX:") + public native void setMaximumScaleX(@NFloat double xScale); + + /** + * Sets the maximum scale factor for the y-axis + */ + @Generated + @Selector("setMaximumScaleY:") + public native void setMaximumScaleY(@NFloat double yScale); + + /** + * Sets the minimum and maximum scale factors for the x-axis + */ + @Generated + @Selector("setMinMaxScaleXWithMinScaleX:maxScaleX:") + public native void setMinMaxScaleXWithMinScaleXMaxScaleX(@NFloat double minScaleX, @NFloat double maxScaleX); + + @Generated + @Selector("setMinMaxScaleYWithMinScaleY:maxScaleY:") + public native void setMinMaxScaleYWithMinScaleYMaxScaleY(@NFloat double minScaleY, @NFloat double maxScaleY); + + /** + * Sets the minimum scale factor for the x-axis + */ + @Generated + @Selector("setMinimumScaleX:") + public native void setMinimumScaleX(@NFloat double xScale); + + /** + * Sets the minimum scale factor for the y-axis + */ + @Generated + @Selector("setMinimumScaleY:") + public native void setMinimumScaleY(@NFloat double yScale); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + /** + * Sets the scale factor to the specified values. + */ + @Generated + @Selector("setZoomWithScaleX:scaleY:") + @ByValue + public native CGAffineTransform setZoomWithScaleXScaleY(@NFloat double scaleX, @NFloat double scaleY); + + /** + * Sets the scale factor to the specified values. x and y is pivot. + */ + @Generated + @Selector("setZoomWithScaleX:scaleY:x:y:") + @ByValue + public native CGAffineTransform setZoomWithScaleXScaleYXY(@NFloat double scaleX, @NFloat double scaleY, + @NFloat double x, @NFloat double y); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("touchMatrix") + @ByValue + public native CGAffineTransform touchMatrix(); + + /** + * The translation (drag / pan) distance on the x-axis + */ + @Generated + @Selector("transX") + @NFloat + public native double transX(); + + /** + * The translation (drag / pan) distance on the y-axis + */ + @Generated + @Selector("transY") + @NFloat + public native double transY(); + + /** + * Translates to the specified point. + */ + @Generated + @Selector("translateWithPt:") + @ByValue + public native CGAffineTransform translateWithPt(@ByValue CGPoint pt); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * Zooms in by 1.4, x and y are the coordinates (in pixels) of the zoom center. + */ + @Generated + @Selector("zoomInX:y:") + @ByValue + public native CGAffineTransform zoomInXY(@NFloat double x, @NFloat double y); + + /** + * Zooms out by 0.7, x and y are the coordinates (in pixels) of the zoom center. + */ + @Generated + @Selector("zoomOutWithX:y:") + @ByValue + public native CGAffineTransform zoomOutWithXY(@NFloat double x, @NFloat double y); + + /** + * Zooms by the specified zoom factors. + */ + @Generated + @Selector("zoomWithScaleX:scaleY:") + @ByValue + public native CGAffineTransform zoomWithScaleXScaleY(@NFloat double scaleX, @NFloat double scaleY); + + /** + * Zooms around the specified center + */ + @Generated + @Selector("zoomWithScaleX:scaleY:x:y:") + @ByValue + public native CGAffineTransform zoomWithScaleXScaleYXY(@NFloat double scaleX, @NFloat double scaleY, + @NFloat double x, @NFloat double y); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartViewPortJob.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartViewPortJob.java index 7099a37e..9ac314ba 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartViewPortJob.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartViewPortJob.java @@ -29,139 +29,123 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartViewPortJob extends NSObject { - static { - NatJ.register(); - } - - @Generated - protected ChartViewPortJob(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartViewPortJob alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("doJob") - public native void doJob(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartViewPortJob init(); - - @Generated - @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:") - public native ChartViewPortJob initWithViewPortHandlerXValueYValueTransformerView( - ChartViewPortHandler viewPortHandler, double xValue, double yValue, - ChartTransformer transformer, ChartViewBase view); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartViewPortJob(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartViewPortJob alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("doJob") + public native void doJob(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartViewPortJob init(); + + @Generated + @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:") + public native ChartViewPortJob initWithViewPortHandlerXValueYValueTransformerView( + ChartViewPortHandler viewPortHandler, double xValue, double yValue, ChartTransformer transformer, + ChartViewBase view); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartXAxis.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartXAxis.java index 6be2131d..08381ec6 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartXAxis.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartXAxis.java @@ -30,216 +30,267 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartXAxis extends ChartAxisBase { - static { - NatJ.register(); - } - - @Generated - protected ChartXAxis(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartXAxis alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("avoidFirstLastClippingEnabled") - public native boolean avoidFirstLastClippingEnabled(); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartXAxis init(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isAvoidFirstLastClippingEnabled") - public native boolean isAvoidFirstLastClippingEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("isWordWrapEnabled") - public native boolean isWordWrapEnabled(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("labelHeight") - @NFloat - public native double labelHeight(); - - @Generated - @Selector("labelPosition") - @NInt - public native long labelPosition(); - - @Generated - @Selector("labelRotatedHeight") - @NFloat - public native double labelRotatedHeight(); - - @Generated - @Selector("labelRotatedWidth") - @NFloat - public native double labelRotatedWidth(); - - @Generated - @Selector("labelRotationAngle") - @NFloat - public native double labelRotationAngle(); - - @Generated - @Selector("labelWidth") - @NFloat - public native double labelWidth(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setAvoidFirstLastClippingEnabled:") - public native void setAvoidFirstLastClippingEnabled(boolean value); - - @Generated - @Selector("setLabelHeight:") - public native void setLabelHeight(@NFloat double value); - - @Generated - @Selector("setLabelPosition:") - public native void setLabelPosition(@NInt long value); - - @Generated - @Selector("setLabelRotatedHeight:") - public native void setLabelRotatedHeight(@NFloat double value); - - @Generated - @Selector("setLabelRotatedWidth:") - public native void setLabelRotatedWidth(@NFloat double value); - - @Generated - @Selector("setLabelRotationAngle:") - public native void setLabelRotationAngle(@NFloat double value); - - @Generated - @Selector("setLabelWidth:") - public native void setLabelWidth(@NFloat double value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setWordWrapEnabled:") - public native void setWordWrapEnabled(boolean value); - - @Generated - @Selector("setWordWrapWidthPercent:") - public native void setWordWrapWidthPercent(@NFloat double value); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("wordWrapEnabled") - public native boolean wordWrapEnabled(); - - @Generated - @Selector("wordWrapWidthPercent") - @NFloat - public native double wordWrapWidthPercent(); + static { + NatJ.register(); + } + + @Generated + protected ChartXAxis(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartXAxis alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + /** + * if set to true, the chart will avoid that the first and last label entry in the chart “clip” off the edge of the chart + */ + @Generated + @Selector("avoidFirstLastClippingEnabled") + public native boolean avoidFirstLastClippingEnabled(); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartXAxis init(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isAvoidFirstLastClippingEnabled") + public native boolean isAvoidFirstLastClippingEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + /** + * true if word wrapping the labels is enabled + */ + @Generated + @Selector("isWordWrapEnabled") + public native boolean isWordWrapEnabled(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + /** + * height of the x-axis labels in pixels - this is automatically calculated by the computeSize() methods in the renderers + */ + @Generated + @Selector("labelHeight") + @NFloat + public native double labelHeight(); + + /** + * the position of the x-labels relative to the chart + */ + @Generated + @Selector("labelPosition") + @NInt + public native long labelPosition(); + + /** + * height of the (rotated) x-axis labels in pixels - this is automatically calculated by the computeSize() methods in the renderers + */ + @Generated + @Selector("labelRotatedHeight") + @NFloat + public native double labelRotatedHeight(); + + /** + * width of the (rotated) x-axis labels in pixels - this is automatically calculated by the computeSize() methods in the renderers + */ + @Generated + @Selector("labelRotatedWidth") + @NFloat + public native double labelRotatedWidth(); + + /** + * This is the angle for drawing the X axis labels (in degrees) + */ + @Generated + @Selector("labelRotationAngle") + @NFloat + public native double labelRotationAngle(); + + /** + * width of the x-axis labels in pixels - this is automatically calculated by the computeSize() methods in the renderers + */ + @Generated + @Selector("labelWidth") + @NFloat + public native double labelWidth(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * if set to true, the chart will avoid that the first and last label entry in the chart “clip” off the edge of the chart + */ + @Generated + @Selector("setAvoidFirstLastClippingEnabled:") + public native void setAvoidFirstLastClippingEnabled(boolean value); + + /** + * height of the x-axis labels in pixels - this is automatically calculated by the computeSize() methods in the renderers + */ + @Generated + @Selector("setLabelHeight:") + public native void setLabelHeight(@NFloat double value); + + /** + * the position of the x-labels relative to the chart + */ + @Generated + @Selector("setLabelPosition:") + public native void setLabelPosition(@NInt long value); + + /** + * height of the (rotated) x-axis labels in pixels - this is automatically calculated by the computeSize() methods in the renderers + */ + @Generated + @Selector("setLabelRotatedHeight:") + public native void setLabelRotatedHeight(@NFloat double value); + + /** + * width of the (rotated) x-axis labels in pixels - this is automatically calculated by the computeSize() methods in the renderers + */ + @Generated + @Selector("setLabelRotatedWidth:") + public native void setLabelRotatedWidth(@NFloat double value); + + /** + * This is the angle for drawing the X axis labels (in degrees) + */ + @Generated + @Selector("setLabelRotationAngle:") + public native void setLabelRotationAngle(@NFloat double value); + + /** + * width of the x-axis labels in pixels - this is automatically calculated by the computeSize() methods in the renderers + */ + @Generated + @Selector("setLabelWidth:") + public native void setLabelWidth(@NFloat double value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + /** + * if set to true, word wrapping the labels will be enabled. + * word wrapping is done using (value width * labelRotatedWidth) + * note: + * currently supports all charts except pie/radar/horizontal-bar* + */ + @Generated + @Selector("setWordWrapEnabled:") + public native void setWordWrapEnabled(boolean value); + + /** + * the width for wrapping the labels, as percentage out of one value width. + * used only when isWordWrapEnabled = true. + * default: 1.0 + */ + @Generated + @Selector("setWordWrapWidthPercent:") + public native void setWordWrapWidthPercent(@NFloat double value); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * if set to true, word wrapping the labels will be enabled. + * word wrapping is done using (value width * labelRotatedWidth) + * note: + * currently supports all charts except pie/radar/horizontal-bar* + */ + @Generated + @Selector("wordWrapEnabled") + public native boolean wordWrapEnabled(); + + /** + * the width for wrapping the labels, as percentage out of one value width. + * used only when isWordWrapEnabled = true. + * default: 1.0 + */ + @Generated + @Selector("wordWrapWidthPercent") + @NFloat + public native double wordWrapWidthPercent(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartXAxisRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartXAxisRenderer.java index 8f1aabc4..ddeba59a 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartXAxisRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartXAxisRenderer.java @@ -36,211 +36,188 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartXAxisRenderer extends ChartAxisRendererBase { - static { - NatJ.register(); - } - - @Generated - protected ChartXAxisRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartXAxisRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("computeAxisValuesWithMin:max:") - public native void computeAxisValuesWithMinMax(double min, double max); - - @Generated - @Selector("computeAxisWithMin:max:inverted:") - public native void computeAxisWithMinMaxInverted(double min, double max, - boolean inverted); - - @Generated - @Selector("computeSize") - public native void computeSize(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawGridLineWithContext:x:y:") - public native void drawGridLineWithContextXY(CGContextRef context, - @NFloat double x, @NFloat double y); - - @Generated - @Selector("drawLabelWithContext:formattedLabel:x:y:attributes:constrainedToSize:anchor:angleRadians:") - public native void drawLabelWithContextFormattedLabelXYAttributesConstrainedToSizeAnchorAngleRadians( - CGContextRef context, String formattedLabel, @NFloat double x, - @NFloat double y, - NSDictionary attributes, - @ByValue CGSize constrainedToSize, @ByValue CGPoint anchor, - @NFloat double angleRadians); - - @Generated - @Selector("drawLabelsWithContext:pos:anchor:") - public native void drawLabelsWithContextPosAnchor(CGContextRef context, - @NFloat double pos, @ByValue CGPoint anchor); - - @Generated - @Selector("gridClippingRect") - @ByValue - public native CGRect gridClippingRect(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartXAxisRenderer init(); - - @Generated - @Selector("initWithViewPortHandler:") - public native ChartXAxisRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:transformer:axis:") - public native ChartXAxisRenderer initWithViewPortHandlerTransformerAxis( - ChartViewPortHandler viewPortHandler, ChartTransformer transformer, - ChartAxisBase axis); - - @Generated - @Selector("initWithViewPortHandler:xAxis:transformer:") - public native ChartXAxisRenderer initWithViewPortHandlerXAxisTransformer( - ChartViewPortHandler viewPortHandler, ChartXAxis xAxis, - ChartTransformer transformer); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("renderAxisLabelsWithContext:") - public native void renderAxisLabelsWithContext(CGContextRef context); - - @Generated - @Selector("renderAxisLineWithContext:") - public native void renderAxisLineWithContext(CGContextRef context); - - @Generated - @Selector("renderGridLinesWithContext:") - public native void renderGridLinesWithContext(CGContextRef context); - - @Generated - @Selector("renderLimitLineLabelWithContext:limitLine:position:yOffset:") - public native void renderLimitLineLabelWithContextLimitLinePositionYOffset( - CGContextRef context, ChartLimitLine limitLine, - @ByValue CGPoint position, @NFloat double yOffset); - - @Generated - @Selector("renderLimitLineLineWithContext:limitLine:position:") - public native void renderLimitLineLineWithContextLimitLinePosition( - CGContextRef context, ChartLimitLine limitLine, - @ByValue CGPoint position); - - @Generated - @Selector("renderLimitLinesWithContext:") - public native void renderLimitLinesWithContext(CGContextRef context); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartXAxisRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartXAxisRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("computeAxisValuesWithMin:max:") + public native void computeAxisValuesWithMinMax(double min, double max); + + @Generated + @Selector("computeAxisWithMin:max:inverted:") + public native void computeAxisWithMinMaxInverted(double min, double max, boolean inverted); + + @Generated + @Selector("computeSize") + public native void computeSize(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawGridLineWithContext:x:y:") + public native void drawGridLineWithContextXY(CGContextRef context, @NFloat double x, @NFloat double y); + + @Generated + @Selector("drawLabelWithContext:formattedLabel:x:y:attributes:constrainedToSize:anchor:angleRadians:") + public native void drawLabelWithContextFormattedLabelXYAttributesConstrainedToSizeAnchorAngleRadians( + CGContextRef context, String formattedLabel, @NFloat double x, @NFloat double y, + NSDictionary attributes, @ByValue CGSize constrainedToSize, @ByValue CGPoint anchor, + @NFloat double angleRadians); + + /** + * draws the x-labels on the specified y-position + */ + @Generated + @Selector("drawLabelsWithContext:pos:anchor:") + public native void drawLabelsWithContextPosAnchor(CGContextRef context, @NFloat double pos, @ByValue CGPoint anchor); + + @Generated + @Selector("gridClippingRect") + @ByValue + public native CGRect gridClippingRect(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartXAxisRenderer init(); + + @Generated + @Selector("initWithViewPortHandler:") + public native ChartXAxisRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:transformer:axis:") + public native ChartXAxisRenderer initWithViewPortHandlerTransformerAxis(ChartViewPortHandler viewPortHandler, + ChartTransformer transformer, ChartAxisBase axis); + + @Generated + @Selector("initWithViewPortHandler:xAxis:transformer:") + public native ChartXAxisRenderer initWithViewPortHandlerXAxisTransformer(ChartViewPortHandler viewPortHandler, + ChartXAxis xAxis, ChartTransformer transformer); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("renderAxisLabelsWithContext:") + public native void renderAxisLabelsWithContext(CGContextRef context); + + @Generated + @Selector("renderAxisLineWithContext:") + public native void renderAxisLineWithContext(CGContextRef context); + + @Generated + @Selector("renderGridLinesWithContext:") + public native void renderGridLinesWithContext(CGContextRef context); + + @Generated + @Selector("renderLimitLineLabelWithContext:limitLine:position:yOffset:") + public native void renderLimitLineLabelWithContextLimitLinePositionYOffset(CGContextRef context, + ChartLimitLine limitLine, @ByValue CGPoint position, @NFloat double yOffset); + + @Generated + @Selector("renderLimitLineLineWithContext:limitLine:position:") + public native void renderLimitLineLineWithContextLimitLinePosition(CGContextRef context, ChartLimitLine limitLine, + @ByValue CGPoint position); + + @Generated + @Selector("renderLimitLinesWithContext:") + public native void renderLimitLinesWithContext(CGContextRef context); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartYAxis.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartYAxis.java index 01bf27a7..719b3942 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartYAxis.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartYAxis.java @@ -29,272 +29,394 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +/** + * Class representing the y-axis labels settings and its entries. + * Be aware that not all features the YLabels class provides are suitable for the RadarChart. + * Customizations that affect the value range of the axis need to be applied before setting data for the chart. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartYAxis extends ChartAxisBase { - static { - NatJ.register(); - } - - @Generated - protected ChartYAxis(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartYAxis alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("axisDependency") - @NInt - public native long axisDependency(); - - @Generated - @Selector("calculateWithMin:max:") - public native void calculateWithMinMax(double dataMin, double dataMax); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawTopYLabelEntryEnabled") - public native boolean drawTopYLabelEntryEnabled(); - - @Generated - @Selector("drawZeroLineEnabled") - public native boolean drawZeroLineEnabled(); - - @Generated - @Selector("getRequiredHeightSpace") - @NFloat - public native double getRequiredHeightSpace(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartYAxis init(); - - @Generated - @Selector("initWithPosition:") - public native ChartYAxis initWithPosition(@NInt long position); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("inverted") - public native boolean inverted(); - - @Generated - @Selector("isDrawTopYLabelEntryEnabled") - public native boolean isDrawTopYLabelEntryEnabled(); - - @Generated - @Selector("isInverted") - public native boolean isInverted(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("labelPosition") - @NInt - public native long labelPosition(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("maxWidth") - @NFloat - public native double maxWidth(); - - @Generated - @Selector("minWidth") - @NFloat - public native double minWidth(); - - @Generated - @Selector("needsOffset") - public native boolean needsOffset(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("requiredSize") - @ByValue - public native CGSize requiredSize(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setDrawTopYLabelEntryEnabled:") - public native void setDrawTopYLabelEntryEnabled(boolean value); - - @Generated - @Selector("setDrawZeroLineEnabled:") - public native void setDrawZeroLineEnabled(boolean value); - - @Generated - @Selector("setInverted:") - public native void setInverted(boolean value); - - @Generated - @Selector("setLabelPosition:") - public native void setLabelPosition(@NInt long value); - - @Generated - @Selector("setMaxWidth:") - public native void setMaxWidth(@NFloat double value); - - @Generated - @Selector("setMinWidth:") - public native void setMinWidth(@NFloat double value); - - @Generated - @Selector("setSpaceBottom:") - public native void setSpaceBottom(@NFloat double value); - - @Generated - @Selector("setSpaceTop:") - public native void setSpaceTop(@NFloat double value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setZeroLineColor:") - public native void setZeroLineColor(UIColor value); - - @Generated - @Selector("setZeroLineDashLengths:") - public native void setZeroLineDashLengths(NSArray value); - - @Generated - @Selector("setZeroLineDashPhase:") - public native void setZeroLineDashPhase(@NFloat double value); - - @Generated - @Selector("setZeroLineWidth:") - public native void setZeroLineWidth(@NFloat double value); - - @Generated - @Selector("spaceBottom") - @NFloat - public native double spaceBottom(); - - @Generated - @Selector("spaceTop") - @NFloat - public native double spaceTop(); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("zeroLineColor") - public native UIColor zeroLineColor(); - - @Generated - @Selector("zeroLineDashLengths") - public native NSArray zeroLineDashLengths(); - - @Generated - @Selector("zeroLineDashPhase") - @NFloat - public native double zeroLineDashPhase(); - - @Generated - @Selector("zeroLineWidth") - @NFloat - public native double zeroLineWidth(); + static { + NatJ.register(); + } + + @Generated + protected ChartYAxis(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartYAxis alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("axisDependency") + @NInt + public native long axisDependency(); + + @Generated + @Selector("calculateWithMin:max:") + public native void calculateWithMinMax(double dataMin, double dataMax); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * indicates if the bottom y-label entry is drawn or not + */ + @Generated + @Selector("drawBottomYLabelEntryEnabled") + public native boolean drawBottomYLabelEntryEnabled(); + + /** + * indicates if the top y-label entry is drawn or not + */ + @Generated + @Selector("drawTopYLabelEntryEnabled") + public native boolean drawTopYLabelEntryEnabled(); + + /** + * flag that indicates if the zero-line should be drawn regardless of other grid lines + */ + @Generated + @Selector("drawZeroLineEnabled") + public native boolean drawZeroLineEnabled(); + + @Generated + @Selector("getRequiredHeightSpace") + @NFloat + public native double getRequiredHeightSpace(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartYAxis init(); + + @Generated + @Selector("initWithPosition:") + public native ChartYAxis initWithPosition(@NInt long position); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + /** + * flag that indicates if the axis is inverted or not + */ + @Generated + @Selector("inverted") + public native boolean inverted(); + + @Generated + @Selector("isDrawBottomYLabelEntryEnabled") + public native boolean isDrawBottomYLabelEntryEnabled(); + + @Generated + @Selector("isDrawTopYLabelEntryEnabled") + public native boolean isDrawTopYLabelEntryEnabled(); + + @Generated + @Selector("isInverted") + public native boolean isInverted(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + /** + * the alignment of the text in the y-label + */ + @Generated + @Selector("labelAlignment") + @NInt + public native long labelAlignment(); + + /** + * the position of the y-labels relative to the chart + */ + @Generated + @Selector("labelPosition") + @NInt + public native long labelPosition(); + + /** + * the horizontal offset of the y-label + */ + @Generated + @Selector("labelXOffset") + @NFloat + public native double labelXOffset(); + + /** + * the maximum width that the axis can take. + * use Infinity for disabling the maximum. + * default: CGFloat.infinity + */ + @Generated + @Selector("maxWidth") + @NFloat + public native double maxWidth(); + + /** + * the minimum width that the axis should take + * default: 0.0 + */ + @Generated + @Selector("minWidth") + @NFloat + public native double minWidth(); + + /** + * true if this axis needs horizontal offset, false ifno offset is needed. + */ + @Generated + @Selector("needsOffset") + public native boolean needsOffset(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("requiredSize") + @ByValue + public native CGSize requiredSize(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * indicates if the bottom y-label entry is drawn or not + */ + @Generated + @Selector("setDrawBottomYLabelEntryEnabled:") + public native void setDrawBottomYLabelEntryEnabled(boolean value); + + /** + * indicates if the top y-label entry is drawn or not + */ + @Generated + @Selector("setDrawTopYLabelEntryEnabled:") + public native void setDrawTopYLabelEntryEnabled(boolean value); + + /** + * flag that indicates if the zero-line should be drawn regardless of other grid lines + */ + @Generated + @Selector("setDrawZeroLineEnabled:") + public native void setDrawZeroLineEnabled(boolean value); + + /** + * flag that indicates if the axis is inverted or not + */ + @Generated + @Selector("setInverted:") + public native void setInverted(boolean value); + + /** + * the alignment of the text in the y-label + */ + @Generated + @Selector("setLabelAlignment:") + public native void setLabelAlignment(@NInt long value); + + /** + * the position of the y-labels relative to the chart + */ + @Generated + @Selector("setLabelPosition:") + public native void setLabelPosition(@NInt long value); + + /** + * the horizontal offset of the y-label + */ + @Generated + @Selector("setLabelXOffset:") + public native void setLabelXOffset(@NFloat double value); + + /** + * the maximum width that the axis can take. + * use Infinity for disabling the maximum. + * default: CGFloat.infinity + */ + @Generated + @Selector("setMaxWidth:") + public native void setMaxWidth(@NFloat double value); + + /** + * the minimum width that the axis should take + * default: 0.0 + */ + @Generated + @Selector("setMinWidth:") + public native void setMinWidth(@NFloat double value); + + /** + * axis space from the smallest value to the bottom in percent of the total axis range + */ + @Generated + @Selector("setSpaceBottom:") + public native void setSpaceBottom(@NFloat double value); + + /** + * axis space from the largest value to the top in percent of the total axis range + */ + @Generated + @Selector("setSpaceTop:") + public native void setSpaceTop(@NFloat double value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + /** + * Color of the zero line + */ + @Generated + @Selector("setZeroLineColor:") + public native void setZeroLineColor(UIColor value); + + /** + * This is the actual dash pattern. + * I.e. [2, 3] will paint [– – ] + * [1, 3, 4, 2] will paint [- –– - –– ] + */ + @Generated + @Selector("setZeroLineDashLengths:") + public native void setZeroLineDashLengths(NSArray value); + + /** + * This is how much (in pixels) into the dash pattern are we starting from. + */ + @Generated + @Selector("setZeroLineDashPhase:") + public native void setZeroLineDashPhase(@NFloat double value); + + /** + * Width of the zero line + */ + @Generated + @Selector("setZeroLineWidth:") + public native void setZeroLineWidth(@NFloat double value); + + /** + * axis space from the smallest value to the bottom in percent of the total axis range + */ + @Generated + @Selector("spaceBottom") + @NFloat + public native double spaceBottom(); + + /** + * axis space from the largest value to the top in percent of the total axis range + */ + @Generated + @Selector("spaceTop") + @NFloat + public native double spaceTop(); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * Color of the zero line + */ + @Generated + @Selector("zeroLineColor") + public native UIColor zeroLineColor(); + + /** + * This is the actual dash pattern. + * I.e. [2, 3] will paint [– – ] + * [1, 3, 4, 2] will paint [- –– - –– ] + */ + @Generated + @Selector("zeroLineDashLengths") + public native NSArray zeroLineDashLengths(); + + /** + * This is how much (in pixels) into the dash pattern are we starting from. + */ + @Generated + @Selector("zeroLineDashPhase") + @NFloat + public native double zeroLineDashPhase(); + + /** + * Width of the zero line + */ + @Generated + @Selector("zeroLineWidth") + @NFloat + public native double zeroLineWidth(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartYAxisRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartYAxisRenderer.java index 17fb9f1f..e8e53100 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartYAxisRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChartYAxisRenderer.java @@ -34,180 +34,166 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ChartYAxisRenderer extends ChartAxisRendererBase { - static { - NatJ.register(); - } - - @Generated - protected ChartYAxisRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChartYAxisRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawGridLineWithContext:position:") - public native void drawGridLineWithContextPosition(CGContextRef context, - @ByValue CGPoint position); - - @Generated - @Selector("drawZeroLineWithContext:") - public native void drawZeroLineWithContext(CGContextRef context); - - @Generated - @Selector("gridClippingRect") - @ByValue - public native CGRect gridClippingRect(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChartYAxisRenderer init(); - - @Generated - @Selector("initWithViewPortHandler:") - public native ChartYAxisRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:transformer:axis:") - public native ChartYAxisRenderer initWithViewPortHandlerTransformerAxis( - ChartViewPortHandler viewPortHandler, ChartTransformer transformer, - ChartAxisBase axis); - - @Generated - @Selector("initWithViewPortHandler:yAxis:transformer:") - public native ChartYAxisRenderer initWithViewPortHandlerYAxisTransformer( - ChartViewPortHandler viewPortHandler, ChartYAxis yAxis, - ChartTransformer transformer); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("renderAxisLabelsWithContext:") - public native void renderAxisLabelsWithContext(CGContextRef context); - - @Generated - @Selector("renderAxisLineWithContext:") - public native void renderAxisLineWithContext(CGContextRef context); - - @Generated - @Selector("renderGridLinesWithContext:") - public native void renderGridLinesWithContext(CGContextRef context); - - @Generated - @Selector("renderLimitLinesWithContext:") - public native void renderLimitLinesWithContext(CGContextRef context); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transformedPositions") - public native NSArray transformedPositions(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChartYAxisRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChartYAxisRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawGridLineWithContext:position:") + public native void drawGridLineWithContextPosition(CGContextRef context, @ByValue CGPoint position); + + /** + * Draws the zero line at the specified position. + */ + @Generated + @Selector("drawZeroLineWithContext:") + public native void drawZeroLineWithContext(CGContextRef context); + + @Generated + @Selector("gridClippingRect") + @ByValue + public native CGRect gridClippingRect(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChartYAxisRenderer init(); + + @Generated + @Selector("initWithViewPortHandler:") + public native ChartYAxisRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:transformer:axis:") + public native ChartYAxisRenderer initWithViewPortHandlerTransformerAxis(ChartViewPortHandler viewPortHandler, + ChartTransformer transformer, ChartAxisBase axis); + + @Generated + @Selector("initWithViewPortHandler:yAxis:transformer:") + public native ChartYAxisRenderer initWithViewPortHandlerYAxisTransformer(ChartViewPortHandler viewPortHandler, + ChartYAxis yAxis, ChartTransformer transformer); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + /** + * draws the y-axis labels to the screen + */ + @Generated + @Selector("renderAxisLabelsWithContext:") + public native void renderAxisLabelsWithContext(CGContextRef context); + + @Generated + @Selector("renderAxisLineWithContext:") + public native void renderAxisLineWithContext(CGContextRef context); + + @Generated + @Selector("renderGridLinesWithContext:") + public native void renderGridLinesWithContext(CGContextRef context); + + @Generated + @Selector("renderLimitLinesWithContext:") + public native void renderLimitLinesWithContext(CGContextRef context); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("transformedPositions") + public native NSArray transformedPositions(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChevronDownShapeRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChevronDownShapeRenderer.java index de38392f..f54e7e50 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChevronDownShapeRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChevronDownShapeRenderer.java @@ -36,146 +36,120 @@ @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts24ChevronDownShapeRenderer") @ObjCClassBinding -public class ChevronDownShapeRenderer extends NSObject implements - IShapeRenderer { - static { - NatJ.register(); - } - - @Generated - protected ChevronDownShapeRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChevronDownShapeRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChevronDownShapeRenderer init(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - public void renderShapeWithContextDataSetViewPortHandlerPointColor( - CGContextRef context, - IScatterChartDataSet dataSet, - ChartViewPortHandler viewPortHandler, @ByValue CGPoint point, - UIColor color) { - renderShapeWithContextDataSetViewPortHandlerPointColor(context, (Object)dataSet, viewPortHandler, point, color); - } - - @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") - public native void renderShapeWithContextDataSetViewPortHandlerPointColor( - CGContextRef context, - @Mapped(ObjCObjectMapper.class) Object dataSet, - ChartViewPortHandler viewPortHandler, @ByValue CGPoint point, - UIColor color); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); +public class ChevronDownShapeRenderer extends NSObject implements IShapeRenderer { + static { + NatJ.register(); + } + + @Generated + protected ChevronDownShapeRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChevronDownShapeRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChevronDownShapeRenderer init(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") + public native void renderShapeWithContextDataSetViewPortHandlerPointColor(CGContextRef context, + @Mapped(ObjCObjectMapper.class) IScatterChartDataSet dataSet, ChartViewPortHandler viewPortHandler, + @ByValue CGPoint point, UIColor color); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChevronUpShapeRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChevronUpShapeRenderer.java index 836a4fc8..ecff3fbc 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChevronUpShapeRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ChevronUpShapeRenderer.java @@ -37,144 +37,119 @@ @ObjCClassName("_TtC6Charts22ChevronUpShapeRenderer") @ObjCClassBinding public class ChevronUpShapeRenderer extends NSObject implements IShapeRenderer { - static { - NatJ.register(); - } - - @Generated - protected ChevronUpShapeRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ChevronUpShapeRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ChevronUpShapeRenderer init(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - public void renderShapeWithContextDataSetViewPortHandlerPointColor( - CGContextRef context, - IScatterChartDataSet dataSet, - ChartViewPortHandler viewPortHandler, @ByValue CGPoint point, - UIColor color) { - renderShapeWithContextDataSetViewPortHandlerPointColor(context, (Object)dataSet, viewPortHandler, point, color); - } - - @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") - public native void renderShapeWithContextDataSetViewPortHandlerPointColor( - CGContextRef context, - @Mapped(ObjCObjectMapper.class) Object dataSet, - ChartViewPortHandler viewPortHandler, @ByValue CGPoint point, - UIColor color); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ChevronUpShapeRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ChevronUpShapeRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ChevronUpShapeRenderer init(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") + public native void renderShapeWithContextDataSetViewPortHandlerPointColor(CGContextRef context, + @Mapped(ObjCObjectMapper.class) IScatterChartDataSet dataSet, ChartViewPortHandler viewPortHandler, + @ByValue CGPoint point, UIColor color); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CircleShapeRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CircleShapeRenderer.java index 57ae06fd..714c7832 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CircleShapeRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CircleShapeRenderer.java @@ -37,144 +37,119 @@ @ObjCClassName("_TtC6Charts19CircleShapeRenderer") @ObjCClassBinding public class CircleShapeRenderer extends NSObject implements IShapeRenderer { - static { - NatJ.register(); - } - - @Generated - protected CircleShapeRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native CircleShapeRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native CircleShapeRenderer init(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - public void renderShapeWithContextDataSetViewPortHandlerPointColor( - CGContextRef context, - IScatterChartDataSet dataSet, - ChartViewPortHandler viewPortHandler, @ByValue CGPoint point, - UIColor color) { - renderShapeWithContextDataSetViewPortHandlerPointColor(context, (Object)dataSet, viewPortHandler, point, color); - } - - @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") - public native void renderShapeWithContextDataSetViewPortHandlerPointColor( - CGContextRef context, - @Mapped(ObjCObjectMapper.class) Object dataSet, - ChartViewPortHandler viewPortHandler, @ByValue CGPoint point, - UIColor color); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected CircleShapeRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native CircleShapeRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native CircleShapeRenderer init(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") + public native void renderShapeWithContextDataSetViewPortHandlerPointColor(CGContextRef context, + @Mapped(ObjCObjectMapper.class) IScatterChartDataSet dataSet, ChartViewPortHandler viewPortHandler, + @ByValue CGPoint point, UIColor color); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartData.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartData.java index 1dd21958..4c24a781 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartData.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartData.java @@ -32,217 +32,221 @@ @ObjCClassName("_TtC6Charts17CombinedChartData") @ObjCClassBinding public class CombinedChartData extends BarLineScatterCandleBubbleChartData { - static { - NatJ.register(); - } - - @Generated - protected CombinedChartData(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("allData") - public native NSArray allData(); - - @Generated - @Owned - @Selector("alloc") - public static native CombinedChartData alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("barData") - public native BarChartData barData(); - - @Generated - @Selector("bubbleData") - public native BubbleChartData bubbleData(); - - @Generated - @Selector("calcMinMax") - public native void calcMinMax(); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("candleData") - public native CandleChartData candleData(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("dataByIndex:") - public native ChartData dataByIndex(@NInt long index); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("entryForHighlight:") - public native ChartDataEntry entryForHighlight(ChartHighlight highlight); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native CombinedChartData init(); - - @Generated - @Selector("initWithDataSet:") - public native CombinedChartData initWithDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); - - @Generated - @Selector("initWithDataSets:") - public native CombinedChartData initWithDataSets(NSArray dataSets); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("lineData") - public native LineChartData lineData(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataChanged") - public native void notifyDataChanged(); - - @Generated - @Selector("removeDataSet:") - public native boolean removeDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); - - @Generated - @Selector("removeDataSetByIndex:") - public native boolean removeDataSetByIndex(@NInt long index); - - @Generated - @Selector("removeEntry:dataSetIndex:") - public native boolean removeEntryDataSetIndex(ChartDataEntry entry, - @NInt long dataSetIndex); - - @Generated - @Selector("removeEntryWithXValue:dataSetIndex:") - public native boolean removeEntryWithXValueDataSetIndex(double xValue, - @NInt long dataSetIndex); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("scatterData") - public native ScatterChartData scatterData(); - - @Generated - @Selector("setBarData:") - public native void setBarData(BarChartData value); - - @Generated - @Selector("setBubbleData:") - public native void setBubbleData(BubbleChartData value); - - @Generated - @Selector("setCandleData:") - public native void setCandleData(CandleChartData value); - - @Generated - @Selector("setLineData:") - public native void setLineData(LineChartData value); - - @Generated - @Selector("setScatterData:") - public native void setScatterData(ScatterChartData value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected CombinedChartData(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + /** + * All data objects in row: line-bar-scatter-candle-bubble if not null. + */ + @Generated + @Selector("allData") + public native NSArray allData(); + + @Generated + @Owned + @Selector("alloc") + public static native CombinedChartData alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("barData") + public native BarChartData barData(); + + @Generated + @Selector("bubbleData") + public native BubbleChartData bubbleData(); + + @Generated + @Selector("calcMinMax") + public native void calcMinMax(); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("candleData") + public native CandleChartData candleData(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("dataByIndex:") + public native ChartData dataByIndex(@NInt long index); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * Get the Entry for a corresponding highlight object + * \param highlight + * + * + * returns: + * The entry that is highlighted + */ + @Generated + @Selector("entryForHighlight:") + public native ChartDataEntry entryForHighlight(ChartHighlight highlight); + + /** + * Get dataset for highlight + * \param highlight current highlight + * + * + * returns: + * dataset related to highlight + */ + @Generated + @Selector("getDataSetByHighlight:") + @MappedReturn(ObjCObjectMapper.class) + public native IChartDataSet getDataSetByHighlight(ChartHighlight highlight); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native CombinedChartData init(); + + @Generated + @Selector("initWithDataSet:") + public native CombinedChartData initWithDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); + + @Generated + @Selector("initWithDataSets:") + public native CombinedChartData initWithDataSets(NSArray dataSets); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("lineData") + public native LineChartData lineData(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("notifyDataChanged") + public native void notifyDataChanged(); + + @Generated + @Selector("removeDataSet:") + public native boolean removeDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); + + @Generated + @Selector("removeDataSetByIndex:") + public native boolean removeDataSetByIndex(@NInt long index); + + @Generated + @Selector("removeEntry:dataSetIndex:") + public native boolean removeEntryDataSetIndex(ChartDataEntry entry, @NInt long dataSetIndex); + + @Generated + @Selector("removeEntryWithXValue:dataSetIndex:") + public native boolean removeEntryWithXValueDataSetIndex(double xValue, @NInt long dataSetIndex); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("scatterData") + public native ScatterChartData scatterData(); + + @Generated + @Selector("setBarData:") + public native void setBarData(BarChartData value); + + @Generated + @Selector("setBubbleData:") + public native void setBubbleData(BubbleChartData value); + + @Generated + @Selector("setCandleData:") + public native void setCandleData(CandleChartData value); + + @Generated + @Selector("setLineData:") + public native void setLineData(LineChartData value); + + @Generated + @Selector("setScatterData:") + public native void setScatterData(ScatterChartData value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartHighlighter.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartHighlighter.java index e49a8e4f..907cf156 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartHighlighter.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartHighlighter.java @@ -32,145 +32,128 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class CombinedChartHighlighter extends ChartHighlighter { - static { - NatJ.register(); - } - - @Generated - protected CombinedChartHighlighter(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native CombinedChartHighlighter alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("getHighlightsWithXValue:x:y:") - public native NSArray getHighlightsWithXValueXY( - double xValue, @NFloat double x, @NFloat double y); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native CombinedChartHighlighter init(); - - @Generated - @Selector("initWithChart:") - public native CombinedChartHighlighter initWithChart( - @Mapped(ObjCObjectMapper.class) Object chart); - - @Generated - @Selector("initWithChart:barDataProvider:") - public native CombinedChartHighlighter initWithChartBarDataProvider( - @Mapped(ObjCObjectMapper.class) CombinedChartDataProvider chart, - @Mapped(ObjCObjectMapper.class) BarChartDataProvider barDataProvider); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected CombinedChartHighlighter(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native CombinedChartHighlighter alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("getHighlightsWithXValue:x:y:") + public native NSArray getHighlightsWithXValueXY(double xValue, @NFloat double x, + @NFloat double y); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native CombinedChartHighlighter init(); + + @Generated + @Selector("initWithChart:") + public native CombinedChartHighlighter initWithChart(@Mapped(ObjCObjectMapper.class) Object chart); + + @Generated + @Selector("initWithChart:barDataProvider:") + public native CombinedChartHighlighter initWithChartBarDataProvider( + @Mapped(ObjCObjectMapper.class) CombinedChartDataProvider chart, + @Mapped(ObjCObjectMapper.class) BarChartDataProvider barDataProvider); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartRenderer.java index 4ecd1bd4..b53546e1 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartRenderer.java @@ -32,223 +32,231 @@ @ObjCClassName("_TtC6Charts21CombinedChartRenderer") @ObjCClassBinding public class CombinedChartRenderer extends ChartDataRendererBase { - static { - NatJ.register(); - } - - @Generated - protected CombinedChartRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native CombinedChartRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("chart") - public native CombinedChartView chart(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawBarShadowEnabled") - public native boolean drawBarShadowEnabled(); - - @Generated - @Selector("drawDataWithContext:") - public native void drawDataWithContext(CGContextRef context); - - @Generated - @Selector("drawExtrasWithContext:") - public native void drawExtrasWithContext(CGContextRef context); - - @Generated - @Selector("drawHighlightedWithContext:indices:") - public native void drawHighlightedWithContextIndices(CGContextRef context, - NSArray indices); - - @Generated - @Selector("drawValueAboveBarEnabled") - public native boolean drawValueAboveBarEnabled(); - - @Generated - @Selector("drawValuesWithContext:") - public native void drawValuesWithContext(CGContextRef context); - - @Generated - @Selector("getSubRendererWithIndex:") - public native ChartDataRendererBase getSubRendererWithIndex(@NInt long index); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native CombinedChartRenderer init(); - - @Generated - @Selector("initBuffers") - public native void initBuffers(); - - @Generated - @Selector("initWithAnimator:viewPortHandler:") - public native CombinedChartRenderer initWithAnimatorViewPortHandler( - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithChart:animator:viewPortHandler:") - public native CombinedChartRenderer initWithChartAnimatorViewPortHandler( - CombinedChartView chart, ChartAnimator animator, - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:") - public native CombinedChartRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawBarShadowEnabled") - public native boolean isDrawBarShadowEnabled(); - - @Generated - @Selector("isDrawValueAboveBarEnabled") - public native boolean isDrawValueAboveBarEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setChart:") - public native void setChart_unsafe(CombinedChartView value); - - @Generated - public void setChart(CombinedChartView value) { - Object __old = chart(); - if (value != null) { - org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); - } - setChart_unsafe(value); - if (__old != null) { - org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); - } - } - - @Generated - @Selector("setDrawBarShadowEnabled:") - public native void setDrawBarShadowEnabled(boolean value); - - @Generated - @Selector("setDrawValueAboveBarEnabled:") - public native void setDrawValueAboveBarEnabled(boolean value); - - @Generated - @Selector("setSubRenderers:") - public native void setSubRenderers( - NSArray value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("subRenderers") - public native NSArray subRenderers(); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected CombinedChartRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native CombinedChartRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("chart") + public native CombinedChartView chart(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * if set to true, a grey area is drawn behind each bar that indicates the maximum value + */ + @Generated + @Selector("drawBarShadowEnabled") + public native boolean drawBarShadowEnabled(); + + @Generated + @Selector("drawDataWithContext:") + public native void drawDataWithContext(CGContextRef context); + + @Generated + @Selector("drawExtrasWithContext:") + public native void drawExtrasWithContext(CGContextRef context); + + @Generated + @Selector("drawHighlightedWithContext:indices:") + public native void drawHighlightedWithContextIndices(CGContextRef context, NSArray indices); + + /** + * if set to true, all values are drawn above their bars, instead of below their top + */ + @Generated + @Selector("drawValueAboveBarEnabled") + public native boolean drawValueAboveBarEnabled(); + + @Generated + @Selector("drawValuesWithContext:") + public native void drawValuesWithContext(CGContextRef context); + + /** + * returns: + * The sub-renderer object at the specified index. + */ + @Generated + @Selector("getSubRendererWithIndex:") + public native ChartDataRendererBase getSubRendererWithIndex(@NInt long index); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native CombinedChartRenderer init(); + + @Generated + @Selector("initBuffers") + public native void initBuffers(); + + @Generated + @Selector("initWithAnimator:viewPortHandler:") + public native CombinedChartRenderer initWithAnimatorViewPortHandler(ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithChart:animator:viewPortHandler:") + public native CombinedChartRenderer initWithChartAnimatorViewPortHandler(CombinedChartView chart, + ChartAnimator animator, ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:") + public native CombinedChartRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + /** + * true if drawing shadows (maxvalue) for each bar is enabled, false ifnot + */ + @Generated + @Selector("isDrawBarShadowEnabled") + public native boolean isDrawBarShadowEnabled(); + + /** + * true if drawing values above bars is enabled, false ifnot + */ + @Generated + @Selector("isDrawValueAboveBarEnabled") + public native boolean isDrawValueAboveBarEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setChart:") + public native void setChart_unsafe(CombinedChartView value); + + @Generated + public void setChart(CombinedChartView value) { + Object __old = chart(); + if (value != null) { + org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); + } + setChart_unsafe(value); + if (__old != null) { + org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); + } + } + + /** + * if set to true, a grey area is drawn behind each bar that indicates the maximum value + */ + @Generated + @Selector("setDrawBarShadowEnabled:") + public native void setDrawBarShadowEnabled(boolean value); + + /** + * if set to true, all values are drawn above their bars, instead of below their top + */ + @Generated + @Selector("setDrawValueAboveBarEnabled:") + public native void setDrawValueAboveBarEnabled(boolean value); + + /** + * All sub-renderers. + */ + @Generated + @Selector("setSubRenderers:") + public native void setSubRenderers(NSArray value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + /** + * All sub-renderers. + */ + @Generated + @Selector("subRenderers") + public native NSArray subRenderers(); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartView.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartView.java index 3776cb9a..c76a5598 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartView.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CombinedChartView.java @@ -12,6 +12,7 @@ import apple.foundation.NSSet; import apple.uikit.UITraitCollection; import apple.uikit.UIView; +import apple.uikit.protocol.UIAppearanceContainer; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.c.ann.Variadic; import org.moe.natj.general.NatJ; @@ -36,572 +37,568 @@ import org.moe.natj.objc.ann.ProtocolClassMethod; import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; -import org.moe.samples.simplechart.charts.protocol.BarChartDataProvider; -import org.moe.samples.simplechart.charts.protocol.BubbleChartDataProvider; -import org.moe.samples.simplechart.charts.protocol.CandleChartDataProvider; import org.moe.samples.simplechart.charts.protocol.CombinedChartDataProvider; import org.moe.samples.simplechart.charts.protocol.IChartFillFormatter; -import org.moe.samples.simplechart.charts.protocol.LineChartDataProvider; -import org.moe.samples.simplechart.charts.protocol.ScatterChartDataProvider; +/** + * This chart class allows the combination of lines, bars, scatter and candle data all displayed in one chart area. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts17CombinedChartView") @ObjCClassBinding -public class CombinedChartView extends BarLineChartViewBase implements - CombinedChartDataProvider, BarChartDataProvider, - BubbleChartDataProvider, CandleChartDataProvider, - LineChartDataProvider, ScatterChartDataProvider { - static { - NatJ.register(); - } - - @Generated - protected CombinedChartView(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") - public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( - double frameStartTime, - double frameDuration, - @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); - - @Generated - @Owned - @Selector("alloc") - public static native CombinedChartView alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") - public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:animations:") - public static native void animateWithDurationAnimations( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); - - @Generated - @Selector("animateWithDuration:animations:completion:") - public static native void animateWithDurationAnimationsCompletion( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); - - @Generated - @Selector("animateWithDuration:delay:options:animations:completion:") - public static native void animateWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") - public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( - double duration, - double delay, - @NFloat double dampingRatio, - @NFloat double velocity, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); - - @Generated - @Selector("appearance") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearance(); - - @Generated - @ProtocolClassMethod("appearance") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearance() { - return appearance(); - } - - @Generated - @Selector("appearanceForTraitCollection:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollection( - UITraitCollection trait); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollection") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollection(UITraitCollection trait) { - return appearanceForTraitCollection(trait); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceForTraitCollection:whenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceForTraitCollectionWhenContainedIn(trait, - ContainerClass, varargs); - } - - @Generated - @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes) { - return appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - trait, containerTypes); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceWhenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceWhenContainedIn(ContainerClass, varargs); - } - - @Generated - @Selector("appearanceWhenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes) { - return appearanceWhenContainedInInstancesOfClasses(containerTypes); - } - - @Generated - @Selector("areAnimationsEnabled") - public static native boolean areAnimationsEnabled(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("barData") - public native BarChartData barData(); - - @Generated - @Selector("beginAnimations:context:") - public static native void beginAnimationsContext(String animationID, - VoidPtr context); - - @Generated - @Selector("bubbleData") - public native BubbleChartData bubbleData(); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("candleData") - public native CandleChartData candleData(); - - @Generated - @Selector("centerOffsets") - @ByValue - public native CGPoint centerOffsets(); - - @Generated - @Selector("chartXMax") - public native double chartXMax(); - - @Generated - @Selector("chartXMin") - public native double chartXMin(); - - @Generated - @Selector("chartYMax") - public native double chartYMax(); - - @Generated - @Selector("chartYMin") - public native double chartYMin(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clearTextInputContextIdentifier:") - public static native void clearTextInputContextIdentifier(String identifier); - - @Generated - @Selector("combinedData") - public native CombinedChartData combinedData(); - - @Generated - @Selector("commitAnimations") - public static native void commitAnimations(); - - @Generated - @Selector("data") - public native ChartData data(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawBarShadowEnabled") - public native boolean drawBarShadowEnabled(); - - @Generated - @Selector("drawOrder") - public native NSArray drawOrder(); - - @Generated - @Selector("drawValueAboveBarEnabled") - public native boolean drawValueAboveBarEnabled(); - - @Generated - @Selector("fillFormatter") - @MappedReturn(ObjCObjectMapper.class) - public native IChartFillFormatter fillFormatter(); - - @Generated - @Selector("getAxis:") - public native ChartYAxis getAxis(@NInt long axis); - - @Generated - @Selector("getHighlightByTouchPoint:") - public native ChartHighlight getHighlightByTouchPoint(@ByValue CGPoint pt); - - @Generated - @Selector("getTransformerForAxis:") - public native ChartTransformer getTransformerForAxis(@NInt long forAxis); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highestVisibleX") - public native double highestVisibleX(); - - @Generated - @Selector("highlightFullBarEnabled") - public native boolean highlightFullBarEnabled(); - - @Generated - @Selector("inheritedAnimationDuration") - public static native double inheritedAnimationDuration(); - - @Generated - @Selector("init") - public native CombinedChartView init(); - - @Generated - @Selector("initWithCoder:") - public native CombinedChartView initWithCoder(NSCoder aDecoder); - - @Generated - @Selector("initWithFrame:") - public native CombinedChartView initWithFrame(@ByValue CGRect frame); - - @Generated - @Selector("initialize") - public native void initialize(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawBarShadowEnabled") - public native boolean isDrawBarShadowEnabled(); - - @Generated - @Selector("isDrawValueAboveBarEnabled") - public native boolean isDrawValueAboveBarEnabled(); - - @Generated - @Selector("isHighlightFullBarEnabled") - public native boolean isHighlightFullBarEnabled(); - - @Generated - @Selector("isInvertedWithAxis:") - public native boolean isInvertedWithAxis(@NInt long axis); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("layerClass") - public static native Class layerClass(); - - @Generated - @Selector("lineData") - public native LineChartData lineData(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("lowestVisibleX") - public native double lowestVisibleX(); - - @Generated - @Selector("maxHighlightDistance") - @NFloat - public native double maxHighlightDistance(); - - @Generated - @Selector("maxVisibleCount") - @NInt - public native long maxVisibleCount(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("performSystemAnimation:onViews:options:animations:completion:") - public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( - @NUInt long animation, - NSArray views, - @NUInt long options, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("performWithoutAnimation:") - public static native void performWithoutAnimation( - @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); - - @Generated - @Selector("requiresConstraintBasedLayout") - public static native boolean requiresConstraintBasedLayout(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("scatterData") - public native ScatterChartData scatterData(); - - @Generated - @Selector("setAnimationBeginsFromCurrentState:") - public static native void setAnimationBeginsFromCurrentState( - boolean fromCurrentState); - - @Generated - @Selector("setAnimationCurve:") - public static native void setAnimationCurve(@NInt long curve); - - @Generated - @Selector("setAnimationDelay:") - public static native void setAnimationDelay(double delay); - - @Generated - @Selector("setAnimationDelegate:") - public static native void setAnimationDelegate( - @Mapped(ObjCObjectMapper.class) Object delegate); - - @Generated - @Selector("setAnimationDidStopSelector:") - public static native void setAnimationDidStopSelector(SEL selector); - - @Generated - @Selector("setAnimationDuration:") - public static native void setAnimationDuration_static(double duration); - - @Generated - @Selector("setAnimationRepeatAutoreverses:") - public static native void setAnimationRepeatAutoreverses( - boolean repeatAutoreverses); - - @Generated - @Selector("setAnimationRepeatCount:") - public static native void setAnimationRepeatCount_static(float repeatCount); - - @Generated - @Selector("setAnimationStartDate:") - public static native void setAnimationStartDate(NSDate startDate); - - @Generated - @Selector("setAnimationTransition:forView:cache:") - public static native void setAnimationTransitionForViewCache( - @NInt long transition, UIView view, boolean cache); - - @Generated - @Selector("setAnimationWillStartSelector:") - public static native void setAnimationWillStartSelector(SEL selector); - - @Generated - @Selector("setAnimationsEnabled:") - public static native void setAnimationsEnabled(boolean enabled); - - @Generated - @Selector("setData:") - public native void setData(ChartData value); - - @Generated - @Selector("setDrawBarShadowEnabled:") - public native void setDrawBarShadowEnabled(boolean value); - - @Generated - @Selector("setDrawOrder:") - public native void setDrawOrder(NSArray value); - - @Generated - @Selector("setDrawValueAboveBarEnabled:") - public native void setDrawValueAboveBarEnabled(boolean value); - - @Generated - @Selector("setFillFormatter:") - public native void setFillFormatter( - @Mapped(ObjCObjectMapper.class) IChartFillFormatter value); - - @Generated - @Selector("setHighlightFullBarEnabled:") - public native void setHighlightFullBarEnabled(boolean value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transitionFromView:toView:duration:options:completion:") - public static native void transitionFromViewToViewDurationOptionsCompletion( - UIView fromView, - UIView toView, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); - - @Generated - @Selector("transitionWithView:duration:options:animations:completion:") - public static native void transitionWithViewDurationOptionsAnimationsCompletion( - UIView view, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttribute( - @NInt long attribute); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( - @NInt long semanticContentAttribute, @NInt long layoutDirection); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("xRange") - public native double xRange(); +public class CombinedChartView extends BarLineChartViewBase implements CombinedChartDataProvider { + static { + NatJ.register(); + } + + @Generated + protected CombinedChartView(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") + public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( + double frameStartTime, + double frameDuration, + @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); + + @Generated + @Owned + @Selector("alloc") + public static native CombinedChartView alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") + public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:animations:") + public static native void animateWithDurationAnimations( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); + + @Generated + @Selector("animateWithDuration:animations:completion:") + public static native void animateWithDurationAnimationsCompletion( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); + + @Generated + @Selector("animateWithDuration:delay:options:animations:completion:") + public static native void animateWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") + public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( + double duration, + double delay, + @NFloat double dampingRatio, + @NFloat double velocity, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); + + @Generated + @Selector("appearance") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearance(); + + @Generated + @ProtocolClassMethod("appearance") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearance() { + return appearance(); + } + + @Generated + @Selector("appearanceForTraitCollection:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollection(UITraitCollection trait); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollection") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollection(UITraitCollection trait) { + return appearanceForTraitCollection(trait); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceForTraitCollection:whenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs) { + return appearanceForTraitCollectionWhenContainedIn(trait, ContainerClass, varargs); + } + + @Generated + @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes) { + return appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait, containerTypes); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceWhenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedIn( + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedIn(@Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, + Object... varargs) { + return appearanceWhenContainedIn(ContainerClass, varargs); + } + + @Generated + @Selector("appearanceWhenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes) { + return appearanceWhenContainedInInstancesOfClasses(containerTypes); + } + + @Generated + @Selector("areAnimationsEnabled") + public static native boolean areAnimationsEnabled(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("barData") + public native BarChartData barData(); + + @Generated + @Selector("beginAnimations:context:") + public static native void beginAnimationsContext(String animationID, VoidPtr context); + + @Generated + @Selector("bubbleData") + public native BubbleChartData bubbleData(); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("candleData") + public native CandleChartData candleData(); + + @Generated + @Selector("centerOffsets") + @ByValue + public native CGPoint centerOffsets(); + + @Generated + @Selector("chartXMax") + public native double chartXMax(); + + @Generated + @Selector("chartXMin") + public native double chartXMin(); + + @Generated + @Selector("chartYMax") + public native double chartYMax(); + + @Generated + @Selector("chartYMin") + public native double chartYMin(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clearTextInputContextIdentifier:") + public static native void clearTextInputContextIdentifier(String identifier); + + @Generated + @Selector("combinedData") + public native CombinedChartData combinedData(); + + @Generated + @Selector("commitAnimations") + public static native void commitAnimations(); + + @Generated + @Selector("data") + public native ChartData data(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * if set to true, a grey area is drawn behind each bar that indicates the maximum value + */ + @Generated + @Selector("drawBarShadowEnabled") + public native boolean drawBarShadowEnabled(); + + /** + * the order in which the provided data objects should be drawn. + * The earlier you place them in the provided array, the further they will be in the background. + * e.g. if you provide [DrawOrder.Bar, DrawOrder.Line], the bars will be drawn behind the lines. + */ + @Generated + @Selector("drawOrder") + public native NSArray drawOrder(); + + /** + * if set to true, all values are drawn above their bars, instead of below their top + */ + @Generated + @Selector("drawValueAboveBarEnabled") + public native boolean drawValueAboveBarEnabled(); + + @Generated + @Selector("fillFormatter") + @MappedReturn(ObjCObjectMapper.class) + public native IChartFillFormatter fillFormatter(); + + @Generated + @Selector("getAxis:") + public native ChartYAxis getAxis(@NInt long axis); + + /** + * returns: + * The Highlight object (contains x-index and DataSet index) of the selected value at the given touch point inside the CombinedChart. + */ + @Generated + @Selector("getHighlightByTouchPoint:") + public native ChartHighlight getHighlightByTouchPoint(@ByValue CGPoint pt); + + @Generated + @Selector("getTransformerForAxis:") + public native ChartTransformer getTransformerForAxis(@NInt long forAxis); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highestVisibleX") + public native double highestVisibleX(); + + /** + * Set this to true to make the highlight operation full-bar oriented, false to make it highlight single values + */ + @Generated + @Selector("highlightFullBarEnabled") + public native boolean highlightFullBarEnabled(); + + @Generated + @Selector("inheritedAnimationDuration") + public static native double inheritedAnimationDuration(); + + @Generated + @Selector("init") + public native CombinedChartView init(); + + @Generated + @Selector("initWithCoder:") + public native CombinedChartView initWithCoder(NSCoder aDecoder); + + @Generated + @Selector("initWithFrame:") + public native CombinedChartView initWithFrame(@ByValue CGRect frame); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isDrawBarShadowEnabled") + public native boolean isDrawBarShadowEnabled(); + + @Generated + @Selector("isDrawValueAboveBarEnabled") + public native boolean isDrawValueAboveBarEnabled(); + + @Generated + @Selector("isHighlightFullBarEnabled") + public native boolean isHighlightFullBarEnabled(); + + @Generated + @Selector("isInvertedWithAxis:") + public native boolean isInvertedWithAxis(@NInt long axis); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("layerClass") + public static native Class layerClass(); + + @Generated + @Selector("lineData") + public native LineChartData lineData(); + + @Generated + @Selector("lowestVisibleX") + public native double lowestVisibleX(); + + @Generated + @Selector("maxHighlightDistance") + @NFloat + public native double maxHighlightDistance(); + + @Generated + @Selector("maxVisibleCount") + @NInt + public native long maxVisibleCount(); + + @Generated + @Selector("modifyAnimationsWithRepeatCount:autoreverses:animations:") + public static native void modifyAnimationsWithRepeatCountAutoreversesAnimations( + @NFloat double count, + boolean autoreverses, + @ObjCBlock(name = "call_modifyAnimationsWithRepeatCountAutoreversesAnimations") UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("performSystemAnimation:onViews:options:animations:completion:") + public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( + @NUInt long animation, + NSArray views, + @NUInt long options, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("performWithoutAnimation:") + public static native void performWithoutAnimation( + @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); + + @Generated + @Selector("requiresConstraintBasedLayout") + public static native boolean requiresConstraintBasedLayout(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("scatterData") + public native ScatterChartData scatterData(); + + @Generated + @Selector("setAnimationBeginsFromCurrentState:") + public static native void setAnimationBeginsFromCurrentState(boolean fromCurrentState); + + @Generated + @Selector("setAnimationCurve:") + public static native void setAnimationCurve(@NInt long curve); + + @Generated + @Selector("setAnimationDelay:") + public static native void setAnimationDelay(double delay); + + @Generated + @Selector("setAnimationDelegate:") + public static native void setAnimationDelegate(@Mapped(ObjCObjectMapper.class) Object delegate); + + @Generated + @Selector("setAnimationDidStopSelector:") + public static native void setAnimationDidStopSelector(SEL selector); + + @Generated + @Selector("setAnimationDuration:") + public static native void setAnimationDuration_static(double duration); + + @Generated + @Selector("setAnimationRepeatAutoreverses:") + public static native void setAnimationRepeatAutoreverses(boolean repeatAutoreverses); + + @Generated + @Selector("setAnimationRepeatCount:") + public static native void setAnimationRepeatCount_static(float repeatCount); + + @Generated + @Selector("setAnimationStartDate:") + public static native void setAnimationStartDate(NSDate startDate); + + @Generated + @Selector("setAnimationTransition:forView:cache:") + public static native void setAnimationTransitionForViewCache(@NInt long transition, UIView view, boolean cache); + + @Generated + @Selector("setAnimationWillStartSelector:") + public static native void setAnimationWillStartSelector(SEL selector); + + @Generated + @Selector("setAnimationsEnabled:") + public static native void setAnimationsEnabled(boolean enabled); + + @Generated + @Selector("setData:") + public native void setData(ChartData value); + + /** + * if set to true, a grey area is drawn behind each bar that indicates the maximum value + */ + @Generated + @Selector("setDrawBarShadowEnabled:") + public native void setDrawBarShadowEnabled(boolean value); + + /** + * the order in which the provided data objects should be drawn. + * The earlier you place them in the provided array, the further they will be in the background. + * e.g. if you provide [DrawOrder.Bar, DrawOrder.Line], the bars will be drawn behind the lines. + */ + @Generated + @Selector("setDrawOrder:") + public native void setDrawOrder(NSArray value); + + /** + * if set to true, all values are drawn above their bars, instead of below their top + */ + @Generated + @Selector("setDrawValueAboveBarEnabled:") + public native void setDrawValueAboveBarEnabled(boolean value); + + @Generated + @Selector("setFillFormatter:") + public native void setFillFormatter(@Mapped(ObjCObjectMapper.class) IChartFillFormatter value); + + /** + * Set this to true to make the highlight operation full-bar oriented, false to make it highlight single values + */ + @Generated + @Selector("setHighlightFullBarEnabled:") + public native void setHighlightFullBarEnabled(boolean value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("transitionFromView:toView:duration:options:completion:") + public static native void transitionFromViewToViewDurationOptionsCompletion( + UIView fromView, + UIView toView, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); + + @Generated + @Selector("transitionWithView:duration:options:animations:completion:") + public static native void transitionWithViewDurationOptionsAnimationsCompletion( + UIView view, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttribute(@NInt long attribute); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( + @NInt long semanticContentAttribute, @NInt long layoutDirection); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("xRange") + public native double xRange(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CrossShapeRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CrossShapeRenderer.java index f4b2cf08..d74947f1 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CrossShapeRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/CrossShapeRenderer.java @@ -37,144 +37,119 @@ @ObjCClassName("_TtC6Charts18CrossShapeRenderer") @ObjCClassBinding public class CrossShapeRenderer extends NSObject implements IShapeRenderer { - static { - NatJ.register(); - } - - @Generated - protected CrossShapeRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native CrossShapeRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native CrossShapeRenderer init(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - public void renderShapeWithContextDataSetViewPortHandlerPointColor( - CGContextRef context, - IScatterChartDataSet dataSet, - ChartViewPortHandler viewPortHandler, @ByValue CGPoint point, - UIColor color) { - renderShapeWithContextDataSetViewPortHandlerPointColor(context, (Object)dataSet, viewPortHandler, point, color); - } - - @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") - public native void renderShapeWithContextDataSetViewPortHandlerPointColor( - CGContextRef context, - @Mapped(ObjCObjectMapper.class) Object dataSet, - ChartViewPortHandler viewPortHandler, @ByValue CGPoint point, - UIColor color); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected CrossShapeRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native CrossShapeRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native CrossShapeRenderer init(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") + public native void renderShapeWithContextDataSetViewPortHandlerPointColor(CGContextRef context, + @Mapped(ObjCObjectMapper.class) IScatterChartDataSet dataSet, ChartViewPortHandler viewPortHandler, + @ByValue CGPoint point, UIColor color); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/HorizontalBarChartHighlighter.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/HorizontalBarChartHighlighter.java index 44ca374d..5f11b1a5 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/HorizontalBarChartHighlighter.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/HorizontalBarChartHighlighter.java @@ -30,139 +30,121 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class HorizontalBarChartHighlighter extends BarChartHighlighter { - static { - NatJ.register(); - } - - @Generated - protected HorizontalBarChartHighlighter(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native HorizontalBarChartHighlighter alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("getHighlightWithX:y:") - public native ChartHighlight getHighlightWithXY(@NFloat double x, - @NFloat double y); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native HorizontalBarChartHighlighter init(); - - @Generated - @Selector("initWithChart:") - public native HorizontalBarChartHighlighter initWithChart( - @Mapped(ObjCObjectMapper.class) Object chart); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected HorizontalBarChartHighlighter(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native HorizontalBarChartHighlighter alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("getHighlightWithX:y:") + public native ChartHighlight getHighlightWithXY(@NFloat double x, @NFloat double y); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native HorizontalBarChartHighlighter init(); + + @Generated + @Selector("initWithChart:") + public native HorizontalBarChartHighlighter initWithChart(@Mapped(ObjCObjectMapper.class) Object chart); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/HorizontalBarChartRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/HorizontalBarChartRenderer.java index f4f16c1f..fef8a0b7 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/HorizontalBarChartRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/HorizontalBarChartRenderer.java @@ -35,164 +35,146 @@ @ObjCClassName("_TtC6Charts26HorizontalBarChartRenderer") @ObjCClassBinding public class HorizontalBarChartRenderer extends BarChartRenderer { - static { - NatJ.register(); - } - - @Generated - protected HorizontalBarChartRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native HorizontalBarChartRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawDataSetWithContext:dataSet:index:") - public native void drawDataSetWithContextDataSetIndex(CGContextRef context, - @Mapped(ObjCObjectMapper.class) IBarChartDataSet dataSet, - @NInt long index); - - @Generated - @Selector("drawValuesWithContext:") - public native void drawValuesWithContext(CGContextRef context); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native HorizontalBarChartRenderer init(); - - @Generated - @Selector("initBuffers") - public native void initBuffers(); - - @Generated - @Selector("initWithAnimator:viewPortHandler:") - public native HorizontalBarChartRenderer initWithAnimatorViewPortHandler( - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithDataProvider:animator:viewPortHandler:") - public native HorizontalBarChartRenderer initWithDataProviderAnimatorViewPortHandler( - @Mapped(ObjCObjectMapper.class) BarChartDataProvider dataProvider, - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:") - public native HorizontalBarChartRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawingValuesAllowedWithDataProvider:") - public native boolean isDrawingValuesAllowedWithDataProvider( - @Mapped(ObjCObjectMapper.class) ChartDataProvider dataProvider); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected HorizontalBarChartRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native HorizontalBarChartRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawDataSetWithContext:dataSet:index:") + public native void drawDataSetWithContextDataSetIndex(CGContextRef context, + @Mapped(ObjCObjectMapper.class) IBarChartDataSet dataSet, @NInt long index); + + @Generated + @Selector("drawValuesWithContext:") + public native void drawValuesWithContext(CGContextRef context); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native HorizontalBarChartRenderer init(); + + @Generated + @Selector("initBuffers") + public native void initBuffers(); + + @Generated + @Selector("initWithAnimator:viewPortHandler:") + public native HorizontalBarChartRenderer initWithAnimatorViewPortHandler(ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithDataProvider:animator:viewPortHandler:") + public native HorizontalBarChartRenderer initWithDataProviderAnimatorViewPortHandler( + @Mapped(ObjCObjectMapper.class) BarChartDataProvider dataProvider, ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:") + public native HorizontalBarChartRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isDrawingValuesAllowedWithDataProvider:") + public native boolean isDrawingValuesAllowedWithDataProvider( + @Mapped(ObjCObjectMapper.class) ChartDataProvider dataProvider); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/HorizontalBarChartView.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/HorizontalBarChartView.java index bb967b30..9a92b961 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/HorizontalBarChartView.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/HorizontalBarChartView.java @@ -11,6 +11,7 @@ import apple.foundation.NSSet; import apple.uikit.UITraitCollection; import apple.uikit.UIView; +import apple.uikit.protocol.UIAppearanceContainer; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.c.ann.Variadic; import org.moe.natj.general.NatJ; @@ -36,469 +37,446 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +/** + * BarChart with horizontal bar orientation. In this implementation, x- and y-axis are switched. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts22HorizontalBarChartView") @ObjCClassBinding public class HorizontalBarChartView extends BarChartView { - static { - NatJ.register(); - } - - @Generated - protected HorizontalBarChartView(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") - public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( - double frameStartTime, - double frameDuration, - @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); - - @Generated - @Owned - @Selector("alloc") - public static native HorizontalBarChartView alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") - public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:animations:") - public static native void animateWithDurationAnimations( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); - - @Generated - @Selector("animateWithDuration:animations:completion:") - public static native void animateWithDurationAnimationsCompletion( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); - - @Generated - @Selector("animateWithDuration:delay:options:animations:completion:") - public static native void animateWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") - public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( - double duration, - double delay, - @NFloat double dampingRatio, - @NFloat double velocity, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); - - @Generated - @Selector("appearance") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearance(); - - @Generated - @ProtocolClassMethod("appearance") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearance() { - return appearance(); - } - - @Generated - @Selector("appearanceForTraitCollection:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollection( - UITraitCollection trait); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollection") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollection(UITraitCollection trait) { - return appearanceForTraitCollection(trait); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceForTraitCollection:whenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceForTraitCollectionWhenContainedIn(trait, - ContainerClass, varargs); - } - - @Generated - @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes) { - return appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - trait, containerTypes); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceWhenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceWhenContainedIn(ContainerClass, varargs); - } - - @Generated - @Selector("appearanceWhenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes) { - return appearanceWhenContainedInInstancesOfClasses(containerTypes); - } - - @Generated - @Selector("areAnimationsEnabled") - public static native boolean areAnimationsEnabled(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("beginAnimations:context:") - public static native void beginAnimationsContext(String animationID, - VoidPtr context); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clearTextInputContextIdentifier:") - public static native void clearTextInputContextIdentifier(String identifier); - - @Generated - @Selector("commitAnimations") - public static native void commitAnimations(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("getBarBoundsWithEntry:") - @ByValue - public native CGRect getBarBoundsWithEntry(BarChartDataEntry e); - - @Generated - @Selector("getHighlightByTouchPoint:") - public native ChartHighlight getHighlightByTouchPoint(@ByValue CGPoint pt); - - @Generated - @Selector("getMarkerPositionWithHighlight:") - @ByValue - public native CGPoint getMarkerPositionWithHighlight( - ChartHighlight highlight); - - @Generated - @Selector("getPositionWithEntry:axis:") - @ByValue - public native CGPoint getPositionWithEntryAxis(ChartDataEntry e, - @NInt long axis); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highestVisibleX") - public native double highestVisibleX(); - - @Generated - @Selector("inheritedAnimationDuration") - public static native double inheritedAnimationDuration(); - - @Generated - @Selector("init") - public native HorizontalBarChartView init(); - - @Generated - @Selector("initWithCoder:") - public native HorizontalBarChartView initWithCoder(NSCoder aDecoder); - - @Generated - @Selector("initWithFrame:") - public native HorizontalBarChartView initWithFrame(@ByValue CGRect frame); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("layerClass") - public static native Class layerClass(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("lowestVisibleX") - public native double lowestVisibleX(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("performSystemAnimation:onViews:options:animations:completion:") - public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( - @NUInt long animation, - NSArray views, - @NUInt long options, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("performWithoutAnimation:") - public static native void performWithoutAnimation( - @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); - - @Generated - @Selector("requiresConstraintBasedLayout") - public static native boolean requiresConstraintBasedLayout(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setAnimationBeginsFromCurrentState:") - public static native void setAnimationBeginsFromCurrentState( - boolean fromCurrentState); - - @Generated - @Selector("setAnimationCurve:") - public static native void setAnimationCurve(@NInt long curve); - - @Generated - @Selector("setAnimationDelay:") - public static native void setAnimationDelay(double delay); - - @Generated - @Selector("setAnimationDelegate:") - public static native void setAnimationDelegate( - @Mapped(ObjCObjectMapper.class) Object delegate); - - @Generated - @Selector("setAnimationDidStopSelector:") - public static native void setAnimationDidStopSelector(SEL selector); - - @Generated - @Selector("setAnimationDuration:") - public static native void setAnimationDuration_static(double duration); - - @Generated - @Selector("setAnimationRepeatAutoreverses:") - public static native void setAnimationRepeatAutoreverses( - boolean repeatAutoreverses); - - @Generated - @Selector("setAnimationRepeatCount:") - public static native void setAnimationRepeatCount_static(float repeatCount); - - @Generated - @Selector("setAnimationStartDate:") - public static native void setAnimationStartDate(NSDate startDate); - - @Generated - @Selector("setAnimationTransition:forView:cache:") - public static native void setAnimationTransitionForViewCache( - @NInt long transition, UIView view, boolean cache); - - @Generated - @Selector("setAnimationWillStartSelector:") - public static native void setAnimationWillStartSelector(SEL selector); - - @Generated - @Selector("setAnimationsEnabled:") - public static native void setAnimationsEnabled(boolean enabled); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setVisibleXRangeMaximum:") - public native void setVisibleXRangeMaximum(double maxXRange); - - @Generated - @Selector("setVisibleXRangeMinimum:") - public native void setVisibleXRangeMinimum(double minXRange); - - @Generated - @Selector("setVisibleXRangeWithMinXRange:maxXRange:") - public native void setVisibleXRangeWithMinXRangeMaxXRange(double minXRange, - double maxXRange); - - @Generated - @Selector("setVisibleYRangeMaximum:axis:") - public native void setVisibleYRangeMaximumAxis(double maxYRange, - @NInt long axis); - - @Generated - @Selector("setVisibleYRangeMinimum:axis:") - public native void setVisibleYRangeMinimumAxis(double minYRange, - @NInt long axis); - - @Generated - @Selector("setVisibleYRangeWithMinYRange:maxYRange:axis:") - public native void setVisibleYRangeWithMinYRangeMaxYRangeAxis( - double minYRange, double maxYRange, @NInt long axis); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transitionFromView:toView:duration:options:completion:") - public static native void transitionFromViewToViewDurationOptionsCompletion( - UIView fromView, - UIView toView, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); - - @Generated - @Selector("transitionWithView:duration:options:animations:completion:") - public static native void transitionWithViewDurationOptionsAnimationsCompletion( - UIView view, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttribute( - @NInt long attribute); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( - @NInt long semanticContentAttribute, @NInt long layoutDirection); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected HorizontalBarChartView(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") + public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( + double frameStartTime, + double frameDuration, + @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); + + @Generated + @Owned + @Selector("alloc") + public static native HorizontalBarChartView alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") + public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:animations:") + public static native void animateWithDurationAnimations( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); + + @Generated + @Selector("animateWithDuration:animations:completion:") + public static native void animateWithDurationAnimationsCompletion( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); + + @Generated + @Selector("animateWithDuration:delay:options:animations:completion:") + public static native void animateWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") + public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( + double duration, + double delay, + @NFloat double dampingRatio, + @NFloat double velocity, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); + + @Generated + @Selector("appearance") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearance(); + + @Generated + @ProtocolClassMethod("appearance") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearance() { + return appearance(); + } + + @Generated + @Selector("appearanceForTraitCollection:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollection(UITraitCollection trait); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollection") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollection(UITraitCollection trait) { + return appearanceForTraitCollection(trait); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceForTraitCollection:whenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs) { + return appearanceForTraitCollectionWhenContainedIn(trait, ContainerClass, varargs); + } + + @Generated + @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes) { + return appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait, containerTypes); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceWhenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedIn( + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedIn(@Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, + Object... varargs) { + return appearanceWhenContainedIn(ContainerClass, varargs); + } + + @Generated + @Selector("appearanceWhenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes) { + return appearanceWhenContainedInInstancesOfClasses(containerTypes); + } + + @Generated + @Selector("areAnimationsEnabled") + public static native boolean areAnimationsEnabled(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("beginAnimations:context:") + public static native void beginAnimationsContext(String animationID, VoidPtr context); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clearTextInputContextIdentifier:") + public static native void clearTextInputContextIdentifier(String identifier); + + @Generated + @Selector("commitAnimations") + public static native void commitAnimations(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("getBarBoundsWithEntry:") + @ByValue + public native CGRect getBarBoundsWithEntry(BarChartDataEntry e); + + @Generated + @Selector("getHighlightByTouchPoint:") + public native ChartHighlight getHighlightByTouchPoint(@ByValue CGPoint pt); + + @Generated + @Selector("getMarkerPositionWithHighlight:") + @ByValue + public native CGPoint getMarkerPositionWithHighlight(ChartHighlight highlight); + + @Generated + @Selector("getPositionWithEntry:axis:") + @ByValue + public native CGPoint getPositionWithEntryAxis(ChartDataEntry e, @NInt long axis); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + /** + * The highest x-index (value on the x-axis) that is still visible on the chart. + */ + @Generated + @Selector("highestVisibleX") + public native double highestVisibleX(); + + @Generated + @Selector("inheritedAnimationDuration") + public static native double inheritedAnimationDuration(); + + @Generated + @Selector("init") + public native HorizontalBarChartView init(); + + @Generated + @Selector("initWithCoder:") + public native HorizontalBarChartView initWithCoder(NSCoder aDecoder); + + @Generated + @Selector("initWithFrame:") + public native HorizontalBarChartView initWithFrame(@ByValue CGRect frame); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("layerClass") + public static native Class layerClass(); + + /** + * The lowest x-index (value on the x-axis) that is still visible on he chart. + */ + @Generated + @Selector("lowestVisibleX") + public native double lowestVisibleX(); + + @Generated + @Selector("modifyAnimationsWithRepeatCount:autoreverses:animations:") + public static native void modifyAnimationsWithRepeatCountAutoreversesAnimations( + @NFloat double count, + boolean autoreverses, + @ObjCBlock(name = "call_modifyAnimationsWithRepeatCountAutoreversesAnimations") UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("performSystemAnimation:onViews:options:animations:completion:") + public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( + @NUInt long animation, + NSArray views, + @NUInt long options, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("performWithoutAnimation:") + public static native void performWithoutAnimation( + @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); + + @Generated + @Selector("requiresConstraintBasedLayout") + public static native boolean requiresConstraintBasedLayout(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setAnimationBeginsFromCurrentState:") + public static native void setAnimationBeginsFromCurrentState(boolean fromCurrentState); + + @Generated + @Selector("setAnimationCurve:") + public static native void setAnimationCurve(@NInt long curve); + + @Generated + @Selector("setAnimationDelay:") + public static native void setAnimationDelay(double delay); + + @Generated + @Selector("setAnimationDelegate:") + public static native void setAnimationDelegate(@Mapped(ObjCObjectMapper.class) Object delegate); + + @Generated + @Selector("setAnimationDidStopSelector:") + public static native void setAnimationDidStopSelector(SEL selector); + + @Generated + @Selector("setAnimationDuration:") + public static native void setAnimationDuration_static(double duration); + + @Generated + @Selector("setAnimationRepeatAutoreverses:") + public static native void setAnimationRepeatAutoreverses(boolean repeatAutoreverses); + + @Generated + @Selector("setAnimationRepeatCount:") + public static native void setAnimationRepeatCount_static(float repeatCount); + + @Generated + @Selector("setAnimationStartDate:") + public static native void setAnimationStartDate(NSDate startDate); + + @Generated + @Selector("setAnimationTransition:forView:cache:") + public static native void setAnimationTransitionForViewCache(@NInt long transition, UIView view, boolean cache); + + @Generated + @Selector("setAnimationWillStartSelector:") + public static native void setAnimationWillStartSelector(SEL selector); + + @Generated + @Selector("setAnimationsEnabled:") + public static native void setAnimationsEnabled(boolean enabled); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("setVisibleXRangeMaximum:") + public native void setVisibleXRangeMaximum(double maxXRange); + + @Generated + @Selector("setVisibleXRangeMinimum:") + public native void setVisibleXRangeMinimum(double minXRange); + + @Generated + @Selector("setVisibleXRangeWithMinXRange:maxXRange:") + public native void setVisibleXRangeWithMinXRangeMaxXRange(double minXRange, double maxXRange); + + @Generated + @Selector("setVisibleYRangeMaximum:axis:") + public native void setVisibleYRangeMaximumAxis(double maxYRange, @NInt long axis); + + @Generated + @Selector("setVisibleYRangeMinimum:axis:") + public native void setVisibleYRangeMinimumAxis(double minYRange, @NInt long axis); + + @Generated + @Selector("setVisibleYRangeWithMinYRange:maxYRange:axis:") + public native void setVisibleYRangeWithMinYRangeMaxYRangeAxis(double minYRange, double maxYRange, @NInt long axis); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("transitionFromView:toView:duration:options:completion:") + public static native void transitionFromViewToViewDurationOptionsCompletion( + UIView fromView, + UIView toView, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); + + @Generated + @Selector("transitionWithView:duration:options:animations:completion:") + public static native void transitionWithViewDurationOptionsAnimationsCompletion( + UIView view, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttribute(@NInt long attribute); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( + @NInt long semanticContentAttribute, @NInt long layoutDirection); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartData.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartData.java index bd343481..3f788e3b 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartData.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartData.java @@ -26,144 +26,130 @@ import org.moe.natj.objc.map.ObjCObjectMapper; import org.moe.samples.simplechart.charts.protocol.IChartDataSet; +/** + * Data object that encapsulates all data associated with a LineChart. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts13LineChartData") @ObjCClassBinding public class LineChartData extends ChartData { - static { - NatJ.register(); - } - - @Generated - protected LineChartData(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native LineChartData alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native LineChartData init(); - - @Generated - @Selector("initWithDataSet:") - public native LineChartData initWithDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); - - @Generated - @Selector("initWithDataSets:") - public native LineChartData initWithDataSets(NSArray dataSets); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected LineChartData(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native LineChartData alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native LineChartData init(); + + @Generated + @Selector("initWithDataSet:") + public native LineChartData initWithDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); + + @Generated + @Selector("initWithDataSets:") + public native LineChartData initWithDataSets(NSArray dataSets); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartDataSet.java index 7a5b6654..3f1b506e 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartDataSet.java @@ -2,6 +2,7 @@ import apple.NSObject; +import apple.coregraphics.struct.CGPoint; import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSNumber; @@ -11,6 +12,7 @@ import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; +import org.moe.natj.general.ann.ByValue; import org.moe.natj.general.ann.Generated; import org.moe.natj.general.ann.Library; import org.moe.natj.general.ann.Mapped; @@ -29,6 +31,7 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; import org.moe.samples.simplechart.charts.protocol.IChartFillFormatter; +import org.moe.samples.simplechart.charts.protocol.IChartValueFormatter; import org.moe.samples.simplechart.charts.protocol.ILineChartDataSet; @Generated @@ -36,632 +39,607 @@ @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts16LineChartDataSet") @ObjCClassBinding -public class LineChartDataSet extends LineRadarChartDataSet implements - ILineChartDataSet { - static { - NatJ.register(); - } - - @Generated - protected LineChartDataSet(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addColor:") - public native void addColor(UIColor color); - - @Generated - @Selector("addEntry:") - public native boolean addEntry(ChartDataEntry e); - - @Generated - @Selector("addEntryOrdered:") - public native boolean addEntryOrdered(ChartDataEntry e); - - @Generated - @Owned - @Selector("alloc") - public static native LineChartDataSet alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("axisDependency") - @NInt - public native long axisDependency(); - - @Generated - @Selector("calcMinMax") - public native void calcMinMax(); - - @Generated - @Selector("calcMinMaxYFromX:toX:") - public native void calcMinMaxYFromXToX(double fromX, double toX); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("circleColors") - public native NSArray circleColors(); - - @Generated - @Selector("circleHoleColor") - public native UIColor circleHoleColor(); - - @Generated - @Selector("circleHoleRadius") - @NFloat - public native double circleHoleRadius(); - - @Generated - @Selector("circleRadius") - @NFloat - public native double circleRadius(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clear") - public native void clear(); - - @Generated - @Selector("colorAtIndex:") - public native UIColor colorAtIndex(@NInt long atIndex); - - @Generated - @Selector("colors") - public native NSArray colors(); - - @Generated - @Selector("contains:") - public native boolean contains(ChartDataEntry e); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("cubicIntensity") - @NFloat - public native double cubicIntensity(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawCircleHoleEnabled") - public native boolean drawCircleHoleEnabled(); - - @Generated - @Selector("drawCirclesEnabled") - public native boolean drawCirclesEnabled(); - - @Generated - @Selector("drawCubicEnabled") - public native boolean drawCubicEnabled(); - - @Generated - @Selector("drawFilledEnabled") - public native boolean drawFilledEnabled(); - - @Generated - @Selector("drawHorizontalHighlightIndicatorEnabled") - public native boolean drawHorizontalHighlightIndicatorEnabled(); - - @Generated - @Selector("drawSteppedEnabled") - public native boolean drawSteppedEnabled(); - - @Generated - @Selector("drawValuesEnabled") - public native boolean drawValuesEnabled(); - - @Generated - @Selector("drawVerticalHighlightIndicatorEnabled") - public native boolean drawVerticalHighlightIndicatorEnabled(); - - @Generated - @Selector("entriesForXValue:") - public native NSArray entriesForXValue( - double xValue); - - @Generated - @Selector("entryCount") - @NInt - public native long entryCount(); - - @Generated - @Selector("entryForIndex:") - public native ChartDataEntry entryForIndex(@NInt long i); - - @Generated - @Selector("entryForXValue:closestToY:") - public native ChartDataEntry entryForXValueClosestToY(double xValue, - double yValue); - - @Generated - @Selector("entryForXValue:closestToY:rounding:") - public native ChartDataEntry entryForXValueClosestToYRounding( - double xValue, double yValue, @NInt long rounding); - - @Generated - @Selector("entryIndexWithEntry:") - @NInt - public native long entryIndexWithEntry(ChartDataEntry e); - - @Generated - @Selector("entryIndexWithX:closestToY:rounding:") - @NInt - public native long entryIndexWithXClosestToYRounding(double xValue, - double yValue, @NInt long rounding); - - @Generated - @Selector("fill") - public native ChartFill fill(); - - @Generated - @Selector("fillAlpha") - @NFloat - public native double fillAlpha(); - - @Generated - @Selector("fillColor") - public native UIColor fillColor(); - - @Generated - @Selector("fillFormatter") - @MappedReturn(ObjCObjectMapper.class) - public native IChartFillFormatter fillFormatter(); - - @Generated - @Selector("form") - @NInt - public native long form(); - - @Generated - @Selector("formLineDashLengths") - public native NSArray formLineDashLengths(); - - @Generated - @Selector("formLineDashPhase") - @NFloat - public native double formLineDashPhase(); - - @Generated - @Selector("formLineWidth") - @NFloat - public native double formLineWidth(); - - @Generated - @Selector("formSize") - @NFloat - public native double formSize(); - - @Generated - @Selector("getCircleColorAtIndex:") - public native UIColor getCircleColorAtIndex(@NInt long index); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highlightColor") - public native UIColor highlightColor(); - - @Generated - @Selector("highlightEnabled") - public native boolean highlightEnabled(); - - @Generated - @Selector("highlightLineDashLengths") - public native NSArray highlightLineDashLengths(); - - @Generated - @Selector("highlightLineDashPhase") - @NFloat - public native double highlightLineDashPhase(); - - @Generated - @Selector("highlightLineWidth") - @NFloat - public native double highlightLineWidth(); - - @Generated - @Selector("init") - public native LineChartDataSet init(); - - @Generated - @Selector("initWithLabel:") - public native LineChartDataSet initWithLabel(String label); - - @Generated - @Selector("initWithValues:") - public native LineChartDataSet initWithValues( - NSArray values); - - @Generated - @Selector("initWithValues:label:") - public native LineChartDataSet initWithValuesLabel( - NSArray values, String label); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawCircleHoleEnabled") - public native boolean isDrawCircleHoleEnabled(); - - @Generated - @Selector("isDrawCirclesEnabled") - public native boolean isDrawCirclesEnabled(); - - @Generated - @Selector("isDrawCubicEnabled") - public native boolean isDrawCubicEnabled(); - - @Generated - @Selector("isDrawFilledEnabled") - public native boolean isDrawFilledEnabled(); - - @Generated - @Selector("isDrawSteppedEnabled") - public native boolean isDrawSteppedEnabled(); - - @Generated - @Selector("isDrawValuesEnabled") - public native boolean isDrawValuesEnabled(); - - @Generated - @Selector("isHighlightEnabled") - public native boolean isHighlightEnabled(); - - @Generated - @Selector("isHorizontalHighlightIndicatorEnabled") - public native boolean isHorizontalHighlightIndicatorEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("isVerticalHighlightIndicatorEnabled") - public native boolean isVerticalHighlightIndicatorEnabled(); - - @Generated - @Selector("isVisible") - public native boolean isVisible(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("label") - public native String label(); - - @Generated - @Selector("lineCapType") - public native int lineCapType(); - - @Generated - @Selector("lineDashLengths") - public native NSArray lineDashLengths(); - - @Generated - @Selector("lineDashPhase") - @NFloat - public native double lineDashPhase(); - - @Generated - @Selector("lineWidth") - @NFloat - public native double lineWidth(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("mode") - @NInt - public native long mode(); - - @Generated - @Selector("needsFormatter") - public native boolean needsFormatter(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("removeEntry:") - public native boolean removeEntry(ChartDataEntry entry); - - @Generated - @Selector("removeEntryWithIndex:") - public native boolean removeEntryWithIndex(@NInt long index); - - @Generated - @Selector("removeEntryWithX:") - public native boolean removeEntryWithX(double x); - - @Generated - @Selector("removeFirst") - public native boolean removeFirst(); - - @Generated - @Selector("removeLast") - public native boolean removeLast(); - - @Generated - @Selector("resetCircleColors:") - public native void resetCircleColors(@NInt long index); - - @Generated - @Selector("resetColors") - public native void resetColors(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setCircleColor:") - public native void setCircleColor(UIColor color); - - @Generated - @Selector("setCircleColors:") - public native void setCircleColors(NSArray value); - - @Generated - @Selector("setCircleHoleColor:") - public native void setCircleHoleColor(UIColor value); - - @Generated - @Selector("setCircleHoleRadius:") - public native void setCircleHoleRadius(@NFloat double value); - - @Generated - @Selector("setCircleRadius:") - public native void setCircleRadius(@NFloat double value); - - @Generated - @Selector("setColor:") - public native void setColor(UIColor color); - - @Generated - @Selector("setCubicIntensity:") - public native void setCubicIntensity(@NFloat double value); - - @Generated - @Selector("setDrawCircleHoleEnabled:") - public native void setDrawCircleHoleEnabled(boolean value); - - @Generated - @Selector("setDrawCirclesEnabled:") - public native void setDrawCirclesEnabled(boolean value); - - @Generated - @Selector("setDrawCubicEnabled:") - public native void setDrawCubicEnabled(boolean value); - - @Generated - @Selector("setDrawFilledEnabled:") - public native void setDrawFilledEnabled(boolean value); - - @Generated - @Selector("setDrawHighlightIndicators:") - public native void setDrawHighlightIndicators(boolean enabled); - - @Generated - @Selector("setDrawHorizontalHighlightIndicatorEnabled:") - public native void setDrawHorizontalHighlightIndicatorEnabled(boolean value); - - @Generated - @Selector("setDrawSteppedEnabled:") - public native void setDrawSteppedEnabled(boolean value); - - @Generated - @Selector("setDrawValuesEnabled:") - public native void setDrawValuesEnabled(boolean value); +public class LineChartDataSet extends LineRadarChartDataSet implements ILineChartDataSet { + static { + NatJ.register(); + } + + @Generated + protected LineChartDataSet(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addColor:") + public native void addColor(UIColor color); + + @Generated + @Selector("addEntry:") + public native boolean addEntry(ChartDataEntry e); + + @Generated + @Selector("addEntryOrdered:") + public native boolean addEntryOrdered(ChartDataEntry e); + + @Generated + @Owned + @Selector("alloc") + public static native LineChartDataSet alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("axisDependency") + @NInt + public native long axisDependency(); + + @Generated + @Selector("calcMinMax") + public native void calcMinMax(); + + @Generated + @Selector("calcMinMaxYFromX:toX:") + public native void calcMinMaxYFromXToX(double fromX, double toX); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("circleColors") + public native NSArray circleColors(); + + @Generated + @Selector("circleHoleColor") + public native UIColor circleHoleColor(); + + @Generated + @Selector("circleHoleRadius") + @NFloat + public native double circleHoleRadius(); + + @Generated + @Selector("circleRadius") + @NFloat + public native double circleRadius(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clear") + public native void clear(); + + @Generated + @Selector("colorAtIndex:") + public native UIColor colorAtIndex(@NInt long atIndex); + + @Generated + @Selector("colors") + public native NSArray colors(); + + @Generated + @Selector("contains:") + public native boolean contains(ChartDataEntry e); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("cubicIntensity") + @NFloat + public native double cubicIntensity(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawCircleHoleEnabled") + public native boolean drawCircleHoleEnabled(); + + @Generated + @Selector("drawCirclesEnabled") + public native boolean drawCirclesEnabled(); + + @Generated + @Selector("drawFilledEnabled") + public native boolean drawFilledEnabled(); + + @Generated + @Selector("drawHorizontalHighlightIndicatorEnabled") + public native boolean drawHorizontalHighlightIndicatorEnabled(); + + @Generated + @Selector("drawIconsEnabled") + public native boolean drawIconsEnabled(); + + @Generated + @Selector("drawValuesEnabled") + public native boolean drawValuesEnabled(); + + @Generated + @Selector("drawVerticalHighlightIndicatorEnabled") + public native boolean drawVerticalHighlightIndicatorEnabled(); + + @Generated + @Selector("entriesForXValue:") + public native NSArray entriesForXValue(double xValue); + + @Generated + @Selector("entryCount") + @NInt + public native long entryCount(); + + @Generated + @Selector("entryForIndex:") + public native ChartDataEntry entryForIndex(@NInt long i); + + @Generated + @Selector("entryForXValue:closestToY:") + public native ChartDataEntry entryForXValueClosestToY(double xValue, double yValue); + + @Generated + @Selector("entryForXValue:closestToY:rounding:") + public native ChartDataEntry entryForXValueClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("entryIndexWithEntry:") + @NInt + public native long entryIndexWithEntry(ChartDataEntry e); + + @Generated + @Selector("entryIndexWithX:closestToY:rounding:") + @NInt + public native long entryIndexWithXClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("fill") + public native ChartFill fill(); + + @Generated + @Selector("fillAlpha") + @NFloat + public native double fillAlpha(); + + @Generated + @Selector("fillColor") + public native UIColor fillColor(); + + @Generated + @Selector("fillFormatter") + @MappedReturn(ObjCObjectMapper.class) + public native IChartFillFormatter fillFormatter(); + + @Generated + @Selector("form") + @NInt + public native long form(); + + @Generated + @Selector("formLineDashLengths") + public native NSArray formLineDashLengths(); + + @Generated + @Selector("formLineDashPhase") + @NFloat + public native double formLineDashPhase(); + + @Generated + @Selector("formLineWidth") + @NFloat + public native double formLineWidth(); + + @Generated + @Selector("formSize") + @NFloat + public native double formSize(); + + @Generated + @Selector("getCircleColorAtIndex:") + public native UIColor getCircleColorAtIndex(@NInt long index); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highlightColor") + public native UIColor highlightColor(); + + @Generated + @Selector("highlightEnabled") + public native boolean highlightEnabled(); + + @Generated + @Selector("highlightLineDashLengths") + public native NSArray highlightLineDashLengths(); + + @Generated + @Selector("highlightLineDashPhase") + @NFloat + public native double highlightLineDashPhase(); + + @Generated + @Selector("highlightLineWidth") + @NFloat + public native double highlightLineWidth(); + + @Generated + @Selector("iconsOffset") + @ByValue + public native CGPoint iconsOffset(); + + @Generated + @Selector("init") + public native LineChartDataSet init(); + + @Generated + @Selector("initWithEntries:") + public native LineChartDataSet initWithEntries(NSArray entries); + + @Generated + @Selector("initWithEntries:label:") + public native LineChartDataSet initWithEntriesLabel(NSArray entries, String label); + + @Generated + @Selector("initWithLabel:") + public native LineChartDataSet initWithLabel(String label); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isDrawCircleHoleEnabled") + public native boolean isDrawCircleHoleEnabled(); + + @Generated + @Selector("isDrawCirclesEnabled") + public native boolean isDrawCirclesEnabled(); + + @Generated + @Selector("isDrawFilledEnabled") + public native boolean isDrawFilledEnabled(); + + @Generated + @Selector("isDrawIconsEnabled") + public native boolean isDrawIconsEnabled(); + + @Generated + @Selector("isDrawValuesEnabled") + public native boolean isDrawValuesEnabled(); + + @Generated + @Selector("isHighlightEnabled") + public native boolean isHighlightEnabled(); + + @Generated + @Selector("isHorizontalHighlightIndicatorEnabled") + public native boolean isHorizontalHighlightIndicatorEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("isVerticalHighlightIndicatorEnabled") + public native boolean isVerticalHighlightIndicatorEnabled(); + + @Generated + @Selector("isVisible") + public native boolean isVisible(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("label") + public native String label(); + + @Generated + @Selector("lineCapType") + public native int lineCapType(); + + @Generated + @Selector("lineDashLengths") + public native NSArray lineDashLengths(); + + @Generated + @Selector("lineDashPhase") + @NFloat + public native double lineDashPhase(); + + @Generated + @Selector("lineWidth") + @NFloat + public native double lineWidth(); + + @Generated + @Selector("mode") + @NInt + public native long mode(); + + @Generated + @Selector("needsFormatter") + public native boolean needsFormatter(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("notifyDataSetChanged") + public native void notifyDataSetChanged(); + + @Generated + @Selector("removeEntry:") + public native boolean removeEntry(ChartDataEntry entry); + + @Generated + @Selector("removeEntryWithIndex:") + public native boolean removeEntryWithIndex(@NInt long index); + + @Generated + @Selector("removeEntryWithX:") + public native boolean removeEntryWithX(double x); + + @Generated + @Selector("removeFirst") + public native boolean removeFirst(); + + @Generated + @Selector("removeLast") + public native boolean removeLast(); + + @Generated + @Selector("resetCircleColors:") + public native void resetCircleColors(@NInt long index); + + @Generated + @Selector("resetColors") + public native void resetColors(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setCircleColor:") + public native void setCircleColor(UIColor color); + + @Generated + @Selector("setCircleColors:") + public native void setCircleColors(NSArray value); + + @Generated + @Selector("setCircleHoleColor:") + public native void setCircleHoleColor(UIColor value); + + @Generated + @Selector("setCircleHoleRadius:") + public native void setCircleHoleRadius(@NFloat double value); + + @Generated + @Selector("setCircleRadius:") + public native void setCircleRadius(@NFloat double value); + + @Generated + @Selector("setColor:") + public native void setColor(UIColor color); + + @Generated + @Selector("setCubicIntensity:") + public native void setCubicIntensity(@NFloat double value); + + @Generated + @Selector("setDrawCircleHoleEnabled:") + public native void setDrawCircleHoleEnabled(boolean value); + + @Generated + @Selector("setDrawCirclesEnabled:") + public native void setDrawCirclesEnabled(boolean value); + + @Generated + @Selector("setDrawFilledEnabled:") + public native void setDrawFilledEnabled(boolean value); + + @Generated + @Selector("setDrawHighlightIndicators:") + public native void setDrawHighlightIndicators(boolean enabled); + + @Generated + @Selector("setDrawHorizontalHighlightIndicatorEnabled:") + public native void setDrawHorizontalHighlightIndicatorEnabled(boolean value); + + @Generated + @Selector("setDrawIconsEnabled:") + public native void setDrawIconsEnabled(boolean value); + + @Generated + @Selector("setDrawValuesEnabled:") + public native void setDrawValuesEnabled(boolean value); + + @Generated + @Selector("setDrawVerticalHighlightIndicatorEnabled:") + public native void setDrawVerticalHighlightIndicatorEnabled(boolean value); - @Generated - @Selector("setDrawVerticalHighlightIndicatorEnabled:") - public native void setDrawVerticalHighlightIndicatorEnabled(boolean value); + @Generated + @Selector("setFill:") + public native void setFill(ChartFill value); - @Generated - @Selector("setFill:") - public native void setFill(ChartFill value); + @Generated + @Selector("setFillAlpha:") + public native void setFillAlpha(@NFloat double value); - @Generated - @Selector("setFillAlpha:") - public native void setFillAlpha(@NFloat double value); - - @Generated - @Selector("setFillColor:") - public native void setFillColor(UIColor value); - - @Selector("setFillFormatter:") - public native void setFillFormatter( - @Mapped(ObjCObjectMapper.class) Object value); - - @Generated - @Selector("setHighlightColor:") - public native void setHighlightColor(UIColor value); - - @Generated - @Selector("setHighlightEnabled:") - public native void setHighlightEnabled(boolean value); - - @Generated - @Selector("setHighlightLineDashLengths:") - public native void setHighlightLineDashLengths( - NSArray value); - - @Generated - @Selector("setHighlightLineDashPhase:") - public native void setHighlightLineDashPhase(@NFloat double value); - - @Generated - @Selector("setHighlightLineWidth:") - public native void setHighlightLineWidth(@NFloat double value); - - @Generated - @Selector("setLineCapType:") - public native void setLineCapType(int value); - - @Generated - @Selector("setLineDashLengths:") - public native void setLineDashLengths(NSArray value); - - @Generated - @Selector("setLineDashPhase:") - public native void setLineDashPhase(@NFloat double value); - - @Generated - @Selector("setLineWidth:") - public native void setLineWidth(@NFloat double value); - - @Generated - @Selector("setMode:") - public native void setMode(@NInt long value); - - @Generated - @Selector("setValueFont:") - public native void setValueFont(UIFont value); - - @Generated - @Selector("setValueFormatter:") - public native void setValueFormatter( - @Mapped(ObjCObjectMapper.class) Object value); - - @Generated - @Selector("setValueTextColor:") - public native void setValueTextColor(UIColor value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setVisible:") - public native void setVisible(boolean value); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("valueColors") - public native NSArray valueColors(); - - @Generated - @Selector("valueFont") - public native UIFont valueFont(); - - @Generated - @Selector("valueFormatter") - @MappedReturn(ObjCObjectMapper.class) - public native Object valueFormatter(); - - @Generated - @Selector("valueTextColor") - public native UIColor valueTextColor(); - - @Generated - @Selector("valueTextColorAt:") - public native UIColor valueTextColorAt(@NInt long index); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("visible") - public native boolean visible(); - - @Generated - @Selector("xMax") - public native double xMax(); - - @Generated - @Selector("xMin") - public native double xMin(); - - @Generated - @Selector("yMax") - public native double yMax(); - - @Generated - @Selector("yMin") - public native double yMin(); + @Generated + @Selector("setFillColor:") + public native void setFillColor(UIColor value); + + @Generated + @Selector("setFillFormatter:") + public native void setFillFormatter(@Mapped(ObjCObjectMapper.class) IChartFillFormatter value); + + @Generated + @Selector("setHighlightColor:") + public native void setHighlightColor(UIColor value); + + @Generated + @Selector("setHighlightEnabled:") + public native void setHighlightEnabled(boolean value); + + @Generated + @Selector("setHighlightLineDashLengths:") + public native void setHighlightLineDashLengths(NSArray value); + + @Generated + @Selector("setHighlightLineDashPhase:") + public native void setHighlightLineDashPhase(@NFloat double value); + + @Generated + @Selector("setHighlightLineWidth:") + public native void setHighlightLineWidth(@NFloat double value); + + @Generated + @Selector("setIconsOffset:") + public native void setIconsOffset(@ByValue CGPoint value); + + @Generated + @Selector("setLineCapType:") + public native void setLineCapType(int value); + + @Generated + @Selector("setLineDashLengths:") + public native void setLineDashLengths(NSArray value); + + /** + * This is how much (in pixels) into the dash pattern are we starting from. + */ + @Generated + @Selector("setLineDashPhase:") + public native void setLineDashPhase(@NFloat double value); + + @Generated + @Selector("setLineWidth:") + public native void setLineWidth(@NFloat double value); + + @Generated + @Selector("setMode:") + public native void setMode(@NInt long value); + + @Generated + @Selector("setValueFont:") + public native void setValueFont(UIFont value); + + @Generated + @Selector("setValueFormatter:") + public native void setValueFormatter(@Mapped(ObjCObjectMapper.class) IChartValueFormatter value); + + @Generated + @Selector("setValueTextColor:") + public native void setValueTextColor(UIColor value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("setVisible:") + public native void setVisible(boolean value); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("valueColors") + public native NSArray valueColors(); + + @Generated + @Selector("valueFont") + public native UIFont valueFont(); + + @Generated + @Selector("valueFormatter") + @MappedReturn(ObjCObjectMapper.class) + public native IChartValueFormatter valueFormatter(); + + @Generated + @Selector("valueTextColor") + public native UIColor valueTextColor(); + + @Generated + @Selector("valueTextColorAt:") + public native UIColor valueTextColorAt(@NInt long index); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("visible") + public native boolean visible(); + + @Generated + @Selector("xMax") + public native double xMax(); + + @Generated + @Selector("xMin") + public native double xMin(); + + @Generated + @Selector("yMax") + public native double yMax(); + + @Generated + @Selector("yMin") + public native double yMin(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartRenderer.java index b4335c6e..cd7f5ede 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartRenderer.java @@ -34,210 +34,189 @@ @ObjCClassName("_TtC6Charts17LineChartRenderer") @ObjCClassBinding public class LineChartRenderer extends LineRadarChartRenderer { - static { - NatJ.register(); - } - - @Generated - protected LineChartRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native LineChartRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("dataProvider") - @MappedReturn(ObjCObjectMapper.class) - public native LineChartDataProvider dataProvider(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawCubicBezierWithContext:dataSet:") - public native void drawCubicBezierWithContextDataSet(CGContextRef context, - @Mapped(ObjCObjectMapper.class) ILineChartDataSet dataSet); - - @Generated - @Selector("drawDataSetWithContext:dataSet:") - public native void drawDataSetWithContextDataSet(CGContextRef context, - @Mapped(ObjCObjectMapper.class) ILineChartDataSet dataSet); - - @Generated - @Selector("drawDataWithContext:") - public native void drawDataWithContext(CGContextRef context); - - @Generated - @Selector("drawExtrasWithContext:") - public native void drawExtrasWithContext(CGContextRef context); - - @Generated - @Selector("drawHighlightedWithContext:indices:") - public native void drawHighlightedWithContextIndices(CGContextRef context, - NSArray indices); - - @Generated - @Selector("drawHorizontalBezierWithContext:dataSet:") - public native void drawHorizontalBezierWithContextDataSet( - CGContextRef context, - @Mapped(ObjCObjectMapper.class) ILineChartDataSet dataSet); - - @Generated - @Selector("drawLinearWithContext:dataSet:") - public native void drawLinearWithContextDataSet(CGContextRef context, - @Mapped(ObjCObjectMapper.class) ILineChartDataSet dataSet); - - @Generated - @Selector("drawValuesWithContext:") - public native void drawValuesWithContext(CGContextRef context); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native LineChartRenderer init(); - - @Generated - @Selector("initBuffers") - public native void initBuffers(); - - @Generated - @Selector("initWithAnimator:viewPortHandler:") - public native LineChartRenderer initWithAnimatorViewPortHandler( - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithDataProvider:animator:viewPortHandler:") - public native LineChartRenderer initWithDataProviderAnimatorViewPortHandler( - @Mapped(ObjCObjectMapper.class) LineChartDataProvider dataProvider, - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:") - public native LineChartRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setDataProvider:") - public native void setDataProvider_unsafe( - @Mapped(ObjCObjectMapper.class) LineChartDataProvider value); - - @Generated - public void setDataProvider( - @Mapped(ObjCObjectMapper.class) LineChartDataProvider value) { - Object __old = dataProvider(); - if (value != null) { - org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); - } - setDataProvider_unsafe(value); - if (__old != null) { - org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); - } - } - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected LineChartRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native LineChartRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("dataProvider") + @MappedReturn(ObjCObjectMapper.class) + public native LineChartDataProvider dataProvider(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawCubicBezierWithContext:dataSet:") + public native void drawCubicBezierWithContextDataSet(CGContextRef context, + @Mapped(ObjCObjectMapper.class) ILineChartDataSet dataSet); + + @Generated + @Selector("drawDataSetWithContext:dataSet:") + public native void drawDataSetWithContextDataSet(CGContextRef context, + @Mapped(ObjCObjectMapper.class) ILineChartDataSet dataSet); + + @Generated + @Selector("drawDataWithContext:") + public native void drawDataWithContext(CGContextRef context); + + @Generated + @Selector("drawExtrasWithContext:") + public native void drawExtrasWithContext(CGContextRef context); + + @Generated + @Selector("drawHighlightedWithContext:indices:") + public native void drawHighlightedWithContextIndices(CGContextRef context, NSArray indices); + + @Generated + @Selector("drawHorizontalBezierWithContext:dataSet:") + public native void drawHorizontalBezierWithContextDataSet(CGContextRef context, + @Mapped(ObjCObjectMapper.class) ILineChartDataSet dataSet); + + @Generated + @Selector("drawLinearWithContext:dataSet:") + public native void drawLinearWithContextDataSet(CGContextRef context, + @Mapped(ObjCObjectMapper.class) ILineChartDataSet dataSet); + + @Generated + @Selector("drawValuesWithContext:") + public native void drawValuesWithContext(CGContextRef context); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native LineChartRenderer init(); + + @Generated + @Selector("initBuffers") + public native void initBuffers(); + + @Generated + @Selector("initWithAnimator:viewPortHandler:") + public native LineChartRenderer initWithAnimatorViewPortHandler(ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithDataProvider:animator:viewPortHandler:") + public native LineChartRenderer initWithDataProviderAnimatorViewPortHandler( + @Mapped(ObjCObjectMapper.class) LineChartDataProvider dataProvider, ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:") + public native LineChartRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setDataProvider:") + public native void setDataProvider_unsafe(@Mapped(ObjCObjectMapper.class) LineChartDataProvider value); + + @Generated + public void setDataProvider(@Mapped(ObjCObjectMapper.class) LineChartDataProvider value) { + Object __old = dataProvider(); + if (value != null) { + org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); + } + setDataProvider_unsafe(value); + if (__old != null) { + org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); + } + } + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartView.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartView.java index 246b7ce4..16b18d4f 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartView.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineChartView.java @@ -11,6 +11,7 @@ import apple.foundation.NSSet; import apple.uikit.UITraitCollection; import apple.uikit.UIView; +import apple.uikit.protocol.UIAppearanceContainer; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.c.ann.Variadic; import org.moe.natj.general.NatJ; @@ -37,476 +38,452 @@ import org.moe.natj.objc.map.ObjCObjectMapper; import org.moe.samples.simplechart.charts.protocol.LineChartDataProvider; +/** + * Chart that draws lines, surfaces, circles, … + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts13LineChartView") @ObjCClassBinding -public class LineChartView extends BarLineChartViewBase implements - LineChartDataProvider { - static { - NatJ.register(); - } - - @Generated - protected LineChartView(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") - public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( - double frameStartTime, - double frameDuration, - @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); - - @Generated - @Owned - @Selector("alloc") - public static native LineChartView alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") - public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:animations:") - public static native void animateWithDurationAnimations( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); - - @Generated - @Selector("animateWithDuration:animations:completion:") - public static native void animateWithDurationAnimationsCompletion( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); - - @Generated - @Selector("animateWithDuration:delay:options:animations:completion:") - public static native void animateWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") - public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( - double duration, - double delay, - @NFloat double dampingRatio, - @NFloat double velocity, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); - - @Generated - @Selector("appearance") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearance(); - - @Generated - @ProtocolClassMethod("appearance") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearance() { - return appearance(); - } - - @Generated - @Selector("appearanceForTraitCollection:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollection( - UITraitCollection trait); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollection") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollection(UITraitCollection trait) { - return appearanceForTraitCollection(trait); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceForTraitCollection:whenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceForTraitCollectionWhenContainedIn(trait, - ContainerClass, varargs); - } - - @Generated - @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes) { - return appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - trait, containerTypes); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceWhenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceWhenContainedIn(ContainerClass, varargs); - } - - @Generated - @Selector("appearanceWhenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes) { - return appearanceWhenContainedInInstancesOfClasses(containerTypes); - } - - @Generated - @Selector("areAnimationsEnabled") - public static native boolean areAnimationsEnabled(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("beginAnimations:context:") - public static native void beginAnimationsContext(String animationID, - VoidPtr context); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("centerOffsets") - @ByValue - public native CGPoint centerOffsets(); - - @Generated - @Selector("chartXMax") - public native double chartXMax(); - - @Generated - @Selector("chartXMin") - public native double chartXMin(); - - @Generated - @Selector("chartYMax") - public native double chartYMax(); - - @Generated - @Selector("chartYMin") - public native double chartYMin(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clearTextInputContextIdentifier:") - public static native void clearTextInputContextIdentifier(String identifier); - - @Generated - @Selector("commitAnimations") - public static native void commitAnimations(); - - @Generated - @Selector("data") - public native ChartData data(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("getAxis:") - public native ChartYAxis getAxis(@NInt long axis); - - @Generated - @Selector("getTransformerForAxis:") - public native ChartTransformer getTransformerForAxis(@NInt long forAxis); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highestVisibleX") - public native double highestVisibleX(); - - @Generated - @Selector("inheritedAnimationDuration") - public static native double inheritedAnimationDuration(); - - @Generated - @Selector("init") - public native LineChartView init(); - - @Generated - @Selector("initWithCoder:") - public native LineChartView initWithCoder(NSCoder aDecoder); - - @Generated - @Selector("initWithFrame:") - public native LineChartView initWithFrame(@ByValue CGRect frame); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isInvertedWithAxis:") - public native boolean isInvertedWithAxis(@NInt long axis); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("layerClass") - public static native Class layerClass(); - - @Generated - @Selector("lineData") - public native LineChartData lineData(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("lowestVisibleX") - public native double lowestVisibleX(); - - @Generated - @Selector("maxHighlightDistance") - @NFloat - public native double maxHighlightDistance(); - - @Generated - @Selector("maxVisibleCount") - @NInt - public native long maxVisibleCount(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("performSystemAnimation:onViews:options:animations:completion:") - public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( - @NUInt long animation, - NSArray views, - @NUInt long options, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("performWithoutAnimation:") - public static native void performWithoutAnimation( - @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); - - @Generated - @Selector("requiresConstraintBasedLayout") - public static native boolean requiresConstraintBasedLayout(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setAnimationBeginsFromCurrentState:") - public static native void setAnimationBeginsFromCurrentState( - boolean fromCurrentState); - - @Generated - @Selector("setAnimationCurve:") - public static native void setAnimationCurve(@NInt long curve); - - @Generated - @Selector("setAnimationDelay:") - public static native void setAnimationDelay(double delay); - - @Generated - @Selector("setAnimationDelegate:") - public static native void setAnimationDelegate( - @Mapped(ObjCObjectMapper.class) Object delegate); - - @Generated - @Selector("setAnimationDidStopSelector:") - public static native void setAnimationDidStopSelector(SEL selector); - - @Generated - @Selector("setAnimationDuration:") - public static native void setAnimationDuration_static(double duration); - - @Generated - @Selector("setAnimationRepeatAutoreverses:") - public static native void setAnimationRepeatAutoreverses( - boolean repeatAutoreverses); - - @Generated - @Selector("setAnimationRepeatCount:") - public static native void setAnimationRepeatCount_static(float repeatCount); - - @Generated - @Selector("setAnimationStartDate:") - public static native void setAnimationStartDate(NSDate startDate); - - @Generated - @Selector("setAnimationTransition:forView:cache:") - public static native void setAnimationTransitionForViewCache( - @NInt long transition, UIView view, boolean cache); - - @Generated - @Selector("setAnimationWillStartSelector:") - public static native void setAnimationWillStartSelector(SEL selector); - - @Generated - @Selector("setAnimationsEnabled:") - public static native void setAnimationsEnabled(boolean enabled); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transitionFromView:toView:duration:options:completion:") - public static native void transitionFromViewToViewDurationOptionsCompletion( - UIView fromView, - UIView toView, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); - - @Generated - @Selector("transitionWithView:duration:options:animations:completion:") - public static native void transitionWithViewDurationOptionsAnimationsCompletion( - UIView view, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttribute( - @NInt long attribute); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( - @NInt long semanticContentAttribute, @NInt long layoutDirection); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("xRange") - public native double xRange(); +public class LineChartView extends BarLineChartViewBase implements LineChartDataProvider { + static { + NatJ.register(); + } + + @Generated + protected LineChartView(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") + public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( + double frameStartTime, + double frameDuration, + @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); + + @Generated + @Owned + @Selector("alloc") + public static native LineChartView alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") + public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:animations:") + public static native void animateWithDurationAnimations( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); + + @Generated + @Selector("animateWithDuration:animations:completion:") + public static native void animateWithDurationAnimationsCompletion( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); + + @Generated + @Selector("animateWithDuration:delay:options:animations:completion:") + public static native void animateWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") + public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( + double duration, + double delay, + @NFloat double dampingRatio, + @NFloat double velocity, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); + + @Generated + @Selector("appearance") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearance(); + + @Generated + @ProtocolClassMethod("appearance") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearance() { + return appearance(); + } + + @Generated + @Selector("appearanceForTraitCollection:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollection(UITraitCollection trait); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollection") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollection(UITraitCollection trait) { + return appearanceForTraitCollection(trait); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceForTraitCollection:whenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs) { + return appearanceForTraitCollectionWhenContainedIn(trait, ContainerClass, varargs); + } + + @Generated + @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes) { + return appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait, containerTypes); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceWhenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedIn( + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedIn(@Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, + Object... varargs) { + return appearanceWhenContainedIn(ContainerClass, varargs); + } + + @Generated + @Selector("appearanceWhenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes) { + return appearanceWhenContainedInInstancesOfClasses(containerTypes); + } + + @Generated + @Selector("areAnimationsEnabled") + public static native boolean areAnimationsEnabled(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("beginAnimations:context:") + public static native void beginAnimationsContext(String animationID, VoidPtr context); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("centerOffsets") + @ByValue + public native CGPoint centerOffsets(); + + @Generated + @Selector("chartXMax") + public native double chartXMax(); + + @Generated + @Selector("chartXMin") + public native double chartXMin(); + + @Generated + @Selector("chartYMax") + public native double chartYMax(); + + @Generated + @Selector("chartYMin") + public native double chartYMin(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clearTextInputContextIdentifier:") + public static native void clearTextInputContextIdentifier(String identifier); + + @Generated + @Selector("commitAnimations") + public static native void commitAnimations(); + + @Generated + @Selector("data") + public native ChartData data(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("getAxis:") + public native ChartYAxis getAxis(@NInt long axis); + + @Generated + @Selector("getTransformerForAxis:") + public native ChartTransformer getTransformerForAxis(@NInt long forAxis); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highestVisibleX") + public native double highestVisibleX(); + + @Generated + @Selector("inheritedAnimationDuration") + public static native double inheritedAnimationDuration(); + + @Generated + @Selector("init") + public native LineChartView init(); + + @Generated + @Selector("initWithCoder:") + public native LineChartView initWithCoder(NSCoder aDecoder); + + @Generated + @Selector("initWithFrame:") + public native LineChartView initWithFrame(@ByValue CGRect frame); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isInvertedWithAxis:") + public native boolean isInvertedWithAxis(@NInt long axis); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("layerClass") + public static native Class layerClass(); + + @Generated + @Selector("lineData") + public native LineChartData lineData(); + + @Generated + @Selector("lowestVisibleX") + public native double lowestVisibleX(); + + @Generated + @Selector("maxHighlightDistance") + @NFloat + public native double maxHighlightDistance(); + + @Generated + @Selector("maxVisibleCount") + @NInt + public native long maxVisibleCount(); + + @Generated + @Selector("modifyAnimationsWithRepeatCount:autoreverses:animations:") + public static native void modifyAnimationsWithRepeatCountAutoreversesAnimations( + @NFloat double count, + boolean autoreverses, + @ObjCBlock(name = "call_modifyAnimationsWithRepeatCountAutoreversesAnimations") UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("performSystemAnimation:onViews:options:animations:completion:") + public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( + @NUInt long animation, + NSArray views, + @NUInt long options, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("performWithoutAnimation:") + public static native void performWithoutAnimation( + @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); + + @Generated + @Selector("requiresConstraintBasedLayout") + public static native boolean requiresConstraintBasedLayout(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setAnimationBeginsFromCurrentState:") + public static native void setAnimationBeginsFromCurrentState(boolean fromCurrentState); + + @Generated + @Selector("setAnimationCurve:") + public static native void setAnimationCurve(@NInt long curve); + + @Generated + @Selector("setAnimationDelay:") + public static native void setAnimationDelay(double delay); + + @Generated + @Selector("setAnimationDelegate:") + public static native void setAnimationDelegate(@Mapped(ObjCObjectMapper.class) Object delegate); + + @Generated + @Selector("setAnimationDidStopSelector:") + public static native void setAnimationDidStopSelector(SEL selector); + + @Generated + @Selector("setAnimationDuration:") + public static native void setAnimationDuration_static(double duration); + + @Generated + @Selector("setAnimationRepeatAutoreverses:") + public static native void setAnimationRepeatAutoreverses(boolean repeatAutoreverses); + + @Generated + @Selector("setAnimationRepeatCount:") + public static native void setAnimationRepeatCount_static(float repeatCount); + + @Generated + @Selector("setAnimationStartDate:") + public static native void setAnimationStartDate(NSDate startDate); + + @Generated + @Selector("setAnimationTransition:forView:cache:") + public static native void setAnimationTransitionForViewCache(@NInt long transition, UIView view, boolean cache); + + @Generated + @Selector("setAnimationWillStartSelector:") + public static native void setAnimationWillStartSelector(SEL selector); + + @Generated + @Selector("setAnimationsEnabled:") + public static native void setAnimationsEnabled(boolean enabled); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("transitionFromView:toView:duration:options:completion:") + public static native void transitionFromViewToViewDurationOptionsCompletion( + UIView fromView, + UIView toView, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); + + @Generated + @Selector("transitionWithView:duration:options:animations:completion:") + public static native void transitionWithViewDurationOptionsAnimationsCompletion( + UIView view, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttribute(@NInt long attribute); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( + @NInt long semanticContentAttribute, @NInt long layoutDirection); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("xRange") + public native double xRange(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineRadarChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineRadarChartDataSet.java index f7b04f01..15103689 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineRadarChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineRadarChartDataSet.java @@ -2,6 +2,7 @@ import apple.NSObject; +import apple.coregraphics.struct.CGPoint; import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSNumber; @@ -11,6 +12,7 @@ import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; +import org.moe.natj.general.ann.ByValue; import org.moe.natj.general.ann.Generated; import org.moe.natj.general.ann.Library; import org.moe.natj.general.ann.Mapped; @@ -28,6 +30,7 @@ import org.moe.natj.objc.ann.ObjCClassName; import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +import org.moe.samples.simplechart.charts.protocol.IChartValueFormatter; import org.moe.samples.simplechart.charts.protocol.ILineRadarChartDataSet; @Generated @@ -35,486 +38,482 @@ @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts21LineRadarChartDataSet") @ObjCClassBinding -public class LineRadarChartDataSet extends LineScatterCandleRadarChartDataSet - implements ILineRadarChartDataSet { - static { - NatJ.register(); - } - - @Generated - protected LineRadarChartDataSet(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addColor:") - public native void addColor(UIColor color); - - @Generated - @Selector("addEntry:") - public native boolean addEntry(ChartDataEntry e); - - @Generated - @Selector("addEntryOrdered:") - public native boolean addEntryOrdered(ChartDataEntry e); - - @Generated - @Owned - @Selector("alloc") - public static native LineRadarChartDataSet alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("axisDependency") - @NInt - public native long axisDependency(); - - @Generated - @Selector("calcMinMax") - public native void calcMinMax(); - - @Generated - @Selector("calcMinMaxYFromX:toX:") - public native void calcMinMaxYFromXToX(double fromX, double toX); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clear") - public native void clear(); - - @Generated - @Selector("colorAtIndex:") - public native UIColor colorAtIndex(@NInt long atIndex); - - @Generated - @Selector("colors") - public native NSArray colors(); - - @Generated - @Selector("contains:") - public native boolean contains(ChartDataEntry e); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawFilledEnabled") - public native boolean drawFilledEnabled(); - - @Generated - @Selector("drawHorizontalHighlightIndicatorEnabled") - public native boolean drawHorizontalHighlightIndicatorEnabled(); - - @Generated - @Selector("drawValuesEnabled") - public native boolean drawValuesEnabled(); - - @Generated - @Selector("drawVerticalHighlightIndicatorEnabled") - public native boolean drawVerticalHighlightIndicatorEnabled(); - - @Generated - @Selector("entriesForXValue:") - public native NSArray entriesForXValue( - double xValue); - - @Generated - @Selector("entryCount") - @NInt - public native long entryCount(); - - @Generated - @Selector("entryForIndex:") - public native ChartDataEntry entryForIndex(@NInt long i); - - @Generated - @Selector("entryForXValue:closestToY:") - public native ChartDataEntry entryForXValueClosestToY(double xValue, - double yValue); - - @Generated - @Selector("entryForXValue:closestToY:rounding:") - public native ChartDataEntry entryForXValueClosestToYRounding( - double xValue, double yValue, @NInt long rounding); - - @Generated - @Selector("entryIndexWithEntry:") - @NInt - public native long entryIndexWithEntry(ChartDataEntry e); - - @Generated - @Selector("entryIndexWithX:closestToY:rounding:") - @NInt - public native long entryIndexWithXClosestToYRounding(double xValue, - double yValue, @NInt long rounding); - - @Generated - @Selector("fill") - public native ChartFill fill(); - - @Generated - @Selector("fillAlpha") - @NFloat - public native double fillAlpha(); - - @Generated - @Selector("fillColor") - public native UIColor fillColor(); - - @Generated - @Selector("form") - @NInt - public native long form(); - - @Generated - @Selector("formLineDashLengths") - public native NSArray formLineDashLengths(); - - @Generated - @Selector("formLineDashPhase") - @NFloat - public native double formLineDashPhase(); - - @Generated - @Selector("formLineWidth") - @NFloat - public native double formLineWidth(); - - @Generated - @Selector("formSize") - @NFloat - public native double formSize(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highlightColor") - public native UIColor highlightColor(); - - @Generated - @Selector("highlightEnabled") - public native boolean highlightEnabled(); - - @Generated - @Selector("highlightLineDashLengths") - public native NSArray highlightLineDashLengths(); - - @Generated - @Selector("highlightLineDashPhase") - @NFloat - public native double highlightLineDashPhase(); - - @Generated - @Selector("highlightLineWidth") - @NFloat - public native double highlightLineWidth(); - - @Generated - @Selector("init") - public native LineRadarChartDataSet init(); - - @Generated - @Selector("initWithLabel:") - public native LineRadarChartDataSet initWithLabel(String label); - - @Generated - @Selector("initWithValues:") - public native LineRadarChartDataSet initWithValues( - NSArray values); - - @Generated - @Selector("initWithValues:label:") - public native LineRadarChartDataSet initWithValuesLabel( - NSArray values, String label); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawFilledEnabled") - public native boolean isDrawFilledEnabled(); - - @Generated - @Selector("isDrawValuesEnabled") - public native boolean isDrawValuesEnabled(); - - @Generated - @Selector("isHighlightEnabled") - public native boolean isHighlightEnabled(); - - @Generated - @Selector("isHorizontalHighlightIndicatorEnabled") - public native boolean isHorizontalHighlightIndicatorEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("isVerticalHighlightIndicatorEnabled") - public native boolean isVerticalHighlightIndicatorEnabled(); - - @Generated - @Selector("isVisible") - public native boolean isVisible(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("label") - public native String label(); - - @Generated - @Selector("lineWidth") - @NFloat - public native double lineWidth(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("needsFormatter") - public native boolean needsFormatter(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("removeEntry:") - public native boolean removeEntry(ChartDataEntry entry); - - @Generated - @Selector("removeEntryWithIndex:") - public native boolean removeEntryWithIndex(@NInt long index); - - @Generated - @Selector("removeEntryWithX:") - public native boolean removeEntryWithX(double x); - - @Generated - @Selector("removeFirst") - public native boolean removeFirst(); - - @Generated - @Selector("removeLast") - public native boolean removeLast(); - - @Generated - @Selector("resetColors") - public native void resetColors(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setColor:") - public native void setColor(UIColor color); - - @Generated - @Selector("setDrawFilledEnabled:") - public native void setDrawFilledEnabled(boolean value); - - @Generated - @Selector("setDrawHighlightIndicators:") - public native void setDrawHighlightIndicators(boolean enabled); - - @Generated - @Selector("setDrawHorizontalHighlightIndicatorEnabled:") - public native void setDrawHorizontalHighlightIndicatorEnabled(boolean value); - - @Generated - @Selector("setDrawValuesEnabled:") - public native void setDrawValuesEnabled(boolean value); - - @Generated - @Selector("setDrawVerticalHighlightIndicatorEnabled:") - public native void setDrawVerticalHighlightIndicatorEnabled(boolean value); - - @Generated - @Selector("setFill:") - public native void setFill(ChartFill value); - - @Generated - @Selector("setFillAlpha:") - public native void setFillAlpha(@NFloat double value); - - @Generated - @Selector("setFillColor:") - public native void setFillColor(UIColor value); - - @Generated - @Selector("setHighlightColor:") - public native void setHighlightColor(UIColor value); - - @Generated - @Selector("setHighlightEnabled:") - public native void setHighlightEnabled(boolean value); - - @Generated - @Selector("setHighlightLineDashLengths:") - public native void setHighlightLineDashLengths( - NSArray value); - - @Generated - @Selector("setHighlightLineDashPhase:") - public native void setHighlightLineDashPhase(@NFloat double value); - - @Generated - @Selector("setHighlightLineWidth:") - public native void setHighlightLineWidth(@NFloat double value); - - @Generated - @Selector("setLineWidth:") - public native void setLineWidth(@NFloat double value); - - @Generated - @Selector("setValueFont:") - public native void setValueFont(UIFont value); - - @Generated - @Selector("setValueFormatter:") - public native void setValueFormatter( - @Mapped(ObjCObjectMapper.class) Object value); - - @Generated - @Selector("setValueTextColor:") - public native void setValueTextColor(UIColor value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setVisible:") - public native void setVisible(boolean value); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("valueColors") - public native NSArray valueColors(); - - @Generated - @Selector("valueFont") - public native UIFont valueFont(); - - @Generated - @Selector("valueFormatter") - @MappedReturn(ObjCObjectMapper.class) - public native Object valueFormatter(); - - @Generated - @Selector("valueTextColor") - public native UIColor valueTextColor(); - - @Generated - @Selector("valueTextColorAt:") - public native UIColor valueTextColorAt(@NInt long index); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("visible") - public native boolean visible(); - - @Generated - @Selector("xMax") - public native double xMax(); - - @Generated - @Selector("xMin") - public native double xMin(); - - @Generated - @Selector("yMax") - public native double yMax(); - - @Generated - @Selector("yMin") - public native double yMin(); +public class LineRadarChartDataSet extends LineScatterCandleRadarChartDataSet implements ILineRadarChartDataSet { + static { + NatJ.register(); + } + + @Generated + protected LineRadarChartDataSet(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addColor:") + public native void addColor(UIColor color); + + @Generated + @Selector("addEntry:") + public native boolean addEntry(ChartDataEntry e); + + @Generated + @Selector("addEntryOrdered:") + public native boolean addEntryOrdered(ChartDataEntry e); + + @Generated + @Owned + @Selector("alloc") + public static native LineRadarChartDataSet alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("axisDependency") + @NInt + public native long axisDependency(); + + @Generated + @Selector("calcMinMax") + public native void calcMinMax(); + + @Generated + @Selector("calcMinMaxYFromX:toX:") + public native void calcMinMaxYFromXToX(double fromX, double toX); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clear") + public native void clear(); + + @Generated + @Selector("colorAtIndex:") + public native UIColor colorAtIndex(@NInt long atIndex); + + @Generated + @Selector("colors") + public native NSArray colors(); + + @Generated + @Selector("contains:") + public native boolean contains(ChartDataEntry e); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawFilledEnabled") + public native boolean drawFilledEnabled(); + + @Generated + @Selector("drawHorizontalHighlightIndicatorEnabled") + public native boolean drawHorizontalHighlightIndicatorEnabled(); + + @Generated + @Selector("drawIconsEnabled") + public native boolean drawIconsEnabled(); + + @Generated + @Selector("drawValuesEnabled") + public native boolean drawValuesEnabled(); + + @Generated + @Selector("drawVerticalHighlightIndicatorEnabled") + public native boolean drawVerticalHighlightIndicatorEnabled(); + + @Generated + @Selector("entriesForXValue:") + public native NSArray entriesForXValue(double xValue); + + @Generated + @Selector("entryCount") + @NInt + public native long entryCount(); + + @Generated + @Selector("entryForIndex:") + public native ChartDataEntry entryForIndex(@NInt long i); + + @Generated + @Selector("entryForXValue:closestToY:") + public native ChartDataEntry entryForXValueClosestToY(double xValue, double yValue); + + @Generated + @Selector("entryForXValue:closestToY:rounding:") + public native ChartDataEntry entryForXValueClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("entryIndexWithEntry:") + @NInt + public native long entryIndexWithEntry(ChartDataEntry e); + + @Generated + @Selector("entryIndexWithX:closestToY:rounding:") + @NInt + public native long entryIndexWithXClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("fill") + public native ChartFill fill(); + + @Generated + @Selector("fillAlpha") + @NFloat + public native double fillAlpha(); + + @Generated + @Selector("fillColor") + public native UIColor fillColor(); + + @Generated + @Selector("form") + @NInt + public native long form(); + + @Generated + @Selector("formLineDashLengths") + public native NSArray formLineDashLengths(); + + @Generated + @Selector("formLineDashPhase") + @NFloat + public native double formLineDashPhase(); + + @Generated + @Selector("formLineWidth") + @NFloat + public native double formLineWidth(); + + @Generated + @Selector("formSize") + @NFloat + public native double formSize(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highlightColor") + public native UIColor highlightColor(); + + @Generated + @Selector("highlightEnabled") + public native boolean highlightEnabled(); + + @Generated + @Selector("highlightLineDashLengths") + public native NSArray highlightLineDashLengths(); + + @Generated + @Selector("highlightLineDashPhase") + @NFloat + public native double highlightLineDashPhase(); + + @Generated + @Selector("highlightLineWidth") + @NFloat + public native double highlightLineWidth(); + + @Generated + @Selector("iconsOffset") + @ByValue + public native CGPoint iconsOffset(); + + @Generated + @Selector("init") + public native LineRadarChartDataSet init(); + + @Generated + @Selector("initWithEntries:") + public native LineRadarChartDataSet initWithEntries(NSArray entries); + + @Generated + @Selector("initWithEntries:label:") + public native LineRadarChartDataSet initWithEntriesLabel(NSArray entries, String label); + + @Generated + @Selector("initWithLabel:") + public native LineRadarChartDataSet initWithLabel(String label); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isDrawFilledEnabled") + public native boolean isDrawFilledEnabled(); + + @Generated + @Selector("isDrawIconsEnabled") + public native boolean isDrawIconsEnabled(); + + @Generated + @Selector("isDrawValuesEnabled") + public native boolean isDrawValuesEnabled(); + + @Generated + @Selector("isHighlightEnabled") + public native boolean isHighlightEnabled(); + + @Generated + @Selector("isHorizontalHighlightIndicatorEnabled") + public native boolean isHorizontalHighlightIndicatorEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("isVerticalHighlightIndicatorEnabled") + public native boolean isVerticalHighlightIndicatorEnabled(); + + @Generated + @Selector("isVisible") + public native boolean isVisible(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("label") + public native String label(); + + @Generated + @Selector("lineWidth") + @NFloat + public native double lineWidth(); + + @Generated + @Selector("needsFormatter") + public native boolean needsFormatter(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("notifyDataSetChanged") + public native void notifyDataSetChanged(); + + @Generated + @Selector("removeEntry:") + public native boolean removeEntry(ChartDataEntry entry); + + @Generated + @Selector("removeEntryWithIndex:") + public native boolean removeEntryWithIndex(@NInt long index); + + @Generated + @Selector("removeEntryWithX:") + public native boolean removeEntryWithX(double x); + + @Generated + @Selector("removeFirst") + public native boolean removeFirst(); + + @Generated + @Selector("removeLast") + public native boolean removeLast(); + + @Generated + @Selector("resetColors") + public native void resetColors(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setColor:") + public native void setColor(UIColor color); + + @Generated + @Selector("setDrawFilledEnabled:") + public native void setDrawFilledEnabled(boolean value); + + @Generated + @Selector("setDrawHighlightIndicators:") + public native void setDrawHighlightIndicators(boolean enabled); + + @Generated + @Selector("setDrawHorizontalHighlightIndicatorEnabled:") + public native void setDrawHorizontalHighlightIndicatorEnabled(boolean value); + + @Generated + @Selector("setDrawIconsEnabled:") + public native void setDrawIconsEnabled(boolean value); + + @Generated + @Selector("setDrawValuesEnabled:") + public native void setDrawValuesEnabled(boolean value); + + @Generated + @Selector("setDrawVerticalHighlightIndicatorEnabled:") + public native void setDrawVerticalHighlightIndicatorEnabled(boolean value); + + @Generated + @Selector("setFill:") + public native void setFill(ChartFill value); + + @Generated + @Selector("setFillAlpha:") + public native void setFillAlpha(@NFloat double value); + + @Generated + @Selector("setFillColor:") + public native void setFillColor(UIColor value); + + @Generated + @Selector("setHighlightColor:") + public native void setHighlightColor(UIColor value); + + @Generated + @Selector("setHighlightEnabled:") + public native void setHighlightEnabled(boolean value); + + @Generated + @Selector("setHighlightLineDashLengths:") + public native void setHighlightLineDashLengths(NSArray value); + + @Generated + @Selector("setHighlightLineDashPhase:") + public native void setHighlightLineDashPhase(@NFloat double value); + + @Generated + @Selector("setHighlightLineWidth:") + public native void setHighlightLineWidth(@NFloat double value); + + @Generated + @Selector("setIconsOffset:") + public native void setIconsOffset(@ByValue CGPoint value); + + @Generated + @Selector("setLineWidth:") + public native void setLineWidth(@NFloat double value); + + @Generated + @Selector("setValueFont:") + public native void setValueFont(UIFont value); + + @Generated + @Selector("setValueFormatter:") + public native void setValueFormatter(@Mapped(ObjCObjectMapper.class) IChartValueFormatter value); + + @Generated + @Selector("setValueTextColor:") + public native void setValueTextColor(UIColor value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("setVisible:") + public native void setVisible(boolean value); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("valueColors") + public native NSArray valueColors(); + + @Generated + @Selector("valueFont") + public native UIFont valueFont(); + + @Generated + @Selector("valueFormatter") + @MappedReturn(ObjCObjectMapper.class) + public native IChartValueFormatter valueFormatter(); + + @Generated + @Selector("valueTextColor") + public native UIColor valueTextColor(); + + @Generated + @Selector("valueTextColorAt:") + public native UIColor valueTextColorAt(@NInt long index); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("visible") + public native boolean visible(); + + @Generated + @Selector("xMax") + public native double xMax(); + + @Generated + @Selector("xMin") + public native double xMin(); + + @Generated + @Selector("yMax") + public native double yMax(); + + @Generated + @Selector("yMin") + public native double yMin(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineRadarChartRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineRadarChartRenderer.java index 6bb57f18..3159e851 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineRadarChartRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineRadarChartRenderer.java @@ -33,155 +33,142 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class LineRadarChartRenderer extends LineScatterCandleRadarChartRenderer { - static { - NatJ.register(); - } - - @Generated - protected LineRadarChartRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native LineRadarChartRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawFilledPathWithContext:path:fill:fillAlpha:") - public native void drawFilledPathWithContextPathFillFillAlpha( - CGContextRef context, CGPathRef path, ChartFill fill, - @NFloat double fillAlpha); - - @Generated - @Selector("drawFilledPathWithContext:path:fillColor:fillAlpha:") - public native void drawFilledPathWithContextPathFillColorFillAlpha( - CGContextRef context, CGPathRef path, UIColor fillColor, - @NFloat double fillAlpha); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native LineRadarChartRenderer init(); - - @Generated - @Selector("initBuffers") - public native void initBuffers(); - - @Generated - @Selector("initWithAnimator:viewPortHandler:") - public native LineRadarChartRenderer initWithAnimatorViewPortHandler( - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:") - public native LineRadarChartRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected LineRadarChartRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native LineRadarChartRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * Draws the provided path in filled mode with the provided drawable. + */ + @Generated + @Selector("drawFilledPathWithContext:path:fill:fillAlpha:") + public native void drawFilledPathWithContextPathFillFillAlpha(CGContextRef context, CGPathRef path, ChartFill fill, + @NFloat double fillAlpha); + + /** + * Draws the provided path in filled mode with the provided color and alpha. + */ + @Generated + @Selector("drawFilledPathWithContext:path:fillColor:fillAlpha:") + public native void drawFilledPathWithContextPathFillColorFillAlpha(CGContextRef context, CGPathRef path, + UIColor fillColor, @NFloat double fillAlpha); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native LineRadarChartRenderer init(); + + @Generated + @Selector("initBuffers") + public native void initBuffers(); + + @Generated + @Selector("initWithAnimator:viewPortHandler:") + public native LineRadarChartRenderer initWithAnimatorViewPortHandler(ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:") + public native LineRadarChartRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineScatterCandleRadarChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineScatterCandleRadarChartDataSet.java index 8c670905..b7294a0f 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineScatterCandleRadarChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineScatterCandleRadarChartDataSet.java @@ -2,6 +2,7 @@ import apple.NSObject; +import apple.coregraphics.struct.CGPoint; import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSNumber; @@ -11,6 +12,7 @@ import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; +import org.moe.natj.general.ann.ByValue; import org.moe.natj.general.ann.Generated; import org.moe.natj.general.ann.Library; import org.moe.natj.general.ann.Mapped; @@ -28,6 +30,7 @@ import org.moe.natj.objc.ann.ObjCClassName; import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +import org.moe.samples.simplechart.charts.protocol.IChartValueFormatter; import org.moe.samples.simplechart.charts.protocol.ILineScatterCandleRadarChartDataSet; @Generated @@ -35,441 +38,438 @@ @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts34LineScatterCandleRadarChartDataSet") @ObjCClassBinding -public class LineScatterCandleRadarChartDataSet extends - BarLineScatterCandleBubbleChartDataSet implements - ILineScatterCandleRadarChartDataSet { - static { - NatJ.register(); - } - - @Generated - protected LineScatterCandleRadarChartDataSet(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addColor:") - public native void addColor(UIColor color); - - @Generated - @Selector("addEntry:") - public native boolean addEntry(ChartDataEntry e); - - @Generated - @Selector("addEntryOrdered:") - public native boolean addEntryOrdered(ChartDataEntry e); - - @Generated - @Owned - @Selector("alloc") - public static native LineScatterCandleRadarChartDataSet alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("axisDependency") - @NInt - public native long axisDependency(); - - @Generated - @Selector("calcMinMax") - public native void calcMinMax(); - - @Generated - @Selector("calcMinMaxYFromX:toX:") - public native void calcMinMaxYFromXToX(double fromX, double toX); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clear") - public native void clear(); - - @Generated - @Selector("colorAtIndex:") - public native UIColor colorAtIndex(@NInt long atIndex); - - @Generated - @Selector("colors") - public native NSArray colors(); - - @Generated - @Selector("contains:") - public native boolean contains(ChartDataEntry e); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawHorizontalHighlightIndicatorEnabled") - public native boolean drawHorizontalHighlightIndicatorEnabled(); - - @Generated - @Selector("drawValuesEnabled") - public native boolean drawValuesEnabled(); - - @Generated - @Selector("drawVerticalHighlightIndicatorEnabled") - public native boolean drawVerticalHighlightIndicatorEnabled(); - - @Generated - @Selector("entriesForXValue:") - public native NSArray entriesForXValue( - double xValue); - - @Generated - @Selector("entryCount") - @NInt - public native long entryCount(); - - @Generated - @Selector("entryForIndex:") - public native ChartDataEntry entryForIndex(@NInt long i); - - @Generated - @Selector("entryForXValue:closestToY:") - public native ChartDataEntry entryForXValueClosestToY(double xValue, - double yValue); - - @Generated - @Selector("entryForXValue:closestToY:rounding:") - public native ChartDataEntry entryForXValueClosestToYRounding( - double xValue, double yValue, @NInt long rounding); - - @Generated - @Selector("entryIndexWithEntry:") - @NInt - public native long entryIndexWithEntry(ChartDataEntry e); - - @Generated - @Selector("entryIndexWithX:closestToY:rounding:") - @NInt - public native long entryIndexWithXClosestToYRounding(double xValue, - double yValue, @NInt long rounding); - - @Generated - @Selector("form") - @NInt - public native long form(); - - @Generated - @Selector("formLineDashLengths") - public native NSArray formLineDashLengths(); - - @Generated - @Selector("formLineDashPhase") - @NFloat - public native double formLineDashPhase(); - - @Generated - @Selector("formLineWidth") - @NFloat - public native double formLineWidth(); - - @Generated - @Selector("formSize") - @NFloat - public native double formSize(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highlightColor") - public native UIColor highlightColor(); - - @Generated - @Selector("highlightEnabled") - public native boolean highlightEnabled(); - - @Generated - @Selector("highlightLineDashLengths") - public native NSArray highlightLineDashLengths(); - - @Generated - @Selector("highlightLineDashPhase") - @NFloat - public native double highlightLineDashPhase(); - - @Generated - @Selector("highlightLineWidth") - @NFloat - public native double highlightLineWidth(); - - @Generated - @Selector("init") - public native LineScatterCandleRadarChartDataSet init(); - - @Generated - @Selector("initWithLabel:") - public native LineScatterCandleRadarChartDataSet initWithLabel(String label); - - @Generated - @Selector("initWithValues:") - public native LineScatterCandleRadarChartDataSet initWithValues( - NSArray values); - - @Generated - @Selector("initWithValues:label:") - public native LineScatterCandleRadarChartDataSet initWithValuesLabel( - NSArray values, String label); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawValuesEnabled") - public native boolean isDrawValuesEnabled(); - - @Generated - @Selector("isHighlightEnabled") - public native boolean isHighlightEnabled(); - - @Generated - @Selector("isHorizontalHighlightIndicatorEnabled") - public native boolean isHorizontalHighlightIndicatorEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("isVerticalHighlightIndicatorEnabled") - public native boolean isVerticalHighlightIndicatorEnabled(); - - @Generated - @Selector("isVisible") - public native boolean isVisible(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("label") - public native String label(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("needsFormatter") - public native boolean needsFormatter(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("removeEntry:") - public native boolean removeEntry(ChartDataEntry entry); - - @Generated - @Selector("removeEntryWithIndex:") - public native boolean removeEntryWithIndex(@NInt long index); - - @Generated - @Selector("removeEntryWithX:") - public native boolean removeEntryWithX(double x); - - @Generated - @Selector("removeFirst") - public native boolean removeFirst(); - - @Generated - @Selector("removeLast") - public native boolean removeLast(); - - @Generated - @Selector("resetColors") - public native void resetColors(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setColor:") - public native void setColor(UIColor color); - - @Generated - @Selector("setDrawHighlightIndicators:") - public native void setDrawHighlightIndicators(boolean enabled); - - @Generated - @Selector("setDrawHorizontalHighlightIndicatorEnabled:") - public native void setDrawHorizontalHighlightIndicatorEnabled(boolean value); - - @Generated - @Selector("setDrawValuesEnabled:") - public native void setDrawValuesEnabled(boolean value); - - @Generated - @Selector("setDrawVerticalHighlightIndicatorEnabled:") - public native void setDrawVerticalHighlightIndicatorEnabled(boolean value); - - @Generated - @Selector("setHighlightColor:") - public native void setHighlightColor(UIColor value); - - @Generated - @Selector("setHighlightEnabled:") - public native void setHighlightEnabled(boolean value); - - @Generated - @Selector("setHighlightLineDashLengths:") - public native void setHighlightLineDashLengths( - NSArray value); - - @Generated - @Selector("setHighlightLineDashPhase:") - public native void setHighlightLineDashPhase(@NFloat double value); - - @Generated - @Selector("setHighlightLineWidth:") - public native void setHighlightLineWidth(@NFloat double value); - - @Generated - @Selector("setValueFont:") - public native void setValueFont(UIFont value); - - @Generated - @Selector("setValueFormatter:") - public native void setValueFormatter( - @Mapped(ObjCObjectMapper.class) Object value); - - @Generated - @Selector("setValueTextColor:") - public native void setValueTextColor(UIColor value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setVisible:") - public native void setVisible(boolean value); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("valueColors") - public native NSArray valueColors(); - - @Generated - @Selector("valueFont") - public native UIFont valueFont(); - - @Generated - @Selector("valueFormatter") - @MappedReturn(ObjCObjectMapper.class) - public native Object valueFormatter(); - - @Generated - @Selector("valueTextColor") - public native UIColor valueTextColor(); - - @Generated - @Selector("valueTextColorAt:") - public native UIColor valueTextColorAt(@NInt long index); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("visible") - public native boolean visible(); - - @Generated - @Selector("xMax") - public native double xMax(); - - @Generated - @Selector("xMin") - public native double xMin(); - - @Generated - @Selector("yMax") - public native double yMax(); - - @Generated - @Selector("yMin") - public native double yMin(); +public class LineScatterCandleRadarChartDataSet extends BarLineScatterCandleBubbleChartDataSet implements + ILineScatterCandleRadarChartDataSet { + static { + NatJ.register(); + } + + @Generated + protected LineScatterCandleRadarChartDataSet(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addColor:") + public native void addColor(UIColor color); + + @Generated + @Selector("addEntry:") + public native boolean addEntry(ChartDataEntry e); + + @Generated + @Selector("addEntryOrdered:") + public native boolean addEntryOrdered(ChartDataEntry e); + + @Generated + @Owned + @Selector("alloc") + public static native LineScatterCandleRadarChartDataSet alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("axisDependency") + @NInt + public native long axisDependency(); + + @Generated + @Selector("calcMinMax") + public native void calcMinMax(); + + @Generated + @Selector("calcMinMaxYFromX:toX:") + public native void calcMinMaxYFromXToX(double fromX, double toX); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clear") + public native void clear(); + + @Generated + @Selector("colorAtIndex:") + public native UIColor colorAtIndex(@NInt long atIndex); + + @Generated + @Selector("colors") + public native NSArray colors(); + + @Generated + @Selector("contains:") + public native boolean contains(ChartDataEntry e); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawHorizontalHighlightIndicatorEnabled") + public native boolean drawHorizontalHighlightIndicatorEnabled(); + + @Generated + @Selector("drawIconsEnabled") + public native boolean drawIconsEnabled(); + + @Generated + @Selector("drawValuesEnabled") + public native boolean drawValuesEnabled(); + + @Generated + @Selector("drawVerticalHighlightIndicatorEnabled") + public native boolean drawVerticalHighlightIndicatorEnabled(); + + @Generated + @Selector("entriesForXValue:") + public native NSArray entriesForXValue(double xValue); + + @Generated + @Selector("entryCount") + @NInt + public native long entryCount(); + + @Generated + @Selector("entryForIndex:") + public native ChartDataEntry entryForIndex(@NInt long i); + + @Generated + @Selector("entryForXValue:closestToY:") + public native ChartDataEntry entryForXValueClosestToY(double xValue, double yValue); + + @Generated + @Selector("entryForXValue:closestToY:rounding:") + public native ChartDataEntry entryForXValueClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("entryIndexWithEntry:") + @NInt + public native long entryIndexWithEntry(ChartDataEntry e); + + @Generated + @Selector("entryIndexWithX:closestToY:rounding:") + @NInt + public native long entryIndexWithXClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("form") + @NInt + public native long form(); + + @Generated + @Selector("formLineDashLengths") + public native NSArray formLineDashLengths(); + + @Generated + @Selector("formLineDashPhase") + @NFloat + public native double formLineDashPhase(); + + @Generated + @Selector("formLineWidth") + @NFloat + public native double formLineWidth(); + + @Generated + @Selector("formSize") + @NFloat + public native double formSize(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highlightColor") + public native UIColor highlightColor(); + + @Generated + @Selector("highlightEnabled") + public native boolean highlightEnabled(); + + @Generated + @Selector("highlightLineDashLengths") + public native NSArray highlightLineDashLengths(); + + @Generated + @Selector("highlightLineDashPhase") + @NFloat + public native double highlightLineDashPhase(); + + @Generated + @Selector("highlightLineWidth") + @NFloat + public native double highlightLineWidth(); + + @Generated + @Selector("iconsOffset") + @ByValue + public native CGPoint iconsOffset(); + + @Generated + @Selector("init") + public native LineScatterCandleRadarChartDataSet init(); + + @Generated + @Selector("initWithEntries:") + public native LineScatterCandleRadarChartDataSet initWithEntries(NSArray entries); + + @Generated + @Selector("initWithEntries:label:") + public native LineScatterCandleRadarChartDataSet initWithEntriesLabel(NSArray entries, + String label); + + @Generated + @Selector("initWithLabel:") + public native LineScatterCandleRadarChartDataSet initWithLabel(String label); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isDrawIconsEnabled") + public native boolean isDrawIconsEnabled(); + + @Generated + @Selector("isDrawValuesEnabled") + public native boolean isDrawValuesEnabled(); + + @Generated + @Selector("isHighlightEnabled") + public native boolean isHighlightEnabled(); + + @Generated + @Selector("isHorizontalHighlightIndicatorEnabled") + public native boolean isHorizontalHighlightIndicatorEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("isVerticalHighlightIndicatorEnabled") + public native boolean isVerticalHighlightIndicatorEnabled(); + + @Generated + @Selector("isVisible") + public native boolean isVisible(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("label") + public native String label(); + + @Generated + @Selector("needsFormatter") + public native boolean needsFormatter(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("notifyDataSetChanged") + public native void notifyDataSetChanged(); + + @Generated + @Selector("removeEntry:") + public native boolean removeEntry(ChartDataEntry entry); + + @Generated + @Selector("removeEntryWithIndex:") + public native boolean removeEntryWithIndex(@NInt long index); + + @Generated + @Selector("removeEntryWithX:") + public native boolean removeEntryWithX(double x); + + @Generated + @Selector("removeFirst") + public native boolean removeFirst(); + + @Generated + @Selector("removeLast") + public native boolean removeLast(); + + @Generated + @Selector("resetColors") + public native void resetColors(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setColor:") + public native void setColor(UIColor color); + + @Generated + @Selector("setDrawHighlightIndicators:") + public native void setDrawHighlightIndicators(boolean enabled); + + @Generated + @Selector("setDrawHorizontalHighlightIndicatorEnabled:") + public native void setDrawHorizontalHighlightIndicatorEnabled(boolean value); + + @Generated + @Selector("setDrawIconsEnabled:") + public native void setDrawIconsEnabled(boolean value); + + @Generated + @Selector("setDrawValuesEnabled:") + public native void setDrawValuesEnabled(boolean value); + + @Generated + @Selector("setDrawVerticalHighlightIndicatorEnabled:") + public native void setDrawVerticalHighlightIndicatorEnabled(boolean value); + + @Generated + @Selector("setHighlightColor:") + public native void setHighlightColor(UIColor value); + + @Generated + @Selector("setHighlightEnabled:") + public native void setHighlightEnabled(boolean value); + + @Generated + @Selector("setHighlightLineDashLengths:") + public native void setHighlightLineDashLengths(NSArray value); + + @Generated + @Selector("setHighlightLineDashPhase:") + public native void setHighlightLineDashPhase(@NFloat double value); + + @Generated + @Selector("setHighlightLineWidth:") + public native void setHighlightLineWidth(@NFloat double value); + + @Generated + @Selector("setIconsOffset:") + public native void setIconsOffset(@ByValue CGPoint value); + + @Generated + @Selector("setValueFont:") + public native void setValueFont(UIFont value); + + @Generated + @Selector("setValueFormatter:") + public native void setValueFormatter(@Mapped(ObjCObjectMapper.class) IChartValueFormatter value); + + @Generated + @Selector("setValueTextColor:") + public native void setValueTextColor(UIColor value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("setVisible:") + public native void setVisible(boolean value); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("valueColors") + public native NSArray valueColors(); + + @Generated + @Selector("valueFont") + public native UIFont valueFont(); + + @Generated + @Selector("valueFormatter") + @MappedReturn(ObjCObjectMapper.class) + public native IChartValueFormatter valueFormatter(); + + @Generated + @Selector("valueTextColor") + public native UIColor valueTextColor(); + + @Generated + @Selector("valueTextColorAt:") + public native UIColor valueTextColorAt(@NInt long index); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("visible") + public native boolean visible(); + + @Generated + @Selector("xMax") + public native double xMax(); + + @Generated + @Selector("xMin") + public native double xMin(); + + @Generated + @Selector("yMax") + public native double yMax(); + + @Generated + @Selector("yMin") + public native double yMin(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineScatterCandleRadarChartRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineScatterCandleRadarChartRenderer.java index 060e1793..6b31c3ee 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineScatterCandleRadarChartRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/LineScatterCandleRadarChartRenderer.java @@ -32,152 +32,139 @@ @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassBinding -public class LineScatterCandleRadarChartRenderer extends - BarLineScatterCandleBubbleChartRenderer { - static { - NatJ.register(); - } - - @Generated - protected LineScatterCandleRadarChartRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native LineScatterCandleRadarChartRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawHighlightLinesWithContext:point:set:") - public native void drawHighlightLinesWithContextPointSet( - CGContextRef context, - @ByValue CGPoint point, - @Mapped(ObjCObjectMapper.class) ILineScatterCandleRadarChartDataSet set); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native LineScatterCandleRadarChartRenderer init(); - - @Generated - @Selector("initBuffers") - public native void initBuffers(); - - @Generated - @Selector("initWithAnimator:viewPortHandler:") - public native LineScatterCandleRadarChartRenderer initWithAnimatorViewPortHandler( - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:") - public native LineScatterCandleRadarChartRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); +public class LineScatterCandleRadarChartRenderer extends BarLineScatterCandleBubbleChartRenderer { + static { + NatJ.register(); + } + + @Generated + protected LineScatterCandleRadarChartRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native LineScatterCandleRadarChartRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * Draws vertical & horizontal highlight-lines if enabled. + * :param: context + * :param: points + * :param: horizontal + * :param: vertical + */ + @Generated + @Selector("drawHighlightLinesWithContext:point:set:") + public native void drawHighlightLinesWithContextPointSet(CGContextRef context, @ByValue CGPoint point, + @Mapped(ObjCObjectMapper.class) ILineScatterCandleRadarChartDataSet set); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native LineScatterCandleRadarChartRenderer init(); + + @Generated + @Selector("initBuffers") + public native void initBuffers(); + + @Generated + @Selector("initWithAnimator:viewPortHandler:") + public native LineScatterCandleRadarChartRenderer initWithAnimatorViewPortHandler(ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:") + public native LineScatterCandleRadarChartRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/MoveChartViewJob.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/MoveChartViewJob.java index 9c4adb3f..2c1cf50b 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/MoveChartViewJob.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/MoveChartViewJob.java @@ -29,139 +29,123 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class MoveChartViewJob extends ChartViewPortJob { - static { - NatJ.register(); - } - - @Generated - protected MoveChartViewJob(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native MoveChartViewJob alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("doJob") - public native void doJob(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native MoveChartViewJob init(); - - @Generated - @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:") - public native MoveChartViewJob initWithViewPortHandlerXValueYValueTransformerView( - ChartViewPortHandler viewPortHandler, double xValue, double yValue, - ChartTransformer transformer, ChartViewBase view); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected MoveChartViewJob(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native MoveChartViewJob alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("doJob") + public native void doJob(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native MoveChartViewJob init(); + + @Generated + @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:") + public native MoveChartViewJob initWithViewPortHandlerXValueYValueTransformerView( + ChartViewPortHandler viewPortHandler, double xValue, double yValue, ChartTransformer transformer, + ChartViewBase view); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/NSUIAccessibilityElement.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/NSUIAccessibilityElement.java new file mode 100644 index 00000000..2b8a175b --- /dev/null +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/NSUIAccessibilityElement.java @@ -0,0 +1,167 @@ +package org.moe.samples.simplechart.charts; + + +import apple.NSObject; +import apple.coregraphics.struct.CGRect; +import apple.foundation.NSArray; +import apple.foundation.NSMethodSignature; +import apple.foundation.NSSet; +import apple.uikit.UIAccessibilityElement; +import org.moe.natj.c.ann.FunctionPtr; +import org.moe.natj.general.NatJ; +import org.moe.natj.general.Pointer; +import org.moe.natj.general.ann.ByValue; +import org.moe.natj.general.ann.Generated; +import org.moe.natj.general.ann.Library; +import org.moe.natj.general.ann.Mapped; +import org.moe.natj.general.ann.MappedReturn; +import org.moe.natj.general.ann.NInt; +import org.moe.natj.general.ann.NUInt; +import org.moe.natj.general.ann.Owned; +import org.moe.natj.general.ann.Runtime; +import org.moe.natj.general.ptr.VoidPtr; +import org.moe.natj.objc.Class; +import org.moe.natj.objc.ObjCRuntime; +import org.moe.natj.objc.SEL; +import org.moe.natj.objc.ann.ObjCClassBinding; +import org.moe.natj.objc.ann.ObjCClassName; +import org.moe.natj.objc.ann.Selector; +import org.moe.natj.objc.map.ObjCObjectMapper; + +/** + * A simple abstraction over UIAccessibilityElement and NSAccessibilityElement. + */ +@Generated +@Library("Charts") +@Runtime(ObjCRuntime.class) +@ObjCClassName("_TtC6Charts24NSUIAccessibilityElement") +@ObjCClassBinding +public class NSUIAccessibilityElement extends UIAccessibilityElement { + static { + NatJ.register(); + } + + @Generated + protected NSUIAccessibilityElement(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("accessibilityFrame") + @ByValue + public native CGRect accessibilityFrame(); + + @Generated + @Owned + @Selector("alloc") + public static native NSUIAccessibilityElement alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clearTextInputContextIdentifier:") + public static native void clearTextInputContextIdentifier(String identifier); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native NSUIAccessibilityElement init(); + + @Generated + @Selector("initWithAccessibilityContainer:") + public native NSUIAccessibilityElement initWithAccessibilityContainer( + @Mapped(ObjCObjectMapper.class) Object container); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setAccessibilityFrame:") + public native void setAccessibilityFrame(@ByValue CGRect value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); +} \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/NSUIView.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/NSUIView.java index bf878984..3c5346fc 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/NSUIView.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/NSUIView.java @@ -12,6 +12,7 @@ import apple.uikit.UITouch; import apple.uikit.UITraitCollection; import apple.uikit.UIView; +import apple.uikit.protocol.UIAppearanceContainer; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.c.ann.Variadic; import org.moe.natj.general.NatJ; @@ -43,446 +44,441 @@ @ObjCClassName("_TtC6Charts8NSUIView") @ObjCClassBinding public class NSUIView extends UIView { - static { - NatJ.register(); - } - - @Generated - protected NSUIView(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") - public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( - double frameStartTime, - double frameDuration, - @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); - - @Generated - @Owned - @Selector("alloc") - public static native NSUIView alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") - public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:animations:") - public static native void animateWithDurationAnimations( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); - - @Generated - @Selector("animateWithDuration:animations:completion:") - public static native void animateWithDurationAnimationsCompletion( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); - - @Generated - @Selector("animateWithDuration:delay:options:animations:completion:") - public static native void animateWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") - public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( - double duration, - double delay, - @NFloat double dampingRatio, - @NFloat double velocity, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); - - @Generated - @Selector("appearance") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearance(); - - @Generated - @ProtocolClassMethod("appearance") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearance() { - return appearance(); - } - - @Generated - @Selector("appearanceForTraitCollection:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollection( - UITraitCollection trait); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollection") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollection(UITraitCollection trait) { - return appearanceForTraitCollection(trait); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceForTraitCollection:whenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceForTraitCollectionWhenContainedIn(trait, - ContainerClass, varargs); - } - - @Generated - @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes) { - return appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - trait, containerTypes); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceWhenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceWhenContainedIn(ContainerClass, varargs); - } - - @Generated - @Selector("appearanceWhenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes) { - return appearanceWhenContainedInInstancesOfClasses(containerTypes); - } - - @Generated - @Selector("areAnimationsEnabled") - public static native boolean areAnimationsEnabled(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("beginAnimations:context:") - public static native void beginAnimationsContext(String animationID, - VoidPtr context); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clearTextInputContextIdentifier:") - public static native void clearTextInputContextIdentifier(String identifier); - - @Generated - @Selector("commitAnimations") - public static native void commitAnimations(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("inheritedAnimationDuration") - public static native double inheritedAnimationDuration(); - - @Generated - @Selector("init") - public native NSUIView init(); - - @Generated - @Selector("initWithCoder:") - public native NSUIView initWithCoder(NSCoder aDecoder); - - @Generated - @Selector("initWithFrame:") - public native NSUIView initWithFrame(@ByValue CGRect frame); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("layerClass") - public static native Class layerClass(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("nsuiTouchesBegan:withEvent:") - public native void nsuiTouchesBeganWithEvent( - NSSet touches, UIEvent event); - - @Generated - @Selector("nsuiTouchesCancelled:withEvent:") - public native void nsuiTouchesCancelledWithEvent( - NSSet touches, UIEvent event); - - @Generated - @Selector("nsuiTouchesEnded:withEvent:") - public native void nsuiTouchesEndedWithEvent( - NSSet touches, UIEvent event); - - @Generated - @Selector("nsuiTouchesMoved:withEvent:") - public native void nsuiTouchesMovedWithEvent( - NSSet touches, UIEvent event); - - @Generated - @Selector("performSystemAnimation:onViews:options:animations:completion:") - public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( - @NUInt long animation, - NSArray views, - @NUInt long options, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("performWithoutAnimation:") - public static native void performWithoutAnimation( - @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); - - @Generated - @Selector("requiresConstraintBasedLayout") - public static native boolean requiresConstraintBasedLayout(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setAnimationBeginsFromCurrentState:") - public static native void setAnimationBeginsFromCurrentState( - boolean fromCurrentState); - - @Generated - @Selector("setAnimationCurve:") - public static native void setAnimationCurve(@NInt long curve); - - @Generated - @Selector("setAnimationDelay:") - public static native void setAnimationDelay(double delay); - - @Generated - @Selector("setAnimationDelegate:") - public static native void setAnimationDelegate( - @Mapped(ObjCObjectMapper.class) Object delegate); - - @Generated - @Selector("setAnimationDidStopSelector:") - public static native void setAnimationDidStopSelector(SEL selector); - - @Generated - @Selector("setAnimationDuration:") - public static native void setAnimationDuration_static(double duration); - - @Generated - @Selector("setAnimationRepeatAutoreverses:") - public static native void setAnimationRepeatAutoreverses( - boolean repeatAutoreverses); - - @Generated - @Selector("setAnimationRepeatCount:") - public static native void setAnimationRepeatCount_static(float repeatCount); - - @Generated - @Selector("setAnimationStartDate:") - public static native void setAnimationStartDate(NSDate startDate); - - @Generated - @Selector("setAnimationTransition:forView:cache:") - public static native void setAnimationTransitionForViewCache( - @NInt long transition, UIView view, boolean cache); - - @Generated - @Selector("setAnimationWillStartSelector:") - public static native void setAnimationWillStartSelector(SEL selector); - - @Generated - @Selector("setAnimationsEnabled:") - public static native void setAnimationsEnabled(boolean enabled); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("touchesBegan:withEvent:") - public native void touchesBeganWithEvent(NSSet touches, - UIEvent event); - - @Generated - @Selector("touchesCancelled:withEvent:") - public native void touchesCancelledWithEvent( - NSSet touches, UIEvent event); - - @Generated - @Selector("touchesEnded:withEvent:") - public native void touchesEndedWithEvent(NSSet touches, - UIEvent event); - - @Generated - @Selector("touchesMoved:withEvent:") - public native void touchesMovedWithEvent(NSSet touches, - UIEvent event); - - @Generated - @Selector("transitionFromView:toView:duration:options:completion:") - public static native void transitionFromViewToViewDurationOptionsCompletion( - UIView fromView, - UIView toView, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); - - @Generated - @Selector("transitionWithView:duration:options:animations:completion:") - public static native void transitionWithViewDurationOptionsAnimationsCompletion( - UIView view, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttribute( - @NInt long attribute); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( - @NInt long semanticContentAttribute, @NInt long layoutDirection); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected NSUIView(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + /** + * An array of accessibilityElements that is used to implement UIAccessibilityContainer internally. + * Subclasses MUST override this with an array of such elements. + */ + @Generated + @Selector("accessibilityChildren") + public native NSArray accessibilityChildren(); + + @Generated + @Selector("accessibilityElementAtIndex:") + @MappedReturn(ObjCObjectMapper.class) + public native Object accessibilityElementAtIndex(long index); + + @Generated + @Selector("accessibilityElementCount") + public native long accessibilityElementCount(); + + @Generated + @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") + public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( + double frameStartTime, + double frameDuration, + @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); + + @Generated + @Owned + @Selector("alloc") + public static native NSUIView alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") + public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:animations:") + public static native void animateWithDurationAnimations( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); + + @Generated + @Selector("animateWithDuration:animations:completion:") + public static native void animateWithDurationAnimationsCompletion( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); + + @Generated + @Selector("animateWithDuration:delay:options:animations:completion:") + public static native void animateWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") + public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( + double duration, + double delay, + @NFloat double dampingRatio, + @NFloat double velocity, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); + + @Generated + @Selector("appearance") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearance(); + + @Generated + @ProtocolClassMethod("appearance") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearance() { + return appearance(); + } + + @Generated + @Selector("appearanceForTraitCollection:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollection(UITraitCollection trait); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollection") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollection(UITraitCollection trait) { + return appearanceForTraitCollection(trait); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceForTraitCollection:whenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs) { + return appearanceForTraitCollectionWhenContainedIn(trait, ContainerClass, varargs); + } + + @Generated + @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes) { + return appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait, containerTypes); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceWhenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedIn( + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedIn(@Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, + Object... varargs) { + return appearanceWhenContainedIn(ContainerClass, varargs); + } + + @Generated + @Selector("appearanceWhenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes) { + return appearanceWhenContainedInInstancesOfClasses(containerTypes); + } + + @Generated + @Selector("areAnimationsEnabled") + public static native boolean areAnimationsEnabled(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("beginAnimations:context:") + public static native void beginAnimationsContext(String animationID, VoidPtr context); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clearTextInputContextIdentifier:") + public static native void clearTextInputContextIdentifier(String identifier); + + @Generated + @Selector("commitAnimations") + public static native void commitAnimations(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("indexOfAccessibilityElement:") + public native long indexOfAccessibilityElement(@Mapped(ObjCObjectMapper.class) Object element); + + @Generated + @Selector("inheritedAnimationDuration") + public static native double inheritedAnimationDuration(); + + @Generated + @Selector("init") + public native NSUIView init(); + + @Generated + @Selector("initWithCoder:") + public native NSUIView initWithCoder(NSCoder coder); + + @Generated + @Selector("initWithFrame:") + public native NSUIView initWithFrame(@ByValue CGRect frame); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isAccessibilityElement") + public native boolean isAccessibilityElement(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("layerClass") + public static native Class layerClass(); + + @Generated + @Selector("modifyAnimationsWithRepeatCount:autoreverses:animations:") + public static native void modifyAnimationsWithRepeatCountAutoreversesAnimations( + @NFloat double count, + boolean autoreverses, + @ObjCBlock(name = "call_modifyAnimationsWithRepeatCountAutoreversesAnimations") UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("nsuiTouchesBegan:withEvent:") + public native void nsuiTouchesBeganWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("nsuiTouchesCancelled:withEvent:") + public native void nsuiTouchesCancelledWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("nsuiTouchesEnded:withEvent:") + public native void nsuiTouchesEndedWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("nsuiTouchesMoved:withEvent:") + public native void nsuiTouchesMovedWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("performSystemAnimation:onViews:options:animations:completion:") + public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( + @NUInt long animation, + NSArray views, + @NUInt long options, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("performWithoutAnimation:") + public static native void performWithoutAnimation( + @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); + + @Generated + @Selector("requiresConstraintBasedLayout") + public static native boolean requiresConstraintBasedLayout(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setAnimationBeginsFromCurrentState:") + public static native void setAnimationBeginsFromCurrentState(boolean fromCurrentState); + + @Generated + @Selector("setAnimationCurve:") + public static native void setAnimationCurve(@NInt long curve); + + @Generated + @Selector("setAnimationDelay:") + public static native void setAnimationDelay(double delay); + + @Generated + @Selector("setAnimationDelegate:") + public static native void setAnimationDelegate(@Mapped(ObjCObjectMapper.class) Object delegate); + + @Generated + @Selector("setAnimationDidStopSelector:") + public static native void setAnimationDidStopSelector(SEL selector); + + @Generated + @Selector("setAnimationDuration:") + public static native void setAnimationDuration_static(double duration); + + @Generated + @Selector("setAnimationRepeatAutoreverses:") + public static native void setAnimationRepeatAutoreverses(boolean repeatAutoreverses); + + @Generated + @Selector("setAnimationRepeatCount:") + public static native void setAnimationRepeatCount_static(float repeatCount); + + @Generated + @Selector("setAnimationStartDate:") + public static native void setAnimationStartDate(NSDate startDate); + + @Generated + @Selector("setAnimationTransition:forView:cache:") + public static native void setAnimationTransitionForViewCache(@NInt long transition, UIView view, boolean cache); + + @Generated + @Selector("setAnimationWillStartSelector:") + public static native void setAnimationWillStartSelector(SEL selector); + + @Generated + @Selector("setAnimationsEnabled:") + public static native void setAnimationsEnabled(boolean enabled); + + @Generated + @Selector("setIsAccessibilityElement:") + public native void setIsAccessibilityElement(boolean value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("touchesBegan:withEvent:") + public native void touchesBeganWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("touchesCancelled:withEvent:") + public native void touchesCancelledWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("touchesEnded:withEvent:") + public native void touchesEndedWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("touchesMoved:withEvent:") + public native void touchesMovedWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("transitionFromView:toView:duration:options:completion:") + public static native void transitionFromViewToViewDurationOptionsCompletion( + UIView fromView, + UIView toView, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); + + @Generated + @Selector("transitionWithView:duration:options:animations:completion:") + public static native void transitionWithViewDurationOptionsAnimationsCompletion( + UIView view, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttribute(@NInt long attribute); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( + @NInt long semanticContentAttribute, @NInt long layoutDirection); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartData.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartData.java index f4c4f4b8..fa94c0d1 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartData.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartData.java @@ -32,166 +32,171 @@ @ObjCClassName("_TtC6Charts12PieChartData") @ObjCClassBinding public class PieChartData extends ChartData { - static { - NatJ.register(); - } - - @Generated - protected PieChartData(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addDataSet:") - public native void addDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet d); - - @Generated - @Owned - @Selector("alloc") - public static native PieChartData alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("entryForHighlight:") - public native ChartDataEntry entryForHighlight(ChartHighlight highlight); - - @Generated - @Selector("getDataSetByIndex:") - @MappedReturn(ObjCObjectMapper.class) - public native IChartDataSet getDataSetByIndex(@NInt long index); - - @Generated - @Selector("getDataSetByLabel:ignorecase:") - @MappedReturn(ObjCObjectMapper.class) - public native IChartDataSet getDataSetByLabelIgnorecase(String label, - boolean ignorecase); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native PieChartData init(); - - @Generated - @Selector("initWithDataSet:") - public native PieChartData initWithDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); - - @Generated - @Selector("initWithDataSets:") - public native PieChartData initWithDataSets(NSArray dataSets); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("removeDataSetByIndex:") - public native boolean removeDataSetByIndex(@NInt long index); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("yValueSum") - public native double yValueSum(); + static { + NatJ.register(); + } + + @Generated + protected PieChartData(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addDataSet:") + public native void addDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet d); + + @Generated + @Owned + @Selector("alloc") + public static native PieChartData alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + /** + * All DataSet objects this ChartData object holds. + */ + @Generated + @Selector("dataSets") + public native NSArray dataSets(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("entryForHighlight:") + public native ChartDataEntry entryForHighlight(ChartHighlight highlight); + + @Generated + @Selector("getDataSetByIndex:") + @MappedReturn(ObjCObjectMapper.class) + public native IChartDataSet getDataSetByIndex(@NInt long index); + + @Generated + @Selector("getDataSetByLabel:ignorecase:") + @MappedReturn(ObjCObjectMapper.class) + public native IChartDataSet getDataSetByLabelIgnorecase(String label, boolean ignorecase); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native PieChartData init(); + + @Generated + @Selector("initWithDataSet:") + public native PieChartData initWithDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); + + @Generated + @Selector("initWithDataSets:") + public native PieChartData initWithDataSets(NSArray dataSets); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + /** + * Removes the DataSet at the given index in the DataSet array from the data object. + * Also recalculates all minimum and maximum values. + * + * returns: + * true if a DataSet was removed, false ifno DataSet could be removed. + */ + @Generated + @Selector("removeDataSetByIndex:") + public native boolean removeDataSetByIndex(@NInt long index); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * All DataSet objects this ChartData object holds. + */ + @Generated + @Selector("setDataSets:") + public native void setDataSets(NSArray value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * The total y-value sum across all DataSet objects the this object represents. + */ + @Generated + @Selector("yValueSum") + public native double yValueSum(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartDataEntry.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartDataEntry.java index 0a1272d6..6500650a 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartDataEntry.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartDataEntry.java @@ -5,6 +5,7 @@ import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSSet; +import apple.uikit.UIImage; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; @@ -31,196 +32,252 @@ @ObjCClassName("_TtC6Charts17PieChartDataEntry") @ObjCClassBinding public class PieChartDataEntry extends ChartDataEntry { - static { - NatJ.register(); - } - - @Generated - protected PieChartDataEntry(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native PieChartDataEntry alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native PieChartDataEntry init(); - - @Generated - @Selector("initWithValue:") - public native PieChartDataEntry initWithValue(double value); - - @Generated - @Selector("initWithValue:data:") - public native PieChartDataEntry initWithValueData(double value, - @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initWithValue:label:") - public native PieChartDataEntry initWithValueLabel(double value, - String label); - - @Generated - @Selector("initWithValue:label:data:") - public native PieChartDataEntry initWithValueLabelData(double value, - String label, @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initWithX:y:") - public native PieChartDataEntry initWithXY(double x, double y); - - @Generated - @Selector("initWithX:y:data:") - public native PieChartDataEntry initWithXYData(double x, double y, - @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initWithY:") - public native PieChartDataEntry initWithY(double y); - - @Generated - @Selector("initWithY:data:") - public native PieChartDataEntry initWithYData(double y, - @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("label") - public native String label(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setLabel:") - public native void setLabel(String value); - - @Generated - @Selector("setValue:") - public native void setValue(double value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setX:") - public native void setX(double value); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("value") - public native double value(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("x") - public native double x(); + static { + NatJ.register(); + } + + @Generated + protected PieChartDataEntry(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native PieChartDataEntry alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native PieChartDataEntry init(); + + /** + * \param value The value on the y-axis + */ + @Generated + @Selector("initWithValue:") + public native PieChartDataEntry initWithValue(double value); + + /** + * \param value The value on the y-axis + * + * \param data Spot for additional data this Entry represents + */ + @Generated + @Selector("initWithValue:data:") + public native PieChartDataEntry initWithValueData(double value, @Mapped(ObjCObjectMapper.class) Object data); + + /** + * \param value The value on the y-axis + * + * \param icon icon image + */ + @Generated + @Selector("initWithValue:icon:") + public native PieChartDataEntry initWithValueIcon(double value, UIImage icon); + + /** + * \param value The value on the y-axis + * + * \param icon icon image + * + * \param data Spot for additional data this Entry represents + */ + @Generated + @Selector("initWithValue:icon:data:") + public native PieChartDataEntry initWithValueIconData(double value, UIImage icon, + @Mapped(ObjCObjectMapper.class) Object data); + + /** + * \param value The value on the y-axis + * + * \param label The label for the x-axis + */ + @Generated + @Selector("initWithValue:label:") + public native PieChartDataEntry initWithValueLabel(double value, String label); + + /** + * \param value The value on the y-axis + * + * \param label The label for the x-axis + * + * \param data Spot for additional data this Entry represents + */ + @Generated + @Selector("initWithValue:label:data:") + public native PieChartDataEntry initWithValueLabelData(double value, String label, + @Mapped(ObjCObjectMapper.class) Object data); + + /** + * \param value The value on the y-axis + * + * \param label The label for the x-axis + * + * \param icon icon image + */ + @Generated + @Selector("initWithValue:label:icon:") + public native PieChartDataEntry initWithValueLabelIcon(double value, String label, UIImage icon); + + /** + * \param value The value on the y-axis + * + * \param label The label for the x-axis + * + * \param icon icon image + * + * \param data Spot for additional data this Entry represents + */ + @Generated + @Selector("initWithValue:label:icon:data:") + public native PieChartDataEntry initWithValueLabelIconData(double value, String label, UIImage icon, + @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithX:y:") + public native PieChartDataEntry initWithXY(double x, double y); + + @Generated + @Selector("initWithX:y:data:") + public native PieChartDataEntry initWithXYData(double x, double y, @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithX:y:icon:") + public native PieChartDataEntry initWithXYIcon(double x, double y, UIImage icon); + + @Generated + @Selector("initWithX:y:icon:data:") + public native PieChartDataEntry initWithXYIconData(double x, double y, UIImage icon, + @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithY:") + public native PieChartDataEntry initWithY(double y); + + @Generated + @Selector("initWithY:data:") + public native PieChartDataEntry initWithYData(double y, @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithY:icon:") + public native PieChartDataEntry initWithYIcon(double y, UIImage icon); + + @Generated + @Selector("initWithY:icon:data:") + public native PieChartDataEntry initWithYIconData(double y, UIImage icon, + @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("label") + public native String label(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setLabel:") + public native void setLabel(String value); + + @Generated + @Selector("setValue:") + public native void setValue(double value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("value") + public native double value(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartDataSet.java index cbecbb8b..44bbeecf 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartDataSet.java @@ -2,6 +2,7 @@ import apple.NSObject; +import apple.coregraphics.struct.CGPoint; import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSNumber; @@ -11,6 +12,7 @@ import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; +import org.moe.natj.general.ann.ByValue; import org.moe.natj.general.ann.Generated; import org.moe.natj.general.ann.Library; import org.moe.natj.general.ann.Mapped; @@ -28,6 +30,7 @@ import org.moe.natj.objc.ann.ObjCClassName; import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +import org.moe.samples.simplechart.charts.protocol.IChartValueFormatter; import org.moe.samples.simplechart.charts.protocol.IPieChartDataSet; @Generated @@ -36,487 +39,501 @@ @ObjCClassName("_TtC6Charts15PieChartDataSet") @ObjCClassBinding public class PieChartDataSet extends ChartDataSet implements IPieChartDataSet { - static { - NatJ.register(); - } - - @Generated - protected PieChartDataSet(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addColor:") - public native void addColor(UIColor color); - - @Generated - @Selector("addEntry:") - public native boolean addEntry(ChartDataEntry e); - - @Generated - @Selector("addEntryOrdered:") - public native boolean addEntryOrdered(ChartDataEntry e); - - @Generated - @Owned - @Selector("alloc") - public static native PieChartDataSet alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyDisableSliceSpacing") - public native boolean automaticallyDisableSliceSpacing(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("axisDependency") - @NInt - public native long axisDependency(); - - @Generated - @Selector("calcMinMax") - public native void calcMinMax(); - - @Generated - @Selector("calcMinMaxYFromX:toX:") - public native void calcMinMaxYFromXToX(double fromX, double toX); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clear") - public native void clear(); - - @Generated - @Selector("colorAtIndex:") - public native UIColor colorAtIndex(@NInt long atIndex); - - @Generated - @Selector("colors") - public native NSArray colors(); - - @Generated - @Selector("contains:") - public native boolean contains(ChartDataEntry e); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawValuesEnabled") - public native boolean drawValuesEnabled(); - - @Generated - @Selector("entriesForXValue:") - public native NSArray entriesForXValue( - double xValue); - - @Generated - @Selector("entryCount") - @NInt - public native long entryCount(); - - @Generated - @Selector("entryForIndex:") - public native ChartDataEntry entryForIndex(@NInt long i); - - @Generated - @Selector("entryForXValue:closestToY:") - public native ChartDataEntry entryForXValueClosestToY(double xValue, - double yValue); - - @Generated - @Selector("entryForXValue:closestToY:rounding:") - public native ChartDataEntry entryForXValueClosestToYRounding( - double xValue, double yValue, @NInt long rounding); - - @Generated - @Selector("entryIndexWithEntry:") - @NInt - public native long entryIndexWithEntry(ChartDataEntry e); - - @Generated - @Selector("entryIndexWithX:closestToY:rounding:") - @NInt - public native long entryIndexWithXClosestToYRounding(double xValue, - double yValue, @NInt long rounding); - - @Generated - @Selector("entryLabelColor") - public native UIColor entryLabelColor(); - - @Generated - @Selector("entryLabelFont") - public native UIFont entryLabelFont(); - - @Generated - @Selector("form") - @NInt - public native long form(); - - @Generated - @Selector("formLineDashLengths") - public native NSArray formLineDashLengths(); - - @Generated - @Selector("formLineDashPhase") - @NFloat - public native double formLineDashPhase(); - - @Generated - @Selector("formLineWidth") - @NFloat - public native double formLineWidth(); - - @Generated - @Selector("formSize") - @NFloat - public native double formSize(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highlightEnabled") - public native boolean highlightEnabled(); - - @Generated - @Selector("init") - public native PieChartDataSet init(); - - @Generated - @Selector("initWithLabel:") - public native PieChartDataSet initWithLabel(String label); - - @Generated - @Selector("initWithValues:") - public native PieChartDataSet initWithValues( - NSArray values); - - @Generated - @Selector("initWithValues:label:") - public native PieChartDataSet initWithValuesLabel( - NSArray values, String label); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawValuesEnabled") - public native boolean isDrawValuesEnabled(); - - @Generated - @Selector("isHighlightEnabled") - public native boolean isHighlightEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("isVisible") - public native boolean isVisible(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("label") - public native String label(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("needsFormatter") - public native boolean needsFormatter(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("removeEntry:") - public native boolean removeEntry(ChartDataEntry entry); - - @Generated - @Selector("removeEntryWithIndex:") - public native boolean removeEntryWithIndex(@NInt long index); - - @Generated - @Selector("removeEntryWithX:") - public native boolean removeEntryWithX(double x); - - @Generated - @Selector("removeFirst") - public native boolean removeFirst(); - - @Generated - @Selector("removeLast") - public native boolean removeLast(); - - @Generated - @Selector("resetColors") - public native void resetColors(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("selectionShift") - @NFloat - public native double selectionShift(); - - @Generated - @Selector("setAutomaticallyDisableSliceSpacing:") - public native void setAutomaticallyDisableSliceSpacing(boolean value); - - @Generated - @Selector("setColor:") - public native void setColor(UIColor color); - - @Generated - @Selector("setDrawValuesEnabled:") - public native void setDrawValuesEnabled(boolean value); - - @Generated - @Selector("setEntryLabelColor:") - public native void setEntryLabelColor(UIColor value); - - @Generated - @Selector("setEntryLabelFont:") - public native void setEntryLabelFont(UIFont value); - - @Generated - @Selector("setHighlightEnabled:") - public native void setHighlightEnabled(boolean value); - - @Generated - @Selector("setSelectionShift:") - public native void setSelectionShift(@NFloat double value); - - @Generated - @Selector("setSliceSpace:") - public native void setSliceSpace(@NFloat double value); - - @Generated - @Selector("setValueFont:") - public native void setValueFont(UIFont value); - - @Generated - @Selector("setValueFormatter:") - public native void setValueFormatter( - @Mapped(ObjCObjectMapper.class) Object value); - - @Generated - @Selector("setValueLineColor:") - public native void setValueLineColor(UIColor value); - - @Generated - @Selector("setValueLinePart1Length:") - public native void setValueLinePart1Length(@NFloat double value); - - @Generated - @Selector("setValueLinePart1OffsetPercentage:") - public native void setValueLinePart1OffsetPercentage(@NFloat double value); - - @Generated - @Selector("setValueLinePart2Length:") - public native void setValueLinePart2Length(@NFloat double value); - - @Generated - @Selector("setValueLineVariableLength:") - public native void setValueLineVariableLength(boolean value); - - @Generated - @Selector("setValueLineWidth:") - public native void setValueLineWidth(@NFloat double value); - - @Generated - @Selector("setValueTextColor:") - public native void setValueTextColor(UIColor value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setVisible:") - public native void setVisible(boolean value); - - @Generated - @Selector("setXValuePosition:") - public native void setXValuePosition(@NInt long value); - - @Generated - @Selector("setYValuePosition:") - public native void setYValuePosition(@NInt long value); - - @Generated - @Selector("sliceSpace") - @NFloat - public native double sliceSpace(); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("valueColors") - public native NSArray valueColors(); - - @Generated - @Selector("valueFont") - public native UIFont valueFont(); - - @Generated - @Selector("valueFormatter") - @MappedReturn(ObjCObjectMapper.class) - public native Object valueFormatter(); - - @Generated - @Selector("valueLineColor") - public native UIColor valueLineColor(); - - @Generated - @Selector("valueLinePart1Length") - @NFloat - public native double valueLinePart1Length(); - - @Generated - @Selector("valueLinePart1OffsetPercentage") - @NFloat - public native double valueLinePart1OffsetPercentage(); - - @Generated - @Selector("valueLinePart2Length") - @NFloat - public native double valueLinePart2Length(); - - @Generated - @Selector("valueLineVariableLength") - public native boolean valueLineVariableLength(); - - @Generated - @Selector("valueLineWidth") - @NFloat - public native double valueLineWidth(); - - @Generated - @Selector("valueTextColor") - public native UIColor valueTextColor(); - - @Generated - @Selector("valueTextColorAt:") - public native UIColor valueTextColorAt(@NInt long index); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("visible") - public native boolean visible(); - - @Generated - @Selector("xMax") - public native double xMax(); - - @Generated - @Selector("xMin") - public native double xMin(); - - @Generated - @Selector("xValuePosition") - @NInt - public native long xValuePosition(); - - @Generated - @Selector("yMax") - public native double yMax(); - - @Generated - @Selector("yMin") - public native double yMin(); - - @Generated - @Selector("yValuePosition") - @NInt - public native long yValuePosition(); + static { + NatJ.register(); + } + + @Generated + protected PieChartDataSet(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addColor:") + public native void addColor(UIColor color); + + @Generated + @Selector("addEntry:") + public native boolean addEntry(ChartDataEntry e); + + @Generated + @Selector("addEntryOrdered:") + public native boolean addEntryOrdered(ChartDataEntry e); + + @Generated + @Owned + @Selector("alloc") + public static native PieChartDataSet alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyDisableSliceSpacing") + public native boolean automaticallyDisableSliceSpacing(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("axisDependency") + @NInt + public native long axisDependency(); + + @Generated + @Selector("calcMinMax") + public native void calcMinMax(); + + @Generated + @Selector("calcMinMaxYFromX:toX:") + public native void calcMinMaxYFromXToX(double fromX, double toX); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clear") + public native void clear(); + + @Generated + @Selector("colorAtIndex:") + public native UIColor colorAtIndex(@NInt long atIndex); + + @Generated + @Selector("colors") + public native NSArray colors(); + + @Generated + @Selector("contains:") + public native boolean contains(ChartDataEntry e); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawIconsEnabled") + public native boolean drawIconsEnabled(); + + @Generated + @Selector("drawValuesEnabled") + public native boolean drawValuesEnabled(); + + @Generated + @Selector("entriesForXValue:") + public native NSArray entriesForXValue(double xValue); + + @Generated + @Selector("entryCount") + @NInt + public native long entryCount(); + + @Generated + @Selector("entryForIndex:") + public native ChartDataEntry entryForIndex(@NInt long i); + + @Generated + @Selector("entryForXValue:closestToY:") + public native ChartDataEntry entryForXValueClosestToY(double xValue, double yValue); + + @Generated + @Selector("entryForXValue:closestToY:rounding:") + public native ChartDataEntry entryForXValueClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("entryIndexWithEntry:") + @NInt + public native long entryIndexWithEntry(ChartDataEntry e); + + @Generated + @Selector("entryIndexWithX:closestToY:rounding:") + @NInt + public native long entryIndexWithXClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("entryLabelColor") + public native UIColor entryLabelColor(); + + @Generated + @Selector("entryLabelFont") + public native UIFont entryLabelFont(); + + @Generated + @Selector("form") + @NInt + public native long form(); + + @Generated + @Selector("formLineDashLengths") + public native NSArray formLineDashLengths(); + + @Generated + @Selector("formLineDashPhase") + @NFloat + public native double formLineDashPhase(); + + @Generated + @Selector("formLineWidth") + @NFloat + public native double formLineWidth(); + + @Generated + @Selector("formSize") + @NFloat + public native double formSize(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highlightColor") + public native UIColor highlightColor(); + + @Generated + @Selector("highlightEnabled") + public native boolean highlightEnabled(); + + @Generated + @Selector("iconsOffset") + @ByValue + public native CGPoint iconsOffset(); + + @Generated + @Selector("init") + public native PieChartDataSet init(); + + @Generated + @Selector("initWithEntries:") + public native PieChartDataSet initWithEntries(NSArray entries); + + @Generated + @Selector("initWithEntries:label:") + public native PieChartDataSet initWithEntriesLabel(NSArray entries, String label); + + @Generated + @Selector("initWithLabel:") + public native PieChartDataSet initWithLabel(String label); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isDrawIconsEnabled") + public native boolean isDrawIconsEnabled(); + + @Generated + @Selector("isDrawValuesEnabled") + public native boolean isDrawValuesEnabled(); + + @Generated + @Selector("isHighlightEnabled") + public native boolean isHighlightEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("isVisible") + public native boolean isVisible(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("label") + public native String label(); + + @Generated + @Selector("needsFormatter") + public native boolean needsFormatter(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("notifyDataSetChanged") + public native void notifyDataSetChanged(); + + @Generated + @Selector("removeEntry:") + public native boolean removeEntry(ChartDataEntry entry); + + @Generated + @Selector("removeEntryWithIndex:") + public native boolean removeEntryWithIndex(@NInt long index); + + @Generated + @Selector("removeEntryWithX:") + public native boolean removeEntryWithX(double x); + + @Generated + @Selector("removeFirst") + public native boolean removeFirst(); + + @Generated + @Selector("removeLast") + public native boolean removeLast(); + + @Generated + @Selector("resetColors") + public native void resetColors(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("selectionShift") + @NFloat + public native double selectionShift(); + + @Generated + @Selector("setAutomaticallyDisableSliceSpacing:") + public native void setAutomaticallyDisableSliceSpacing(boolean value); + + @Generated + @Selector("setColor:") + public native void setColor(UIColor color); + + @Generated + @Selector("setDrawIconsEnabled:") + public native void setDrawIconsEnabled(boolean value); + + @Generated + @Selector("setDrawValuesEnabled:") + public native void setDrawValuesEnabled(boolean value); + + @Generated + @Selector("setEntryLabelColor:") + public native void setEntryLabelColor(UIColor value); + + @Generated + @Selector("setEntryLabelFont:") + public native void setEntryLabelFont(UIFont value); + + @Generated + @Selector("setHighlightColor:") + public native void setHighlightColor(UIColor value); + + @Generated + @Selector("setHighlightEnabled:") + public native void setHighlightEnabled(boolean value); + + @Generated + @Selector("setIconsOffset:") + public native void setIconsOffset(@ByValue CGPoint value); + + @Generated + @Selector("setSelectionShift:") + public native void setSelectionShift(@NFloat double value); + + @Generated + @Selector("setSliceSpace:") + public native void setSliceSpace(@NFloat double value); + + @Generated + @Selector("setUseValueColorForLine:") + public native void setUseValueColorForLine(boolean value); + + @Generated + @Selector("setValueFont:") + public native void setValueFont(UIFont value); + + @Generated + @Selector("setValueFormatter:") + public native void setValueFormatter(@Mapped(ObjCObjectMapper.class) IChartValueFormatter value); + + @Generated + @Selector("setValueLineColor:") + public native void setValueLineColor(UIColor value); + + @Generated + @Selector("setValueLinePart1Length:") + public native void setValueLinePart1Length(@NFloat double value); + + @Generated + @Selector("setValueLinePart1OffsetPercentage:") + public native void setValueLinePart1OffsetPercentage(@NFloat double value); + + @Generated + @Selector("setValueLinePart2Length:") + public native void setValueLinePart2Length(@NFloat double value); + + @Generated + @Selector("setValueLineVariableLength:") + public native void setValueLineVariableLength(boolean value); + + @Generated + @Selector("setValueLineWidth:") + public native void setValueLineWidth(@NFloat double value); + + @Generated + @Selector("setValueTextColor:") + public native void setValueTextColor(UIColor value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("setVisible:") + public native void setVisible(boolean value); + + @Generated + @Selector("setXValuePosition:") + public native void setXValuePosition(@NInt long value); + + @Generated + @Selector("setYValuePosition:") + public native void setYValuePosition(@NInt long value); + + @Generated + @Selector("sliceSpace") + @NFloat + public native double sliceSpace(); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("useValueColorForLine") + public native boolean useValueColorForLine(); + + @Generated + @Selector("valueColors") + public native NSArray valueColors(); + + @Generated + @Selector("valueFont") + public native UIFont valueFont(); + + @Generated + @Selector("valueFormatter") + @MappedReturn(ObjCObjectMapper.class) + public native IChartValueFormatter valueFormatter(); + + @Generated + @Selector("valueLineColor") + public native UIColor valueLineColor(); + + @Generated + @Selector("valueLinePart1Length") + @NFloat + public native double valueLinePart1Length(); + + @Generated + @Selector("valueLinePart1OffsetPercentage") + @NFloat + public native double valueLinePart1OffsetPercentage(); + + @Generated + @Selector("valueLinePart2Length") + @NFloat + public native double valueLinePart2Length(); + + @Generated + @Selector("valueLineVariableLength") + public native boolean valueLineVariableLength(); + + @Generated + @Selector("valueLineWidth") + @NFloat + public native double valueLineWidth(); + + @Generated + @Selector("valueTextColor") + public native UIColor valueTextColor(); + + @Generated + @Selector("valueTextColorAt:") + public native UIColor valueTextColorAt(@NInt long index); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("visible") + public native boolean visible(); + + @Generated + @Selector("xMax") + public native double xMax(); + + @Generated + @Selector("xMin") + public native double xMin(); + + @Generated + @Selector("xValuePosition") + @NInt + public native long xValuePosition(); + + @Generated + @Selector("yMax") + public native double yMax(); + + @Generated + @Selector("yMin") + public native double yMin(); + + @Generated + @Selector("yValuePosition") + @NInt + public native long yValuePosition(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartHighlighter.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartHighlighter.java index eed7b420..82351bdb 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartHighlighter.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartHighlighter.java @@ -30,139 +30,121 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class PieChartHighlighter extends PieRadarChartHighlighter { - static { - NatJ.register(); - } - - @Generated - protected PieChartHighlighter(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native PieChartHighlighter alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("closestHighlightWithIndex:x:y:") - public native ChartHighlight closestHighlightWithIndexXY(@NInt long index, - @NFloat double x, @NFloat double y); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native PieChartHighlighter init(); - - @Generated - @Selector("initWithChart:") - public native PieChartHighlighter initWithChart( - @Mapped(ObjCObjectMapper.class) Object chart); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected PieChartHighlighter(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native PieChartHighlighter alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("closestHighlightWithIndex:x:y:") + public native ChartHighlight closestHighlightWithIndexXY(@NInt long index, @NFloat double x, @NFloat double y); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native PieChartHighlighter init(); + + @Generated + @Selector("initWithChart:") + public native PieChartHighlighter initWithChart(@Mapped(ObjCObjectMapper.class) Object chart); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartRenderer.java index 29bcb132..67388434 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartRenderer.java @@ -36,206 +36,187 @@ @ObjCClassName("_TtC6Charts16PieChartRenderer") @ObjCClassBinding public class PieChartRenderer extends ChartDataRendererBase { - static { - NatJ.register(); - } - - @Generated - protected PieChartRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native PieChartRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("calculateMinimumRadiusForSpacedSliceWithCenter:radius:angle:arcStartPointX:arcStartPointY:startAngle:sweepAngle:") - @NFloat - public native double calculateMinimumRadiusForSpacedSliceWithCenterRadiusAngleArcStartPointXArcStartPointYStartAngleSweepAngle( - @ByValue CGPoint center, @NFloat double radius, - @NFloat double angle, @NFloat double arcStartPointX, - @NFloat double arcStartPointY, @NFloat double startAngle, - @NFloat double sweepAngle); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("chart") - public native PieChartView chart(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawDataSetWithContext:dataSet:") - public native void drawDataSetWithContextDataSet(CGContextRef context, - @Mapped(ObjCObjectMapper.class) IPieChartDataSet dataSet); - - @Generated - @Selector("drawDataWithContext:") - public native void drawDataWithContext(CGContextRef context); - - @Generated - @Selector("drawExtrasWithContext:") - public native void drawExtrasWithContext(CGContextRef context); - - @Generated - @Selector("drawHighlightedWithContext:indices:") - public native void drawHighlightedWithContextIndices(CGContextRef context, - NSArray indices); - - @Generated - @Selector("drawValuesWithContext:") - public native void drawValuesWithContext(CGContextRef context); - - @Generated - @Selector("getSliceSpaceWithDataSet:") - @NFloat - public native double getSliceSpaceWithDataSet( - @Mapped(ObjCObjectMapper.class) IPieChartDataSet dataSet); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native PieChartRenderer init(); - - @Generated - @Selector("initBuffers") - public native void initBuffers(); - - @Generated - @Selector("initWithAnimator:viewPortHandler:") - public native PieChartRenderer initWithAnimatorViewPortHandler( - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithChart:animator:viewPortHandler:") - public native PieChartRenderer initWithChartAnimatorViewPortHandler( - PieChartView chart, ChartAnimator animator, - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:") - public native PieChartRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setChart:") - public native void setChart_unsafe(PieChartView value); - - @Generated - public void setChart(PieChartView value) { - Object __old = chart(); - if (value != null) { - org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); - } - setChart_unsafe(value); - if (__old != null) { - org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); - } - } - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected PieChartRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native PieChartRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("calculateMinimumRadiusForSpacedSliceWithCenter:radius:angle:arcStartPointX:arcStartPointY:startAngle:sweepAngle:") + @NFloat + public native double calculateMinimumRadiusForSpacedSliceWithCenterRadiusAngleArcStartPointXArcStartPointYStartAngleSweepAngle( + @ByValue CGPoint center, @NFloat double radius, @NFloat double angle, @NFloat double arcStartPointX, + @NFloat double arcStartPointY, @NFloat double startAngle, @NFloat double sweepAngle); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("chart") + public native PieChartView chart(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawDataSetWithContext:dataSet:") + public native void drawDataSetWithContextDataSet(CGContextRef context, + @Mapped(ObjCObjectMapper.class) IPieChartDataSet dataSet); + + @Generated + @Selector("drawDataWithContext:") + public native void drawDataWithContext(CGContextRef context); + + @Generated + @Selector("drawExtrasWithContext:") + public native void drawExtrasWithContext(CGContextRef context); + + @Generated + @Selector("drawHighlightedWithContext:indices:") + public native void drawHighlightedWithContextIndices(CGContextRef context, NSArray indices); + + @Generated + @Selector("drawValuesWithContext:") + public native void drawValuesWithContext(CGContextRef context); + + /** + * Calculates the sliceSpace to use based on visible values and their size compared to the set sliceSpace. + */ + @Generated + @Selector("getSliceSpaceWithDataSet:") + @NFloat + public native double getSliceSpaceWithDataSet(@Mapped(ObjCObjectMapper.class) IPieChartDataSet dataSet); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native PieChartRenderer init(); + + @Generated + @Selector("initBuffers") + public native void initBuffers(); + + @Generated + @Selector("initWithAnimator:viewPortHandler:") + public native PieChartRenderer initWithAnimatorViewPortHandler(ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithChart:animator:viewPortHandler:") + public native PieChartRenderer initWithChartAnimatorViewPortHandler(PieChartView chart, ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:") + public native PieChartRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setChart:") + public native void setChart_unsafe(PieChartView value); + + @Generated + public void setChart(PieChartView value) { + Object __old = chart(); + if (value != null) { + org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); + } + setChart_unsafe(value); + if (__old != null) { + org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); + } + } + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartView.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartView.java index d45358e2..8f9ee324 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartView.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieChartView.java @@ -15,6 +15,7 @@ import apple.uikit.UIFont; import apple.uikit.UITraitCollection; import apple.uikit.UIView; +import apple.uikit.protocol.UIAppearanceContainer; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.c.ann.Variadic; import org.moe.natj.general.NatJ; @@ -40,628 +41,760 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +/** + * View that represents a pie chart. Draws cake like slices. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts12PieChartView") @ObjCClassBinding public class PieChartView extends PieRadarChartViewBase { - static { - NatJ.register(); - } - - @Generated - protected PieChartView(Pointer peer) { - super(peer); - } - - @Generated - @Selector("absoluteAngles") - public native NSArray absoluteAngles(); - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") - public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( - double frameStartTime, - double frameDuration, - @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); - - @Generated - @Owned - @Selector("alloc") - public static native PieChartView alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") - public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:animations:") - public static native void animateWithDurationAnimations( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); - - @Generated - @Selector("animateWithDuration:animations:completion:") - public static native void animateWithDurationAnimationsCompletion( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); - - @Generated - @Selector("animateWithDuration:delay:options:animations:completion:") - public static native void animateWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") - public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( - double duration, - double delay, - @NFloat double dampingRatio, - @NFloat double velocity, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); - - @Generated - @Selector("appearance") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearance(); - - @Generated - @ProtocolClassMethod("appearance") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearance() { - return appearance(); - } - - @Generated - @Selector("appearanceForTraitCollection:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollection( - UITraitCollection trait); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollection") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollection(UITraitCollection trait) { - return appearanceForTraitCollection(trait); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceForTraitCollection:whenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceForTraitCollectionWhenContainedIn(trait, - ContainerClass, varargs); - } - - @Generated - @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes) { - return appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - trait, containerTypes); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceWhenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceWhenContainedIn(ContainerClass, varargs); - } - - @Generated - @Selector("appearanceWhenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes) { - return appearanceWhenContainedInInstancesOfClasses(containerTypes); - } - - @Generated - @Selector("areAnimationsEnabled") - public static native boolean areAnimationsEnabled(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("beginAnimations:context:") - public static native void beginAnimationsContext(String animationID, - VoidPtr context); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("centerAttributedText") - public native NSAttributedString centerAttributedText(); - - @Generated - @Selector("centerCircleBox") - @ByValue - public native CGPoint centerCircleBox(); - - @Generated - @Selector("centerText") - public native String centerText(); - - @Generated - @Selector("centerTextOffset") - @ByValue - public native CGPoint centerTextOffset(); - - @Generated - @Selector("centerTextRadiusPercent") - @NFloat - public native double centerTextRadiusPercent(); - - @Generated - @Selector("circleBox") - @ByValue - public native CGRect circleBox(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clearTextInputContextIdentifier:") - public static native void clearTextInputContextIdentifier(String identifier); - - @Generated - @Selector("commitAnimations") - public static native void commitAnimations(); - - @Generated - @Selector("dataSetIndexForIndex:") - @NInt - public native long dataSetIndexForIndex(double xValue); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawAngles") - public native NSArray drawAngles(); - - @Generated - @Selector("drawCenterTextEnabled") - public native boolean drawCenterTextEnabled(); - - @Generated - @Selector("drawEntryLabelsEnabled") - public native boolean drawEntryLabelsEnabled(); - - @Generated - @Selector("drawHoleEnabled") - public native boolean drawHoleEnabled(); - - @Generated - @Selector("drawRect:") - public native void drawRect(@ByValue CGRect rect); - - @Generated - @Selector("drawSliceTextEnabled") - public native boolean drawSliceTextEnabled(); - - @Generated - @Selector("drawSlicesUnderHoleEnabled") - public native boolean drawSlicesUnderHoleEnabled(); - - @Generated - @Selector("entryLabelColor") - public native UIColor entryLabelColor(); - - @Generated - @Selector("entryLabelFont") - public native UIFont entryLabelFont(); - - @Generated - @Selector("getMarkerPositionWithHighlight:") - @ByValue - public native CGPoint getMarkerPositionWithHighlight( - ChartHighlight highlight); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("holeColor") - public native UIColor holeColor(); - - @Generated - @Selector("holeRadiusPercent") - @NFloat - public native double holeRadiusPercent(); - - @Generated - @Selector("indexForAngle:") - @NInt - public native long indexForAngle(@NFloat double angle); - - @Generated - @Selector("inheritedAnimationDuration") - public static native double inheritedAnimationDuration(); - - @Generated - @Selector("init") - public native PieChartView init(); - - @Generated - @Selector("initWithCoder:") - public native PieChartView initWithCoder(NSCoder aDecoder); - - @Generated - @Selector("initWithFrame:") - public native PieChartView initWithFrame(@ByValue CGRect frame); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawCenterTextEnabled") - public native boolean isDrawCenterTextEnabled(); - - @Generated - @Selector("isDrawEntryLabelsEnabled") - public native boolean isDrawEntryLabelsEnabled(); - - @Generated - @Selector("isDrawHoleEnabled") - public native boolean isDrawHoleEnabled(); - - @Generated - @Selector("isDrawSliceTextEnabled") - public native boolean isDrawSliceTextEnabled(); - - @Generated - @Selector("isDrawSlicesUnderHoleEnabled") - public native boolean isDrawSlicesUnderHoleEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("isUsePercentValuesEnabled") - public native boolean isUsePercentValuesEnabled(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("layerClass") - public static native Class layerClass(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("maxAngle") - @NFloat - public native double maxAngle(); - - @Generated - @Selector("needsHighlightWithIndex:") - public native boolean needsHighlightWithIndex(@NInt long index); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("performSystemAnimation:onViews:options:animations:completion:") - public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( - @NUInt long animation, - NSArray views, - @NUInt long options, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("performWithoutAnimation:") - public static native void performWithoutAnimation( - @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); - - @Generated - @Selector("radius") - @NFloat - public native double radius(); - - @Generated - @Selector("requiresConstraintBasedLayout") - public static native boolean requiresConstraintBasedLayout(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setAnimationBeginsFromCurrentState:") - public static native void setAnimationBeginsFromCurrentState( - boolean fromCurrentState); - - @Generated - @Selector("setAnimationCurve:") - public static native void setAnimationCurve(@NInt long curve); - - @Generated - @Selector("setAnimationDelay:") - public static native void setAnimationDelay(double delay); - - @Generated - @Selector("setAnimationDelegate:") - public static native void setAnimationDelegate( - @Mapped(ObjCObjectMapper.class) Object delegate); - - @Generated - @Selector("setAnimationDidStopSelector:") - public static native void setAnimationDidStopSelector(SEL selector); - - @Generated - @Selector("setAnimationDuration:") - public static native void setAnimationDuration_static(double duration); - - @Generated - @Selector("setAnimationRepeatAutoreverses:") - public static native void setAnimationRepeatAutoreverses( - boolean repeatAutoreverses); - - @Generated - @Selector("setAnimationRepeatCount:") - public static native void setAnimationRepeatCount_static(float repeatCount); - - @Generated - @Selector("setAnimationStartDate:") - public static native void setAnimationStartDate(NSDate startDate); - - @Generated - @Selector("setAnimationTransition:forView:cache:") - public static native void setAnimationTransitionForViewCache( - @NInt long transition, UIView view, boolean cache); - - @Generated - @Selector("setAnimationWillStartSelector:") - public static native void setAnimationWillStartSelector(SEL selector); - - @Generated - @Selector("setAnimationsEnabled:") - public static native void setAnimationsEnabled(boolean enabled); - - @Generated - @Selector("setCenterAttributedText:") - public native void setCenterAttributedText(NSAttributedString value); - - @Generated - @Selector("setCenterText:") - public native void setCenterText(String value); - - @Generated - @Selector("setCenterTextOffset:") - public native void setCenterTextOffset(@ByValue CGPoint value); - - @Generated - @Selector("setCenterTextRadiusPercent:") - public native void setCenterTextRadiusPercent(@NFloat double value); - - @Generated - @Selector("setDrawCenterTextEnabled:") - public native void setDrawCenterTextEnabled(boolean value); - - @Generated - @Selector("setDrawEntryLabelsEnabled:") - public native void setDrawEntryLabelsEnabled(boolean value); - - @Generated - @Selector("setDrawHoleEnabled:") - public native void setDrawHoleEnabled(boolean value); - - @Generated - @Selector("setDrawSliceTextEnabled:") - public native void setDrawSliceTextEnabled(boolean value); - - @Generated - @Selector("setDrawSlicesUnderHoleEnabled:") - public native void setDrawSlicesUnderHoleEnabled(boolean value); - - @Generated - @Selector("setEntryLabelColor:") - public native void setEntryLabelColor(UIColor value); - - @Generated - @Selector("setEntryLabelFont:") - public native void setEntryLabelFont(UIFont value); - - @Generated - @Selector("setHoleColor:") - public native void setHoleColor(UIColor value); - - @Generated - @Selector("setHoleRadiusPercent:") - public native void setHoleRadiusPercent(@NFloat double value); - - @Generated - @Selector("setMaxAngle:") - public native void setMaxAngle(@NFloat double value); - - @Generated - @Selector("setTransparentCircleColor:") - public native void setTransparentCircleColor(UIColor value); - - @Generated - @Selector("setTransparentCircleRadiusPercent:") - public native void setTransparentCircleRadiusPercent(@NFloat double value); - - @Generated - @Selector("setUsePercentValuesEnabled:") - public native void setUsePercentValuesEnabled(boolean value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transitionFromView:toView:duration:options:completion:") - public static native void transitionFromViewToViewDurationOptionsCompletion( - UIView fromView, - UIView toView, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); - - @Generated - @Selector("transitionWithView:duration:options:animations:completion:") - public static native void transitionWithViewDurationOptionsAnimationsCompletion( - UIView view, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("transparentCircleColor") - public native UIColor transparentCircleColor(); - - @Generated - @Selector("transparentCircleRadiusPercent") - @NFloat - public native double transparentCircleRadiusPercent(); - - @Generated - @Selector("usePercentValuesEnabled") - public native boolean usePercentValuesEnabled(); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttribute( - @NInt long attribute); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( - @NInt long semanticContentAttribute, @NInt long layoutDirection); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("xAxis") - public native ChartXAxis xAxis(); + static { + NatJ.register(); + } + + @Generated + protected PieChartView(Pointer peer) { + super(peer); + } + + /** + * returns: + * The absolute angles of the different chart slices (where the + * slices end) + */ + @Generated + @Selector("absoluteAngles") + public native NSArray absoluteAngles(); + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") + public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( + double frameStartTime, + double frameDuration, + @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); + + @Generated + @Owned + @Selector("alloc") + public static native PieChartView alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("angleForPointWithX:y:") + @NFloat + public native double angleForPointWithXY(@NFloat double x, @NFloat double y); + + @Generated + @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") + public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:animations:") + public static native void animateWithDurationAnimations( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); + + @Generated + @Selector("animateWithDuration:animations:completion:") + public static native void animateWithDurationAnimationsCompletion( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); + + @Generated + @Selector("animateWithDuration:delay:options:animations:completion:") + public static native void animateWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") + public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( + double duration, + double delay, + @NFloat double dampingRatio, + @NFloat double velocity, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); + + @Generated + @Selector("appearance") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearance(); + + @Generated + @ProtocolClassMethod("appearance") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearance() { + return appearance(); + } + + @Generated + @Selector("appearanceForTraitCollection:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollection(UITraitCollection trait); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollection") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollection(UITraitCollection trait) { + return appearanceForTraitCollection(trait); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceForTraitCollection:whenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs) { + return appearanceForTraitCollectionWhenContainedIn(trait, ContainerClass, varargs); + } + + @Generated + @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes) { + return appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait, containerTypes); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceWhenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedIn( + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedIn(@Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, + Object... varargs) { + return appearanceWhenContainedIn(ContainerClass, varargs); + } + + @Generated + @Selector("appearanceWhenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes) { + return appearanceWhenContainedInInstancesOfClasses(containerTypes); + } + + @Generated + @Selector("areAnimationsEnabled") + public static native boolean areAnimationsEnabled(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("beginAnimations:context:") + public static native void beginAnimationsContext(String animationID, VoidPtr context); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + /** + * the text that is displayed in the center of the pie-chart + */ + @Generated + @Selector("centerAttributedText") + public native NSAttributedString centerAttributedText(); + + /** + * The center of the circlebox + */ + @Generated + @Selector("centerCircleBox") + @ByValue + public native CGPoint centerCircleBox(); + + /** + * the text that is displayed in the center of the pie-chart + */ + @Generated + @Selector("centerText") + public native String centerText(); + + /** + * Sets the offset the center text should have from it’s original position in dp. Default x = 0, y = 0 + */ + @Generated + @Selector("centerTextOffset") + @ByValue + public native CGPoint centerTextOffset(); + + /** + * the rectangular radius of the bounding box for the center text, as a percentage of the pie hole + */ + @Generated + @Selector("centerTextRadiusPercent") + @NFloat + public native double centerTextRadiusPercent(); + + /** + * The circlebox, the boundingbox of the pie-chart slices + */ + @Generated + @Selector("circleBox") + @ByValue + public native CGRect circleBox(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clearTextInputContextIdentifier:") + public static native void clearTextInputContextIdentifier(String identifier); + + @Generated + @Selector("commitAnimations") + public static native void commitAnimations(); + + /** + * returns: + * The index of the DataSet this x-index belongs to. + */ + @Generated + @Selector("dataSetIndexForIndex:") + @NInt + public native long dataSetIndexForIndex(double xValue); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * returns: + * The distance of a certain point on the chart to the center of the chart. + */ + @Generated + @Selector("distanceToCenterWithX:y:") + @NFloat + public native double distanceToCenterWithXY(@NFloat double x, @NFloat double y); + + /** + * returns: + * An integer array of all the different angles the chart slices + * have the angles in the returned array determine how much space (of 360°) + * each slice takes + */ + @Generated + @Selector("drawAngles") + public native NSArray drawAngles(); + + /** + * true if drawing the center text is enabled + */ + @Generated + @Selector("drawCenterTextEnabled") + public native boolean drawCenterTextEnabled(); + + /** + * Set this to true to draw the enrty labels into the pie slices + */ + @Generated + @Selector("drawEntryLabelsEnabled") + public native boolean drawEntryLabelsEnabled(); + + /** + * true if the hole in the center of the pie-chart is set to be visible, false ifnot + */ + @Generated + @Selector("drawHoleEnabled") + public native boolean drawHoleEnabled(); + + @Generated + @Selector("drawRect:") + public native void drawRect(@ByValue CGRect rect); + + /** + * if true, the hole will see-through to the inner tips of the slices + * default: false + */ + @Generated + @Selector("drawSlicesUnderHoleEnabled") + public native boolean drawSlicesUnderHoleEnabled(); + + /** + * The color the entry labels are drawn with. + */ + @Generated + @Selector("entryLabelColor") + public native UIColor entryLabelColor(); + + /** + * The font the entry labels are drawn with. + */ + @Generated + @Selector("entryLabelFont") + public native UIFont entryLabelFont(); + + @Generated + @Selector("getMarkerPositionWithHighlight:") + @ByValue + public native CGPoint getMarkerPositionWithHighlight(ChartHighlight highlight); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + /** + * The color for the hole that is drawn in the center of the PieChart (if enabled). + * note: + * Use holeTransparent with holeColor = nil to make the hole transparent.* + */ + @Generated + @Selector("holeColor") + public native UIColor holeColor(); + + /** + * the radius of the hole in the center of the piechart in percent of the maximum radius (max = the radius of the whole chart) + * default: 0.5 (50%) (half the pie) + */ + @Generated + @Selector("holeRadiusPercent") + @NFloat + public native double holeRadiusPercent(); + + @Generated + @Selector("indexForAngle:") + @NInt + public native long indexForAngle(@NFloat double angle); + + @Generated + @Selector("inheritedAnimationDuration") + public static native double inheritedAnimationDuration(); + + @Generated + @Selector("init") + public native PieChartView init(); + + @Generated + @Selector("initWithCoder:") + public native PieChartView initWithCoder(NSCoder aDecoder); + + @Generated + @Selector("initWithFrame:") + public native PieChartView initWithFrame(@ByValue CGRect frame); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + /** + * true if drawing the center text is enabled + */ + @Generated + @Selector("isDrawCenterTextEnabled") + public native boolean isDrawCenterTextEnabled(); + + /** + * true if drawing entry labels is enabled, false ifnot + */ + @Generated + @Selector("isDrawEntryLabelsEnabled") + public native boolean isDrawEntryLabelsEnabled(); + + /** + * true if the hole in the center of the pie-chart is set to be visible, false ifnot + */ + @Generated + @Selector("isDrawHoleEnabled") + public native boolean isDrawHoleEnabled(); + + /** + * true if the inner tips of the slices are visible behind the hole, false if not. + */ + @Generated + @Selector("isDrawSlicesUnderHoleEnabled") + public native boolean isDrawSlicesUnderHoleEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + /** + * true if drawing x-values is enabled, false ifnot + */ + @Generated + @Selector("isUsePercentValuesEnabled") + public native boolean isUsePercentValuesEnabled(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("layerClass") + public static native Class layerClass(); + + /** + * The max angle that is used for calculating the pie-circle. + * 360 means it’s a full pie-chart, 180 results in a half-pie-chart. + * default: 360.0 + */ + @Generated + @Selector("maxAngle") + @NFloat + public native double maxAngle(); + + @Generated + @Selector("modifyAnimationsWithRepeatCount:autoreverses:animations:") + public static native void modifyAnimationsWithRepeatCountAutoreversesAnimations( + @NFloat double count, + boolean autoreverses, + @ObjCBlock(name = "call_modifyAnimationsWithRepeatCountAutoreversesAnimations") UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations); + + /** + * Checks if the given index is set to be highlighted. + */ + @Generated + @Selector("needsHighlightWithIndex:") + public native boolean needsHighlightWithIndex(@NInt long index); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("performSystemAnimation:onViews:options:animations:completion:") + public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( + @NUInt long animation, + NSArray views, + @NUInt long options, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("performWithoutAnimation:") + public static native void performWithoutAnimation( + @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); + + @Generated + @Selector("radius") + @NFloat + public native double radius(); + + @Generated + @Selector("requiresConstraintBasedLayout") + public static native boolean requiresConstraintBasedLayout(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setAnimationBeginsFromCurrentState:") + public static native void setAnimationBeginsFromCurrentState(boolean fromCurrentState); + + @Generated + @Selector("setAnimationCurve:") + public static native void setAnimationCurve(@NInt long curve); + + @Generated + @Selector("setAnimationDelay:") + public static native void setAnimationDelay(double delay); + + @Generated + @Selector("setAnimationDelegate:") + public static native void setAnimationDelegate(@Mapped(ObjCObjectMapper.class) Object delegate); + + @Generated + @Selector("setAnimationDidStopSelector:") + public static native void setAnimationDidStopSelector(SEL selector); + + @Generated + @Selector("setAnimationDuration:") + public static native void setAnimationDuration_static(double duration); + + @Generated + @Selector("setAnimationRepeatAutoreverses:") + public static native void setAnimationRepeatAutoreverses(boolean repeatAutoreverses); + + @Generated + @Selector("setAnimationRepeatCount:") + public static native void setAnimationRepeatCount_static(float repeatCount); + + @Generated + @Selector("setAnimationStartDate:") + public static native void setAnimationStartDate(NSDate startDate); + + @Generated + @Selector("setAnimationTransition:forView:cache:") + public static native void setAnimationTransitionForViewCache(@NInt long transition, UIView view, boolean cache); + + @Generated + @Selector("setAnimationWillStartSelector:") + public static native void setAnimationWillStartSelector(SEL selector); + + @Generated + @Selector("setAnimationsEnabled:") + public static native void setAnimationsEnabled(boolean enabled); + + /** + * the text that is displayed in the center of the pie-chart + */ + @Generated + @Selector("setCenterAttributedText:") + public native void setCenterAttributedText(NSAttributedString value); + + /** + * the text that is displayed in the center of the pie-chart + */ + @Generated + @Selector("setCenterText:") + public native void setCenterText(String value); + + /** + * Sets the offset the center text should have from it’s original position in dp. Default x = 0, y = 0 + */ + @Generated + @Selector("setCenterTextOffset:") + public native void setCenterTextOffset(@ByValue CGPoint value); + + /** + * the rectangular radius of the bounding box for the center text, as a percentage of the pie hole + */ + @Generated + @Selector("setCenterTextRadiusPercent:") + public native void setCenterTextRadiusPercent(@NFloat double value); + + /** + * true if drawing the center text is enabled + */ + @Generated + @Selector("setDrawCenterTextEnabled:") + public native void setDrawCenterTextEnabled(boolean value); + + /** + * Set this to true to draw the enrty labels into the pie slices + */ + @Generated + @Selector("setDrawEntryLabelsEnabled:") + public native void setDrawEntryLabelsEnabled(boolean value); + + /** + * true if the hole in the center of the pie-chart is set to be visible, false ifnot + */ + @Generated + @Selector("setDrawHoleEnabled:") + public native void setDrawHoleEnabled(boolean value); + + /** + * if true, the hole will see-through to the inner tips of the slices + * default: false + */ + @Generated + @Selector("setDrawSlicesUnderHoleEnabled:") + public native void setDrawSlicesUnderHoleEnabled(boolean value); + + /** + * The color the entry labels are drawn with. + */ + @Generated + @Selector("setEntryLabelColor:") + public native void setEntryLabelColor(UIColor value); + + /** + * The font the entry labels are drawn with. + */ + @Generated + @Selector("setEntryLabelFont:") + public native void setEntryLabelFont(UIFont value); + + /** + * The color for the hole that is drawn in the center of the PieChart (if enabled). + * note: + * Use holeTransparent with holeColor = nil to make the hole transparent.* + */ + @Generated + @Selector("setHoleColor:") + public native void setHoleColor(UIColor value); + + /** + * the radius of the hole in the center of the piechart in percent of the maximum radius (max = the radius of the whole chart) + * default: 0.5 (50%) (half the pie) + */ + @Generated + @Selector("setHoleRadiusPercent:") + public native void setHoleRadiusPercent(@NFloat double value); + + /** + * The max angle that is used for calculating the pie-circle. + * 360 means it’s a full pie-chart, 180 results in a half-pie-chart. + * default: 360.0 + */ + @Generated + @Selector("setMaxAngle:") + public native void setMaxAngle(@NFloat double value); + + /** + * The color that the transparent-circle should have. + * default: nil + */ + @Generated + @Selector("setTransparentCircleColor:") + public native void setTransparentCircleColor(UIColor value); + + /** + * the radius of the transparent circle that is drawn next to the hole in the piechart in percent of the maximum radius (max = the radius of the whole chart) + * default: 0.55 (55%) -> means 5% larger than the center-hole by default + */ + @Generated + @Selector("setTransparentCircleRadiusPercent:") + public native void setTransparentCircleRadiusPercent(@NFloat double value); + + /** + * If this is enabled, values inside the PieChart are drawn in percent and not with their original value. Values provided for the ValueFormatter to format are then provided in percent. + */ + @Generated + @Selector("setUsePercentValuesEnabled:") + public native void setUsePercentValuesEnabled(boolean value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("transitionFromView:toView:duration:options:completion:") + public static native void transitionFromViewToViewDurationOptionsCompletion( + UIView fromView, + UIView toView, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); + + @Generated + @Selector("transitionWithView:duration:options:animations:completion:") + public static native void transitionWithViewDurationOptionsAnimationsCompletion( + UIView view, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); + + /** + * The color that the transparent-circle should have. + * default: nil + */ + @Generated + @Selector("transparentCircleColor") + public native UIColor transparentCircleColor(); + + /** + * the radius of the transparent circle that is drawn next to the hole in the piechart in percent of the maximum radius (max = the radius of the whole chart) + * default: 0.55 (55%) -> means 5% larger than the center-hole by default + */ + @Generated + @Selector("transparentCircleRadiusPercent") + @NFloat + public native double transparentCircleRadiusPercent(); + + /** + * If this is enabled, values inside the PieChart are drawn in percent and not with their original value. Values provided for the ValueFormatter to format are then provided in percent. + */ + @Generated + @Selector("usePercentValuesEnabled") + public native boolean usePercentValuesEnabled(); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttribute(@NInt long attribute); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( + @NInt long semanticContentAttribute, @NInt long layoutDirection); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * This will throw an exception, PieChart has no XAxis object. + */ + @Generated + @Selector("xAxis") + public native ChartXAxis xAxis(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieRadarChartHighlighter.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieRadarChartHighlighter.java index c7f97367..6e975464 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieRadarChartHighlighter.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieRadarChartHighlighter.java @@ -30,144 +30,136 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class PieRadarChartHighlighter extends ChartHighlighter { - static { - NatJ.register(); - } - - @Generated - protected PieRadarChartHighlighter(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native PieRadarChartHighlighter alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("closestHighlightWithIndex:x:y:") - public native ChartHighlight closestHighlightWithIndexXY(@NInt long index, - @NFloat double x, @NFloat double y); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("getHighlightWithX:y:") - public native ChartHighlight getHighlightWithXY(@NFloat double x, - @NFloat double y); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native PieRadarChartHighlighter init(); - - @Generated - @Selector("initWithChart:") - public native PieRadarChartHighlighter initWithChart( - @Mapped(ObjCObjectMapper.class) Object chart); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected PieRadarChartHighlighter(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native PieRadarChartHighlighter alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + /** + * \param index + * + * \param x + * + * \param y + * + * + * returns: + * The closest Highlight object of the given objects based on the touch position inside the chart. + */ + @Generated + @Selector("closestHighlightWithIndex:x:y:") + public native ChartHighlight closestHighlightWithIndexXY(@NInt long index, @NFloat double x, @NFloat double y); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("getHighlightWithX:y:") + public native ChartHighlight getHighlightWithXY(@NFloat double x, @NFloat double y); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native PieRadarChartHighlighter init(); + + @Generated + @Selector("initWithChart:") + public native PieRadarChartHighlighter initWithChart(@Mapped(ObjCObjectMapper.class) Object chart); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieRadarChartViewBase.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieRadarChartViewBase.java index 12781139..cf4ae656 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieRadarChartViewBase.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/PieRadarChartViewBase.java @@ -13,6 +13,7 @@ import apple.uikit.UITouch; import apple.uikit.UITraitCollection; import apple.uikit.UIView; +import apple.uikit.protocol.UIAppearanceContainer; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.c.ann.Variadic; import org.moe.natj.general.NatJ; @@ -38,563 +39,607 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +/** + * Base class of PieChartView and RadarChartView. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts21PieRadarChartViewBase") @ObjCClassBinding public class PieRadarChartViewBase extends ChartViewBase { - static { - NatJ.register(); - } - - @Generated - protected PieRadarChartViewBase(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") - public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( - double frameStartTime, - double frameDuration, - @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); - - @Generated - @Owned - @Selector("alloc") - public static native PieRadarChartViewBase alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("angleForPointWithX:y:") - @NFloat - public native double angleForPointWithXY(@NFloat double x, @NFloat double y); - - @Generated - @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") - public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:animations:") - public static native void animateWithDurationAnimations( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); - - @Generated - @Selector("animateWithDuration:animations:completion:") - public static native void animateWithDurationAnimationsCompletion( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); - - @Generated - @Selector("animateWithDuration:delay:options:animations:completion:") - public static native void animateWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") - public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( - double duration, - double delay, - @NFloat double dampingRatio, - @NFloat double velocity, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); - - @Generated - @Selector("appearance") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearance(); - - @Generated - @ProtocolClassMethod("appearance") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearance() { - return appearance(); - } - - @Generated - @Selector("appearanceForTraitCollection:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollection( - UITraitCollection trait); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollection") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollection(UITraitCollection trait) { - return appearanceForTraitCollection(trait); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceForTraitCollection:whenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceForTraitCollectionWhenContainedIn(trait, - ContainerClass, varargs); - } - - @Generated - @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes) { - return appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - trait, containerTypes); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceWhenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceWhenContainedIn(ContainerClass, varargs); - } - - @Generated - @Selector("appearanceWhenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes) { - return appearanceWhenContainedInInstancesOfClasses(containerTypes); - } - - @Generated - @Selector("areAnimationsEnabled") - public static native boolean areAnimationsEnabled(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("beginAnimations:context:") - public static native void beginAnimationsContext(String animationID, - VoidPtr context); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("chartYMax") - public native double chartYMax(); - - @Generated - @Selector("chartYMin") - public native double chartYMin(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clearTextInputContextIdentifier:") - public static native void clearTextInputContextIdentifier(String identifier); - - @Generated - @Selector("commitAnimations") - public static native void commitAnimations(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("diameter") - @NFloat - public native double diameter(); - - @Generated - @Selector("distanceToCenterWithX:y:") - @NFloat - public native double distanceToCenterWithXY(@NFloat double x, - @NFloat double y); - - @Generated - @Selector("getPositionWithCenter:dist:angle:") - @ByValue - public native CGPoint getPositionWithCenterDistAngle( - @ByValue CGPoint center, @NFloat double dist, @NFloat double angle); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("indexForAngle:") - @NInt - public native long indexForAngle(@NFloat double angle); - - @Generated - @Selector("inheritedAnimationDuration") - public static native double inheritedAnimationDuration(); - - @Generated - @Selector("init") - public native PieRadarChartViewBase init(); - - @Generated - @Selector("initWithCoder:") - public native PieRadarChartViewBase initWithCoder(NSCoder aDecoder); - - @Generated - @Selector("initWithFrame:") - public native PieRadarChartViewBase initWithFrame(@ByValue CGRect frame); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isRotationEnabled") - public native boolean isRotationEnabled(); - - @Generated - @Selector("isRotationWithTwoFingers") - public native boolean isRotationWithTwoFingers(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("layerClass") - public static native Class layerClass(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("maxVisibleCount") - @NInt - public native long maxVisibleCount(); - - @Generated - @Selector("minOffset") - @NFloat - public native double minOffset(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("nsuiTouchesBegan:withEvent:") - public native void nsuiTouchesBeganWithEvent( - NSSet touches, UIEvent event); - - @Generated - @Selector("nsuiTouchesCancelled:withEvent:") - public native void nsuiTouchesCancelledWithEvent( - NSSet touches, UIEvent event); - - @Generated - @Selector("nsuiTouchesEnded:withEvent:") - public native void nsuiTouchesEndedWithEvent( - NSSet touches, UIEvent event); - - @Generated - @Selector("nsuiTouchesMoved:withEvent:") - public native void nsuiTouchesMovedWithEvent( - NSSet touches, UIEvent event); - - @Generated - @Selector("performSystemAnimation:onViews:options:animations:completion:") - public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( - @NUInt long animation, - NSArray views, - @NUInt long options, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("performWithoutAnimation:") - public static native void performWithoutAnimation( - @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); - - @Generated - @Selector("radius") - @NFloat - public native double radius(); - - @Generated - @Selector("rawRotationAngle") - @NFloat - public native double rawRotationAngle(); - - @Generated - @Selector("requiresConstraintBasedLayout") - public static native boolean requiresConstraintBasedLayout(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("rotationAngle") - @NFloat - public native double rotationAngle(); - - @Generated - @Selector("rotationEnabled") - public native boolean rotationEnabled(); - - @Generated - @Selector("rotationWithTwoFingers") - public native boolean rotationWithTwoFingers(); - - @Generated - @Selector("setAnimationBeginsFromCurrentState:") - public static native void setAnimationBeginsFromCurrentState( - boolean fromCurrentState); - - @Generated - @Selector("setAnimationCurve:") - public static native void setAnimationCurve(@NInt long curve); - - @Generated - @Selector("setAnimationDelay:") - public static native void setAnimationDelay(double delay); - - @Generated - @Selector("setAnimationDelegate:") - public static native void setAnimationDelegate( - @Mapped(ObjCObjectMapper.class) Object delegate); - - @Generated - @Selector("setAnimationDidStopSelector:") - public static native void setAnimationDidStopSelector(SEL selector); - - @Generated - @Selector("setAnimationDuration:") - public static native void setAnimationDuration_static(double duration); - - @Generated - @Selector("setAnimationRepeatAutoreverses:") - public static native void setAnimationRepeatAutoreverses( - boolean repeatAutoreverses); - - @Generated - @Selector("setAnimationRepeatCount:") - public static native void setAnimationRepeatCount_static(float repeatCount); - - @Generated - @Selector("setAnimationStartDate:") - public static native void setAnimationStartDate(NSDate startDate); - - @Generated - @Selector("setAnimationTransition:forView:cache:") - public static native void setAnimationTransitionForViewCache( - @NInt long transition, UIView view, boolean cache); - - @Generated - @Selector("setAnimationWillStartSelector:") - public static native void setAnimationWillStartSelector(SEL selector); - - @Generated - @Selector("setAnimationsEnabled:") - public static native void setAnimationsEnabled(boolean enabled); - - @Generated - @Selector("setMinOffset:") - public native void setMinOffset(@NFloat double value); - - @Generated - @Selector("setRotationAngle:") - public native void setRotationAngle(@NFloat double value); - - @Generated - @Selector("setRotationEnabled:") - public native void setRotationEnabled(boolean value); - - @Generated - @Selector("setRotationWithTwoFingers:") - public native void setRotationWithTwoFingers(boolean value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("spinWithDuration:fromAngle:toAngle:") - public native void spinWithDurationFromAngleToAngle(double duration, - @NFloat double fromAngle, @NFloat double toAngle); - - @Generated - @Selector("spinWithDuration:fromAngle:toAngle:easing:") - public native void spinWithDurationFromAngleToAngleEasing( - double duration, - @NFloat double fromAngle, - @NFloat double toAngle, - @ObjCBlock(name = "call_spinWithDurationFromAngleToAngleEasing") Block_spinWithDurationFromAngleToAngleEasing easing); - - @Runtime(ObjCRuntime.class) - @Generated - public interface Block_spinWithDurationFromAngleToAngleEasing { - @Generated - double call_spinWithDurationFromAngleToAngleEasing(double arg0, - double arg1); - } - - @Generated - @Selector("spinWithDuration:fromAngle:toAngle:easingOption:") - public native void spinWithDurationFromAngleToAngleEasingOption( - double duration, @NFloat double fromAngle, @NFloat double toAngle, - @NInt long easingOption); - - @Generated - @Selector("stopDeceleration") - public native void stopDeceleration(); - - @Generated - @Selector("stopSpinAnimation") - public native void stopSpinAnimation(); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transitionFromView:toView:duration:options:completion:") - public static native void transitionFromViewToViewDurationOptionsCompletion( - UIView fromView, - UIView toView, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); - - @Generated - @Selector("transitionWithView:duration:options:animations:completion:") - public static native void transitionWithViewDurationOptionsAnimationsCompletion( - UIView view, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttribute( - @NInt long attribute); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( - @NInt long semanticContentAttribute, @NInt long layoutDirection); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected PieRadarChartViewBase(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") + public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( + double frameStartTime, + double frameDuration, + @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); + + @Generated + @Owned + @Selector("alloc") + public static native PieRadarChartViewBase alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + /** + * returns: + * The angle relative to the chart center for the given point on the chart in degrees. + * The angle is always between 0 and 360°, 0° is NORTH, 90° is EAST, … + */ + @Generated + @Selector("angleForPointWithX:y:") + @NFloat + public native double angleForPointWithXY(@NFloat double x, @NFloat double y); + + @Generated + @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") + public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:animations:") + public static native void animateWithDurationAnimations( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); + + @Generated + @Selector("animateWithDuration:animations:completion:") + public static native void animateWithDurationAnimationsCompletion( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); + + @Generated + @Selector("animateWithDuration:delay:options:animations:completion:") + public static native void animateWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") + public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( + double duration, + double delay, + @NFloat double dampingRatio, + @NFloat double velocity, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); + + @Generated + @Selector("appearance") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearance(); + + @Generated + @ProtocolClassMethod("appearance") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearance() { + return appearance(); + } + + @Generated + @Selector("appearanceForTraitCollection:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollection(UITraitCollection trait); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollection") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollection(UITraitCollection trait) { + return appearanceForTraitCollection(trait); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceForTraitCollection:whenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs) { + return appearanceForTraitCollectionWhenContainedIn(trait, ContainerClass, varargs); + } + + @Generated + @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes) { + return appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait, containerTypes); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceWhenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedIn( + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedIn(@Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, + Object... varargs) { + return appearanceWhenContainedIn(ContainerClass, varargs); + } + + @Generated + @Selector("appearanceWhenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes) { + return appearanceWhenContainedInInstancesOfClasses(containerTypes); + } + + @Generated + @Selector("areAnimationsEnabled") + public static native boolean areAnimationsEnabled(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("beginAnimations:context:") + public static native void beginAnimationsContext(String animationID, VoidPtr context); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("chartYMax") + public native double chartYMax(); + + @Generated + @Selector("chartYMin") + public native double chartYMin(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clearTextInputContextIdentifier:") + public static native void clearTextInputContextIdentifier(String identifier); + + @Generated + @Selector("commitAnimations") + public static native void commitAnimations(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * The diameter of the pie- or radar-chart + */ + @Generated + @Selector("diameter") + @NFloat + public native double diameter(); + + /** + * returns: + * The distance of a certain point on the chart to the center of the chart. + */ + @Generated + @Selector("distanceToCenterWithX:y:") + @NFloat + public native double distanceToCenterWithXY(@NFloat double x, @NFloat double y); + + /** + * Calculates the position around a center point, depending on the distance + * from the center, and the angle of the position around the center. + */ + @Generated + @Selector("getPositionWithCenter:dist:angle:") + @ByValue + public native CGPoint getPositionWithCenterDistAngle(@ByValue CGPoint center, @NFloat double dist, + @NFloat double angle); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + /** + * returns: + * The xIndex for the given angle around the center of the chart. + * -1 if not found / outofbounds. + */ + @Generated + @Selector("indexForAngle:") + @NInt + public native long indexForAngle(@NFloat double angle); + + @Generated + @Selector("inheritedAnimationDuration") + public static native double inheritedAnimationDuration(); + + @Generated + @Selector("init") + public native PieRadarChartViewBase init(); + + @Generated + @Selector("initWithCoder:") + public native PieRadarChartViewBase initWithCoder(NSCoder aDecoder); + + @Generated + @Selector("initWithFrame:") + public native PieRadarChartViewBase initWithFrame(@ByValue CGRect frame); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isRotationEnabled") + public native boolean isRotationEnabled(); + + /** + * flag that indicates if rotation is done with two fingers or one. + * when the chart is inside a scrollview, you need a two-finger rotation because a one-finger rotation eats up all touch events. + * On iOS this will disable one-finger rotation. + * On OSX this will keep two-finger multitouch rotation, and one-pointer mouse rotation. + * default: false + */ + @Generated + @Selector("isRotationWithTwoFingers") + public native boolean isRotationWithTwoFingers(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("layerClass") + public static native Class layerClass(); + + @Generated + @Selector("maxVisibleCount") + @NInt + public native long maxVisibleCount(); + + /** + * Sets the minimum offset (padding) around the chart, defaults to 0.0 + */ + @Generated + @Selector("minOffset") + @NFloat + public native double minOffset(); + + @Generated + @Selector("modifyAnimationsWithRepeatCount:autoreverses:animations:") + public static native void modifyAnimationsWithRepeatCountAutoreversesAnimations( + @NFloat double count, + boolean autoreverses, + @ObjCBlock(name = "call_modifyAnimationsWithRepeatCountAutoreversesAnimations") UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("notifyDataSetChanged") + public native void notifyDataSetChanged(); + + @Generated + @Selector("nsuiTouchesBegan:withEvent:") + public native void nsuiTouchesBeganWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("nsuiTouchesCancelled:withEvent:") + public native void nsuiTouchesCancelledWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("nsuiTouchesEnded:withEvent:") + public native void nsuiTouchesEndedWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("nsuiTouchesMoved:withEvent:") + public native void nsuiTouchesMovedWithEvent(NSSet touches, UIEvent event); + + @Generated + @Selector("performSystemAnimation:onViews:options:animations:completion:") + public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( + @NUInt long animation, + NSArray views, + @NUInt long options, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("performWithoutAnimation:") + public static native void performWithoutAnimation( + @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); + + /** + * The radius of the chart in pixels. + */ + @Generated + @Selector("radius") + @NFloat + public native double radius(); + + /** + * gets the raw version of the current rotation angle of the pie chart the returned value could be any value, negative or positive, outside of the 360 degrees. + * this is used when working with rotation direction, mainly by gestures and animations. + */ + @Generated + @Selector("rawRotationAngle") + @NFloat + public native double rawRotationAngle(); + + @Generated + @Selector("requiresConstraintBasedLayout") + public static native boolean requiresConstraintBasedLayout(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + /** + * current rotation angle of the pie chart + * default: 270 –> top (NORTH) + * Will always return a normalized value, which will be between 0.0 < 360.0 + */ + @Generated + @Selector("rotationAngle") + @NFloat + public native double rotationAngle(); + + /** + * flag that indicates if rotation is enabled or not + */ + @Generated + @Selector("rotationEnabled") + public native boolean rotationEnabled(); + + /** + * flag that indicates if rotation is done with two fingers or one. + * when the chart is inside a scrollview, you need a two-finger rotation because a one-finger rotation eats up all touch events. + * On iOS this will disable one-finger rotation. + * On OSX this will keep two-finger multitouch rotation, and one-pointer mouse rotation. + * default: false + */ + @Generated + @Selector("rotationWithTwoFingers") + public native boolean rotationWithTwoFingers(); + + @Generated + @Selector("setAnimationBeginsFromCurrentState:") + public static native void setAnimationBeginsFromCurrentState(boolean fromCurrentState); + + @Generated + @Selector("setAnimationCurve:") + public static native void setAnimationCurve(@NInt long curve); + + @Generated + @Selector("setAnimationDelay:") + public static native void setAnimationDelay(double delay); + + @Generated + @Selector("setAnimationDelegate:") + public static native void setAnimationDelegate(@Mapped(ObjCObjectMapper.class) Object delegate); + + @Generated + @Selector("setAnimationDidStopSelector:") + public static native void setAnimationDidStopSelector(SEL selector); + + @Generated + @Selector("setAnimationDuration:") + public static native void setAnimationDuration_static(double duration); + + @Generated + @Selector("setAnimationRepeatAutoreverses:") + public static native void setAnimationRepeatAutoreverses(boolean repeatAutoreverses); + + @Generated + @Selector("setAnimationRepeatCount:") + public static native void setAnimationRepeatCount_static(float repeatCount); + + @Generated + @Selector("setAnimationStartDate:") + public static native void setAnimationStartDate(NSDate startDate); + + @Generated + @Selector("setAnimationTransition:forView:cache:") + public static native void setAnimationTransitionForViewCache(@NInt long transition, UIView view, boolean cache); + + @Generated + @Selector("setAnimationWillStartSelector:") + public static native void setAnimationWillStartSelector(SEL selector); + + @Generated + @Selector("setAnimationsEnabled:") + public static native void setAnimationsEnabled(boolean enabled); + + /** + * Sets the minimum offset (padding) around the chart, defaults to 0.0 + */ + @Generated + @Selector("setMinOffset:") + public native void setMinOffset(@NFloat double value); + + /** + * current rotation angle of the pie chart + * default: 270 –> top (NORTH) + * Will always return a normalized value, which will be between 0.0 < 360.0 + */ + @Generated + @Selector("setRotationAngle:") + public native void setRotationAngle(@NFloat double value); + + /** + * flag that indicates if rotation is enabled or not + */ + @Generated + @Selector("setRotationEnabled:") + public native void setRotationEnabled(boolean value); + + /** + * flag that indicates if rotation is done with two fingers or one. + * when the chart is inside a scrollview, you need a two-finger rotation because a one-finger rotation eats up all touch events. + * On iOS this will disable one-finger rotation. + * On OSX this will keep two-finger multitouch rotation, and one-pointer mouse rotation. + * default: false + */ + @Generated + @Selector("setRotationWithTwoFingers:") + public native void setRotationWithTwoFingers(boolean value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("spinWithDuration:fromAngle:toAngle:") + public native void spinWithDurationFromAngleToAngle(double duration, @NFloat double fromAngle, + @NFloat double toAngle); + + /** + * Applys a spin animation to the Chart. + */ + @Generated + @Selector("spinWithDuration:fromAngle:toAngle:easing:") + public native void spinWithDurationFromAngleToAngleEasing( + double duration, + @NFloat double fromAngle, + @NFloat double toAngle, + @ObjCBlock(name = "call_spinWithDurationFromAngleToAngleEasing") Block_spinWithDurationFromAngleToAngleEasing easing); + + @Runtime(ObjCRuntime.class) + @Generated + public interface Block_spinWithDurationFromAngleToAngleEasing { + @Generated + double call_spinWithDurationFromAngleToAngleEasing(double arg0, double arg1); + } + + @Generated + @Selector("spinWithDuration:fromAngle:toAngle:easingOption:") + public native void spinWithDurationFromAngleToAngleEasingOption(double duration, @NFloat double fromAngle, + @NFloat double toAngle, @NInt long easingOption); + + @Generated + @Selector("stopDeceleration") + public native void stopDeceleration(); + + @Generated + @Selector("stopSpinAnimation") + public native void stopSpinAnimation(); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("transitionFromView:toView:duration:options:completion:") + public static native void transitionFromViewToViewDurationOptionsCompletion( + UIView fromView, + UIView toView, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); + + @Generated + @Selector("transitionWithView:duration:options:animations:completion:") + public static native void transitionWithViewDurationOptionsAnimationsCompletion( + UIView view, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttribute(@NInt long attribute); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( + @NInt long semanticContentAttribute, @NInt long layoutDirection); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartData.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartData.java index d7dc54b4..9c9bf396 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartData.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartData.java @@ -35,185 +35,173 @@ @ObjCClassName("_TtC6Charts14RadarChartData") @ObjCClassBinding public class RadarChartData extends ChartData { - static { - NatJ.register(); - } - - @Generated - protected RadarChartData(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native RadarChartData alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("entryForHighlight:") - public native ChartDataEntry entryForHighlight(ChartHighlight highlight); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highlightColor") - public native UIColor highlightColor(); - - @Generated - @Selector("highlightLineDashLengths") - public native NSArray highlightLineDashLengths(); - - @Generated - @Selector("highlightLineDashPhase") - @NFloat - public native double highlightLineDashPhase(); - - @Generated - @Selector("highlightLineWidth") - @NFloat - public native double highlightLineWidth(); - - @Generated - @Selector("init") - public native RadarChartData init(); - - @Generated - @Selector("initWithDataSet:") - public native RadarChartData initWithDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); - - @Generated - @Selector("initWithDataSets:") - public native RadarChartData initWithDataSets(NSArray dataSets); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("labels") - public native NSArray labels(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setHighlightColor:") - public native void setHighlightColor(UIColor value); - - @Generated - @Selector("setHighlightLineDashLengths:") - public native void setHighlightLineDashLengths( - NSArray value); - - @Generated - @Selector("setHighlightLineDashPhase:") - public native void setHighlightLineDashPhase(@NFloat double value); - - @Generated - @Selector("setHighlightLineWidth:") - public native void setHighlightLineWidth(@NFloat double value); - - @Generated - @Selector("setLabels:") - public native void setLabels(NSArray value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected RadarChartData(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native RadarChartData alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("entryForHighlight:") + public native ChartDataEntry entryForHighlight(ChartHighlight highlight); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highlightColor") + public native UIColor highlightColor(); + + @Generated + @Selector("highlightLineDashLengths") + public native NSArray highlightLineDashLengths(); + + @Generated + @Selector("highlightLineDashPhase") + @NFloat + public native double highlightLineDashPhase(); + + @Generated + @Selector("highlightLineWidth") + @NFloat + public native double highlightLineWidth(); + + @Generated + @Selector("init") + public native RadarChartData init(); + + @Generated + @Selector("initWithDataSet:") + public native RadarChartData initWithDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); + + @Generated + @Selector("initWithDataSets:") + public native RadarChartData initWithDataSets(NSArray dataSets); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + /** + * Sets labels that should be drawn around the RadarChart at the end of each web line. + */ + @Generated + @Selector("labels") + public native NSArray labels(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setHighlightColor:") + public native void setHighlightColor(UIColor value); + + @Generated + @Selector("setHighlightLineDashLengths:") + public native void setHighlightLineDashLengths(NSArray value); + + @Generated + @Selector("setHighlightLineDashPhase:") + public native void setHighlightLineDashPhase(@NFloat double value); + + @Generated + @Selector("setHighlightLineWidth:") + public native void setHighlightLineWidth(@NFloat double value); + + /** + * Sets labels that should be drawn around the RadarChart at the end of each web line. + */ + @Generated + @Selector("setLabels:") + public native void setLabels(NSArray value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartDataEntry.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartDataEntry.java index ff67365e..c19fcd21 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartDataEntry.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartDataEntry.java @@ -5,6 +5,7 @@ import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSSet; +import apple.uikit.UIImage; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; @@ -31,170 +32,177 @@ @ObjCClassName("_TtC6Charts19RadarChartDataEntry") @ObjCClassBinding public class RadarChartDataEntry extends ChartDataEntry { - static { - NatJ.register(); - } - - @Generated - protected RadarChartDataEntry(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native RadarChartDataEntry alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native RadarChartDataEntry init(); - - @Generated - @Selector("initWithValue:") - public native RadarChartDataEntry initWithValue(double value); - - @Generated - @Selector("initWithValue:data:") - public native RadarChartDataEntry initWithValueData(double value, - @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initWithX:y:") - public native RadarChartDataEntry initWithXY(double x, double y); - - @Generated - @Selector("initWithX:y:data:") - public native RadarChartDataEntry initWithXYData(double x, double y, - @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initWithY:") - public native RadarChartDataEntry initWithY(double y); - - @Generated - @Selector("initWithY:data:") - public native RadarChartDataEntry initWithYData(double y, - @Mapped(ObjCObjectMapper.class) Object data); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setValue:") - public native void setValue(double value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("value") - public native double value(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected RadarChartDataEntry(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native RadarChartDataEntry alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native RadarChartDataEntry init(); + + /** + * \param value The value on the y-axis. + */ + @Generated + @Selector("initWithValue:") + public native RadarChartDataEntry initWithValue(double value); + + /** + * \param value The value on the y-axis. + * + * \param data Spot for additional data this Entry represents. + */ + @Generated + @Selector("initWithValue:data:") + public native RadarChartDataEntry initWithValueData(double value, @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithX:y:") + public native RadarChartDataEntry initWithXY(double x, double y); + + @Generated + @Selector("initWithX:y:data:") + public native RadarChartDataEntry initWithXYData(double x, double y, @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithX:y:icon:") + public native RadarChartDataEntry initWithXYIcon(double x, double y, UIImage icon); + + @Generated + @Selector("initWithX:y:icon:data:") + public native RadarChartDataEntry initWithXYIconData(double x, double y, UIImage icon, + @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithY:") + public native RadarChartDataEntry initWithY(double y); + + @Generated + @Selector("initWithY:data:") + public native RadarChartDataEntry initWithYData(double y, @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("initWithY:icon:") + public native RadarChartDataEntry initWithYIcon(double y, UIImage icon); + + @Generated + @Selector("initWithY:icon:data:") + public native RadarChartDataEntry initWithYIconData(double y, UIImage icon, + @Mapped(ObjCObjectMapper.class) Object data); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setValue:") + public native void setValue(double value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("value") + public native double value(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartDataSet.java index 1e70ca2a..17bc7643 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartDataSet.java @@ -2,6 +2,7 @@ import apple.NSObject; +import apple.coregraphics.struct.CGPoint; import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSNumber; @@ -11,6 +12,7 @@ import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; +import org.moe.natj.general.ann.ByValue; import org.moe.natj.general.ann.Generated; import org.moe.natj.general.ann.Library; import org.moe.natj.general.ann.Mapped; @@ -28,6 +30,7 @@ import org.moe.natj.objc.ann.ObjCClassName; import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +import org.moe.samples.simplechart.charts.protocol.IChartValueFormatter; import org.moe.samples.simplechart.charts.protocol.IRadarChartDataSet; @Generated @@ -35,544 +38,540 @@ @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts17RadarChartDataSet") @ObjCClassBinding -public class RadarChartDataSet extends LineRadarChartDataSet implements - IRadarChartDataSet { - static { - NatJ.register(); - } - - @Generated - protected RadarChartDataSet(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addColor:") - public native void addColor(UIColor color); - - @Generated - @Selector("addEntry:") - public native boolean addEntry(ChartDataEntry e); - - @Generated - @Selector("addEntryOrdered:") - public native boolean addEntryOrdered(ChartDataEntry e); - - @Generated - @Owned - @Selector("alloc") - public static native RadarChartDataSet alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("axisDependency") - @NInt - public native long axisDependency(); - - @Generated - @Selector("calcMinMax") - public native void calcMinMax(); - - @Generated - @Selector("calcMinMaxYFromX:toX:") - public native void calcMinMaxYFromXToX(double fromX, double toX); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clear") - public native void clear(); - - @Generated - @Selector("colorAtIndex:") - public native UIColor colorAtIndex(@NInt long atIndex); - - @Generated - @Selector("colors") - public native NSArray colors(); - - @Generated - @Selector("contains:") - public native boolean contains(ChartDataEntry e); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawFilledEnabled") - public native boolean drawFilledEnabled(); - - @Generated - @Selector("drawHighlightCircleEnabled") - public native boolean drawHighlightCircleEnabled(); - - @Generated - @Selector("drawHorizontalHighlightIndicatorEnabled") - public native boolean drawHorizontalHighlightIndicatorEnabled(); - - @Generated - @Selector("drawValuesEnabled") - public native boolean drawValuesEnabled(); - - @Generated - @Selector("drawVerticalHighlightIndicatorEnabled") - public native boolean drawVerticalHighlightIndicatorEnabled(); - - @Generated - @Selector("entriesForXValue:") - public native NSArray entriesForXValue( - double xValue); - - @Generated - @Selector("entryCount") - @NInt - public native long entryCount(); - - @Generated - @Selector("entryForIndex:") - public native ChartDataEntry entryForIndex(@NInt long i); - - @Generated - @Selector("entryForXValue:closestToY:") - public native ChartDataEntry entryForXValueClosestToY(double xValue, - double yValue); - - @Generated - @Selector("entryForXValue:closestToY:rounding:") - public native ChartDataEntry entryForXValueClosestToYRounding( - double xValue, double yValue, @NInt long rounding); - - @Generated - @Selector("entryIndexWithEntry:") - @NInt - public native long entryIndexWithEntry(ChartDataEntry e); - - @Generated - @Selector("entryIndexWithX:closestToY:rounding:") - @NInt - public native long entryIndexWithXClosestToYRounding(double xValue, - double yValue, @NInt long rounding); - - @Generated - @Selector("fill") - public native ChartFill fill(); - - @Generated - @Selector("fillAlpha") - @NFloat - public native double fillAlpha(); - - @Generated - @Selector("fillColor") - public native UIColor fillColor(); - - @Generated - @Selector("form") - @NInt - public native long form(); - - @Generated - @Selector("formLineDashLengths") - public native NSArray formLineDashLengths(); - - @Generated - @Selector("formLineDashPhase") - @NFloat - public native double formLineDashPhase(); - - @Generated - @Selector("formLineWidth") - @NFloat - public native double formLineWidth(); - - @Generated - @Selector("formSize") - @NFloat - public native double formSize(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highlightCircleFillColor") - public native UIColor highlightCircleFillColor(); - - @Generated - @Selector("highlightCircleInnerRadius") - @NFloat - public native double highlightCircleInnerRadius(); - - @Generated - @Selector("highlightCircleOuterRadius") - @NFloat - public native double highlightCircleOuterRadius(); - - @Generated - @Selector("highlightCircleStrokeAlpha") - @NFloat - public native double highlightCircleStrokeAlpha(); - - @Generated - @Selector("highlightCircleStrokeColor") - public native UIColor highlightCircleStrokeColor(); - - @Generated - @Selector("highlightCircleStrokeWidth") - @NFloat - public native double highlightCircleStrokeWidth(); - - @Generated - @Selector("highlightColor") - public native UIColor highlightColor(); - - @Generated - @Selector("highlightEnabled") - public native boolean highlightEnabled(); - - @Generated - @Selector("highlightLineDashLengths") - public native NSArray highlightLineDashLengths(); - - @Generated - @Selector("highlightLineDashPhase") - @NFloat - public native double highlightLineDashPhase(); - - @Generated - @Selector("highlightLineWidth") - @NFloat - public native double highlightLineWidth(); - - @Generated - @Selector("init") - public native RadarChartDataSet init(); - - @Generated - @Selector("initWithLabel:") - public native RadarChartDataSet initWithLabel(String label); - - @Generated - @Selector("initWithValues:") - public native RadarChartDataSet initWithValues( - NSArray values); - - @Generated - @Selector("initWithValues:label:") - public native RadarChartDataSet initWithValuesLabel( - NSArray values, String label); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawFilledEnabled") - public native boolean isDrawFilledEnabled(); - - @Generated - @Selector("isDrawHighlightCircleEnabled") - public native boolean isDrawHighlightCircleEnabled(); - - @Generated - @Selector("isDrawValuesEnabled") - public native boolean isDrawValuesEnabled(); - - @Generated - @Selector("isHighlightEnabled") - public native boolean isHighlightEnabled(); - - @Generated - @Selector("isHorizontalHighlightIndicatorEnabled") - public native boolean isHorizontalHighlightIndicatorEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("isVerticalHighlightIndicatorEnabled") - public native boolean isVerticalHighlightIndicatorEnabled(); - - @Generated - @Selector("isVisible") - public native boolean isVisible(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("label") - public native String label(); - - @Generated - @Selector("lineWidth") - @NFloat - public native double lineWidth(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("needsFormatter") - public native boolean needsFormatter(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("removeEntry:") - public native boolean removeEntry(ChartDataEntry entry); - - @Generated - @Selector("removeEntryWithIndex:") - public native boolean removeEntryWithIndex(@NInt long index); - - @Generated - @Selector("removeEntryWithX:") - public native boolean removeEntryWithX(double x); - - @Generated - @Selector("removeFirst") - public native boolean removeFirst(); - - @Generated - @Selector("removeLast") - public native boolean removeLast(); - - @Generated - @Selector("resetColors") - public native void resetColors(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setColor:") - public native void setColor(UIColor color); - - @Generated - @Selector("setDrawFilledEnabled:") - public native void setDrawFilledEnabled(boolean value); - - @Generated - @Selector("setDrawHighlightCircleEnabled:") - public native void setDrawHighlightCircleEnabled(boolean value); - - @Generated - @Selector("setDrawHighlightIndicators:") - public native void setDrawHighlightIndicators(boolean enabled); - - @Generated - @Selector("setDrawHorizontalHighlightIndicatorEnabled:") - public native void setDrawHorizontalHighlightIndicatorEnabled(boolean value); - - @Generated - @Selector("setDrawValuesEnabled:") - public native void setDrawValuesEnabled(boolean value); - - @Generated - @Selector("setDrawVerticalHighlightIndicatorEnabled:") - public native void setDrawVerticalHighlightIndicatorEnabled(boolean value); - - @Generated - @Selector("setFill:") - public native void setFill(ChartFill value); - - @Generated - @Selector("setFillAlpha:") - public native void setFillAlpha(@NFloat double value); - - @Generated - @Selector("setFillColor:") - public native void setFillColor(UIColor value); - - @Generated - @Selector("setHighlightCircleFillColor:") - public native void setHighlightCircleFillColor(UIColor value); - - @Generated - @Selector("setHighlightCircleInnerRadius:") - public native void setHighlightCircleInnerRadius(@NFloat double value); - - @Generated - @Selector("setHighlightCircleOuterRadius:") - public native void setHighlightCircleOuterRadius(@NFloat double value); - - @Generated - @Selector("setHighlightCircleStrokeAlpha:") - public native void setHighlightCircleStrokeAlpha(@NFloat double value); - - @Generated - @Selector("setHighlightCircleStrokeColor:") - public native void setHighlightCircleStrokeColor(UIColor value); - - @Generated - @Selector("setHighlightCircleStrokeWidth:") - public native void setHighlightCircleStrokeWidth(@NFloat double value); - - @Generated - @Selector("setHighlightColor:") - public native void setHighlightColor(UIColor value); - - @Generated - @Selector("setHighlightEnabled:") - public native void setHighlightEnabled(boolean value); - - @Generated - @Selector("setHighlightLineDashLengths:") - public native void setHighlightLineDashLengths( - NSArray value); - - @Generated - @Selector("setHighlightLineDashPhase:") - public native void setHighlightLineDashPhase(@NFloat double value); - - @Generated - @Selector("setHighlightLineWidth:") - public native void setHighlightLineWidth(@NFloat double value); - - @Generated - @Selector("setLineWidth:") - public native void setLineWidth(@NFloat double value); - - @Generated - @Selector("setValueFont:") - public native void setValueFont(UIFont value); - - @Generated - @Selector("setValueFormatter:") - public native void setValueFormatter( - @Mapped(ObjCObjectMapper.class) Object value); - - @Generated - @Selector("setValueTextColor:") - public native void setValueTextColor(UIColor value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setVisible:") - public native void setVisible(boolean value); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("valueColors") - public native NSArray valueColors(); - - @Generated - @Selector("valueFont") - public native UIFont valueFont(); - - @Generated - @Selector("valueFormatter") - @MappedReturn(ObjCObjectMapper.class) - public native Object valueFormatter(); - - @Generated - @Selector("valueTextColor") - public native UIColor valueTextColor(); - - @Generated - @Selector("valueTextColorAt:") - public native UIColor valueTextColorAt(@NInt long index); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("visible") - public native boolean visible(); - - @Generated - @Selector("xMax") - public native double xMax(); - - @Generated - @Selector("xMin") - public native double xMin(); - - @Generated - @Selector("yMax") - public native double yMax(); - - @Generated - @Selector("yMin") - public native double yMin(); +public class RadarChartDataSet extends LineRadarChartDataSet implements IRadarChartDataSet { + static { + NatJ.register(); + } + + @Generated + protected RadarChartDataSet(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addColor:") + public native void addColor(UIColor color); + + @Generated + @Selector("addEntry:") + public native boolean addEntry(ChartDataEntry e); + + @Generated + @Selector("addEntryOrdered:") + public native boolean addEntryOrdered(ChartDataEntry e); + + @Generated + @Owned + @Selector("alloc") + public static native RadarChartDataSet alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("axisDependency") + @NInt + public native long axisDependency(); + + @Generated + @Selector("calcMinMax") + public native void calcMinMax(); + + @Generated + @Selector("calcMinMaxYFromX:toX:") + public native void calcMinMaxYFromXToX(double fromX, double toX); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clear") + public native void clear(); + + @Generated + @Selector("colorAtIndex:") + public native UIColor colorAtIndex(@NInt long atIndex); + + @Generated + @Selector("colors") + public native NSArray colors(); + + @Generated + @Selector("contains:") + public native boolean contains(ChartDataEntry e); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawFilledEnabled") + public native boolean drawFilledEnabled(); + + @Generated + @Selector("drawHighlightCircleEnabled") + public native boolean drawHighlightCircleEnabled(); + + @Generated + @Selector("drawHorizontalHighlightIndicatorEnabled") + public native boolean drawHorizontalHighlightIndicatorEnabled(); + + @Generated + @Selector("drawIconsEnabled") + public native boolean drawIconsEnabled(); + + @Generated + @Selector("drawValuesEnabled") + public native boolean drawValuesEnabled(); + + @Generated + @Selector("drawVerticalHighlightIndicatorEnabled") + public native boolean drawVerticalHighlightIndicatorEnabled(); + + @Generated + @Selector("entriesForXValue:") + public native NSArray entriesForXValue(double xValue); + + @Generated + @Selector("entryCount") + @NInt + public native long entryCount(); + + @Generated + @Selector("entryForIndex:") + public native ChartDataEntry entryForIndex(@NInt long i); + + @Generated + @Selector("entryForXValue:closestToY:") + public native ChartDataEntry entryForXValueClosestToY(double xValue, double yValue); + + @Generated + @Selector("entryForXValue:closestToY:rounding:") + public native ChartDataEntry entryForXValueClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("entryIndexWithEntry:") + @NInt + public native long entryIndexWithEntry(ChartDataEntry e); + + @Generated + @Selector("entryIndexWithX:closestToY:rounding:") + @NInt + public native long entryIndexWithXClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("fill") + public native ChartFill fill(); + + @Generated + @Selector("fillAlpha") + @NFloat + public native double fillAlpha(); + + @Generated + @Selector("fillColor") + public native UIColor fillColor(); + + @Generated + @Selector("form") + @NInt + public native long form(); + + @Generated + @Selector("formLineDashLengths") + public native NSArray formLineDashLengths(); + + @Generated + @Selector("formLineDashPhase") + @NFloat + public native double formLineDashPhase(); + + @Generated + @Selector("formLineWidth") + @NFloat + public native double formLineWidth(); + + @Generated + @Selector("formSize") + @NFloat + public native double formSize(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highlightCircleFillColor") + public native UIColor highlightCircleFillColor(); + + @Generated + @Selector("highlightCircleInnerRadius") + @NFloat + public native double highlightCircleInnerRadius(); + + @Generated + @Selector("highlightCircleOuterRadius") + @NFloat + public native double highlightCircleOuterRadius(); + + @Generated + @Selector("highlightCircleStrokeAlpha") + @NFloat + public native double highlightCircleStrokeAlpha(); + + @Generated + @Selector("highlightCircleStrokeColor") + public native UIColor highlightCircleStrokeColor(); + + @Generated + @Selector("highlightCircleStrokeWidth") + @NFloat + public native double highlightCircleStrokeWidth(); + + @Generated + @Selector("highlightColor") + public native UIColor highlightColor(); + + @Generated + @Selector("highlightEnabled") + public native boolean highlightEnabled(); + + @Generated + @Selector("highlightLineDashLengths") + public native NSArray highlightLineDashLengths(); + + @Generated + @Selector("highlightLineDashPhase") + @NFloat + public native double highlightLineDashPhase(); + + @Generated + @Selector("highlightLineWidth") + @NFloat + public native double highlightLineWidth(); + + @Generated + @Selector("iconsOffset") + @ByValue + public native CGPoint iconsOffset(); + + @Generated + @Selector("init") + public native RadarChartDataSet init(); + + @Generated + @Selector("initWithEntries:") + public native RadarChartDataSet initWithEntries(NSArray entries); + + @Generated + @Selector("initWithEntries:label:") + public native RadarChartDataSet initWithEntriesLabel(NSArray entries, String label); + + @Generated + @Selector("initWithLabel:") + public native RadarChartDataSet initWithLabel(String label); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isDrawFilledEnabled") + public native boolean isDrawFilledEnabled(); + + @Generated + @Selector("isDrawHighlightCircleEnabled") + public native boolean isDrawHighlightCircleEnabled(); + + @Generated + @Selector("isDrawIconsEnabled") + public native boolean isDrawIconsEnabled(); + + @Generated + @Selector("isDrawValuesEnabled") + public native boolean isDrawValuesEnabled(); + + @Generated + @Selector("isHighlightEnabled") + public native boolean isHighlightEnabled(); + + @Generated + @Selector("isHorizontalHighlightIndicatorEnabled") + public native boolean isHorizontalHighlightIndicatorEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("isVerticalHighlightIndicatorEnabled") + public native boolean isVerticalHighlightIndicatorEnabled(); + + @Generated + @Selector("isVisible") + public native boolean isVisible(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("label") + public native String label(); + + @Generated + @Selector("lineWidth") + @NFloat + public native double lineWidth(); + + @Generated + @Selector("needsFormatter") + public native boolean needsFormatter(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("notifyDataSetChanged") + public native void notifyDataSetChanged(); + + @Generated + @Selector("removeEntry:") + public native boolean removeEntry(ChartDataEntry entry); + + @Generated + @Selector("removeEntryWithIndex:") + public native boolean removeEntryWithIndex(@NInt long index); + + @Generated + @Selector("removeEntryWithX:") + public native boolean removeEntryWithX(double x); + + @Generated + @Selector("removeFirst") + public native boolean removeFirst(); + + @Generated + @Selector("removeLast") + public native boolean removeLast(); + + @Generated + @Selector("resetColors") + public native void resetColors(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setColor:") + public native void setColor(UIColor color); + + @Generated + @Selector("setDrawFilledEnabled:") + public native void setDrawFilledEnabled(boolean value); + + @Generated + @Selector("setDrawHighlightCircleEnabled:") + public native void setDrawHighlightCircleEnabled(boolean value); + + @Generated + @Selector("setDrawHighlightIndicators:") + public native void setDrawHighlightIndicators(boolean enabled); + + @Generated + @Selector("setDrawHorizontalHighlightIndicatorEnabled:") + public native void setDrawHorizontalHighlightIndicatorEnabled(boolean value); + + @Generated + @Selector("setDrawIconsEnabled:") + public native void setDrawIconsEnabled(boolean value); + + @Generated + @Selector("setDrawValuesEnabled:") + public native void setDrawValuesEnabled(boolean value); + + @Generated + @Selector("setDrawVerticalHighlightIndicatorEnabled:") + public native void setDrawVerticalHighlightIndicatorEnabled(boolean value); + + @Generated + @Selector("setFill:") + public native void setFill(ChartFill value); + + @Generated + @Selector("setFillAlpha:") + public native void setFillAlpha(@NFloat double value); + + @Generated + @Selector("setFillColor:") + public native void setFillColor(UIColor value); + + @Generated + @Selector("setHighlightCircleFillColor:") + public native void setHighlightCircleFillColor(UIColor value); + + @Generated + @Selector("setHighlightCircleInnerRadius:") + public native void setHighlightCircleInnerRadius(@NFloat double value); + + @Generated + @Selector("setHighlightCircleOuterRadius:") + public native void setHighlightCircleOuterRadius(@NFloat double value); + + @Generated + @Selector("setHighlightCircleStrokeAlpha:") + public native void setHighlightCircleStrokeAlpha(@NFloat double value); + + @Generated + @Selector("setHighlightCircleStrokeColor:") + public native void setHighlightCircleStrokeColor(UIColor value); + + @Generated + @Selector("setHighlightCircleStrokeWidth:") + public native void setHighlightCircleStrokeWidth(@NFloat double value); + + @Generated + @Selector("setHighlightColor:") + public native void setHighlightColor(UIColor value); + + @Generated + @Selector("setHighlightEnabled:") + public native void setHighlightEnabled(boolean value); + + @Generated + @Selector("setHighlightLineDashLengths:") + public native void setHighlightLineDashLengths(NSArray value); + + @Generated + @Selector("setHighlightLineDashPhase:") + public native void setHighlightLineDashPhase(@NFloat double value); + + @Generated + @Selector("setHighlightLineWidth:") + public native void setHighlightLineWidth(@NFloat double value); + + @Generated + @Selector("setIconsOffset:") + public native void setIconsOffset(@ByValue CGPoint value); + + @Generated + @Selector("setLineWidth:") + public native void setLineWidth(@NFloat double value); + + @Generated + @Selector("setValueFont:") + public native void setValueFont(UIFont value); + + @Generated + @Selector("setValueFormatter:") + public native void setValueFormatter(@Mapped(ObjCObjectMapper.class) IChartValueFormatter value); + + @Generated + @Selector("setValueTextColor:") + public native void setValueTextColor(UIColor value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("setVisible:") + public native void setVisible(boolean value); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("valueColors") + public native NSArray valueColors(); + + @Generated + @Selector("valueFont") + public native UIFont valueFont(); + + @Generated + @Selector("valueFormatter") + @MappedReturn(ObjCObjectMapper.class) + public native IChartValueFormatter valueFormatter(); + + @Generated + @Selector("valueTextColor") + public native UIColor valueTextColor(); + + @Generated + @Selector("valueTextColorAt:") + public native UIColor valueTextColorAt(@NInt long index); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("visible") + public native boolean visible(); + + @Generated + @Selector("xMax") + public native double xMax(); + + @Generated + @Selector("xMin") + public native double xMin(); + + @Generated + @Selector("yMax") + public native double yMax(); + + @Generated + @Selector("yMin") + public native double yMin(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartHighlighter.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartHighlighter.java index 74faede9..1cb8da32 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartHighlighter.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartHighlighter.java @@ -30,139 +30,121 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class RadarChartHighlighter extends PieRadarChartHighlighter { - static { - NatJ.register(); - } - - @Generated - protected RadarChartHighlighter(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native RadarChartHighlighter alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("closestHighlightWithIndex:x:y:") - public native ChartHighlight closestHighlightWithIndexXY(@NInt long index, - @NFloat double x, @NFloat double y); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native RadarChartHighlighter init(); - - @Generated - @Selector("initWithChart:") - public native RadarChartHighlighter initWithChart( - @Mapped(ObjCObjectMapper.class) Object chart); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected RadarChartHighlighter(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native RadarChartHighlighter alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("closestHighlightWithIndex:x:y:") + public native ChartHighlight closestHighlightWithIndexXY(@NInt long index, @NFloat double x, @NFloat double y); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native RadarChartHighlighter init(); + + @Generated + @Selector("initWithChart:") + public native RadarChartHighlighter initWithChart(@Mapped(ObjCObjectMapper.class) Object chart); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartRenderer.java index 37c365b6..c6900f10 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartRenderer.java @@ -32,190 +32,171 @@ @ObjCClassName("_TtC6Charts18RadarChartRenderer") @ObjCClassBinding public class RadarChartRenderer extends LineRadarChartRenderer { - static { - NatJ.register(); - } - - @Generated - protected RadarChartRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native RadarChartRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("chart") - public native RadarChartView chart(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawDataWithContext:") - public native void drawDataWithContext(CGContextRef context); - - @Generated - @Selector("drawExtrasWithContext:") - public native void drawExtrasWithContext(CGContextRef context); - - @Generated - @Selector("drawHighlightedWithContext:indices:") - public native void drawHighlightedWithContextIndices(CGContextRef context, - NSArray indices); - - @Generated - @Selector("drawValuesWithContext:") - public native void drawValuesWithContext(CGContextRef context); - - @Generated - @Selector("drawWebWithContext:") - public native void drawWebWithContext(CGContextRef context); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native RadarChartRenderer init(); - - @Generated - @Selector("initBuffers") - public native void initBuffers(); - - @Generated - @Selector("initWithAnimator:viewPortHandler:") - public native RadarChartRenderer initWithAnimatorViewPortHandler( - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithChart:animator:viewPortHandler:") - public native RadarChartRenderer initWithChartAnimatorViewPortHandler( - RadarChartView chart, ChartAnimator animator, - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:") - public native RadarChartRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setChart:") - public native void setChart_unsafe(RadarChartView value); - - @Generated - public void setChart(RadarChartView value) { - Object __old = chart(); - if (value != null) { - org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); - } - setChart_unsafe(value); - if (__old != null) { - org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); - } - } - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected RadarChartRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native RadarChartRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("chart") + public native RadarChartView chart(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawDataWithContext:") + public native void drawDataWithContext(CGContextRef context); + + @Generated + @Selector("drawExtrasWithContext:") + public native void drawExtrasWithContext(CGContextRef context); + + @Generated + @Selector("drawHighlightedWithContext:indices:") + public native void drawHighlightedWithContextIndices(CGContextRef context, NSArray indices); + + @Generated + @Selector("drawValuesWithContext:") + public native void drawValuesWithContext(CGContextRef context); + + @Generated + @Selector("drawWebWithContext:") + public native void drawWebWithContext(CGContextRef context); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native RadarChartRenderer init(); + + @Generated + @Selector("initBuffers") + public native void initBuffers(); + + @Generated + @Selector("initWithAnimator:viewPortHandler:") + public native RadarChartRenderer initWithAnimatorViewPortHandler(ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithChart:animator:viewPortHandler:") + public native RadarChartRenderer initWithChartAnimatorViewPortHandler(RadarChartView chart, ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:") + public native RadarChartRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setChart:") + public native void setChart_unsafe(RadarChartView value); + + @Generated + public void setChart(RadarChartView value) { + Object __old = chart(); + if (value != null) { + org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); + } + setChart_unsafe(value); + if (__old != null) { + org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); + } + } + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartView.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartView.java index c78f9f0a..449110f4 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartView.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/RadarChartView.java @@ -11,6 +11,7 @@ import apple.uikit.UIColor; import apple.uikit.UITraitCollection; import apple.uikit.UIView; +import apple.uikit.protocol.UIAppearanceContainer; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.c.ann.Variadic; import org.moe.natj.general.NatJ; @@ -36,516 +37,556 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +/** + * Implementation of the RadarChart, a “spidernet”-like chart. It works best + * when displaying 5-10 entries per DataSet. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts14RadarChartView") @ObjCClassBinding public class RadarChartView extends PieRadarChartViewBase { - static { - NatJ.register(); - } - - @Generated - protected RadarChartView(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") - public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( - double frameStartTime, - double frameDuration, - @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); - - @Generated - @Owned - @Selector("alloc") - public static native RadarChartView alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") - public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:animations:") - public static native void animateWithDurationAnimations( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); - - @Generated - @Selector("animateWithDuration:animations:completion:") - public static native void animateWithDurationAnimationsCompletion( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); - - @Generated - @Selector("animateWithDuration:delay:options:animations:completion:") - public static native void animateWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") - public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( - double duration, - double delay, - @NFloat double dampingRatio, - @NFloat double velocity, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); - - @Generated - @Selector("appearance") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearance(); - - @Generated - @ProtocolClassMethod("appearance") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearance() { - return appearance(); - } - - @Generated - @Selector("appearanceForTraitCollection:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollection( - UITraitCollection trait); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollection") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollection(UITraitCollection trait) { - return appearanceForTraitCollection(trait); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceForTraitCollection:whenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceForTraitCollectionWhenContainedIn(trait, - ContainerClass, varargs); - } - - @Generated - @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes) { - return appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - trait, containerTypes); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceWhenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceWhenContainedIn(ContainerClass, varargs); - } - - @Generated - @Selector("appearanceWhenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes) { - return appearanceWhenContainedInInstancesOfClasses(containerTypes); - } - - @Generated - @Selector("areAnimationsEnabled") - public static native boolean areAnimationsEnabled(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("beginAnimations:context:") - public static native void beginAnimationsContext(String animationID, - VoidPtr context); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("chartYMax") - public native double chartYMax(); - - @Generated - @Selector("chartYMin") - public native double chartYMin(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clearTextInputContextIdentifier:") - public static native void clearTextInputContextIdentifier(String identifier); - - @Generated - @Selector("commitAnimations") - public static native void commitAnimations(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawRect:") - public native void drawRect(@ByValue CGRect rect); - - @Generated - @Selector("drawWeb") - public native boolean drawWeb(); - - @Generated - @Selector("factor") - @NFloat - public native double factor(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("indexForAngle:") - @NInt - public native long indexForAngle(@NFloat double angle); - - @Generated - @Selector("inheritedAnimationDuration") - public static native double inheritedAnimationDuration(); - - @Generated - @Selector("init") - public native RadarChartView init(); - - @Generated - @Selector("initWithCoder:") - public native RadarChartView initWithCoder(NSCoder aDecoder); - - @Generated - @Selector("initWithFrame:") - public native RadarChartView initWithFrame(@ByValue CGRect frame); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("innerWebColor") - public native UIColor innerWebColor(); - - @Generated - @Selector("innerWebLineWidth") - @NFloat - public native double innerWebLineWidth(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("layerClass") - public static native Class layerClass(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("performSystemAnimation:onViews:options:animations:completion:") - public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( - @NUInt long animation, - NSArray views, - @NUInt long options, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("performWithoutAnimation:") - public static native void performWithoutAnimation( - @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); - - @Generated - @Selector("radius") - @NFloat - public native double radius(); - - @Generated - @Selector("requiresConstraintBasedLayout") - public static native boolean requiresConstraintBasedLayout(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setAnimationBeginsFromCurrentState:") - public static native void setAnimationBeginsFromCurrentState( - boolean fromCurrentState); - - @Generated - @Selector("setAnimationCurve:") - public static native void setAnimationCurve(@NInt long curve); - - @Generated - @Selector("setAnimationDelay:") - public static native void setAnimationDelay(double delay); - - @Generated - @Selector("setAnimationDelegate:") - public static native void setAnimationDelegate( - @Mapped(ObjCObjectMapper.class) Object delegate); - - @Generated - @Selector("setAnimationDidStopSelector:") - public static native void setAnimationDidStopSelector(SEL selector); - - @Generated - @Selector("setAnimationDuration:") - public static native void setAnimationDuration_static(double duration); - - @Generated - @Selector("setAnimationRepeatAutoreverses:") - public static native void setAnimationRepeatAutoreverses( - boolean repeatAutoreverses); - - @Generated - @Selector("setAnimationRepeatCount:") - public static native void setAnimationRepeatCount_static(float repeatCount); - - @Generated - @Selector("setAnimationStartDate:") - public static native void setAnimationStartDate(NSDate startDate); - - @Generated - @Selector("setAnimationTransition:forView:cache:") - public static native void setAnimationTransitionForViewCache( - @NInt long transition, UIView view, boolean cache); - - @Generated - @Selector("setAnimationWillStartSelector:") - public static native void setAnimationWillStartSelector(SEL selector); - - @Generated - @Selector("setAnimationsEnabled:") - public static native void setAnimationsEnabled(boolean enabled); - - @Generated - @Selector("setDrawWeb:") - public native void setDrawWeb(boolean value); - - @Generated - @Selector("setInnerWebColor:") - public native void setInnerWebColor(UIColor value); - - @Generated - @Selector("setInnerWebLineWidth:") - public native void setInnerWebLineWidth(@NFloat double value); - - @Generated - @Selector("setSkipWebLineCount:") - public native void setSkipWebLineCount(@NInt long value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setWebAlpha:") - public native void setWebAlpha(@NFloat double value); - - @Generated - @Selector("setWebColor:") - public native void setWebColor(UIColor value); - - @Generated - @Selector("setWebLineWidth:") - public native void setWebLineWidth(@NFloat double value); - - @Generated - @Selector("skipWebLineCount") - @NInt - public native long skipWebLineCount(); - - @Generated - @Selector("sliceAngle") - @NFloat - public native double sliceAngle(); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transitionFromView:toView:duration:options:completion:") - public static native void transitionFromViewToViewDurationOptionsCompletion( - UIView fromView, - UIView toView, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); - - @Generated - @Selector("transitionWithView:duration:options:animations:completion:") - public static native void transitionWithViewDurationOptionsAnimationsCompletion( - UIView view, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttribute( - @NInt long attribute); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( - @NInt long semanticContentAttribute, @NInt long layoutDirection); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("webAlpha") - @NFloat - public native double webAlpha(); - - @Generated - @Selector("webColor") - public native UIColor webColor(); - - @Generated - @Selector("webLineWidth") - @NFloat - public native double webLineWidth(); - - @Generated - @Selector("yAxis") - public native ChartYAxis yAxis(); - - @Generated - @Selector("yRange") - public native double yRange(); + static { + NatJ.register(); + } + + @Generated + protected RadarChartView(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") + public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( + double frameStartTime, + double frameDuration, + @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); + + @Generated + @Owned + @Selector("alloc") + public static native RadarChartView alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") + public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:animations:") + public static native void animateWithDurationAnimations( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); + + @Generated + @Selector("animateWithDuration:animations:completion:") + public static native void animateWithDurationAnimationsCompletion( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); + + @Generated + @Selector("animateWithDuration:delay:options:animations:completion:") + public static native void animateWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") + public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( + double duration, + double delay, + @NFloat double dampingRatio, + @NFloat double velocity, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); + + @Generated + @Selector("appearance") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearance(); + + @Generated + @ProtocolClassMethod("appearance") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearance() { + return appearance(); + } + + @Generated + @Selector("appearanceForTraitCollection:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollection(UITraitCollection trait); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollection") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollection(UITraitCollection trait) { + return appearanceForTraitCollection(trait); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceForTraitCollection:whenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs) { + return appearanceForTraitCollectionWhenContainedIn(trait, ContainerClass, varargs); + } + + @Generated + @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes) { + return appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait, containerTypes); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceWhenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedIn( + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedIn(@Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, + Object... varargs) { + return appearanceWhenContainedIn(ContainerClass, varargs); + } + + @Generated + @Selector("appearanceWhenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes) { + return appearanceWhenContainedInInstancesOfClasses(containerTypes); + } + + @Generated + @Selector("areAnimationsEnabled") + public static native boolean areAnimationsEnabled(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("beginAnimations:context:") + public static native void beginAnimationsContext(String animationID, VoidPtr context); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + /** + * The maximum value this chart can display on it’s y-axis. + */ + @Generated + @Selector("chartYMax") + public native double chartYMax(); + + /** + * The minimum value this chart can display on it’s y-axis. + */ + @Generated + @Selector("chartYMin") + public native double chartYMin(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clearTextInputContextIdentifier:") + public static native void clearTextInputContextIdentifier(String identifier); + + @Generated + @Selector("commitAnimations") + public static native void commitAnimations(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawRect:") + public native void drawRect(@ByValue CGRect rect); + + /** + * flag indicating if the web lines should be drawn or not + */ + @Generated + @Selector("drawWeb") + public native boolean drawWeb(); + + /** + * The factor that is needed to transform values into pixels. + */ + @Generated + @Selector("factor") + @NFloat + public native double factor(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("indexForAngle:") + @NInt + public native long indexForAngle(@NFloat double angle); + + @Generated + @Selector("inheritedAnimationDuration") + public static native double inheritedAnimationDuration(); + + @Generated + @Selector("init") + public native RadarChartView init(); + + @Generated + @Selector("initWithCoder:") + public native RadarChartView initWithCoder(NSCoder aDecoder); + + @Generated + @Selector("initWithFrame:") + public native RadarChartView initWithFrame(@ByValue CGRect frame); + + /** + * color for the web lines in between the lines that come from the center. + */ + @Generated + @Selector("innerWebColor") + public native UIColor innerWebColor(); + + /** + * width of the web lines that are in between the lines coming from the center + */ + @Generated + @Selector("innerWebLineWidth") + @NFloat + public native double innerWebLineWidth(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("layerClass") + public static native Class layerClass(); + + @Generated + @Selector("modifyAnimationsWithRepeatCount:autoreverses:animations:") + public static native void modifyAnimationsWithRepeatCountAutoreversesAnimations( + @NFloat double count, + boolean autoreverses, + @ObjCBlock(name = "call_modifyAnimationsWithRepeatCountAutoreversesAnimations") UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("notifyDataSetChanged") + public native void notifyDataSetChanged(); + + @Generated + @Selector("performSystemAnimation:onViews:options:animations:completion:") + public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( + @NUInt long animation, + NSArray views, + @NUInt long options, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("performWithoutAnimation:") + public static native void performWithoutAnimation( + @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); + + @Generated + @Selector("radius") + @NFloat + public native double radius(); + + @Generated + @Selector("requiresConstraintBasedLayout") + public static native boolean requiresConstraintBasedLayout(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setAnimationBeginsFromCurrentState:") + public static native void setAnimationBeginsFromCurrentState(boolean fromCurrentState); + + @Generated + @Selector("setAnimationCurve:") + public static native void setAnimationCurve(@NInt long curve); + + @Generated + @Selector("setAnimationDelay:") + public static native void setAnimationDelay(double delay); + + @Generated + @Selector("setAnimationDelegate:") + public static native void setAnimationDelegate(@Mapped(ObjCObjectMapper.class) Object delegate); + + @Generated + @Selector("setAnimationDidStopSelector:") + public static native void setAnimationDidStopSelector(SEL selector); + + @Generated + @Selector("setAnimationDuration:") + public static native void setAnimationDuration_static(double duration); + + @Generated + @Selector("setAnimationRepeatAutoreverses:") + public static native void setAnimationRepeatAutoreverses(boolean repeatAutoreverses); + + @Generated + @Selector("setAnimationRepeatCount:") + public static native void setAnimationRepeatCount_static(float repeatCount); + + @Generated + @Selector("setAnimationStartDate:") + public static native void setAnimationStartDate(NSDate startDate); + + @Generated + @Selector("setAnimationTransition:forView:cache:") + public static native void setAnimationTransitionForViewCache(@NInt long transition, UIView view, boolean cache); + + @Generated + @Selector("setAnimationWillStartSelector:") + public static native void setAnimationWillStartSelector(SEL selector); + + @Generated + @Selector("setAnimationsEnabled:") + public static native void setAnimationsEnabled(boolean enabled); + + /** + * flag indicating if the web lines should be drawn or not + */ + @Generated + @Selector("setDrawWeb:") + public native void setDrawWeb(boolean value); + + /** + * color for the web lines in between the lines that come from the center. + */ + @Generated + @Selector("setInnerWebColor:") + public native void setInnerWebColor(UIColor value); + + /** + * width of the web lines that are in between the lines coming from the center + */ + @Generated + @Selector("setInnerWebLineWidth:") + public native void setInnerWebLineWidth(@NFloat double value); + + /** + * Sets the number of web-lines that should be skipped on chart web before the next one is drawn. This targets the lines that come from the center of the RadarChart. + * if count = 1 -> 1 line is skipped in between + */ + @Generated + @Selector("setSkipWebLineCount:") + public native void setSkipWebLineCount(@NInt long value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + /** + * transparency the grid is drawn with (0.0 - 1.0) + */ + @Generated + @Selector("setWebAlpha:") + public native void setWebAlpha(@NFloat double value); + + /** + * color for the web lines that come from the center + */ + @Generated + @Selector("setWebColor:") + public native void setWebColor(UIColor value); + + /** + * width of the web lines that come from the center. + */ + @Generated + @Selector("setWebLineWidth:") + public native void setWebLineWidth(@NFloat double value); + + /** + * Sets the number of web-lines that should be skipped on chart web before the next one is drawn. This targets the lines that come from the center of the RadarChart. + * if count = 1 -> 1 line is skipped in between + */ + @Generated + @Selector("skipWebLineCount") + @NInt + public native long skipWebLineCount(); + + /** + * The angle that each slice in the radar chart occupies. + */ + @Generated + @Selector("sliceAngle") + @NFloat + public native double sliceAngle(); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("transitionFromView:toView:duration:options:completion:") + public static native void transitionFromViewToViewDurationOptionsCompletion( + UIView fromView, + UIView toView, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); + + @Generated + @Selector("transitionWithView:duration:options:animations:completion:") + public static native void transitionWithViewDurationOptionsAnimationsCompletion( + UIView view, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttribute(@NInt long attribute); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( + @NInt long semanticContentAttribute, @NInt long layoutDirection); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + /** + * transparency the grid is drawn with (0.0 - 1.0) + */ + @Generated + @Selector("webAlpha") + @NFloat + public native double webAlpha(); + + /** + * color for the web lines that come from the center + */ + @Generated + @Selector("webColor") + public native UIColor webColor(); + + /** + * width of the web lines that come from the center. + */ + @Generated + @Selector("webLineWidth") + @NFloat + public native double webLineWidth(); + + /** + * The object that represents all y-labels of the RadarChart. + */ + @Generated + @Selector("yAxis") + public native ChartYAxis yAxis(); + + /** + * The range of y-values this chart can display. + */ + @Generated + @Selector("yRange") + public native double yRange(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartData.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartData.java index 8a856051..2df7de41 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartData.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartData.java @@ -33,143 +33,130 @@ @ObjCClassName("_TtC6Charts16ScatterChartData") @ObjCClassBinding public class ScatterChartData extends BarLineScatterCandleBubbleChartData { - static { - NatJ.register(); - } - - @Generated - protected ScatterChartData(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ScatterChartData alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("getGreatestShapeSize") - @NFloat - public native double getGreatestShapeSize(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ScatterChartData init(); - - @Generated - @Selector("initWithDataSet:") - public native ScatterChartData initWithDataSet( - @Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); - - @Generated - @Selector("initWithDataSets:") - public native ScatterChartData initWithDataSets(NSArray dataSets); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ScatterChartData(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ScatterChartData alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + /** + * returns: + * The maximum shape-size across all DataSets. + */ + @Generated + @Selector("getGreatestShapeSize") + @NFloat + public native double getGreatestShapeSize(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ScatterChartData init(); + + @Generated + @Selector("initWithDataSet:") + public native ScatterChartData initWithDataSet(@Mapped(ObjCObjectMapper.class) IChartDataSet dataSet); + + @Generated + @Selector("initWithDataSets:") + public native ScatterChartData initWithDataSets(NSArray dataSets); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartDataSet.java index 169c96d8..da77515e 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartDataSet.java @@ -2,6 +2,7 @@ import apple.NSObject; +import apple.coregraphics.struct.CGPoint; import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSNumber; @@ -11,6 +12,7 @@ import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; +import org.moe.natj.general.ann.ByValue; import org.moe.natj.general.ann.Generated; import org.moe.natj.general.ann.Library; import org.moe.natj.general.ann.Mapped; @@ -28,6 +30,7 @@ import org.moe.natj.objc.ann.ObjCClassName; import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +import org.moe.samples.simplechart.charts.protocol.IChartValueFormatter; import org.moe.samples.simplechart.charts.protocol.IScatterChartDataSet; import org.moe.samples.simplechart.charts.protocol.IShapeRenderer; @@ -36,485 +39,500 @@ @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts19ScatterChartDataSet") @ObjCClassBinding -public class ScatterChartDataSet extends LineScatterCandleRadarChartDataSet - implements IScatterChartDataSet { - static { - NatJ.register(); - } - - @Generated - protected ScatterChartDataSet(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addColor:") - public native void addColor(UIColor color); - - @Generated - @Selector("addEntry:") - public native boolean addEntry(ChartDataEntry e); - - @Generated - @Selector("addEntryOrdered:") - public native boolean addEntryOrdered(ChartDataEntry e); - - @Generated - @Owned - @Selector("alloc") - public static native ScatterChartDataSet alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("axisDependency") - @NInt - public native long axisDependency(); - - @Generated - @Selector("calcMinMax") - public native void calcMinMax(); - - @Generated - @Selector("calcMinMaxYFromX:toX:") - public native void calcMinMaxYFromXToX(double fromX, double toX); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clear") - public native void clear(); - - @Generated - @Selector("colorAtIndex:") - public native UIColor colorAtIndex(@NInt long atIndex); - - @Generated - @Selector("colors") - public native NSArray colors(); - - @Generated - @Selector("contains:") - public native boolean contains(ChartDataEntry e); - - @Generated - @Owned - @Selector("copyWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public native Object copyWithZone(VoidPtr zone); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawHorizontalHighlightIndicatorEnabled") - public native boolean drawHorizontalHighlightIndicatorEnabled(); - - @Generated - @Selector("drawValuesEnabled") - public native boolean drawValuesEnabled(); - - @Generated - @Selector("drawVerticalHighlightIndicatorEnabled") - public native boolean drawVerticalHighlightIndicatorEnabled(); - - @Generated - @Selector("entriesForXValue:") - public native NSArray entriesForXValue( - double xValue); - - @Generated - @Selector("entryCount") - @NInt - public native long entryCount(); - - @Generated - @Selector("entryForIndex:") - public native ChartDataEntry entryForIndex(@NInt long i); - - @Generated - @Selector("entryForXValue:closestToY:") - public native ChartDataEntry entryForXValueClosestToY(double xValue, - double yValue); - - @Generated - @Selector("entryForXValue:closestToY:rounding:") - public native ChartDataEntry entryForXValueClosestToYRounding( - double xValue, double yValue, @NInt long rounding); - - @Generated - @Selector("entryIndexWithEntry:") - @NInt - public native long entryIndexWithEntry(ChartDataEntry e); - - @Generated - @Selector("entryIndexWithX:closestToY:rounding:") - @NInt - public native long entryIndexWithXClosestToYRounding(double xValue, - double yValue, @NInt long rounding); - - @Generated - @Selector("form") - @NInt - public native long form(); - - @Generated - @Selector("formLineDashLengths") - public native NSArray formLineDashLengths(); - - @Generated - @Selector("formLineDashPhase") - @NFloat - public native double formLineDashPhase(); - - @Generated - @Selector("formLineWidth") - @NFloat - public native double formLineWidth(); - - @Generated - @Selector("formSize") - @NFloat - public native double formSize(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highlightColor") - public native UIColor highlightColor(); - - @Generated - @Selector("highlightEnabled") - public native boolean highlightEnabled(); - - @Generated - @Selector("highlightLineDashLengths") - public native NSArray highlightLineDashLengths(); - - @Generated - @Selector("highlightLineDashPhase") - @NFloat - public native double highlightLineDashPhase(); - - @Generated - @Selector("highlightLineWidth") - @NFloat - public native double highlightLineWidth(); - - @Generated - @Selector("init") - public native ScatterChartDataSet init(); - - @Generated - @Selector("initWithLabel:") - public native ScatterChartDataSet initWithLabel(String label); - - @Generated - @Selector("initWithValues:") - public native ScatterChartDataSet initWithValues( - NSArray values); - - @Generated - @Selector("initWithValues:label:") - public native ScatterChartDataSet initWithValuesLabel( - NSArray values, String label); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isDrawValuesEnabled") - public native boolean isDrawValuesEnabled(); - - @Generated - @Selector("isHighlightEnabled") - public native boolean isHighlightEnabled(); - - @Generated - @Selector("isHorizontalHighlightIndicatorEnabled") - public native boolean isHorizontalHighlightIndicatorEnabled(); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("isVerticalHighlightIndicatorEnabled") - public native boolean isVerticalHighlightIndicatorEnabled(); - - @Generated - @Selector("isVisible") - public native boolean isVisible(); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("label") - public native String label(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("needsFormatter") - public native boolean needsFormatter(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("notifyDataSetChanged") - public native void notifyDataSetChanged(); - - @Generated - @Selector("removeEntry:") - public native boolean removeEntry(ChartDataEntry entry); - - @Generated - @Selector("removeEntryWithIndex:") - public native boolean removeEntryWithIndex(@NInt long index); - - @Generated - @Selector("removeEntryWithX:") - public native boolean removeEntryWithX(double x); - - @Generated - @Selector("removeFirst") - public native boolean removeFirst(); - - @Generated - @Selector("removeLast") - public native boolean removeLast(); - - @Generated - @Selector("rendererForShape:") - @MappedReturn(ObjCObjectMapper.class) - public static native IShapeRenderer rendererForShape(@NInt long shape); - - @Generated - @Selector("resetColors") - public native void resetColors(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("scatterShapeHoleColor") - public native UIColor scatterShapeHoleColor(); - - @Generated - @Selector("scatterShapeHoleRadius") - @NFloat - public native double scatterShapeHoleRadius(); - - @Generated - @Selector("scatterShapeSize") - @NFloat - public native double scatterShapeSize(); - - @Generated - @Selector("setColor:") - public native void setColor(UIColor color); - - @Generated - @Selector("setDrawHighlightIndicators:") - public native void setDrawHighlightIndicators(boolean enabled); - - @Generated - @Selector("setDrawHorizontalHighlightIndicatorEnabled:") - public native void setDrawHorizontalHighlightIndicatorEnabled(boolean value); - - @Generated - @Selector("setDrawValuesEnabled:") - public native void setDrawValuesEnabled(boolean value); - - @Generated - @Selector("setDrawVerticalHighlightIndicatorEnabled:") - public native void setDrawVerticalHighlightIndicatorEnabled(boolean value); - - @Generated - @Selector("setHighlightColor:") - public native void setHighlightColor(UIColor value); - - @Generated - @Selector("setHighlightEnabled:") - public native void setHighlightEnabled(boolean value); - - @Generated - @Selector("setHighlightLineDashLengths:") - public native void setHighlightLineDashLengths( - NSArray value); - - @Generated - @Selector("setHighlightLineDashPhase:") - public native void setHighlightLineDashPhase(@NFloat double value); - - @Generated - @Selector("setHighlightLineWidth:") - public native void setHighlightLineWidth(@NFloat double value); - - @Generated - @Selector("setScatterShape:") - public native void setScatterShape(@NInt long shape); - - @Generated - @Selector("setScatterShapeHoleColor:") - public native void setScatterShapeHoleColor(UIColor value); - - @Generated - @Selector("setScatterShapeHoleRadius:") - public native void setScatterShapeHoleRadius(@NFloat double value); - - @Generated - @Selector("setScatterShapeSize:") - public native void setScatterShapeSize(@NFloat double value); - - @Generated - @Selector("setShapeRenderer:") - public native void setShapeRenderer( - @Mapped(ObjCObjectMapper.class) IShapeRenderer value); - - @Generated - @Selector("setValueFont:") - public native void setValueFont(UIFont value); - - @Generated - @Selector("setValueFormatter:") - public native void setValueFormatter( - @Mapped(ObjCObjectMapper.class) Object value); - - @Generated - @Selector("setValueTextColor:") - public native void setValueTextColor(UIColor value); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("setVisible:") - public native void setVisible(boolean value); - - @Generated - @Selector("shapeRenderer") - @MappedReturn(ObjCObjectMapper.class) - public native IShapeRenderer shapeRenderer(); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("valueColors") - public native NSArray valueColors(); - - @Generated - @Selector("valueFont") - public native UIFont valueFont(); - - @Generated - @Selector("valueFormatter") - @MappedReturn(ObjCObjectMapper.class) - public native Object valueFormatter(); - - @Generated - @Selector("valueTextColor") - public native UIColor valueTextColor(); - - @Generated - @Selector("valueTextColorAt:") - public native UIColor valueTextColorAt(@NInt long index); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("visible") - public native boolean visible(); - - @Generated - @Selector("xMax") - public native double xMax(); - - @Generated - @Selector("xMin") - public native double xMin(); - - @Generated - @Selector("yMax") - public native double yMax(); - - @Generated - @Selector("yMin") - public native double yMin(); +public class ScatterChartDataSet extends LineScatterCandleRadarChartDataSet implements IScatterChartDataSet { + static { + NatJ.register(); + } + + @Generated + protected ScatterChartDataSet(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addColor:") + public native void addColor(UIColor color); + + @Generated + @Selector("addEntry:") + public native boolean addEntry(ChartDataEntry e); + + @Generated + @Selector("addEntryOrdered:") + public native boolean addEntryOrdered(ChartDataEntry e); + + @Generated + @Owned + @Selector("alloc") + public static native ScatterChartDataSet alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("axisDependency") + @NInt + public native long axisDependency(); + + @Generated + @Selector("calcMinMax") + public native void calcMinMax(); + + @Generated + @Selector("calcMinMaxYFromX:toX:") + public native void calcMinMaxYFromXToX(double fromX, double toX); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clear") + public native void clear(); + + @Generated + @Selector("colorAtIndex:") + public native UIColor colorAtIndex(@NInt long atIndex); + + @Generated + @Selector("colors") + public native NSArray colors(); + + @Generated + @Selector("contains:") + public native boolean contains(ChartDataEntry e); + + @Generated + @Owned + @Selector("copyWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public native Object copyWithZone(VoidPtr zone); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawHorizontalHighlightIndicatorEnabled") + public native boolean drawHorizontalHighlightIndicatorEnabled(); + + @Generated + @Selector("drawIconsEnabled") + public native boolean drawIconsEnabled(); + + @Generated + @Selector("drawValuesEnabled") + public native boolean drawValuesEnabled(); + + @Generated + @Selector("drawVerticalHighlightIndicatorEnabled") + public native boolean drawVerticalHighlightIndicatorEnabled(); + + @Generated + @Selector("entriesForXValue:") + public native NSArray entriesForXValue(double xValue); + + @Generated + @Selector("entryCount") + @NInt + public native long entryCount(); + + @Generated + @Selector("entryForIndex:") + public native ChartDataEntry entryForIndex(@NInt long i); + + @Generated + @Selector("entryForXValue:closestToY:") + public native ChartDataEntry entryForXValueClosestToY(double xValue, double yValue); + + @Generated + @Selector("entryForXValue:closestToY:rounding:") + public native ChartDataEntry entryForXValueClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("entryIndexWithEntry:") + @NInt + public native long entryIndexWithEntry(ChartDataEntry e); + + @Generated + @Selector("entryIndexWithX:closestToY:rounding:") + @NInt + public native long entryIndexWithXClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + @Generated + @Selector("form") + @NInt + public native long form(); + + @Generated + @Selector("formLineDashLengths") + public native NSArray formLineDashLengths(); + + @Generated + @Selector("formLineDashPhase") + @NFloat + public native double formLineDashPhase(); + + @Generated + @Selector("formLineWidth") + @NFloat + public native double formLineWidth(); + + @Generated + @Selector("formSize") + @NFloat + public native double formSize(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highlightColor") + public native UIColor highlightColor(); + + @Generated + @Selector("highlightEnabled") + public native boolean highlightEnabled(); + + @Generated + @Selector("highlightLineDashLengths") + public native NSArray highlightLineDashLengths(); + + @Generated + @Selector("highlightLineDashPhase") + @NFloat + public native double highlightLineDashPhase(); + + @Generated + @Selector("highlightLineWidth") + @NFloat + public native double highlightLineWidth(); + + @Generated + @Selector("iconsOffset") + @ByValue + public native CGPoint iconsOffset(); + + @Generated + @Selector("init") + public native ScatterChartDataSet init(); + + @Generated + @Selector("initWithEntries:") + public native ScatterChartDataSet initWithEntries(NSArray entries); + + @Generated + @Selector("initWithEntries:label:") + public native ScatterChartDataSet initWithEntriesLabel(NSArray entries, String label); + + @Generated + @Selector("initWithLabel:") + public native ScatterChartDataSet initWithLabel(String label); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isDrawIconsEnabled") + public native boolean isDrawIconsEnabled(); + + @Generated + @Selector("isDrawValuesEnabled") + public native boolean isDrawValuesEnabled(); + + @Generated + @Selector("isHighlightEnabled") + public native boolean isHighlightEnabled(); + + @Generated + @Selector("isHorizontalHighlightIndicatorEnabled") + public native boolean isHorizontalHighlightIndicatorEnabled(); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("isVerticalHighlightIndicatorEnabled") + public native boolean isVerticalHighlightIndicatorEnabled(); + + @Generated + @Selector("isVisible") + public native boolean isVisible(); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("label") + public native String label(); + + @Generated + @Selector("needsFormatter") + public native boolean needsFormatter(); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("notifyDataSetChanged") + public native void notifyDataSetChanged(); + + @Generated + @Selector("removeEntry:") + public native boolean removeEntry(ChartDataEntry entry); + + @Generated + @Selector("removeEntryWithIndex:") + public native boolean removeEntryWithIndex(@NInt long index); + + @Generated + @Selector("removeEntryWithX:") + public native boolean removeEntryWithX(double x); + + @Generated + @Selector("removeFirst") + public native boolean removeFirst(); + + @Generated + @Selector("removeLast") + public native boolean removeLast(); + + @Generated + @Selector("rendererForShape:") + @MappedReturn(ObjCObjectMapper.class) + public static native IShapeRenderer rendererForShape(@NInt long shape); + + @Generated + @Selector("resetColors") + public native void resetColors(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("scatterShapeHoleColor") + public native UIColor scatterShapeHoleColor(); + + @Generated + @Selector("scatterShapeHoleRadius") + @NFloat + public native double scatterShapeHoleRadius(); + + @Generated + @Selector("scatterShapeSize") + @NFloat + public native double scatterShapeSize(); + + @Generated + @Selector("setColor:") + public native void setColor(UIColor color); + + @Generated + @Selector("setDrawHighlightIndicators:") + public native void setDrawHighlightIndicators(boolean enabled); + + @Generated + @Selector("setDrawHorizontalHighlightIndicatorEnabled:") + public native void setDrawHorizontalHighlightIndicatorEnabled(boolean value); + + @Generated + @Selector("setDrawIconsEnabled:") + public native void setDrawIconsEnabled(boolean value); + + @Generated + @Selector("setDrawValuesEnabled:") + public native void setDrawValuesEnabled(boolean value); + + @Generated + @Selector("setDrawVerticalHighlightIndicatorEnabled:") + public native void setDrawVerticalHighlightIndicatorEnabled(boolean value); + + @Generated + @Selector("setHighlightColor:") + public native void setHighlightColor(UIColor value); + + @Generated + @Selector("setHighlightEnabled:") + public native void setHighlightEnabled(boolean value); + + @Generated + @Selector("setHighlightLineDashLengths:") + public native void setHighlightLineDashLengths(NSArray value); + + @Generated + @Selector("setHighlightLineDashPhase:") + public native void setHighlightLineDashPhase(@NFloat double value); + + @Generated + @Selector("setHighlightLineWidth:") + public native void setHighlightLineWidth(@NFloat double value); + + @Generated + @Selector("setIconsOffset:") + public native void setIconsOffset(@ByValue CGPoint value); + + /** + * Sets the ScatterShape this DataSet should be drawn with. + * This will search for an available IShapeRenderer and set this renderer for the DataSet + */ + @Generated + @Selector("setScatterShape:") + public native void setScatterShape(@NInt long shape); + + /** + * Color for the hole in the shape. Setting to nil will behave as transparent. + * default: nil + */ + @Generated + @Selector("setScatterShapeHoleColor:") + public native void setScatterShapeHoleColor(UIColor value); + + /** + * The radius of the hole in the shape (applies to Square, Circle and Triangle) + * default: 0.0 + */ + @Generated + @Selector("setScatterShapeHoleRadius:") + public native void setScatterShapeHoleRadius(@NFloat double value); + + /** + * The size the scatter shape will have + */ + @Generated + @Selector("setScatterShapeSize:") + public native void setScatterShapeSize(@NFloat double value); + + /** + * The IShapeRenderer responsible for rendering this DataSet. + * This can also be used to set a custom IShapeRenderer aside from the default ones. + * default: SquareShapeRenderer + */ + @Generated + @Selector("setShapeRenderer:") + public native void setShapeRenderer(@Mapped(ObjCObjectMapper.class) IShapeRenderer value); + + @Generated + @Selector("setValueFont:") + public native void setValueFont(UIFont value); + + @Generated + @Selector("setValueFormatter:") + public native void setValueFormatter(@Mapped(ObjCObjectMapper.class) IChartValueFormatter value); + + @Generated + @Selector("setValueTextColor:") + public native void setValueTextColor(UIColor value); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("setVisible:") + public native void setVisible(boolean value); + + @Generated + @Selector("shapeRenderer") + @MappedReturn(ObjCObjectMapper.class) + public native IShapeRenderer shapeRenderer(); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("valueColors") + public native NSArray valueColors(); + + @Generated + @Selector("valueFont") + public native UIFont valueFont(); + + @Generated + @Selector("valueFormatter") + @MappedReturn(ObjCObjectMapper.class) + public native IChartValueFormatter valueFormatter(); + + @Generated + @Selector("valueTextColor") + public native UIColor valueTextColor(); + + @Generated + @Selector("valueTextColorAt:") + public native UIColor valueTextColorAt(@NInt long index); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("visible") + public native boolean visible(); + + @Generated + @Selector("xMax") + public native double xMax(); + + @Generated + @Selector("xMin") + public native double xMin(); + + @Generated + @Selector("yMax") + public native double yMax(); + + @Generated + @Selector("yMin") + public native double yMin(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartRenderer.java index 2c702bb8..c7d031d7 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartRenderer.java @@ -34,194 +34,174 @@ @ObjCClassName("_TtC6Charts20ScatterChartRenderer") @ObjCClassBinding public class ScatterChartRenderer extends LineScatterCandleRadarChartRenderer { - static { - NatJ.register(); - } - - @Generated - protected ScatterChartRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ScatterChartRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("dataProvider") - @MappedReturn(ObjCObjectMapper.class) - public native ScatterChartDataProvider dataProvider(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawDataSetWithContext:dataSet:") - public native void drawDataSetWithContextDataSet(CGContextRef context, - @Mapped(ObjCObjectMapper.class) IScatterChartDataSet dataSet); - - @Generated - @Selector("drawDataWithContext:") - public native void drawDataWithContext(CGContextRef context); - - @Generated - @Selector("drawExtrasWithContext:") - public native void drawExtrasWithContext(CGContextRef context); - - @Generated - @Selector("drawHighlightedWithContext:indices:") - public native void drawHighlightedWithContextIndices(CGContextRef context, - NSArray indices); - - @Generated - @Selector("drawValuesWithContext:") - public native void drawValuesWithContext(CGContextRef context); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ScatterChartRenderer init(); - - @Generated - @Selector("initBuffers") - public native void initBuffers(); - - @Generated - @Selector("initWithAnimator:viewPortHandler:") - public native ScatterChartRenderer initWithAnimatorViewPortHandler( - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithDataProvider:animator:viewPortHandler:") - public native ScatterChartRenderer initWithDataProviderAnimatorViewPortHandler( - @Mapped(ObjCObjectMapper.class) ScatterChartDataProvider dataProvider, - ChartAnimator animator, ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:") - public native ScatterChartRenderer initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setDataProvider:") - public native void setDataProvider_unsafe( - @Mapped(ObjCObjectMapper.class) ScatterChartDataProvider value); - - @Generated - public void setDataProvider( - @Mapped(ObjCObjectMapper.class) ScatterChartDataProvider value) { - Object __old = dataProvider(); - if (value != null) { - org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); - } - setDataProvider_unsafe(value); - if (__old != null) { - org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); - } - } - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ScatterChartRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ScatterChartRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("dataProvider") + @MappedReturn(ObjCObjectMapper.class) + public native ScatterChartDataProvider dataProvider(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawDataSetWithContext:dataSet:") + public native void drawDataSetWithContextDataSet(CGContextRef context, + @Mapped(ObjCObjectMapper.class) IScatterChartDataSet dataSet); + + @Generated + @Selector("drawDataWithContext:") + public native void drawDataWithContext(CGContextRef context); + + @Generated + @Selector("drawExtrasWithContext:") + public native void drawExtrasWithContext(CGContextRef context); + + @Generated + @Selector("drawHighlightedWithContext:indices:") + public native void drawHighlightedWithContextIndices(CGContextRef context, NSArray indices); + + @Generated + @Selector("drawValuesWithContext:") + public native void drawValuesWithContext(CGContextRef context); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ScatterChartRenderer init(); + + @Generated + @Selector("initBuffers") + public native void initBuffers(); + + @Generated + @Selector("initWithAnimator:viewPortHandler:") + public native ScatterChartRenderer initWithAnimatorViewPortHandler(ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithDataProvider:animator:viewPortHandler:") + public native ScatterChartRenderer initWithDataProviderAnimatorViewPortHandler( + @Mapped(ObjCObjectMapper.class) ScatterChartDataProvider dataProvider, ChartAnimator animator, + ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:") + public native ScatterChartRenderer initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setDataProvider:") + public native void setDataProvider_unsafe(@Mapped(ObjCObjectMapper.class) ScatterChartDataProvider value); + + @Generated + public void setDataProvider(@Mapped(ObjCObjectMapper.class) ScatterChartDataProvider value) { + Object __old = dataProvider(); + if (value != null) { + org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); + } + setDataProvider_unsafe(value); + if (__old != null) { + org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); + } + } + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartView.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartView.java index 8b3105f4..1ff8a678 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartView.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ScatterChartView.java @@ -11,6 +11,7 @@ import apple.foundation.NSSet; import apple.uikit.UITraitCollection; import apple.uikit.UIView; +import apple.uikit.protocol.UIAppearanceContainer; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.c.ann.Variadic; import org.moe.natj.general.NatJ; @@ -37,476 +38,448 @@ import org.moe.natj.objc.map.ObjCObjectMapper; import org.moe.samples.simplechart.charts.protocol.ScatterChartDataProvider; +/** + * The ScatterChart. Draws dots, triangles, squares and custom shapes into the chartview. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCClassName("_TtC6Charts16ScatterChartView") @ObjCClassBinding -public class ScatterChartView extends BarLineChartViewBase implements - ScatterChartDataProvider { - static { - NatJ.register(); - } - - @Generated - protected ScatterChartView(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") - public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( - double frameStartTime, - double frameDuration, - @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); - - @Generated - @Owned - @Selector("alloc") - public static native ScatterChartView alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") - public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:animations:") - public static native void animateWithDurationAnimations( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); - - @Generated - @Selector("animateWithDuration:animations:completion:") - public static native void animateWithDurationAnimationsCompletion( - double duration, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, - @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); - - @Generated - @Selector("animateWithDuration:delay:options:animations:completion:") - public static native void animateWithDurationDelayOptionsAnimationsCompletion( - double duration, - double delay, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") - public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( - double duration, - double delay, - @NFloat double dampingRatio, - @NFloat double velocity, - @NUInt long options, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, - @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); - - @Generated - @Selector("appearance") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearance(); - - @Generated - @ProtocolClassMethod("appearance") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearance() { - return appearance(); - } - - @Generated - @Selector("appearanceForTraitCollection:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollection( - UITraitCollection trait); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollection") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollection(UITraitCollection trait) { - return appearanceForTraitCollection(trait); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceForTraitCollection:whenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedIn( - UITraitCollection trait, - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceForTraitCollectionWhenContainedIn(trait, - ContainerClass, varargs); - } - - @Generated - @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - UITraitCollection trait, NSArray containerTypes) { - return appearanceForTraitCollectionWhenContainedInInstancesOfClasses( - trait, containerTypes); - } - - @Generated - @Variadic() - @Deprecated - @Selector("appearanceWhenContainedIn:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs); - - @Generated - @Deprecated - @ProtocolClassMethod("appearanceWhenContainedIn") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedIn( - @Mapped(ObjCObjectMapper.class) Object ContainerClass, - Object... varargs) { - return appearanceWhenContainedIn(ContainerClass, varargs); - } - - @Generated - @Selector("appearanceWhenContainedInInstancesOfClasses:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes); - - @Generated - @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") - @MappedReturn(ObjCObjectMapper.class) - public Object _appearanceWhenContainedInInstancesOfClasses( - NSArray containerTypes) { - return appearanceWhenContainedInInstancesOfClasses(containerTypes); - } - - @Generated - @Selector("areAnimationsEnabled") - public static native boolean areAnimationsEnabled(); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("beginAnimations:context:") - public static native void beginAnimationsContext(String animationID, - VoidPtr context); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("centerOffsets") - @ByValue - public native CGPoint centerOffsets(); - - @Generated - @Selector("chartXMax") - public native double chartXMax(); - - @Generated - @Selector("chartXMin") - public native double chartXMin(); - - @Generated - @Selector("chartYMax") - public native double chartYMax(); - - @Generated - @Selector("chartYMin") - public native double chartYMin(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("clearTextInputContextIdentifier:") - public static native void clearTextInputContextIdentifier(String identifier); - - @Generated - @Selector("commitAnimations") - public static native void commitAnimations(); - - @Generated - @Selector("data") - public native ChartData data(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("getTransformerForAxis:") - public native ChartTransformer getTransformerForAxis(@NInt long forAxis); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("highestVisibleX") - public native double highestVisibleX(); - - @Generated - @Selector("inheritedAnimationDuration") - public static native double inheritedAnimationDuration(); - - @Generated - @Selector("init") - public native ScatterChartView init(); - - @Generated - @Selector("initWithCoder:") - public native ScatterChartView initWithCoder(NSCoder aDecoder); - - @Generated - @Selector("initWithFrame:") - public native ScatterChartView initWithFrame(@ByValue CGRect frame); - - @Generated - @Selector("initialize") - public native void initialize(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isInvertedWithAxis:") - public native boolean isInvertedWithAxis(@NInt long axis); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("layerClass") - public static native Class layerClass(); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Selector("lowestVisibleX") - public native double lowestVisibleX(); - - @Generated - @Selector("maxHighlightDistance") - @NFloat - public native double maxHighlightDistance(); - - @Generated - @Selector("maxVisibleCount") - @NInt - public native long maxVisibleCount(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("performSystemAnimation:onViews:options:animations:completion:") - public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( - @NUInt long animation, - NSArray views, - @NUInt long options, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, - @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("performWithoutAnimation:") - public static native void performWithoutAnimation( - @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); - - @Generated - @Selector("requiresConstraintBasedLayout") - public static native boolean requiresConstraintBasedLayout(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("scatterData") - public native ScatterChartData scatterData(); - - @Generated - @Selector("setAnimationBeginsFromCurrentState:") - public static native void setAnimationBeginsFromCurrentState( - boolean fromCurrentState); - - @Generated - @Selector("setAnimationCurve:") - public static native void setAnimationCurve(@NInt long curve); - - @Generated - @Selector("setAnimationDelay:") - public static native void setAnimationDelay(double delay); - - @Generated - @Selector("setAnimationDelegate:") - public static native void setAnimationDelegate( - @Mapped(ObjCObjectMapper.class) Object delegate); - - @Generated - @Selector("setAnimationDidStopSelector:") - public static native void setAnimationDidStopSelector(SEL selector); - - @Generated - @Selector("setAnimationDuration:") - public static native void setAnimationDuration_static(double duration); - - @Generated - @Selector("setAnimationRepeatAutoreverses:") - public static native void setAnimationRepeatAutoreverses( - boolean repeatAutoreverses); - - @Generated - @Selector("setAnimationRepeatCount:") - public static native void setAnimationRepeatCount_static(float repeatCount); - - @Generated - @Selector("setAnimationStartDate:") - public static native void setAnimationStartDate(NSDate startDate); - - @Generated - @Selector("setAnimationTransition:forView:cache:") - public static native void setAnimationTransitionForViewCache( - @NInt long transition, UIView view, boolean cache); - - @Generated - @Selector("setAnimationWillStartSelector:") - public static native void setAnimationWillStartSelector(SEL selector); - - @Generated - @Selector("setAnimationsEnabled:") - public static native void setAnimationsEnabled(boolean enabled); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transitionFromView:toView:duration:options:completion:") - public static native void transitionFromViewToViewDurationOptionsCompletion( - UIView fromView, - UIView toView, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); - - @Generated - @Selector("transitionWithView:duration:options:animations:completion:") - public static native void transitionWithViewDurationOptionsAnimationsCompletion( - UIView view, - double duration, - @NUInt long options, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, - @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttribute( - @NInt long attribute); - - @Generated - @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") - @NInt - public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( - @NInt long semanticContentAttribute, @NInt long layoutDirection); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); - - @Generated - @Selector("xRange") - public native double xRange(); +public class ScatterChartView extends BarLineChartViewBase implements ScatterChartDataProvider { + static { + NatJ.register(); + } + + @Generated + protected ScatterChartView(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Selector("addKeyframeWithRelativeStartTime:relativeDuration:animations:") + public static native void addKeyframeWithRelativeStartTimeRelativeDurationAnimations( + double frameStartTime, + double frameDuration, + @ObjCBlock(name = "call_addKeyframeWithRelativeStartTimeRelativeDurationAnimations") UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations); + + @Generated + @Owned + @Selector("alloc") + public static native ScatterChartView alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("animateKeyframesWithDuration:delay:options:animations:completion:") + public static native void animateKeyframesWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:animations:") + public static native void animateWithDurationAnimations( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimations") UIView.Block_animateWithDurationAnimations animations); + + @Generated + @Selector("animateWithDuration:animations:completion:") + public static native void animateWithDurationAnimationsCompletion( + double duration, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_1") UIView.Block_animateWithDurationAnimationsCompletion_1 animations, + @ObjCBlock(name = "call_animateWithDurationAnimationsCompletion_2") UIView.Block_animateWithDurationAnimationsCompletion_2 completion); + + @Generated + @Selector("animateWithDuration:delay:options:animations:completion:") + public static native void animateWithDurationDelayOptionsAnimationsCompletion( + double duration, + double delay, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_3") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_animateWithDurationDelayOptionsAnimationsCompletion_4") UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:") + public static native void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion( + double duration, + double delay, + @NFloat double dampingRatio, + @NFloat double velocity, + @NUInt long options, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, + @ObjCBlock(name = "call_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6") UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion); + + @Generated + @Selector("appearance") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearance(); + + @Generated + @ProtocolClassMethod("appearance") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearance() { + return appearance(); + } + + @Generated + @Selector("appearanceForTraitCollection:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollection(UITraitCollection trait); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollection") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollection(UITraitCollection trait) { + return appearanceForTraitCollection(trait); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceForTraitCollection:whenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs) { + return appearanceForTraitCollectionWhenContainedIn(trait, ContainerClass, varargs); + } + + @Generated + @Selector("appearanceForTraitCollection:whenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceForTraitCollectionWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, + NSArray containerTypes) { + return appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait, containerTypes); + } + + @Generated + @Variadic() + @Deprecated + @Selector("appearanceWhenContainedIn:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedIn( + @Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, Object... varargs); + + @Generated + @Deprecated + @ProtocolClassMethod("appearanceWhenContainedIn") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedIn(@Mapped(ObjCObjectMapper.class) UIAppearanceContainer ContainerClass, + Object... varargs) { + return appearanceWhenContainedIn(ContainerClass, varargs); + } + + @Generated + @Selector("appearanceWhenContainedInInstancesOfClasses:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes); + + @Generated + @ProtocolClassMethod("appearanceWhenContainedInInstancesOfClasses") + @MappedReturn(ObjCObjectMapper.class) + public Object _appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes) { + return appearanceWhenContainedInInstancesOfClasses(containerTypes); + } + + @Generated + @Selector("areAnimationsEnabled") + public static native boolean areAnimationsEnabled(); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("beginAnimations:context:") + public static native void beginAnimationsContext(String animationID, VoidPtr context); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("centerOffsets") + @ByValue + public native CGPoint centerOffsets(); + + @Generated + @Selector("chartXMax") + public native double chartXMax(); + + @Generated + @Selector("chartXMin") + public native double chartXMin(); + + @Generated + @Selector("chartYMax") + public native double chartYMax(); + + @Generated + @Selector("chartYMin") + public native double chartYMin(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("clearTextInputContextIdentifier:") + public static native void clearTextInputContextIdentifier(String identifier); + + @Generated + @Selector("commitAnimations") + public static native void commitAnimations(); + + @Generated + @Selector("data") + public native ChartData data(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("getTransformerForAxis:") + public native ChartTransformer getTransformerForAxis(@NInt long forAxis); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("highestVisibleX") + public native double highestVisibleX(); + + @Generated + @Selector("inheritedAnimationDuration") + public static native double inheritedAnimationDuration(); + + @Generated + @Selector("init") + public native ScatterChartView init(); + + @Generated + @Selector("initWithCoder:") + public native ScatterChartView initWithCoder(NSCoder aDecoder); + + @Generated + @Selector("initWithFrame:") + public native ScatterChartView initWithFrame(@ByValue CGRect frame); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isInvertedWithAxis:") + public native boolean isInvertedWithAxis(@NInt long axis); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Selector("layerClass") + public static native Class layerClass(); + + @Generated + @Selector("lowestVisibleX") + public native double lowestVisibleX(); + + @Generated + @Selector("maxHighlightDistance") + @NFloat + public native double maxHighlightDistance(); + + @Generated + @Selector("maxVisibleCount") + @NInt + public native long maxVisibleCount(); + + @Generated + @Selector("modifyAnimationsWithRepeatCount:autoreverses:animations:") + public static native void modifyAnimationsWithRepeatCountAutoreversesAnimations( + @NFloat double count, + boolean autoreverses, + @ObjCBlock(name = "call_modifyAnimationsWithRepeatCountAutoreversesAnimations") UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("performSystemAnimation:onViews:options:animations:completion:") + public static native void performSystemAnimationOnViewsOptionsAnimationsCompletion( + @NUInt long animation, + NSArray views, + @NUInt long options, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_3") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, + @ObjCBlock(name = "call_performSystemAnimationOnViewsOptionsAnimationsCompletion_4") UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("performWithoutAnimation:") + public static native void performWithoutAnimation( + @ObjCBlock(name = "call_performWithoutAnimation") UIView.Block_performWithoutAnimation actionsWithoutAnimation); + + @Generated + @Selector("requiresConstraintBasedLayout") + public static native boolean requiresConstraintBasedLayout(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("scatterData") + public native ScatterChartData scatterData(); + + @Generated + @Selector("setAnimationBeginsFromCurrentState:") + public static native void setAnimationBeginsFromCurrentState(boolean fromCurrentState); + + @Generated + @Selector("setAnimationCurve:") + public static native void setAnimationCurve(@NInt long curve); + + @Generated + @Selector("setAnimationDelay:") + public static native void setAnimationDelay(double delay); + + @Generated + @Selector("setAnimationDelegate:") + public static native void setAnimationDelegate(@Mapped(ObjCObjectMapper.class) Object delegate); + + @Generated + @Selector("setAnimationDidStopSelector:") + public static native void setAnimationDidStopSelector(SEL selector); + + @Generated + @Selector("setAnimationDuration:") + public static native void setAnimationDuration_static(double duration); + + @Generated + @Selector("setAnimationRepeatAutoreverses:") + public static native void setAnimationRepeatAutoreverses(boolean repeatAutoreverses); + + @Generated + @Selector("setAnimationRepeatCount:") + public static native void setAnimationRepeatCount_static(float repeatCount); + + @Generated + @Selector("setAnimationStartDate:") + public static native void setAnimationStartDate(NSDate startDate); + + @Generated + @Selector("setAnimationTransition:forView:cache:") + public static native void setAnimationTransitionForViewCache(@NInt long transition, UIView view, boolean cache); + + @Generated + @Selector("setAnimationWillStartSelector:") + public static native void setAnimationWillStartSelector(SEL selector); + + @Generated + @Selector("setAnimationsEnabled:") + public static native void setAnimationsEnabled(boolean enabled); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("transitionFromView:toView:duration:options:completion:") + public static native void transitionFromViewToViewDurationOptionsCompletion( + UIView fromView, + UIView toView, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionFromViewToViewDurationOptionsCompletion") UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion); + + @Generated + @Selector("transitionWithView:duration:options:animations:completion:") + public static native void transitionWithViewDurationOptionsAnimationsCompletion( + UIView view, + double duration, + @NUInt long options, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_3") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, + @ObjCBlock(name = "call_transitionWithViewDurationOptionsAnimationsCompletion_4") UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttribute(@NInt long attribute); + + @Generated + @Selector("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + @NInt + public static native long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection( + @NInt long semanticContentAttribute, @NInt long layoutDirection); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); + + @Generated + @Selector("xRange") + public native double xRange(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/SquareShapeRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/SquareShapeRenderer.java index 064c8765..2234cd2f 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/SquareShapeRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/SquareShapeRenderer.java @@ -37,144 +37,119 @@ @ObjCClassName("_TtC6Charts19SquareShapeRenderer") @ObjCClassBinding public class SquareShapeRenderer extends NSObject implements IShapeRenderer { - static { - NatJ.register(); - } - - @Generated - protected SquareShapeRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native SquareShapeRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native SquareShapeRenderer init(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - public void renderShapeWithContextDataSetViewPortHandlerPointColor( - CGContextRef context, - IScatterChartDataSet dataSet, - ChartViewPortHandler viewPortHandler, @ByValue CGPoint point, - UIColor color) { - renderShapeWithContextDataSetViewPortHandlerPointColor(context, (Object)dataSet, viewPortHandler, point, color); - } - - @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") - public native void renderShapeWithContextDataSetViewPortHandlerPointColor( - CGContextRef context, - @Mapped(ObjCObjectMapper.class) Object dataSet, - ChartViewPortHandler viewPortHandler, @ByValue CGPoint point, - UIColor color); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected SquareShapeRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native SquareShapeRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native SquareShapeRenderer init(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") + public native void renderShapeWithContextDataSetViewPortHandlerPointColor(CGContextRef context, + @Mapped(ObjCObjectMapper.class) IScatterChartDataSet dataSet, ChartViewPortHandler viewPortHandler, + @ByValue CGPoint point, UIColor color); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/TriangleShapeRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/TriangleShapeRenderer.java index 0b1084c8..f1127898 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/TriangleShapeRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/TriangleShapeRenderer.java @@ -37,144 +37,119 @@ @ObjCClassName("_TtC6Charts21TriangleShapeRenderer") @ObjCClassBinding public class TriangleShapeRenderer extends NSObject implements IShapeRenderer { - static { - NatJ.register(); - } - - @Generated - protected TriangleShapeRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native TriangleShapeRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native TriangleShapeRenderer init(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - public void renderShapeWithContextDataSetViewPortHandlerPointColor( - CGContextRef context, - IScatterChartDataSet dataSet, - ChartViewPortHandler viewPortHandler, @ByValue CGPoint point, - UIColor color) { - renderShapeWithContextDataSetViewPortHandlerPointColor(context, (Object)dataSet, viewPortHandler, point, color); - } - - @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") - public native void renderShapeWithContextDataSetViewPortHandlerPointColor( - CGContextRef context, - @Mapped(ObjCObjectMapper.class) Object dataSet, - ChartViewPortHandler viewPortHandler, @ByValue CGPoint point, - UIColor color); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected TriangleShapeRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native TriangleShapeRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native TriangleShapeRenderer init(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") + public native void renderShapeWithContextDataSetViewPortHandlerPointColor(CGContextRef context, + @Mapped(ObjCObjectMapper.class) IScatterChartDataSet dataSet, ChartViewPortHandler viewPortHandler, + @ByValue CGPoint point, UIColor color); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/XAxisRendererHorizontalBarChart.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/XAxisRendererHorizontalBarChart.java index 4433e900..cecfb433 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/XAxisRendererHorizontalBarChart.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/XAxisRendererHorizontalBarChart.java @@ -37,196 +37,174 @@ @ObjCClassName("_TtC6Charts31XAxisRendererHorizontalBarChart") @ObjCClassBinding public class XAxisRendererHorizontalBarChart extends ChartXAxisRenderer { - static { - NatJ.register(); - } - - @Generated - protected XAxisRendererHorizontalBarChart(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native XAxisRendererHorizontalBarChart alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("computeAxisWithMin:max:inverted:") - public native void computeAxisWithMinMaxInverted(double min, double max, - boolean inverted); - - @Generated - @Selector("computeSize") - public native void computeSize(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawGridLineWithContext:x:y:") - public native void drawGridLineWithContextXY(CGContextRef context, - @NFloat double x, @NFloat double y); - - @Generated - @Selector("drawLabelWithContext:formattedLabel:x:y:attributes:anchor:angleRadians:") - public native void drawLabelWithContextFormattedLabelXYAttributesAnchorAngleRadians( - CGContextRef context, String formattedLabel, @NFloat double x, - @NFloat double y, - NSDictionary attributes, - @ByValue CGPoint anchor, @NFloat double angleRadians); - - @Generated - @Selector("drawLabelsWithContext:pos:anchor:") - public native void drawLabelsWithContextPosAnchor(CGContextRef context, - @NFloat double pos, @ByValue CGPoint anchor); - - @Generated - @Selector("gridClippingRect") - @ByValue - public native CGRect gridClippingRect(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native XAxisRendererHorizontalBarChart init(); - - @Generated - @Selector("initWithViewPortHandler:") - public native XAxisRendererHorizontalBarChart initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:transformer:axis:") - public native XAxisRendererHorizontalBarChart initWithViewPortHandlerTransformerAxis( - ChartViewPortHandler viewPortHandler, ChartTransformer transformer, - ChartAxisBase axis); - - @Generated - @Selector("initWithViewPortHandler:xAxis:transformer:") - public native XAxisRendererHorizontalBarChart initWithViewPortHandlerXAxisTransformer( - ChartViewPortHandler viewPortHandler, ChartXAxis xAxis, - ChartTransformer transformer); - - @Generated - @Selector("initWithViewPortHandler:xAxis:transformer:chart:") - public native XAxisRendererHorizontalBarChart initWithViewPortHandlerXAxisTransformerChart( - ChartViewPortHandler viewPortHandler, ChartXAxis xAxis, - ChartTransformer transformer, BarChartView chart); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("renderAxisLabelsWithContext:") - public native void renderAxisLabelsWithContext(CGContextRef context); - - @Generated - @Selector("renderAxisLineWithContext:") - public native void renderAxisLineWithContext(CGContextRef context); - - @Generated - @Selector("renderLimitLinesWithContext:") - public native void renderLimitLinesWithContext(CGContextRef context); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected XAxisRendererHorizontalBarChart(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native XAxisRendererHorizontalBarChart alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("computeAxisWithMin:max:inverted:") + public native void computeAxisWithMinMaxInverted(double min, double max, boolean inverted); + + @Generated + @Selector("computeSize") + public native void computeSize(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawGridLineWithContext:x:y:") + public native void drawGridLineWithContextXY(CGContextRef context, @NFloat double x, @NFloat double y); + + @Generated + @Selector("drawLabelWithContext:formattedLabel:x:y:attributes:anchor:angleRadians:") + public native void drawLabelWithContextFormattedLabelXYAttributesAnchorAngleRadians(CGContextRef context, + String formattedLabel, @NFloat double x, @NFloat double y, NSDictionary attributes, + @ByValue CGPoint anchor, @NFloat double angleRadians); + + /** + * draws the x-labels on the specified y-position + */ + @Generated + @Selector("drawLabelsWithContext:pos:anchor:") + public native void drawLabelsWithContextPosAnchor(CGContextRef context, @NFloat double pos, @ByValue CGPoint anchor); + + @Generated + @Selector("gridClippingRect") + @ByValue + public native CGRect gridClippingRect(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native XAxisRendererHorizontalBarChart init(); + + @Generated + @Selector("initWithViewPortHandler:") + public native XAxisRendererHorizontalBarChart initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:transformer:axis:") + public native XAxisRendererHorizontalBarChart initWithViewPortHandlerTransformerAxis( + ChartViewPortHandler viewPortHandler, ChartTransformer transformer, ChartAxisBase axis); + + @Generated + @Selector("initWithViewPortHandler:xAxis:transformer:") + public native XAxisRendererHorizontalBarChart initWithViewPortHandlerXAxisTransformer( + ChartViewPortHandler viewPortHandler, ChartXAxis xAxis, ChartTransformer transformer); + + @Generated + @Selector("initWithViewPortHandler:xAxis:transformer:chart:") + public native XAxisRendererHorizontalBarChart initWithViewPortHandlerXAxisTransformerChart( + ChartViewPortHandler viewPortHandler, ChartXAxis xAxis, ChartTransformer transformer, BarChartView chart); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("renderAxisLabelsWithContext:") + public native void renderAxisLabelsWithContext(CGContextRef context); + + @Generated + @Selector("renderAxisLineWithContext:") + public native void renderAxisLineWithContext(CGContextRef context); + + @Generated + @Selector("renderLimitLinesWithContext:") + public native void renderLimitLinesWithContext(CGContextRef context); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/XAxisRendererRadarChart.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/XAxisRendererRadarChart.java index ca046af8..90a79ef6 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/XAxisRendererRadarChart.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/XAxisRendererRadarChart.java @@ -36,188 +36,166 @@ @ObjCClassName("_TtC6Charts23XAxisRendererRadarChart") @ObjCClassBinding public class XAxisRendererRadarChart extends ChartXAxisRenderer { - static { - NatJ.register(); - } - - @Generated - protected XAxisRendererRadarChart(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native XAxisRendererRadarChart alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("chart") - public native RadarChartView chart(); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawLabelWithContext:formattedLabel:x:y:attributes:anchor:angleRadians:") - public native void drawLabelWithContextFormattedLabelXYAttributesAnchorAngleRadians( - CGContextRef context, String formattedLabel, @NFloat double x, - @NFloat double y, - NSDictionary attributes, - @ByValue CGPoint anchor, @NFloat double angleRadians); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native XAxisRendererRadarChart init(); - - @Generated - @Selector("initWithViewPortHandler:") - public native XAxisRendererRadarChart initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:transformer:axis:") - public native XAxisRendererRadarChart initWithViewPortHandlerTransformerAxis( - ChartViewPortHandler viewPortHandler, ChartTransformer transformer, - ChartAxisBase axis); - - @Generated - @Selector("initWithViewPortHandler:xAxis:chart:") - public native XAxisRendererRadarChart initWithViewPortHandlerXAxisChart( - ChartViewPortHandler viewPortHandler, ChartXAxis xAxis, - RadarChartView chart); - - @Generated - @Selector("initWithViewPortHandler:xAxis:transformer:") - public native XAxisRendererRadarChart initWithViewPortHandlerXAxisTransformer( - ChartViewPortHandler viewPortHandler, ChartXAxis xAxis, - ChartTransformer transformer); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("renderAxisLabelsWithContext:") - public native void renderAxisLabelsWithContext(CGContextRef context); - - @Generated - @Selector("renderLimitLinesWithContext:") - public native void renderLimitLinesWithContext(CGContextRef context); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setChart:") - public native void setChart_unsafe(RadarChartView value); - - @Generated - public void setChart(RadarChartView value) { - Object __old = chart(); - if (value != null) { - org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); - } - setChart_unsafe(value); - if (__old != null) { - org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); - } - } - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected XAxisRendererRadarChart(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native XAxisRendererRadarChart alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("chart") + public native RadarChartView chart(); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawLabelWithContext:formattedLabel:x:y:attributes:anchor:angleRadians:") + public native void drawLabelWithContextFormattedLabelXYAttributesAnchorAngleRadians(CGContextRef context, + String formattedLabel, @NFloat double x, @NFloat double y, NSDictionary attributes, + @ByValue CGPoint anchor, @NFloat double angleRadians); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native XAxisRendererRadarChart init(); + + @Generated + @Selector("initWithViewPortHandler:") + public native XAxisRendererRadarChart initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:transformer:axis:") + public native XAxisRendererRadarChart initWithViewPortHandlerTransformerAxis(ChartViewPortHandler viewPortHandler, + ChartTransformer transformer, ChartAxisBase axis); + + @Generated + @Selector("initWithViewPortHandler:xAxis:chart:") + public native XAxisRendererRadarChart initWithViewPortHandlerXAxisChart(ChartViewPortHandler viewPortHandler, + ChartXAxis xAxis, RadarChartView chart); + + @Generated + @Selector("initWithViewPortHandler:xAxis:transformer:") + public native XAxisRendererRadarChart initWithViewPortHandlerXAxisTransformer(ChartViewPortHandler viewPortHandler, + ChartXAxis xAxis, ChartTransformer transformer); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("renderAxisLabelsWithContext:") + public native void renderAxisLabelsWithContext(CGContextRef context); + + @Generated + @Selector("renderLimitLinesWithContext:") + public native void renderLimitLinesWithContext(CGContextRef context); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setChart:") + public native void setChart_unsafe(RadarChartView value); + + @Generated + public void setChart(RadarChartView value) { + Object __old = chart(); + if (value != null) { + org.moe.natj.objc.ObjCRuntime.associateObjCObject(this, value); + } + setChart_unsafe(value); + if (__old != null) { + org.moe.natj.objc.ObjCRuntime.dissociateObjCObject(this, __old); + } + } + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/XShapeRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/XShapeRenderer.java index 8ac57503..2b51fa34 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/XShapeRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/XShapeRenderer.java @@ -37,144 +37,119 @@ @ObjCClassName("_TtC6Charts14XShapeRenderer") @ObjCClassBinding public class XShapeRenderer extends NSObject implements IShapeRenderer { - static { - NatJ.register(); - } - - @Generated - protected XShapeRenderer(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native XShapeRenderer alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native XShapeRenderer init(); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - public void renderShapeWithContextDataSetViewPortHandlerPointColor( - CGContextRef context, - IScatterChartDataSet dataSet, - ChartViewPortHandler viewPortHandler, @ByValue CGPoint point, - UIColor color) { - renderShapeWithContextDataSetViewPortHandlerPointColor(context, (Object)dataSet, viewPortHandler, point, color); - } - - @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") - public native void renderShapeWithContextDataSetViewPortHandlerPointColor( - CGContextRef context, - @Mapped(ObjCObjectMapper.class) Object dataSet, - ChartViewPortHandler viewPortHandler, @ByValue CGPoint point, - UIColor color); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected XShapeRenderer(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native XShapeRenderer alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native XShapeRenderer init(); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") + public native void renderShapeWithContextDataSetViewPortHandlerPointColor(CGContextRef context, + @Mapped(ObjCObjectMapper.class) IScatterChartDataSet dataSet, ChartViewPortHandler viewPortHandler, + @ByValue CGPoint point, UIColor color); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/YAxisRendererHorizontalBarChart.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/YAxisRendererHorizontalBarChart.java index d9a805c4..4beceb12 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/YAxisRendererHorizontalBarChart.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/YAxisRendererHorizontalBarChart.java @@ -37,187 +37,177 @@ @ObjCClassName("_TtC6Charts31YAxisRendererHorizontalBarChart") @ObjCClassBinding public class YAxisRendererHorizontalBarChart extends ChartYAxisRenderer { - static { - NatJ.register(); - } - - @Generated - protected YAxisRendererHorizontalBarChart(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native YAxisRendererHorizontalBarChart alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("computeAxisWithMin:max:inverted:") - public native void computeAxisWithMinMaxInverted(double min, double max, - boolean inverted); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("drawGridLineWithContext:position:") - public native void drawGridLineWithContextPosition(CGContextRef context, - @ByValue CGPoint position); - - @Generated - @Selector("drawYLabelsWithContext:fixedPosition:positions:offset:") - public native void drawYLabelsWithContextFixedPositionPositionsOffset( - CGContextRef context, @NFloat double fixedPosition, - NSArray positions, @NFloat double offset); - - @Generated - @Selector("drawZeroLineWithContext:") - public native void drawZeroLineWithContext(CGContextRef context); - - @Generated - @Selector("gridClippingRect") - @ByValue - public native CGRect gridClippingRect(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native YAxisRendererHorizontalBarChart init(); - - @Generated - @Selector("initWithViewPortHandler:") - public native YAxisRendererHorizontalBarChart initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:transformer:axis:") - public native YAxisRendererHorizontalBarChart initWithViewPortHandlerTransformerAxis( - ChartViewPortHandler viewPortHandler, ChartTransformer transformer, - ChartAxisBase axis); - - @Generated - @Selector("initWithViewPortHandler:yAxis:transformer:") - public native YAxisRendererHorizontalBarChart initWithViewPortHandlerYAxisTransformer( - ChartViewPortHandler viewPortHandler, ChartYAxis yAxis, - ChartTransformer transformer); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("renderAxisLabelsWithContext:") - public native void renderAxisLabelsWithContext(CGContextRef context); - - @Generated - @Selector("renderAxisLineWithContext:") - public native void renderAxisLineWithContext(CGContextRef context); - - @Generated - @Selector("renderLimitLinesWithContext:") - public native void renderLimitLinesWithContext(CGContextRef context); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("transformedPositions") - public native NSArray transformedPositions(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected YAxisRendererHorizontalBarChart(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native YAxisRendererHorizontalBarChart alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + /** + * Computes the axis values. + */ + @Generated + @Selector("computeAxisWithMin:max:inverted:") + public native void computeAxisWithMinMaxInverted(double min, double max, boolean inverted); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("drawGridLineWithContext:position:") + public native void drawGridLineWithContextPosition(CGContextRef context, @ByValue CGPoint position); + + /** + * draws the y-labels on the specified x-position + */ + @Generated + @Selector("drawYLabelsWithContext:fixedPosition:positions:offset:") + public native void drawYLabelsWithContextFixedPositionPositionsOffset(CGContextRef context, + @NFloat double fixedPosition, NSArray positions, @NFloat double offset); + + /** + * Draws the zero line at the specified position. + */ + @Generated + @Selector("drawZeroLineWithContext:") + public native void drawZeroLineWithContext(CGContextRef context); + + @Generated + @Selector("gridClippingRect") + @ByValue + public native CGRect gridClippingRect(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native YAxisRendererHorizontalBarChart init(); + + @Generated + @Selector("initWithViewPortHandler:") + public native YAxisRendererHorizontalBarChart initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:transformer:axis:") + public native YAxisRendererHorizontalBarChart initWithViewPortHandlerTransformerAxis( + ChartViewPortHandler viewPortHandler, ChartTransformer transformer, ChartAxisBase axis); + + @Generated + @Selector("initWithViewPortHandler:yAxis:transformer:") + public native YAxisRendererHorizontalBarChart initWithViewPortHandlerYAxisTransformer( + ChartViewPortHandler viewPortHandler, ChartYAxis yAxis, ChartTransformer transformer); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + /** + * draws the y-axis labels to the screen + */ + @Generated + @Selector("renderAxisLabelsWithContext:") + public native void renderAxisLabelsWithContext(CGContextRef context); + + @Generated + @Selector("renderAxisLineWithContext:") + public native void renderAxisLineWithContext(CGContextRef context); + + @Generated + @Selector("renderLimitLinesWithContext:") + public native void renderLimitLinesWithContext(CGContextRef context); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("transformedPositions") + public native NSArray transformedPositions(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/YAxisRendererRadarChart.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/YAxisRendererRadarChart.java index 6b909193..297d0241 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/YAxisRendererRadarChart.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/YAxisRendererRadarChart.java @@ -32,164 +32,144 @@ @ObjCClassName("_TtC6Charts23YAxisRendererRadarChart") @ObjCClassBinding public class YAxisRendererRadarChart extends ChartYAxisRenderer { - static { - NatJ.register(); - } - - @Generated - protected YAxisRendererRadarChart(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native YAxisRendererRadarChart alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("computeAxisValuesWithMin:max:") - public native void computeAxisValuesWithMinMax(double yMin, double yMax); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native YAxisRendererRadarChart init(); - - @Generated - @Selector("initWithViewPortHandler:") - public native YAxisRendererRadarChart initWithViewPortHandler( - ChartViewPortHandler viewPortHandler); - - @Generated - @Selector("initWithViewPortHandler:transformer:axis:") - public native YAxisRendererRadarChart initWithViewPortHandlerTransformerAxis( - ChartViewPortHandler viewPortHandler, ChartTransformer transformer, - ChartAxisBase axis); - - @Generated - @Selector("initWithViewPortHandler:yAxis:chart:") - public native YAxisRendererRadarChart initWithViewPortHandlerYAxisChart( - ChartViewPortHandler viewPortHandler, ChartYAxis yAxis, - RadarChartView chart); - - @Generated - @Selector("initWithViewPortHandler:yAxis:transformer:") - public native YAxisRendererRadarChart initWithViewPortHandlerYAxisTransformer( - ChartViewPortHandler viewPortHandler, ChartYAxis yAxis, - ChartTransformer transformer); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("renderAxisLabelsWithContext:") - public native void renderAxisLabelsWithContext(CGContextRef context); - - @Generated - @Selector("renderLimitLinesWithContext:") - public native void renderLimitLinesWithContext(CGContextRef context); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected YAxisRendererRadarChart(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native YAxisRendererRadarChart alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("computeAxisValuesWithMin:max:") + public native void computeAxisValuesWithMinMax(double yMin, double yMax); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native YAxisRendererRadarChart init(); + + @Generated + @Selector("initWithViewPortHandler:") + public native YAxisRendererRadarChart initWithViewPortHandler(ChartViewPortHandler viewPortHandler); + + @Generated + @Selector("initWithViewPortHandler:transformer:axis:") + public native YAxisRendererRadarChart initWithViewPortHandlerTransformerAxis(ChartViewPortHandler viewPortHandler, + ChartTransformer transformer, ChartAxisBase axis); + + @Generated + @Selector("initWithViewPortHandler:yAxis:chart:") + public native YAxisRendererRadarChart initWithViewPortHandlerYAxisChart(ChartViewPortHandler viewPortHandler, + ChartYAxis yAxis, RadarChartView chart); + + @Generated + @Selector("initWithViewPortHandler:yAxis:transformer:") + public native YAxisRendererRadarChart initWithViewPortHandlerYAxisTransformer(ChartViewPortHandler viewPortHandler, + ChartYAxis yAxis, ChartTransformer transformer); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("renderAxisLabelsWithContext:") + public native void renderAxisLabelsWithContext(CGContextRef context); + + @Generated + @Selector("renderLimitLinesWithContext:") + public native void renderLimitLinesWithContext(CGContextRef context); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ZoomChartViewJob.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ZoomChartViewJob.java index 2586b187..f08bf9d7 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ZoomChartViewJob.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/ZoomChartViewJob.java @@ -30,146 +30,129 @@ @Runtime(ObjCRuntime.class) @ObjCClassBinding public class ZoomChartViewJob extends ChartViewPortJob { - static { - NatJ.register(); - } - - @Generated - protected ZoomChartViewJob(Pointer peer) { - super(peer); - } - - @Generated - @Selector("accessInstanceVariablesDirectly") - public static native boolean accessInstanceVariablesDirectly(); - - @Generated - @Owned - @Selector("alloc") - public static native ZoomChartViewJob alloc(); - - @Generated - @Selector("allocWithZone:") - @MappedReturn(ObjCObjectMapper.class) - public static native Object allocWithZone(VoidPtr zone); - - @Generated - @Selector("automaticallyNotifiesObserversForKey:") - public static native boolean automaticallyNotifiesObserversForKey(String key); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:") - public static native void cancelPreviousPerformRequestsWithTarget( - @Mapped(ObjCObjectMapper.class) Object aTarget); - - @Generated - @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") - public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( - @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, - @Mapped(ObjCObjectMapper.class) Object anArgument); - - @Generated - @Selector("class") - public static native Class class_objc_static(); - - @Generated - @Selector("classFallbacksForKeyedArchiver") - public static native NSArray classFallbacksForKeyedArchiver(); - - @Generated - @Selector("classForKeyedUnarchiver") - public static native Class classForKeyedUnarchiver(); - - @Generated - @Selector("debugDescription") - public static native String debugDescription_static(); - - @Generated - @Selector("description") - public static native String description_static(); - - @Generated - @Selector("doJob") - public native void doJob(); - - @Generated - @Selector("hash") - @NUInt - public static native long hash_static(); - - @Generated - @Selector("init") - public native ZoomChartViewJob init(); - - @Generated - @Selector("initWithViewPortHandler:scaleX:scaleY:xValue:yValue:transformer:axis:view:") - public native ZoomChartViewJob initWithViewPortHandlerScaleXScaleYXValueYValueTransformerAxisView( - ChartViewPortHandler viewPortHandler, @NFloat double scaleX, - @NFloat double scaleY, double xValue, double yValue, - ChartTransformer transformer, @NInt long axis, ChartViewBase view); - - @Generated - @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:") - public native ZoomChartViewJob initWithViewPortHandlerXValueYValueTransformerView( - ChartViewPortHandler viewPortHandler, double xValue, double yValue, - ChartTransformer transformer, ChartViewBase view); - - @Generated - @Selector("initialize") - public static native void initialize_static(); - - @Generated - @Selector("instanceMethodForSelector:") - @FunctionPtr(name = "call_instanceMethodForSelector_ret") - public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector( - SEL aSelector); - - @Generated - @Selector("instanceMethodSignatureForSelector:") - public static native NSMethodSignature instanceMethodSignatureForSelector( - SEL aSelector); - - @Generated - @Selector("instancesRespondToSelector:") - public static native boolean instancesRespondToSelector(SEL aSelector); - - @Generated - @Selector("isSubclassOfClass:") - public static native boolean isSubclassOfClass(Class aClass); - - @Generated - @Selector("keyPathsForValuesAffectingValueForKey:") - public static native NSSet keyPathsForValuesAffectingValueForKey( - String key); - - @Generated - @Selector("load") - public static native void load_objc_static(); - - @Generated - @Owned - @Selector("new") - @MappedReturn(ObjCObjectMapper.class) - public static native Object new_objc(); - - @Generated - @Selector("resolveClassMethod:") - public static native boolean resolveClassMethod(SEL sel); - - @Generated - @Selector("resolveInstanceMethod:") - public static native boolean resolveInstanceMethod(SEL sel); - - @Generated - @Selector("setVersion:") - public static native void setVersion(@NInt long aVersion); - - @Generated - @Selector("superclass") - public static native Class superclass_static(); - - @Generated - @Selector("version") - @NInt - public static native long version_static(); + static { + NatJ.register(); + } + + @Generated + protected ZoomChartViewJob(Pointer peer) { + super(peer); + } + + @Generated + @Selector("accessInstanceVariablesDirectly") + public static native boolean accessInstanceVariablesDirectly(); + + @Generated + @Owned + @Selector("alloc") + public static native ZoomChartViewJob alloc(); + + @Generated + @Selector("allocWithZone:") + @MappedReturn(ObjCObjectMapper.class) + public static native Object allocWithZone(VoidPtr zone); + + @Generated + @Selector("automaticallyNotifiesObserversForKey:") + public static native boolean automaticallyNotifiesObserversForKey(String key); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:") + public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); + + @Generated + @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") + public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( + @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, + @Mapped(ObjCObjectMapper.class) Object anArgument); + + @Generated + @Selector("classFallbacksForKeyedArchiver") + public static native NSArray classFallbacksForKeyedArchiver(); + + @Generated + @Selector("classForKeyedUnarchiver") + public static native Class classForKeyedUnarchiver(); + + @Generated + @Selector("debugDescription") + public static native String debugDescription_static(); + + @Generated + @Selector("description") + public static native String description_static(); + + @Generated + @Selector("doJob") + public native void doJob(); + + @Generated + @Selector("hash") + @NUInt + public static native long hash_static(); + + @Generated + @Selector("init") + public native ZoomChartViewJob init(); + + @Generated + @Selector("initWithViewPortHandler:scaleX:scaleY:xValue:yValue:transformer:axis:view:") + public native ZoomChartViewJob initWithViewPortHandlerScaleXScaleYXValueYValueTransformerAxisView( + ChartViewPortHandler viewPortHandler, @NFloat double scaleX, @NFloat double scaleY, double xValue, + double yValue, ChartTransformer transformer, @NInt long axis, ChartViewBase view); + + @Generated + @Selector("initWithViewPortHandler:xValue:yValue:transformer:view:") + public native ZoomChartViewJob initWithViewPortHandlerXValueYValueTransformerView( + ChartViewPortHandler viewPortHandler, double xValue, double yValue, ChartTransformer transformer, + ChartViewBase view); + + @Generated + @Selector("instanceMethodForSelector:") + @FunctionPtr(name = "call_instanceMethodForSelector_ret") + public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); + + @Generated + @Selector("instanceMethodSignatureForSelector:") + public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); + + @Generated + @Selector("instancesRespondToSelector:") + public static native boolean instancesRespondToSelector(SEL aSelector); + + @Generated + @Selector("isSubclassOfClass:") + public static native boolean isSubclassOfClass(Class aClass); + + @Generated + @Selector("keyPathsForValuesAffectingValueForKey:") + public static native NSSet keyPathsForValuesAffectingValueForKey(String key); + + @Generated + @Owned + @Selector("new") + @MappedReturn(ObjCObjectMapper.class) + public static native Object new_objc(); + + @Generated + @Selector("resolveClassMethod:") + public static native boolean resolveClassMethod(SEL sel); + + @Generated + @Selector("resolveInstanceMethod:") + public static native boolean resolveInstanceMethod(SEL sel); + + @Generated + @Selector("setVersion:") + public static native void setVersion(@NInt long aVersion); + + @Generated + @Selector("superclass") + public static native Class superclass_static(); + + @Generated + @Selector("version") + @NInt + public static native long version_static(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/AxisDependency.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/AxisDependency.java index f0fc8317..91f582c4 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/AxisDependency.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/AxisDependency.java @@ -2,18 +2,18 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; +/** + * Enum that specifies the axis a DataSet should be plotted against, either Left or Right. + */ @Generated public final class AxisDependency { - @Generated - private AxisDependency() { - } + @Generated + private AxisDependency() { + } - @Generated - @NInt - public static final long Left = 0x0000000000000000L; - @Generated - @NInt - public static final long Right = 0x0000000000000001L; + @Generated + public static final long Left = 0x0000000000000000L; + @Generated + public static final long Right = 0x0000000000000001L; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartDataSetRounding.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartDataSetRounding.java index ba29fd0a..f048de9b 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartDataSetRounding.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartDataSetRounding.java @@ -2,21 +2,20 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; +/** + * Determines how to round DataSet index values for ChartDataSet.entryIndex(x, rounding) when an exact x-value is not found. + */ @Generated public final class ChartDataSetRounding { - @Generated - private ChartDataSetRounding() { - } + @Generated + private ChartDataSetRounding() { + } - @Generated - @NInt - public static final long Up = 0x0000000000000000L; - @Generated - @NInt - public static final long Down = 0x0000000000000001L; - @Generated - @NInt - public static final long Closest = 0x0000000000000002L; + @Generated + public static final long Up = 0x0000000000000000L; + @Generated + public static final long Down = 0x0000000000000001L; + @Generated + public static final long Closest = 0x0000000000000002L; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartEasingOption.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartEasingOption.java index 8dc99dc1..007d84d5 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartEasingOption.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartEasingOption.java @@ -2,105 +2,73 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; @Generated public final class ChartEasingOption { - @Generated - private ChartEasingOption() { - } + @Generated + private ChartEasingOption() { + } - @Generated - @NInt - public static final long Linear = 0x0000000000000000L; - @Generated - @NInt - public static final long EaseInQuad = 0x0000000000000001L; - @Generated - @NInt - public static final long EaseOutQuad = 0x0000000000000002L; - @Generated - @NInt - public static final long EaseInOutQuad = 0x0000000000000003L; - @Generated - @NInt - public static final long EaseInCubic = 0x0000000000000004L; - @Generated - @NInt - public static final long EaseOutCubic = 0x0000000000000005L; - @Generated - @NInt - public static final long EaseInOutCubic = 0x0000000000000006L; - @Generated - @NInt - public static final long EaseInQuart = 0x0000000000000007L; - @Generated - @NInt - public static final long EaseOutQuart = 0x0000000000000008L; - @Generated - @NInt - public static final long EaseInOutQuart = 0x0000000000000009L; - @Generated - @NInt - public static final long EaseInQuint = 0x000000000000000AL; - @Generated - @NInt - public static final long EaseOutQuint = 0x000000000000000BL; - @Generated - @NInt - public static final long EaseInOutQuint = 0x000000000000000CL; - @Generated - @NInt - public static final long EaseInSine = 0x000000000000000DL; - @Generated - @NInt - public static final long EaseOutSine = 0x000000000000000EL; - @Generated - @NInt - public static final long EaseInOutSine = 0x000000000000000FL; - @Generated - @NInt - public static final long EaseInExpo = 0x0000000000000010L; - @Generated - @NInt - public static final long EaseOutExpo = 0x0000000000000011L; - @Generated - @NInt - public static final long EaseInOutExpo = 0x0000000000000012L; - @Generated - @NInt - public static final long EaseInCirc = 0x0000000000000013L; - @Generated - @NInt - public static final long EaseOutCirc = 0x0000000000000014L; - @Generated - @NInt - public static final long EaseInOutCirc = 0x0000000000000015L; - @Generated - @NInt - public static final long EaseInElastic = 0x0000000000000016L; - @Generated - @NInt - public static final long EaseOutElastic = 0x0000000000000017L; - @Generated - @NInt - public static final long EaseInOutElastic = 0x0000000000000018L; - @Generated - @NInt - public static final long EaseInBack = 0x0000000000000019L; - @Generated - @NInt - public static final long EaseOutBack = 0x000000000000001AL; - @Generated - @NInt - public static final long EaseInOutBack = 0x000000000000001BL; - @Generated - @NInt - public static final long EaseInBounce = 0x000000000000001CL; - @Generated - @NInt - public static final long EaseOutBounce = 0x000000000000001DL; - @Generated - @NInt - public static final long EaseInOutBounce = 0x000000000000001EL; + @Generated + public static final long Linear = 0x0000000000000000L; + @Generated + public static final long EaseInQuad = 0x0000000000000001L; + @Generated + public static final long EaseOutQuad = 0x0000000000000002L; + @Generated + public static final long EaseInOutQuad = 0x0000000000000003L; + @Generated + public static final long EaseInCubic = 0x0000000000000004L; + @Generated + public static final long EaseOutCubic = 0x0000000000000005L; + @Generated + public static final long EaseInOutCubic = 0x0000000000000006L; + @Generated + public static final long EaseInQuart = 0x0000000000000007L; + @Generated + public static final long EaseOutQuart = 0x0000000000000008L; + @Generated + public static final long EaseInOutQuart = 0x0000000000000009L; + @Generated + public static final long EaseInQuint = 0x000000000000000AL; + @Generated + public static final long EaseOutQuint = 0x000000000000000BL; + @Generated + public static final long EaseInOutQuint = 0x000000000000000CL; + @Generated + public static final long EaseInSine = 0x000000000000000DL; + @Generated + public static final long EaseOutSine = 0x000000000000000EL; + @Generated + public static final long EaseInOutSine = 0x000000000000000FL; + @Generated + public static final long EaseInExpo = 0x0000000000000010L; + @Generated + public static final long EaseOutExpo = 0x0000000000000011L; + @Generated + public static final long EaseInOutExpo = 0x0000000000000012L; + @Generated + public static final long EaseInCirc = 0x0000000000000013L; + @Generated + public static final long EaseOutCirc = 0x0000000000000014L; + @Generated + public static final long EaseInOutCirc = 0x0000000000000015L; + @Generated + public static final long EaseInElastic = 0x0000000000000016L; + @Generated + public static final long EaseOutElastic = 0x0000000000000017L; + @Generated + public static final long EaseInOutElastic = 0x0000000000000018L; + @Generated + public static final long EaseInBack = 0x0000000000000019L; + @Generated + public static final long EaseOutBack = 0x000000000000001AL; + @Generated + public static final long EaseInOutBack = 0x000000000000001BL; + @Generated + public static final long EaseInBounce = 0x000000000000001CL; + @Generated + public static final long EaseOutBounce = 0x000000000000001DL; + @Generated + public static final long EaseInOutBounce = 0x000000000000001EL; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartFillType.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartFillType.java index c7d95ab0..05bf69a9 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartFillType.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartFillType.java @@ -2,33 +2,25 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; @Generated public final class ChartFillType { - @Generated - private ChartFillType() { - } + @Generated + private ChartFillType() { + } - @Generated - @NInt - public static final long Empty = 0x0000000000000000L; - @Generated - @NInt - public static final long Color = 0x0000000000000001L; - @Generated - @NInt - public static final long LinearGradient = 0x0000000000000002L; - @Generated - @NInt - public static final long RadialGradient = 0x0000000000000003L; - @Generated - @NInt - public static final long Image = 0x0000000000000004L; - @Generated - @NInt - public static final long TiledImage = 0x0000000000000005L; - @Generated - @NInt - public static final long Layer = 0x0000000000000006L; + @Generated + public static final long Empty = 0x0000000000000000L; + @Generated + public static final long Color = 0x0000000000000001L; + @Generated + public static final long LinearGradient = 0x0000000000000002L; + @Generated + public static final long RadialGradient = 0x0000000000000003L; + @Generated + public static final long Image = 0x0000000000000004L; + @Generated + public static final long TiledImage = 0x0000000000000005L; + @Generated + public static final long Layer = 0x0000000000000006L; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendDirection.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendDirection.java index 6439313d..c8e87b18 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendDirection.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendDirection.java @@ -2,18 +2,15 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; @Generated public final class ChartLegendDirection { - @Generated - private ChartLegendDirection() { - } + @Generated + private ChartLegendDirection() { + } - @Generated - @NInt - public static final long LeftToRight = 0x0000000000000000L; - @Generated - @NInt - public static final long RightToLeft = 0x0000000000000001L; + @Generated + public static final long LeftToRight = 0x0000000000000000L; + @Generated + public static final long RightToLeft = 0x0000000000000001L; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendForm.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendForm.java index 9793ecc1..49f5581e 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendForm.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendForm.java @@ -2,30 +2,41 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; @Generated public final class ChartLegendForm { - @Generated - private ChartLegendForm() { - } + @Generated + private ChartLegendForm() { + } - @Generated - @NInt - public static final long None = 0x0000000000000000L; - @Generated - @NInt - public static final long Empty = 0x0000000000000001L; - @Generated - @NInt - public static final long Default = 0x0000000000000002L; - @Generated - @NInt - public static final long Square = 0x0000000000000003L; - @Generated - @NInt - public static final long Circle = 0x0000000000000004L; - @Generated - @NInt - public static final long Line = 0x0000000000000005L; + /** + * Avoid drawing a form + */ + @Generated + public static final long None = 0x0000000000000000L; + /** + * Do not draw the a form, but leave space for it + */ + @Generated + public static final long Empty = 0x0000000000000001L; + /** + * Use default (default dataset’s form to the legend’s form) + */ + @Generated + public static final long Default = 0x0000000000000002L; + /** + * Draw a square + */ + @Generated + public static final long Square = 0x0000000000000003L; + /** + * Draw a circle + */ + @Generated + public static final long Circle = 0x0000000000000004L; + /** + * Draw a horizontal line + */ + @Generated + public static final long Line = 0x0000000000000005L; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendHorizontalAlignment.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendHorizontalAlignment.java index 70a5866f..4e26a7cd 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendHorizontalAlignment.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendHorizontalAlignment.java @@ -2,21 +2,17 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; @Generated public final class ChartLegendHorizontalAlignment { - @Generated - private ChartLegendHorizontalAlignment() { - } + @Generated + private ChartLegendHorizontalAlignment() { + } - @Generated - @NInt - public static final long Left = 0x0000000000000000L; - @Generated - @NInt - public static final long Center = 0x0000000000000001L; - @Generated - @NInt - public static final long Right = 0x0000000000000002L; + @Generated + public static final long Left = 0x0000000000000000L; + @Generated + public static final long Center = 0x0000000000000001L; + @Generated + public static final long Right = 0x0000000000000002L; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendOrientation.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendOrientation.java index 6a89eea4..cf0df848 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendOrientation.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendOrientation.java @@ -2,18 +2,15 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; @Generated public final class ChartLegendOrientation { - @Generated - private ChartLegendOrientation() { - } + @Generated + private ChartLegendOrientation() { + } - @Generated - @NInt - public static final long Horizontal = 0x0000000000000000L; - @Generated - @NInt - public static final long Vertical = 0x0000000000000001L; + @Generated + public static final long Horizontal = 0x0000000000000000L; + @Generated + public static final long Vertical = 0x0000000000000001L; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendPosition.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendPosition.java deleted file mode 100644 index 5125b8ea..00000000 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendPosition.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.moe.samples.simplechart.charts.enums; - - -import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; - -@Generated -public final class ChartLegendPosition { - @Generated - private ChartLegendPosition() { - } - - @Generated - @NInt - public static final long RightOfChart = 0x0000000000000000L; - @Generated - @NInt - public static final long RightOfChartCenter = 0x0000000000000001L; - @Generated - @NInt - public static final long RightOfChartInside = 0x0000000000000002L; - @Generated - @NInt - public static final long LeftOfChart = 0x0000000000000003L; - @Generated - @NInt - public static final long LeftOfChartCenter = 0x0000000000000004L; - @Generated - @NInt - public static final long LeftOfChartInside = 0x0000000000000005L; - @Generated - @NInt - public static final long BelowChartLeft = 0x0000000000000006L; - @Generated - @NInt - public static final long BelowChartRight = 0x0000000000000007L; - @Generated - @NInt - public static final long BelowChartCenter = 0x0000000000000008L; - @Generated - @NInt - public static final long AboveChartLeft = 0x0000000000000009L; - @Generated - @NInt - public static final long AboveChartRight = 0x000000000000000AL; - @Generated - @NInt - public static final long AboveChartCenter = 0x000000000000000BL; - @Generated - @NInt - public static final long PiechartCenter = 0x000000000000000CL; -} \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendVerticalAlignment.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendVerticalAlignment.java index dba8c8bf..09c87c3a 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendVerticalAlignment.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLegendVerticalAlignment.java @@ -2,21 +2,17 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; @Generated public final class ChartLegendVerticalAlignment { - @Generated - private ChartLegendVerticalAlignment() { - } + @Generated + private ChartLegendVerticalAlignment() { + } - @Generated - @NInt - public static final long Top = 0x0000000000000000L; - @Generated - @NInt - public static final long Center = 0x0000000000000001L; - @Generated - @NInt - public static final long Bottom = 0x0000000000000002L; + @Generated + public static final long Top = 0x0000000000000000L; + @Generated + public static final long Center = 0x0000000000000001L; + @Generated + public static final long Bottom = 0x0000000000000002L; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLimitLabelPosition.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLimitLabelPosition.java index 8289787a..0111e745 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLimitLabelPosition.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ChartLimitLabelPosition.java @@ -2,24 +2,19 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; @Generated public final class ChartLimitLabelPosition { - @Generated - private ChartLimitLabelPosition() { - } + @Generated + private ChartLimitLabelPosition() { + } - @Generated - @NInt - public static final long LeftTop = 0x0000000000000000L; - @Generated - @NInt - public static final long LeftBottom = 0x0000000000000001L; - @Generated - @NInt - public static final long RightTop = 0x0000000000000002L; - @Generated - @NInt - public static final long RightBottom = 0x0000000000000003L; + @Generated + public static final long TopLeft = 0x0000000000000000L; + @Generated + public static final long TopRight = 0x0000000000000001L; + @Generated + public static final long BottomLeft = 0x0000000000000002L; + @Generated + public static final long BottomRight = 0x0000000000000003L; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/CombinedChartDrawOrder.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/CombinedChartDrawOrder.java index e95203a0..b2038488 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/CombinedChartDrawOrder.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/CombinedChartDrawOrder.java @@ -2,27 +2,24 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; +/** + * enum that allows to specify the order in which the different data objects for the combined-chart are drawn + */ @Generated public final class CombinedChartDrawOrder { - @Generated - private CombinedChartDrawOrder() { - } + @Generated + private CombinedChartDrawOrder() { + } - @Generated - @NInt - public static final long Bar = 0x0000000000000000L; - @Generated - @NInt - public static final long Bubble = 0x0000000000000001L; - @Generated - @NInt - public static final long Line = 0x0000000000000002L; - @Generated - @NInt - public static final long Candle = 0x0000000000000003L; - @Generated - @NInt - public static final long Scatter = 0x0000000000000004L; + @Generated + public static final long Bar = 0x0000000000000000L; + @Generated + public static final long Bubble = 0x0000000000000001L; + @Generated + public static final long Line = 0x0000000000000002L; + @Generated + public static final long Candle = 0x0000000000000003L; + @Generated + public static final long Scatter = 0x0000000000000004L; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/LineChartMode.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/LineChartMode.java index 27ea9129..7be7be39 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/LineChartMode.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/LineChartMode.java @@ -2,24 +2,19 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; @Generated public final class LineChartMode { - @Generated - private LineChartMode() { - } + @Generated + private LineChartMode() { + } - @Generated - @NInt - public static final long Linear = 0x0000000000000000L; - @Generated - @NInt - public static final long Stepped = 0x0000000000000001L; - @Generated - @NInt - public static final long CubicBezier = 0x0000000000000002L; - @Generated - @NInt - public static final long HorizontalBezier = 0x0000000000000003L; + @Generated + public static final long Linear = 0x0000000000000000L; + @Generated + public static final long Stepped = 0x0000000000000001L; + @Generated + public static final long CubicBezier = 0x0000000000000002L; + @Generated + public static final long HorizontalBezier = 0x0000000000000003L; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/PieChartValuePosition.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/PieChartValuePosition.java index 42bea8d3..0bf3b082 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/PieChartValuePosition.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/PieChartValuePosition.java @@ -2,18 +2,15 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; @Generated public final class PieChartValuePosition { - @Generated - private PieChartValuePosition() { - } + @Generated + private PieChartValuePosition() { + } - @Generated - @NInt - public static final long InsideSlice = 0x0000000000000000L; - @Generated - @NInt - public static final long OutsideSlice = 0x0000000000000001L; + @Generated + public static final long InsideSlice = 0x0000000000000000L; + @Generated + public static final long OutsideSlice = 0x0000000000000001L; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ScatterShape.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ScatterShape.java index 8443976e..b84f5069 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ScatterShape.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/ScatterShape.java @@ -2,33 +2,25 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; @Generated public final class ScatterShape { - @Generated - private ScatterShape() { - } + @Generated + private ScatterShape() { + } - @Generated - @NInt - public static final long Square = 0x0000000000000000L; - @Generated - @NInt - public static final long Circle = 0x0000000000000001L; - @Generated - @NInt - public static final long Triangle = 0x0000000000000002L; - @Generated - @NInt - public static final long Cross = 0x0000000000000003L; - @Generated - @NInt - public static final long X = 0x0000000000000004L; - @Generated - @NInt - public static final long ChevronUp = 0x0000000000000005L; - @Generated - @NInt - public static final long ChevronDown = 0x0000000000000006L; + @Generated + public static final long Square = 0x0000000000000000L; + @Generated + public static final long Circle = 0x0000000000000001L; + @Generated + public static final long Triangle = 0x0000000000000002L; + @Generated + public static final long Cross = 0x0000000000000003L; + @Generated + public static final long X = 0x0000000000000004L; + @Generated + public static final long ChevronUp = 0x0000000000000005L; + @Generated + public static final long ChevronDown = 0x0000000000000006L; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/XAxisLabelPosition.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/XAxisLabelPosition.java index e11b22ee..0750b511 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/XAxisLabelPosition.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/XAxisLabelPosition.java @@ -2,27 +2,21 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; @Generated public final class XAxisLabelPosition { - @Generated - private XAxisLabelPosition() { - } + @Generated + private XAxisLabelPosition() { + } - @Generated - @NInt - public static final long Top = 0x0000000000000000L; - @Generated - @NInt - public static final long Bottom = 0x0000000000000001L; - @Generated - @NInt - public static final long BothSided = 0x0000000000000002L; - @Generated - @NInt - public static final long TopInside = 0x0000000000000003L; - @Generated - @NInt - public static final long BottomInside = 0x0000000000000004L; + @Generated + public static final long Top = 0x0000000000000000L; + @Generated + public static final long Bottom = 0x0000000000000001L; + @Generated + public static final long BothSided = 0x0000000000000002L; + @Generated + public static final long TopInside = 0x0000000000000003L; + @Generated + public static final long BottomInside = 0x0000000000000004L; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/YAxisLabelPosition.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/YAxisLabelPosition.java index c1f17039..dcb9198b 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/YAxisLabelPosition.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/enums/YAxisLabelPosition.java @@ -2,18 +2,15 @@ import org.moe.natj.general.ann.Generated; -import org.moe.natj.general.ann.NInt; @Generated public final class YAxisLabelPosition { - @Generated - private YAxisLabelPosition() { - } + @Generated + private YAxisLabelPosition() { + } - @Generated - @NInt - public static final long OutsideChart = 0x0000000000000000L; - @Generated - @NInt - public static final long InsideChart = 0x0000000000000001L; + @Generated + public static final long OutsideChart = 0x0000000000000000L; + @Generated + public static final long InsideChart = 0x0000000000000001L; } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/BarChartDataProvider.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/BarChartDataProvider.java index b012cdcb..a9a547a7 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/BarChartDataProvider.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/BarChartDataProvider.java @@ -15,21 +15,20 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolSourceName("BarChartDataProvider") @ObjCProtocolName("_TtP6Charts20BarChartDataProvider_") -public interface BarChartDataProvider extends - BarLineScatterCandleBubbleChartDataProvider { - @Generated - @Selector("barData") - BarChartData barData(); +public interface BarChartDataProvider extends BarLineScatterCandleBubbleChartDataProvider { + @Generated + @Selector("barData") + BarChartData barData(); - @Generated - @Selector("isDrawBarShadowEnabled") - boolean isDrawBarShadowEnabled(); + @Generated + @Selector("isDrawBarShadowEnabled") + boolean isDrawBarShadowEnabled(); - @Generated - @Selector("isDrawValueAboveBarEnabled") - boolean isDrawValueAboveBarEnabled(); + @Generated + @Selector("isDrawValueAboveBarEnabled") + boolean isDrawValueAboveBarEnabled(); - @Generated - @Selector("isHighlightFullBarEnabled") - boolean isHighlightFullBarEnabled(); + @Generated + @Selector("isHighlightFullBarEnabled") + boolean isHighlightFullBarEnabled(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/BarLineScatterCandleBubbleChartDataProvider.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/BarLineScatterCandleBubbleChartDataProvider.java index c91dc2e1..145f7633 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/BarLineScatterCandleBubbleChartDataProvider.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/BarLineScatterCandleBubbleChartDataProvider.java @@ -16,21 +16,20 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolSourceName("BarLineScatterCandleBubbleChartDataProvider") @ObjCProtocolName("_TtP6Charts43BarLineScatterCandleBubbleChartDataProvider_") -public interface BarLineScatterCandleBubbleChartDataProvider extends - ChartDataProvider { - @Generated - @Selector("getTransformerForAxis:") - ChartTransformer getTransformerForAxis(@NInt long forAxis); +public interface BarLineScatterCandleBubbleChartDataProvider extends ChartDataProvider { + @Generated + @Selector("getTransformerForAxis:") + ChartTransformer getTransformerForAxis(@NInt long forAxis); - @Generated - @Selector("highestVisibleX") - double highestVisibleX(); + @Generated + @Selector("highestVisibleX") + double highestVisibleX(); - @Generated - @Selector("isInvertedWithAxis:") - boolean isInvertedWithAxis(@NInt long axis); + @Generated + @Selector("isInvertedWithAxis:") + boolean isInvertedWithAxis(@NInt long axis); - @Generated - @Selector("lowestVisibleX") - double lowestVisibleX(); + @Generated + @Selector("lowestVisibleX") + double lowestVisibleX(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/BubbleChartDataProvider.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/BubbleChartDataProvider.java index ba5e7896..ece0a712 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/BubbleChartDataProvider.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/BubbleChartDataProvider.java @@ -15,9 +15,8 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolSourceName("BubbleChartDataProvider") @ObjCProtocolName("_TtP6Charts23BubbleChartDataProvider_") -public interface BubbleChartDataProvider extends - BarLineScatterCandleBubbleChartDataProvider { - @Generated - @Selector("bubbleData") - BubbleChartData bubbleData(); +public interface BubbleChartDataProvider extends BarLineScatterCandleBubbleChartDataProvider { + @Generated + @Selector("bubbleData") + BubbleChartData bubbleData(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/CandleChartDataProvider.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/CandleChartDataProvider.java index 7afd6875..0f16b373 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/CandleChartDataProvider.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/CandleChartDataProvider.java @@ -15,9 +15,8 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolSourceName("CandleChartDataProvider") @ObjCProtocolName("_TtP6Charts23CandleChartDataProvider_") -public interface CandleChartDataProvider extends - BarLineScatterCandleBubbleChartDataProvider { - @Generated - @Selector("candleData") - CandleChartData candleData(); +public interface CandleChartDataProvider extends BarLineScatterCandleBubbleChartDataProvider { + @Generated + @Selector("candleData") + CandleChartData candleData(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ChartAnimatorDelegate.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ChartAnimatorDelegate.java index d8ebfbad..c142effb 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ChartAnimatorDelegate.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ChartAnimatorDelegate.java @@ -14,11 +14,17 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolName("ChartAnimatorDelegate") public interface ChartAnimatorDelegate { - @Generated - @Selector("animatorStopped:") - void animatorStopped(ChartAnimator animator); + /** + * Called when the Animator has stopped. + */ + @Generated + @Selector("animatorStopped:") + void animatorStopped(ChartAnimator animator); - @Generated - @Selector("animatorUpdated:") - void animatorUpdated(ChartAnimator animator); + /** + * Called when the Animator has stepped. + */ + @Generated + @Selector("animatorUpdated:") + void animatorUpdated(ChartAnimator animator); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ChartDataProvider.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ChartDataProvider.java index d629f4d2..ada3dfed 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ChartDataProvider.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ChartDataProvider.java @@ -20,42 +20,54 @@ @ObjCProtocolSourceName("ChartDataProvider") @ObjCProtocolName("_TtP6Charts17ChartDataProvider_") public interface ChartDataProvider { - @Generated - @Selector("centerOffsets") - @ByValue - CGPoint centerOffsets(); - - @Generated - @Selector("chartXMax") - double chartXMax(); - - @Generated - @Selector("chartXMin") - double chartXMin(); - - @Generated - @Selector("chartYMax") - double chartYMax(); - - @Generated - @Selector("chartYMin") - double chartYMin(); - - @Generated - @Selector("data") - ChartData data(); - - @Generated - @Selector("maxHighlightDistance") - @NFloat - double maxHighlightDistance(); - - @Generated - @Selector("maxVisibleCount") - @NInt - long maxVisibleCount(); - - @Generated - @Selector("xRange") - double xRange(); + @Generated + @Selector("centerOffsets") + @ByValue + CGPoint centerOffsets(); + + /** + * The maximum x-value of the chart, regardless of zoom or translation. + */ + @Generated + @Selector("chartXMax") + double chartXMax(); + + /** + * The minimum x-value of the chart, regardless of zoom or translation. + */ + @Generated + @Selector("chartXMin") + double chartXMin(); + + /** + * The maximum y-value of the chart, regardless of zoom or translation. + */ + @Generated + @Selector("chartYMax") + double chartYMax(); + + /** + * The minimum y-value of the chart, regardless of zoom or translation. + */ + @Generated + @Selector("chartYMin") + double chartYMin(); + + @Generated + @Selector("data") + ChartData data(); + + @Generated + @Selector("maxHighlightDistance") + @NFloat + double maxHighlightDistance(); + + @Generated + @Selector("maxVisibleCount") + @NInt + long maxVisibleCount(); + + @Generated + @Selector("xRange") + double xRange(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ChartViewDelegate.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ChartViewDelegate.java index 384782a8..a51c93cd 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ChartViewDelegate.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ChartViewDelegate.java @@ -10,6 +10,7 @@ import org.moe.natj.objc.ann.ObjCProtocolName; import org.moe.natj.objc.ann.ObjCProtocolSourceName; import org.moe.natj.objc.ann.Selector; +import org.moe.samples.simplechart.charts.ChartAnimator; import org.moe.samples.simplechart.charts.ChartDataEntry; import org.moe.samples.simplechart.charts.ChartHighlight; import org.moe.samples.simplechart.charts.ChartViewBase; @@ -20,34 +21,55 @@ @ObjCProtocolSourceName("ChartViewDelegate") @ObjCProtocolName("_TtP6Charts17ChartViewDelegate_") public interface ChartViewDelegate { - @Generated - @IsOptional - @Selector("chartScaled:scaleX:scaleY:") - default void chartScaledScaleXScaleY(ChartViewBase chartView, - @NFloat double scaleX, @NFloat double scaleY) { - throw new java.lang.UnsupportedOperationException(); - } - - @Generated - @IsOptional - @Selector("chartTranslated:dX:dY:") - default void chartTranslatedDXDY(ChartViewBase chartView, - @NFloat double dX, @NFloat double dY) { - throw new java.lang.UnsupportedOperationException(); - } - - @Generated - @IsOptional - @Selector("chartValueNothingSelected:") - default void chartValueNothingSelected(ChartViewBase chartView) { - throw new java.lang.UnsupportedOperationException(); - } - - @Generated - @IsOptional - @Selector("chartValueSelected:entry:highlight:") - default void chartValueSelectedEntryHighlight(ChartViewBase chartView, - ChartDataEntry entry, ChartHighlight highlight) { - throw new java.lang.UnsupportedOperationException(); - } + @Generated + @IsOptional + @Selector("chartScaled:scaleX:scaleY:") + default void chartScaledScaleXScaleY(ChartViewBase chartView, @NFloat double scaleX, @NFloat double scaleY) { + throw new java.lang.UnsupportedOperationException(); + } + + @Generated + @IsOptional + @Selector("chartTranslated:dX:dY:") + default void chartTranslatedDXDY(ChartViewBase chartView, @NFloat double dX, @NFloat double dY) { + throw new java.lang.UnsupportedOperationException(); + } + + @Generated + @IsOptional + @Selector("chartValueNothingSelected:") + default void chartValueNothingSelected(ChartViewBase chartView) { + throw new java.lang.UnsupportedOperationException(); + } + + /** + * Called when a value has been selected inside the chart. + * \param entry The selected Entry. + * + * \param highlight The corresponding highlight object that contains information about the highlighted position such as dataSetIndex etc. + */ + @Generated + @IsOptional + @Selector("chartValueSelected:entry:highlight:") + default void chartValueSelectedEntryHighlight(ChartViewBase chartView, ChartDataEntry entry, + ChartHighlight highlight) { + throw new java.lang.UnsupportedOperationException(); + } + + @Generated + @IsOptional + @Selector("chartView:animatorDidStop:") + default void chartViewAnimatorDidStop(ChartViewBase chartView, ChartAnimator animator) { + throw new java.lang.UnsupportedOperationException(); + } + + /** + * Called when a user stops panning between values on the chart + */ + @Generated + @IsOptional + @Selector("chartViewDidEndPanning:") + default void chartViewDidEndPanning(ChartViewBase chartView) { + throw new java.lang.UnsupportedOperationException(); + } } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/CombinedChartDataProvider.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/CombinedChartDataProvider.java index 0987aa83..37aa11ac 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/CombinedChartDataProvider.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/CombinedChartDataProvider.java @@ -15,10 +15,9 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolSourceName("CombinedChartDataProvider") @ObjCProtocolName("_TtP6Charts25CombinedChartDataProvider_") -public interface CombinedChartDataProvider extends LineChartDataProvider, - BarChartDataProvider, BubbleChartDataProvider, CandleChartDataProvider, - ScatterChartDataProvider { - @Generated - @Selector("combinedData") - CombinedChartData combinedData(); +public interface CombinedChartDataProvider extends BarChartDataProvider, BubbleChartDataProvider, + CandleChartDataProvider, LineChartDataProvider, ScatterChartDataProvider { + @Generated + @Selector("combinedData") + CombinedChartData combinedData(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IBarChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IBarChartDataSet.java index 9c180c63..11b1fec7 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IBarChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IBarChartDataSet.java @@ -18,56 +18,91 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolSourceName("IBarChartDataSet") @ObjCProtocolName("_TtP6Charts16IBarChartDataSet_") -public interface IBarChartDataSet extends - IBarLineScatterCandleBubbleChartDataSet { - @Generated - @Selector("barBorderColor") - UIColor barBorderColor(); +public interface IBarChartDataSet extends IBarLineScatterCandleBubbleChartDataSet { + /** + * the color drawing borders around the bars. + */ + @Generated + @Selector("barBorderColor") + UIColor barBorderColor(); - @Generated - @Selector("barBorderWidth") - @NFloat - double barBorderWidth(); + /** + * the width used for drawing borders around the bars. If borderWidth == 0, no border will be drawn. + */ + @Generated + @Selector("barBorderWidth") + @NFloat + double barBorderWidth(); - @Generated - @Selector("barShadowColor") - UIColor barShadowColor(); + /** + * the color used for drawing the bar-shadows. The bar shadows is a surface behind the bar that indicates the maximum value + */ + @Generated + @Selector("barShadowColor") + UIColor barShadowColor(); - @Generated - @Selector("highlightAlpha") - @NFloat - double highlightAlpha(); + /** + * the alpha value (transparency) that is used for drawing the highlight indicator bar. min = 0.0 (fully transparent), max = 1.0 (fully opaque) + */ + @Generated + @Selector("highlightAlpha") + @NFloat + double highlightAlpha(); - @Generated - @Selector("isStacked") - boolean isStacked(); + /** + * true if this DataSet is stacked (stacksize > 1) or not. + */ + @Generated + @Selector("isStacked") + boolean isStacked(); - @Generated - @Selector("setBarBorderColor:") - void setBarBorderColor(UIColor value); + /** + * the color drawing borders around the bars. + */ + @Generated + @Selector("setBarBorderColor:") + void setBarBorderColor(UIColor value); - @Generated - @Selector("setBarBorderWidth:") - void setBarBorderWidth(@NFloat double value); + /** + * the width used for drawing borders around the bars. If borderWidth == 0, no border will be drawn. + */ + @Generated + @Selector("setBarBorderWidth:") + void setBarBorderWidth(@NFloat double value); - @Generated - @Selector("setBarShadowColor:") - void setBarShadowColor(UIColor value); + /** + * the color used for drawing the bar-shadows. The bar shadows is a surface behind the bar that indicates the maximum value + */ + @Generated + @Selector("setBarShadowColor:") + void setBarShadowColor(UIColor value); - @Generated - @Selector("setHighlightAlpha:") - void setHighlightAlpha(@NFloat double value); + /** + * the alpha value (transparency) that is used for drawing the highlight indicator bar. min = 0.0 (fully transparent), max = 1.0 (fully opaque) + */ + @Generated + @Selector("setHighlightAlpha:") + void setHighlightAlpha(@NFloat double value); - @Generated - @Selector("setStackLabels:") - void setStackLabels(NSArray value); + /** + * array of labels used to describe the different values of the stacked bars + */ + @Generated + @Selector("setStackLabels:") + void setStackLabels(NSArray value); - @Generated - @Selector("stackLabels") - NSArray stackLabels(); + /** + * array of labels used to describe the different values of the stacked bars + */ + @Generated + @Selector("stackLabels") + NSArray stackLabels(); - @Generated - @Selector("stackSize") - @NInt - long stackSize(); + /** + * The maximum number of bars that can be stacked upon another in this DataSet. + */ + @Generated + @Selector("stackSize") + @NInt + long stackSize(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IBarLineScatterCandleBubbleChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IBarLineScatterCandleBubbleChartDataSet.java index cc52946b..7847eb85 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IBarLineScatterCandleBubbleChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IBarLineScatterCandleBubbleChartDataSet.java @@ -19,37 +19,37 @@ @ObjCProtocolSourceName("IBarLineScatterCandleBubbleChartDataSet") @ObjCProtocolName("_TtP6Charts39IBarLineScatterCandleBubbleChartDataSet_") public interface IBarLineScatterCandleBubbleChartDataSet extends IChartDataSet { - @Generated - @Selector("highlightColor") - UIColor highlightColor(); - - @Generated - @Selector("highlightLineDashLengths") - NSArray highlightLineDashLengths(); - - @Generated - @Selector("highlightLineDashPhase") - @NFloat - double highlightLineDashPhase(); - - @Generated - @Selector("highlightLineWidth") - @NFloat - double highlightLineWidth(); - - @Generated - @Selector("setHighlightColor:") - void setHighlightColor(UIColor value); - - @Generated - @Selector("setHighlightLineDashLengths:") - void setHighlightLineDashLengths(NSArray value); - - @Generated - @Selector("setHighlightLineDashPhase:") - void setHighlightLineDashPhase(@NFloat double value); - - @Generated - @Selector("setHighlightLineWidth:") - void setHighlightLineWidth(@NFloat double value); + @Generated + @Selector("highlightColor") + UIColor highlightColor(); + + @Generated + @Selector("highlightLineDashLengths") + NSArray highlightLineDashLengths(); + + @Generated + @Selector("highlightLineDashPhase") + @NFloat + double highlightLineDashPhase(); + + @Generated + @Selector("highlightLineWidth") + @NFloat + double highlightLineWidth(); + + @Generated + @Selector("setHighlightColor:") + void setHighlightColor(UIColor value); + + @Generated + @Selector("setHighlightLineDashLengths:") + void setHighlightLineDashLengths(NSArray value); + + @Generated + @Selector("setHighlightLineDashPhase:") + void setHighlightLineDashPhase(@NFloat double value); + + @Generated + @Selector("setHighlightLineWidth:") + void setHighlightLineWidth(@NFloat double value); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IBubbleChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IBubbleChartDataSet.java index aad08b2a..38862604 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IBubbleChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IBubbleChartDataSet.java @@ -15,23 +15,28 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolSourceName("IBubbleChartDataSet") @ObjCProtocolName("_TtP6Charts19IBubbleChartDataSet_") -public interface IBubbleChartDataSet extends - IBarLineScatterCandleBubbleChartDataSet { - @Generated - @Selector("highlightCircleWidth") - @NFloat - double highlightCircleWidth(); +public interface IBubbleChartDataSet extends IBarLineScatterCandleBubbleChartDataSet { + /** + * Sets/gets the width of the circle that surrounds the bubble when highlighted + */ + @Generated + @Selector("highlightCircleWidth") + @NFloat + double highlightCircleWidth(); - @Generated - @Selector("isNormalizeSizeEnabled") - boolean isNormalizeSizeEnabled(); + @Generated + @Selector("isNormalizeSizeEnabled") + boolean isNormalizeSizeEnabled(); - @Generated - @Selector("maxSize") - @NFloat - double maxSize(); + @Generated + @Selector("maxSize") + @NFloat + double maxSize(); - @Generated - @Selector("setHighlightCircleWidth:") - void setHighlightCircleWidth(@NFloat double value); + /** + * Sets/gets the width of the circle that surrounds the bubble when highlighted + */ + @Generated + @Selector("setHighlightCircleWidth:") + void setHighlightCircleWidth(@NFloat double value); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ICandleChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ICandleChartDataSet.java index 403ca0d2..74bea652 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ICandleChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ICandleChartDataSet.java @@ -16,99 +16,175 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolSourceName("ICandleChartDataSet") @ObjCProtocolName("_TtP6Charts19ICandleChartDataSet_") -public interface ICandleChartDataSet extends - ILineScatterCandleRadarChartDataSet { - @Generated - @Selector("barSpace") - @NFloat - double barSpace(); - - @Generated - @Selector("decreasingColor") - UIColor decreasingColor(); - - @Generated - @Selector("decreasingFilled") - boolean decreasingFilled(); - - @Generated - @Selector("increasingColor") - UIColor increasingColor(); - - @Generated - @Selector("increasingFilled") - boolean increasingFilled(); - - @Generated - @Selector("isDecreasingFilled") - boolean isDecreasingFilled(); - - @Generated - @Selector("isIncreasingFilled") - boolean isIncreasingFilled(); - - @Generated - @Selector("isShadowColorSameAsCandle") - boolean isShadowColorSameAsCandle(); - - @Generated - @Selector("neutralColor") - UIColor neutralColor(); - - @Generated - @Selector("setBarSpace:") - void setBarSpace(@NFloat double value); - - @Generated - @Selector("setDecreasingColor:") - void setDecreasingColor(UIColor value); - - @Generated - @Selector("setDecreasingFilled:") - void setDecreasingFilled(boolean value); - - @Generated - @Selector("setIncreasingColor:") - void setIncreasingColor(UIColor value); - - @Generated - @Selector("setIncreasingFilled:") - void setIncreasingFilled(boolean value); - - @Generated - @Selector("setNeutralColor:") - void setNeutralColor(UIColor value); - - @Generated - @Selector("setShadowColor:") - void setShadowColor(UIColor value); - - @Generated - @Selector("setShadowColorSameAsCandle:") - void setShadowColorSameAsCandle(boolean value); - - @Generated - @Selector("setShadowWidth:") - void setShadowWidth(@NFloat double value); - - @Generated - @Selector("setShowCandleBar:") - void setShowCandleBar(boolean value); - - @Generated - @Selector("shadowColor") - UIColor shadowColor(); - - @Generated - @Selector("shadowColorSameAsCandle") - boolean shadowColorSameAsCandle(); - - @Generated - @Selector("shadowWidth") - @NFloat - double shadowWidth(); - - @Generated - @Selector("showCandleBar") - boolean showCandleBar(); +public interface ICandleChartDataSet extends ILineScatterCandleRadarChartDataSet { + /** + * the space that is left out on the left and right side of each candle, + * default: 0.1 (10%), max 0.45, min 0.0 + */ + @Generated + @Selector("barSpace") + @NFloat + double barSpace(); + + /** + * color for open < close + */ + @Generated + @Selector("decreasingColor") + UIColor decreasingColor(); + + /** + * Are decreasing values drawn as filled? + */ + @Generated + @Selector("decreasingFilled") + boolean decreasingFilled(); + + /** + * color for open > close + */ + @Generated + @Selector("increasingColor") + UIColor increasingColor(); + + /** + * Are increasing values drawn as filled? + */ + @Generated + @Selector("increasingFilled") + boolean increasingFilled(); + + /** + * Are decreasing values drawn as filled? + */ + @Generated + @Selector("isDecreasingFilled") + boolean isDecreasingFilled(); + + /** + * Are increasing values drawn as filled? + */ + @Generated + @Selector("isIncreasingFilled") + boolean isIncreasingFilled(); + + /** + * Is the shadow color same as the candle color? + */ + @Generated + @Selector("isShadowColorSameAsCandle") + boolean isShadowColorSameAsCandle(); + + /** + * color for open == close + */ + @Generated + @Selector("neutralColor") + UIColor neutralColor(); + + /** + * the space that is left out on the left and right side of each candle, + * default: 0.1 (10%), max 0.45, min 0.0 + */ + @Generated + @Selector("setBarSpace:") + void setBarSpace(@NFloat double value); + + /** + * color for open < close + */ + @Generated + @Selector("setDecreasingColor:") + void setDecreasingColor(UIColor value); + + /** + * Are decreasing values drawn as filled? + */ + @Generated + @Selector("setDecreasingFilled:") + void setDecreasingFilled(boolean value); + + /** + * color for open > close + */ + @Generated + @Selector("setIncreasingColor:") + void setIncreasingColor(UIColor value); + + /** + * Are increasing values drawn as filled? + */ + @Generated + @Selector("setIncreasingFilled:") + void setIncreasingFilled(boolean value); + + /** + * color for open == close + */ + @Generated + @Selector("setNeutralColor:") + void setNeutralColor(UIColor value); + + /** + * the color of the shadow line + */ + @Generated + @Selector("setShadowColor:") + void setShadowColor(UIColor value); + + /** + * use candle color for the shadow + */ + @Generated + @Selector("setShadowColorSameAsCandle:") + void setShadowColorSameAsCandle(boolean value); + + /** + * the width of the candle-shadow-line in pixels. + * default: 3.0 + */ + @Generated + @Selector("setShadowWidth:") + void setShadowWidth(@NFloat double value); + + /** + * should the candle bars show? + * when false, only “ticks” will show + * default: true + */ + @Generated + @Selector("setShowCandleBar:") + void setShowCandleBar(boolean value); + + /** + * the color of the shadow line + */ + @Generated + @Selector("shadowColor") + UIColor shadowColor(); + + /** + * use candle color for the shadow + */ + @Generated + @Selector("shadowColorSameAsCandle") + boolean shadowColorSameAsCandle(); + + /** + * the width of the candle-shadow-line in pixels. + * default: 3.0 + */ + @Generated + @Selector("shadowWidth") + @NFloat + double shadowWidth(); + + /** + * should the candle bars show? + * when false, only “ticks” will show + * default: true + */ + @Generated + @Selector("showCandleBar") + boolean showCandleBar(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartAxisValueFormatter.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartAxisValueFormatter.java index c0e0a552..6bdde1b9 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartAxisValueFormatter.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartAxisValueFormatter.java @@ -9,12 +9,26 @@ import org.moe.natj.objc.ann.Selector; import org.moe.samples.simplechart.charts.ChartAxisBase; +/** + * An interface for providing custom axis Strings. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCProtocolName("IChartAxisValueFormatter") public interface IChartAxisValueFormatter { - @Generated - @Selector("stringForValue:axis:") - String stringForValueAxis(double value, ChartAxisBase axis); + /** + * Called when a value from an axis is formatted before being drawn. + * For performance reasons, avoid excessive calculations and memory allocations inside this method. + * \param value the value that is currently being drawn + * + * \param axis the axis that the value belongs to + * + * + * returns: + * The customized label that is drawn on the x-axis. + */ + @Generated + @Selector("stringForValue:axis:") + String stringForValueAxis(double value, ChartAxisBase axis); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartDataSet.java index ac1612d1..36e2ce58 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartDataSet.java @@ -1,10 +1,12 @@ package org.moe.samples.simplechart.charts.protocol; +import apple.coregraphics.struct.CGPoint; import apple.foundation.NSArray; import apple.foundation.NSNumber; import apple.uikit.UIColor; import apple.uikit.UIFont; +import org.moe.natj.general.ann.ByValue; import org.moe.natj.general.ann.Generated; import org.moe.natj.general.ann.Library; import org.moe.natj.general.ann.Mapped; @@ -25,226 +27,522 @@ @ObjCProtocolSourceName("IChartDataSet") @ObjCProtocolName("_TtP6Charts13IChartDataSet_") public interface IChartDataSet { - @Generated - @Selector("addColor:") - void addColor(UIColor color); - - @Generated - @Selector("addEntry:") - boolean addEntry(ChartDataEntry e); - - @Generated - @Selector("addEntryOrdered:") - boolean addEntryOrdered(ChartDataEntry e); - - @Generated - @Selector("axisDependency") - @NInt - long axisDependency(); - - @Generated - @Selector("calcMinMax") - void calcMinMax(); - - @Generated - @Selector("calcMinMaxYFromX:toX:") - void calcMinMaxYFromXToX(double fromX, double toX); - - @Generated - @Selector("clear") - void clear(); - - @Generated - @Selector("colorAtIndex:") - UIColor colorAtIndex(@NInt long atIndex); - - @Generated - @Selector("colors") - NSArray colors(); - - @Generated - @Selector("contains:") - boolean contains(ChartDataEntry e); - - @Generated - @Selector("drawValuesEnabled") - boolean drawValuesEnabled(); - - @Generated - @Selector("entriesForXValue:") - NSArray entriesForXValue(double xValue); - - @Generated - @Selector("entryCount") - @NInt - long entryCount(); - - @Generated - @Selector("entryForIndex:") - ChartDataEntry entryForIndex(@NInt long i); - - @Generated - @Selector("entryForXValue:closestToY:") - ChartDataEntry entryForXValueClosestToY(double xValue, double yValue); - - @Generated - @Selector("entryForXValue:closestToY:rounding:") - ChartDataEntry entryForXValueClosestToYRounding(double xValue, - double yValue, @NInt long rounding); - - @Generated - @Selector("entryIndexWithEntry:") - @NInt - long entryIndexWithEntry(ChartDataEntry e); - - @Generated - @Selector("entryIndexWithX:closestToY:rounding:") - @NInt - long entryIndexWithXClosestToYRounding(double xValue, double yValue, - @NInt long rounding); - - @Generated - @Selector("form") - @NInt - long form(); - - @Generated - @Selector("formLineDashLengths") - NSArray formLineDashLengths(); - - @Generated - @Selector("formLineDashPhase") - @NFloat - double formLineDashPhase(); - - @Generated - @Selector("formLineWidth") - @NFloat - double formLineWidth(); - - @Generated - @Selector("formSize") - @NFloat - double formSize(); - - @Generated - @Selector("highlightEnabled") - boolean highlightEnabled(); - - @Generated - @Selector("isDrawValuesEnabled") - boolean isDrawValuesEnabled(); - - @Generated - @Selector("isHighlightEnabled") - boolean isHighlightEnabled(); - - @Generated - @Selector("isVisible") - boolean isVisible(); - - @Generated - @Selector("label") - String label(); - - @Generated - @Selector("needsFormatter") - boolean needsFormatter(); - - @Generated - @Selector("notifyDataSetChanged") - void notifyDataSetChanged(); - - @Generated - @Selector("removeEntry:") - boolean removeEntry(ChartDataEntry entry); - - @Generated - @Selector("removeEntryWithIndex:") - boolean removeEntryWithIndex(@NInt long index); - - @Generated - @Selector("removeEntryWithX:") - boolean removeEntryWithX(double x); - - @Generated - @Selector("removeFirst") - boolean removeFirst(); - - @Generated - @Selector("removeLast") - boolean removeLast(); - - @Generated - @Selector("resetColors") - void resetColors(); - - @Generated - @Selector("setColor:") - void setColor(UIColor color); - - @Generated - @Selector("setDrawValuesEnabled:") - void setDrawValuesEnabled(boolean value); - - @Generated - @Selector("setHighlightEnabled:") - void setHighlightEnabled(boolean value); - - @Generated - @Selector("setValueFont:") - void setValueFont(UIFont value); - - @Generated - @Selector("setValueFormatter:") - void setValueFormatter(@Mapped(ObjCObjectMapper.class) Object value); - - @Generated - @Selector("setValueTextColor:") - void setValueTextColor(UIColor value); - - @Generated - @Selector("setVisible:") - void setVisible(boolean value); - - @Generated - @Selector("valueColors") - NSArray valueColors(); - - @Generated - @Selector("valueFont") - UIFont valueFont(); - - @Generated - @Selector("valueFormatter") - @MappedReturn(ObjCObjectMapper.class) - Object valueFormatter(); - - @Generated - @Selector("valueTextColor") - UIColor valueTextColor(); - - @Generated - @Selector("valueTextColorAt:") - UIColor valueTextColorAt(@NInt long index); - - @Generated - @Selector("visible") - boolean visible(); - - @Generated - @Selector("xMax") - double xMax(); - - @Generated - @Selector("xMin") - double xMin(); - - @Generated - @Selector("yMax") - double yMax(); - - @Generated - @Selector("yMin") - double yMin(); + @Generated + @Selector("addColor:") + void addColor(UIColor color); + + /** + * Adds an Entry to the DataSet dynamically. + * optional feature, can return false ifnot implemented + * Entries are added to the end of the list. + * \param e the entry to add + * + * + * returns: + * true if the entry was added successfully, false ifthis feature is not supported + */ + @Generated + @Selector("addEntry:") + boolean addEntry(ChartDataEntry e); + + /** + * Adds an Entry to the DataSet dynamically. + * Entries are added to their appropriate index in the values array respective to their x-position. + * This will also recalculate the current minimum and maximum values of the DataSet and the value-sum. + * optional feature, can return false ifnot implemented + * Entries are added to the end of the list. + * \param e the entry to add + * + * + * returns: + * true if the entry was added successfully, false ifthis feature is not supported + */ + @Generated + @Selector("addEntryOrdered:") + boolean addEntryOrdered(ChartDataEntry e); + + /** + * The axis this DataSet should be plotted against. + */ + @Generated + @Selector("axisDependency") + @NInt + long axisDependency(); + + /** + * Calculates the minimum and maximum x and y values (_xMin, _xMax, _yMin, _yMax). + */ + @Generated + @Selector("calcMinMax") + void calcMinMax(); + + /** + * Calculates the min and max y-values from the Entry closest to the given fromX to the Entry closest to the given toX value. + * This is only needed for the autoScaleMinMax feature. + */ + @Generated + @Selector("calcMinMaxYFromX:toX:") + void calcMinMaxYFromXToX(double fromX, double toX); + + /** + * Removes all values from this DataSet and does all necessary recalculations. + * optional feature, could throw if not implemented + */ + @Generated + @Selector("clear") + void clear(); + + /** + * returns: + * The color at the given index of the DataSet’s color array. + * This prevents out-of-bounds by performing a modulus on the color index, so colours will repeat themselves. + */ + @Generated + @Selector("colorAtIndex:") + UIColor colorAtIndex(@NInt long atIndex); + + /** + * All the colors that are used for this DataSet. + * Colors are reused as soon as the number of Entries the DataSet represents is higher than the size of the colors array. + */ + @Generated + @Selector("colors") + NSArray colors(); + + /** + * Checks if this DataSet contains the specified Entry. + * + * returns: + * true if contains the entry, false ifnot. + */ + @Generated + @Selector("contains:") + boolean contains(ChartDataEntry e); + + /** + * Set this to true to draw y-icons on the chart + * note: + * For bar and line charts: if maxVisibleCount is reached, no icons will be drawn even if this is enabled. + */ + @Generated + @Selector("drawIconsEnabled") + boolean drawIconsEnabled(); + + /** + * Set this to true to draw y-values on the chart. + * note: + * For bar and line charts: if maxVisibleCount is reached, no values will be drawn even if this is enabled. + */ + @Generated + @Selector("drawValuesEnabled") + boolean drawValuesEnabled(); + + /** + * returns: + * All Entry objects found at the given x-value with binary search. + * An empty array if no Entry object at that x-value. + */ + @Generated + @Selector("entriesForXValue:") + NSArray entriesForXValue(double xValue); + + /** + * The number of y-values this DataSet represents + */ + @Generated + @Selector("entryCount") + @NInt + long entryCount(); + + /** + * throws: + * out of bounds + * if i is out of bounds, it may throw an out-of-bounds exception + * + * returns: + * The entry object found at the given index (not x-value!) + */ + @Generated + @Selector("entryForIndex:") + ChartDataEntry entryForIndex(@NInt long i); + + /** + * \param xValue the x-value + * + * \param closestToY If there are multiple y-values for the specified x-value, + * + * + * returns: + * The first Entry object found at the given x-value with binary search. + * If the no Entry at the specified x-value is found, this method returns the Entry at the closest x-value. + * nil if no Entry object at that x-value. + */ + @Generated + @Selector("entryForXValue:closestToY:") + ChartDataEntry entryForXValueClosestToY(double xValue, double yValue); + + /** + * \param xValue the x-value + * + * \param closestToY If there are multiple y-values for the specified x-value, + * + * \param rounding determine whether to round up/down/closest if there is no Entry matching the provided x-value + * + * + * returns: + * The first Entry object found at the given x-value with binary search. + * If the no Entry at the specified x-value is found, this method returns the Entry at the closest x-value according to the rounding. + * nil if no Entry object at that x-value. + */ + @Generated + @Selector("entryForXValue:closestToY:rounding:") + ChartDataEntry entryForXValueClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + /** + * \param e the entry to search for + * + * + * returns: + * The array-index of the specified entry + */ + @Generated + @Selector("entryIndexWithEntry:") + @NInt + long entryIndexWithEntry(ChartDataEntry e); + + /** + * \param xValue x-value of the entry to search for + * + * \param closestToY If there are multiple y-values for the specified x-value, + * + * \param rounding Rounding method if exact value was not found + * + * + * returns: + * The array-index of the specified entry. + * If the no Entry at the specified x-value is found, this method returns the index of the Entry at the closest x-value according to the rounding. + */ + @Generated + @Selector("entryIndexWithX:closestToY:rounding:") + @NInt + long entryIndexWithXClosestToYRounding(double xValue, double yValue, @NInt long rounding); + + /** + * The form to draw for this dataset in the legend. + * Return .Default to use the default legend form. + */ + @Generated + @Selector("form") + @NInt + long form(); + + /** + * Line dash configuration for legend shapes that consist of lines. + * This is the actual dash pattern. + * I.e. [2, 3] will paint [– – ] + * [1, 3, 4, 2] will paint [- –– - –– ] + */ + @Generated + @Selector("formLineDashLengths") + NSArray formLineDashLengths(); + + /** + * Line dash configuration for legend shapes that consist of lines. + * This is how much (in pixels) into the dash pattern are we starting from. + */ + @Generated + @Selector("formLineDashPhase") + @NFloat + double formLineDashPhase(); + + /** + * The line width for drawing the form of this dataset in the legend + * Return NaN to use the default legend form line width. + */ + @Generated + @Selector("formLineWidth") + @NFloat + double formLineWidth(); + + /** + * The form size to draw for this dataset in the legend. + * Return NaN to use the default legend form size. + */ + @Generated + @Selector("formSize") + @NFloat + double formSize(); + + /** + * if true, value highlighting is enabled + */ + @Generated + @Selector("highlightEnabled") + boolean highlightEnabled(); + + /** + * Offset of icons drawn on the chart. + * For all charts except Pie and Radar it will be ordinary (x offset, y offset). + * For Pie and Radar chart it will be (y offset, distance from center offset); so if you want icon to be rendered under value, you should increase X component of CGPoint, and if you want icon to be rendered closet to center, you should decrease height component of CGPoint. + */ + @Generated + @Selector("iconsOffset") + @ByValue + CGPoint iconsOffset(); + + /** + * Returns true if y-icon drawing is enabled, false if not + */ + @Generated + @Selector("isDrawIconsEnabled") + boolean isDrawIconsEnabled(); + + /** + * true if y-value drawing is enabled, false ifnot + */ + @Generated + @Selector("isDrawValuesEnabled") + boolean isDrawValuesEnabled(); + + /** + * true if value highlighting is enabled for this dataset + */ + @Generated + @Selector("isHighlightEnabled") + boolean isHighlightEnabled(); + + /** + * true if this DataSet is visible inside the chart, or false ifit is currently hidden. + */ + @Generated + @Selector("isVisible") + boolean isVisible(); + + /** + * The label string that describes the DataSet. + */ + @Generated + @Selector("label") + String label(); + + /** + * true if the valueFormatter object of this DataSet is null. + */ + @Generated + @Selector("needsFormatter") + boolean needsFormatter(); + + /** + * Use this method to tell the data set that the underlying data has changed + */ + @Generated + @Selector("notifyDataSetChanged") + void notifyDataSetChanged(); + + /** + * Removes an Entry from the DataSet dynamically. + * optional feature, can return false ifnot implemented + * \param entry the entry to remove + * + * + * returns: + * true if the entry was removed successfully, false ifthe entry does not exist or if this feature is not supported + */ + @Generated + @Selector("removeEntry:") + boolean removeEntry(ChartDataEntry entry); + + /** + * Removes the Entry object at the given index in the values array from the DataSet. + * optional feature, can return false ifnot implemented + * \param index the index of the entry to remove + * + * + * returns: + * true if the entry was removed successfully, false ifthe entry does not exist or if this feature is not supported + */ + @Generated + @Selector("removeEntryWithIndex:") + boolean removeEntryWithIndex(@NInt long index); + + /** + * Removes the Entry object closest to the given x-value from the DataSet. + * optional feature, can return false ifnot implemented + * \param x the x-value to remove + * + * + * returns: + * true if the entry was removed successfully, false ifthe entry does not exist or if this feature is not supported + */ + @Generated + @Selector("removeEntryWithX:") + boolean removeEntryWithX(double x); + + /** + * Removes the first Entry (at index 0) of this DataSet from the entries array. + * optional feature, can return false ifnot implemented + * + * returns: + * true if the entry was removed successfully, false ifthe entry does not exist or if this feature is not supported + */ + @Generated + @Selector("removeFirst") + boolean removeFirst(); + + /** + * Removes the last Entry (at index 0) of this DataSet from the entries array. + * optional feature, can return false ifnot implemented + * + * returns: + * true if the entry was removed successfully, false ifthe entry does not exist or if this feature is not supported + */ + @Generated + @Selector("removeLast") + boolean removeLast(); + + @Generated + @Selector("resetColors") + void resetColors(); + + @Generated + @Selector("setColor:") + void setColor(UIColor color); + + /** + * Set this to true to draw y-icons on the chart + * note: + * For bar and line charts: if maxVisibleCount is reached, no icons will be drawn even if this is enabled. + */ + @Generated + @Selector("setDrawIconsEnabled:") + void setDrawIconsEnabled(boolean value); + + /** + * Set this to true to draw y-values on the chart. + * note: + * For bar and line charts: if maxVisibleCount is reached, no values will be drawn even if this is enabled. + */ + @Generated + @Selector("setDrawValuesEnabled:") + void setDrawValuesEnabled(boolean value); + + /** + * if true, value highlighting is enabled + */ + @Generated + @Selector("setHighlightEnabled:") + void setHighlightEnabled(boolean value); + + /** + * Offset of icons drawn on the chart. + * For all charts except Pie and Radar it will be ordinary (x offset, y offset). + * For Pie and Radar chart it will be (y offset, distance from center offset); so if you want icon to be rendered under value, you should increase X component of CGPoint, and if you want icon to be rendered closet to center, you should decrease height component of CGPoint. + */ + @Generated + @Selector("setIconsOffset:") + void setIconsOffset(@ByValue CGPoint value); + + /** + * the font for the value-text labels + */ + @Generated + @Selector("setValueFont:") + void setValueFont(UIFont value); + + /** + * Custom formatter that is used instead of the auto-formatter if set + */ + @Generated + @Selector("setValueFormatter:") + void setValueFormatter(@Mapped(ObjCObjectMapper.class) IChartValueFormatter value); + + /** + * Sets/get a single color for value text. + * Setting the color clears the colors array and adds a single color. + * Getting will return the first color in the array. + */ + @Generated + @Selector("setValueTextColor:") + void setValueTextColor(UIColor value); + + /** + * Set the visibility of this DataSet. If not visible, the DataSet will not be drawn to the chart upon refreshing it. + */ + @Generated + @Selector("setVisible:") + void setVisible(boolean value); + + /** + * List representing all colors that are used for drawing the actual values for this DataSet + */ + @Generated + @Selector("valueColors") + NSArray valueColors(); + + /** + * the font for the value-text labels + */ + @Generated + @Selector("valueFont") + UIFont valueFont(); + + /** + * Custom formatter that is used instead of the auto-formatter if set + */ + @Generated + @Selector("valueFormatter") + @MappedReturn(ObjCObjectMapper.class) + IChartValueFormatter valueFormatter(); + + /** + * Sets/get a single color for value text. + * Setting the color clears the colors array and adds a single color. + * Getting will return the first color in the array. + */ + @Generated + @Selector("valueTextColor") + UIColor valueTextColor(); + + /** + * returns: + * The color at the specified index that is used for drawing the values inside the chart. Uses modulus internally. + */ + @Generated + @Selector("valueTextColorAt:") + UIColor valueTextColorAt(@NInt long index); + + /** + * Set the visibility of this DataSet. If not visible, the DataSet will not be drawn to the chart upon refreshing it. + */ + @Generated + @Selector("visible") + boolean visible(); + + /** + * The maximum x-value this DataSet holds + */ + @Generated + @Selector("xMax") + double xMax(); + + /** + * The minimum x-value this DataSet holds + */ + @Generated + @Selector("xMin") + double xMin(); + + /** + * The maximum y-value this DataSet holds + */ + @Generated + @Selector("yMax") + double yMax(); + + /** + * The minimum y-value this DataSet holds + */ + @Generated + @Selector("yMin") + double yMin(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartFillFormatter.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartFillFormatter.java index 88c96ebb..428b130e 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartFillFormatter.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartFillFormatter.java @@ -11,15 +11,21 @@ import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; +/** + * Protocol for providing a custom logic to where the filling line of a LineDataSet should end. This of course only works if setFillEnabled(…) is set to true. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCProtocolName("IChartFillFormatter") public interface IChartFillFormatter { - @Generated - @Selector("getFillLinePositionWithDataSet:dataProvider:") - @NFloat - double getFillLinePositionWithDataSetDataProvider( - @Mapped(ObjCObjectMapper.class) Object dataSet, - @Mapped(ObjCObjectMapper.class) Object dataProvider); + /** + * returns: + * The vertical (y-axis) position where the filled-line of the LineDataSet should end. + */ + @Generated + @Selector("getFillLinePositionWithDataSet:dataProvider:") + @NFloat + double getFillLinePositionWithDataSetDataProvider(@Mapped(ObjCObjectMapper.class) ILineChartDataSet dataSet, + @Mapped(ObjCObjectMapper.class) LineChartDataProvider dataProvider); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartHighlighter.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartHighlighter.java index 369ecbf4..1c0a5b88 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartHighlighter.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartHighlighter.java @@ -15,7 +15,16 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolName("IChartHighlighter") public interface IChartHighlighter { - @Generated - @Selector("getHighlightWithX:y:") - ChartHighlight getHighlightWithXY(@NFloat double x, @NFloat double y); + /** + * \param x + * + * \param y + * + * + * returns: + * A Highlight object corresponding to the given x- and y- touch positions in pixels. + */ + @Generated + @Selector("getHighlightWithX:y:") + ChartHighlight getHighlightWithXY(@NFloat double x, @NFloat double y); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartMarker.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartMarker.java index 87e46787..e557f52c 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartMarker.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartMarker.java @@ -18,22 +18,45 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolName("IChartMarker") public interface IChartMarker { - @Generated - @Selector("drawWithContext:point:") - void drawWithContextPoint(CGContextRef context, @ByValue CGPoint point); + /** + * Draws the IMarker on the given position on the given context + */ + @Generated + @Selector("drawWithContext:point:") + void drawWithContextPoint(CGContextRef context, @ByValue CGPoint point); - @Generated - @Selector("offset") - @ByValue - CGPoint offset(); + /** + * returns: + * The desired (general) offset you wish the IMarker to have on the x-axis. + * By returning x: -(width / 2) you will center the IMarker horizontally. + * By returning y: -(height / 2) you will center the IMarker vertically. + */ + @Generated + @Selector("offset") + @ByValue + CGPoint offset(); - @Generated - @Selector("offsetForDrawingAtPoint:") - @ByValue - CGPoint offsetForDrawingAtPoint(@ByValue CGPoint atPoint); + /** + * \param point This is the point at which the marker wants to be drawn. You can adjust the offset conditionally based on this argument. + * + * + * returns: + * The offset for drawing at the specific point. + * This allows conditional adjusting of the Marker position. + * If you have no adjustments to make, return self.offset(). + */ + @Generated + @Selector("offsetForDrawingAtPoint:") + @ByValue + CGPoint offsetForDrawingAtPoint(@ByValue CGPoint atPoint); - @Generated - @Selector("refreshContentWithEntry:highlight:") - void refreshContentWithEntryHighlight(ChartDataEntry entry, - ChartHighlight highlight); + /** + * This method enables a custom IMarker to update it’s content every time the IMarker is redrawn according to the data entry it points to. + * \param entry The Entry the IMarker belongs to. This can also be any subclass of Entry, like BarEntry or CandleEntry, simply cast it at runtime. + * + * \param highlight The highlight object contains information about the highlighted value such as it’s dataset-index, the selected range or stack-index (only stacked bar entries). + */ + @Generated + @Selector("refreshContentWithEntry:highlight:") + void refreshContentWithEntryHighlight(ChartDataEntry entry, ChartHighlight highlight); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartValueFormatter.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartValueFormatter.java index 064ce73b..eaa7fa6c 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartValueFormatter.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IChartValueFormatter.java @@ -11,14 +11,31 @@ import org.moe.samples.simplechart.charts.ChartDataEntry; import org.moe.samples.simplechart.charts.ChartViewPortHandler; +/** + * Interface that allows custom formatting of all values inside the chart before they are drawn to the screen. + * Simply create your own formatting class and let it implement ValueFormatter. Then override the stringForValue() + * method and return whatever you want. + */ @Generated @Library("Charts") @Runtime(ObjCRuntime.class) @ObjCProtocolName("IChartValueFormatter") public interface IChartValueFormatter { - @Generated - @Selector("stringForValue:entry:dataSetIndex:viewPortHandler:") - String stringForValueEntryDataSetIndexViewPortHandler(double value, - ChartDataEntry entry, @NInt long dataSetIndex, - ChartViewPortHandler viewPortHandler); + /** + * Called when a value (from labels inside the chart) is formatted before being drawn. + * For performance reasons, avoid excessive calculations and memory allocations inside this method. + * \param value The value to be formatted + * + * \param dataSetIndex The index of the DataSet the entry in focus belongs to + * + * \param viewPortHandler provides information about the current chart state (scale, translation, …) + * + * + * returns: + * The formatted label ready to be drawn + */ + @Generated + @Selector("stringForValue:entry:dataSetIndex:viewPortHandler:") + String stringForValueEntryDataSetIndexViewPortHandler(double value, ChartDataEntry entry, @NInt long dataSetIndex, + ChartViewPortHandler viewPortHandler); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ILineChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ILineChartDataSet.java index 1d24fea7..854abd70 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ILineChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ILineChartDataSet.java @@ -23,145 +23,210 @@ @ObjCProtocolSourceName("ILineChartDataSet") @ObjCProtocolName("_TtP6Charts17ILineChartDataSet_") public interface ILineChartDataSet extends ILineRadarChartDataSet { - @Generated - @Selector("circleColors") - NSArray circleColors(); - - @Generated - @Selector("circleHoleColor") - UIColor circleHoleColor(); - - @Generated - @Selector("circleHoleRadius") - @NFloat - double circleHoleRadius(); - - @Generated - @Selector("circleRadius") - @NFloat - double circleRadius(); - - @Generated - @Selector("cubicIntensity") - @NFloat - double cubicIntensity(); - - @Generated - @Selector("drawCircleHoleEnabled") - boolean drawCircleHoleEnabled(); - - @Generated - @Selector("drawCirclesEnabled") - boolean drawCirclesEnabled(); - - @Generated - @Selector("drawCubicEnabled") - boolean drawCubicEnabled(); - - @Generated - @Selector("drawSteppedEnabled") - boolean drawSteppedEnabled(); - - @Generated - @Selector("fillFormatter") - @MappedReturn(ObjCObjectMapper.class) - Object fillFormatter(); - - @Generated - @Selector("getCircleColorAtIndex:") - UIColor getCircleColorAtIndex(@NInt long atIndex); - - @Generated - @Selector("isDrawCircleHoleEnabled") - boolean isDrawCircleHoleEnabled(); - - @Generated - @Selector("isDrawCirclesEnabled") - boolean isDrawCirclesEnabled(); - - @Generated - @Selector("isDrawCubicEnabled") - boolean isDrawCubicEnabled(); - - @Generated - @Selector("isDrawSteppedEnabled") - boolean isDrawSteppedEnabled(); - - @Generated - @Selector("lineCapType") - int lineCapType(); - - @Generated - @Selector("lineDashLengths") - NSArray lineDashLengths(); - - @Generated - @Selector("lineDashPhase") - @NFloat - double lineDashPhase(); - - @Generated - @Selector("mode") - @NInt - long mode(); - - @Generated - @Selector("resetCircleColors:") - void resetCircleColors(@NInt long index); - - @Generated - @Selector("setCircleColor:") - void setCircleColor(UIColor color); - - @Generated - @Selector("setCircleColors:") - void setCircleColors(NSArray value); - - @Generated - @Selector("setCircleHoleColor:") - void setCircleHoleColor(UIColor value); - - @Generated - @Selector("setCircleHoleRadius:") - void setCircleHoleRadius(@NFloat double value); - - @Generated - @Selector("setCircleRadius:") - void setCircleRadius(@NFloat double value); - - @Generated - @Selector("setCubicIntensity:") - void setCubicIntensity(@NFloat double value); - - @Generated - @Selector("setDrawCircleHoleEnabled:") - void setDrawCircleHoleEnabled(boolean value); - - @Generated - @Selector("setDrawCirclesEnabled:") - void setDrawCirclesEnabled(boolean value); - - @Generated - @Selector("setDrawCubicEnabled:") - void setDrawCubicEnabled(boolean value); - - @Generated - @Selector("setDrawSteppedEnabled:") - void setDrawSteppedEnabled(boolean value); - - @Generated - @Selector("setFillFormatter:") - void setFillFormatter(@Mapped(ObjCObjectMapper.class) Object value); - - @Generated - @Selector("setLineCapType:") - void setLineCapType(int value); - - @Generated - @Selector("setLineDashLengths:") - void setLineDashLengths(NSArray value); - - @Generated - @Selector("setMode:") - void setMode(@NInt long value); + @Generated + @Selector("circleColors") + NSArray circleColors(); + + /** + * The color of the inner circle (the circle-hole). + */ + @Generated + @Selector("circleHoleColor") + UIColor circleHoleColor(); + + /** + * The hole radius of the drawn circles. + */ + @Generated + @Selector("circleHoleRadius") + @NFloat + double circleHoleRadius(); + + /** + * The radius of the drawn circles. + */ + @Generated + @Selector("circleRadius") + @NFloat + double circleRadius(); + + /** + * Intensity for cubic lines (min = 0.05, max = 1) + * default: 0.2 + */ + @Generated + @Selector("cubicIntensity") + @NFloat + double cubicIntensity(); + + /** + * true if drawing circles for this DataSet is enabled, false ifnot + */ + @Generated + @Selector("drawCircleHoleEnabled") + boolean drawCircleHoleEnabled(); + + /** + * If true, drawing circles is enabled + */ + @Generated + @Selector("drawCirclesEnabled") + boolean drawCirclesEnabled(); + + /** + * Sets a custom IFillFormatter to the chart that handles the position of the filled-line for each DataSet. Set this to null to use the default logic. + */ + @Generated + @Selector("fillFormatter") + @MappedReturn(ObjCObjectMapper.class) + IChartFillFormatter fillFormatter(); + + /** + * returns: + * The color at the given index of the DataSet’s circle-color array. + * Performs a IndexOutOfBounds check by modulus. + */ + @Generated + @Selector("getCircleColorAtIndex:") + UIColor getCircleColorAtIndex(@NInt long atIndex); + + /** + * true if drawing the circle-holes is enabled, false ifnot. + */ + @Generated + @Selector("isDrawCircleHoleEnabled") + boolean isDrawCircleHoleEnabled(); + + /** + * true if drawing circles for this DataSet is enabled, false ifnot + */ + @Generated + @Selector("isDrawCirclesEnabled") + boolean isDrawCirclesEnabled(); + + /** + * Line cap type, default is CGLineCap.Butt + */ + @Generated + @Selector("lineCapType") + int lineCapType(); + + /** + * This is the actual dash pattern. + * I.e. [2, 3] will paint [– – ] + * [1, 3, 4, 2] will paint [- –– - –– ] + */ + @Generated + @Selector("lineDashLengths") + NSArray lineDashLengths(); + + /** + * This is how much (in pixels) into the dash pattern are we starting from. + */ + @Generated + @Selector("lineDashPhase") + @NFloat + double lineDashPhase(); + + /** + * The drawing mode for this line dataset + * default: Linear + */ + @Generated + @Selector("mode") + @NInt + long mode(); + + /** + * Resets the circle-colors array and creates a new one + */ + @Generated + @Selector("resetCircleColors:") + void resetCircleColors(@NInt long index); + + /** + * Sets the one and ONLY color that should be used for this DataSet. + * Internally, this recreates the colors array and adds the specified color. + */ + @Generated + @Selector("setCircleColor:") + void setCircleColor(UIColor color); + + @Generated + @Selector("setCircleColors:") + void setCircleColors(NSArray value); + + /** + * The color of the inner circle (the circle-hole). + */ + @Generated + @Selector("setCircleHoleColor:") + void setCircleHoleColor(UIColor value); + + /** + * The hole radius of the drawn circles. + */ + @Generated + @Selector("setCircleHoleRadius:") + void setCircleHoleRadius(@NFloat double value); + + /** + * The radius of the drawn circles. + */ + @Generated + @Selector("setCircleRadius:") + void setCircleRadius(@NFloat double value); + + /** + * Intensity for cubic lines (min = 0.05, max = 1) + * default: 0.2 + */ + @Generated + @Selector("setCubicIntensity:") + void setCubicIntensity(@NFloat double value); + + /** + * true if drawing circles for this DataSet is enabled, false ifnot + */ + @Generated + @Selector("setDrawCircleHoleEnabled:") + void setDrawCircleHoleEnabled(boolean value); + + /** + * If true, drawing circles is enabled + */ + @Generated + @Selector("setDrawCirclesEnabled:") + void setDrawCirclesEnabled(boolean value); + + /** + * Sets a custom IFillFormatter to the chart that handles the position of the filled-line for each DataSet. Set this to null to use the default logic. + */ + @Generated + @Selector("setFillFormatter:") + void setFillFormatter(@Mapped(ObjCObjectMapper.class) IChartFillFormatter value); + + /** + * Line cap type, default is CGLineCap.Butt + */ + @Generated + @Selector("setLineCapType:") + void setLineCapType(int value); + + /** + * This is the actual dash pattern. + * I.e. [2, 3] will paint [– – ] + * [1, 3, 4, 2] will paint [- –– - –– ] + */ + @Generated + @Selector("setLineDashLengths:") + void setLineDashLengths(NSArray value); + + /** + * The drawing mode for this line dataset + * default: Linear + */ + @Generated + @Selector("setMode:") + void setMode(@NInt long value); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ILineRadarChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ILineRadarChartDataSet.java index 2920a176..d7253c69 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ILineRadarChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ILineRadarChartDataSet.java @@ -17,51 +17,95 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolSourceName("ILineRadarChartDataSet") @ObjCProtocolName("_TtP6Charts22ILineRadarChartDataSet_") -public interface ILineRadarChartDataSet extends - ILineScatterCandleRadarChartDataSet { - @Generated - @Selector("drawFilledEnabled") - boolean drawFilledEnabled(); +public interface ILineRadarChartDataSet extends ILineScatterCandleRadarChartDataSet { + /** + * Set to true if the DataSet should be drawn filled (surface), and not just as a line. + * Disabling this will give great performance boost. + * Please note that this method uses the path clipping for drawing the filled area (with images, gradients and layers). + */ + @Generated + @Selector("drawFilledEnabled") + boolean drawFilledEnabled(); - @Generated - @Selector("fill") - ChartFill fill(); + /** + * returns: + * The object that is used for filling the area below the line. + * default: nil + */ + @Generated + @Selector("fill") + ChartFill fill(); - @Generated - @Selector("fillAlpha") - @NFloat - double fillAlpha(); + /** + * The alpha value that is used for filling the line surface. + * default: 0.33 + */ + @Generated + @Selector("fillAlpha") + @NFloat + double fillAlpha(); - @Generated - @Selector("fillColor") - UIColor fillColor(); + /** + * The color that is used for filling the line surface area. + */ + @Generated + @Selector("fillColor") + UIColor fillColor(); - @Generated - @Selector("isDrawFilledEnabled") - boolean isDrawFilledEnabled(); + /** + * true if filled drawing is enabled, false if not + */ + @Generated + @Selector("isDrawFilledEnabled") + boolean isDrawFilledEnabled(); - @Generated - @Selector("lineWidth") - @NFloat - double lineWidth(); + /** + * line width of the chart (min = 0.0, max = 10) + * default: 1 + */ + @Generated + @Selector("lineWidth") + @NFloat + double lineWidth(); - @Generated - @Selector("setDrawFilledEnabled:") - void setDrawFilledEnabled(boolean value); + /** + * Set to true if the DataSet should be drawn filled (surface), and not just as a line. + * Disabling this will give great performance boost. + * Please note that this method uses the path clipping for drawing the filled area (with images, gradients and layers). + */ + @Generated + @Selector("setDrawFilledEnabled:") + void setDrawFilledEnabled(boolean value); - @Generated - @Selector("setFill:") - void setFill(ChartFill value); + /** + * returns: + * The object that is used for filling the area below the line. + * default: nil + */ + @Generated + @Selector("setFill:") + void setFill(ChartFill value); - @Generated - @Selector("setFillAlpha:") - void setFillAlpha(@NFloat double value); + /** + * The alpha value that is used for filling the line surface. + * default: 0.33 + */ + @Generated + @Selector("setFillAlpha:") + void setFillAlpha(@NFloat double value); - @Generated - @Selector("setFillColor:") - void setFillColor(UIColor value); + /** + * The color that is used for filling the line surface area. + */ + @Generated + @Selector("setFillColor:") + void setFillColor(UIColor value); - @Generated - @Selector("setLineWidth:") - void setLineWidth(@NFloat double value); + /** + * line width of the chart (min = 0.0, max = 10) + * default: 1 + */ + @Generated + @Selector("setLineWidth:") + void setLineWidth(@NFloat double value); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ILineScatterCandleRadarChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ILineScatterCandleRadarChartDataSet.java index 6c232f9d..076608f6 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ILineScatterCandleRadarChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ILineScatterCandleRadarChartDataSet.java @@ -14,33 +14,54 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolSourceName("ILineScatterCandleRadarChartDataSet") @ObjCProtocolName("_TtP6Charts35ILineScatterCandleRadarChartDataSet_") -public interface ILineScatterCandleRadarChartDataSet extends - IBarLineScatterCandleBubbleChartDataSet { - @Generated - @Selector("drawHorizontalHighlightIndicatorEnabled") - boolean drawHorizontalHighlightIndicatorEnabled(); - - @Generated - @Selector("drawVerticalHighlightIndicatorEnabled") - boolean drawVerticalHighlightIndicatorEnabled(); - - @Generated - @Selector("isHorizontalHighlightIndicatorEnabled") - boolean isHorizontalHighlightIndicatorEnabled(); - - @Generated - @Selector("isVerticalHighlightIndicatorEnabled") - boolean isVerticalHighlightIndicatorEnabled(); - - @Generated - @Selector("setDrawHighlightIndicators:") - void setDrawHighlightIndicators(boolean enabled); - - @Generated - @Selector("setDrawHorizontalHighlightIndicatorEnabled:") - void setDrawHorizontalHighlightIndicatorEnabled(boolean value); - - @Generated - @Selector("setDrawVerticalHighlightIndicatorEnabled:") - void setDrawVerticalHighlightIndicatorEnabled(boolean value); +public interface ILineScatterCandleRadarChartDataSet extends IBarLineScatterCandleBubbleChartDataSet { + /** + * Enables / disables the horizontal highlight-indicator. If disabled, the indicator is not drawn. + */ + @Generated + @Selector("drawHorizontalHighlightIndicatorEnabled") + boolean drawHorizontalHighlightIndicatorEnabled(); + + /** + * Enables / disables the vertical highlight-indicator. If disabled, the indicator is not drawn. + */ + @Generated + @Selector("drawVerticalHighlightIndicatorEnabled") + boolean drawVerticalHighlightIndicatorEnabled(); + + /** + * true if horizontal highlight indicator lines are enabled (drawn) + */ + @Generated + @Selector("isHorizontalHighlightIndicatorEnabled") + boolean isHorizontalHighlightIndicatorEnabled(); + + /** + * true if vertical highlight indicator lines are enabled (drawn) + */ + @Generated + @Selector("isVerticalHighlightIndicatorEnabled") + boolean isVerticalHighlightIndicatorEnabled(); + + /** + * Enables / disables both vertical and horizontal highlight-indicators. + * :param: enabled + */ + @Generated + @Selector("setDrawHighlightIndicators:") + void setDrawHighlightIndicators(boolean enabled); + + /** + * Enables / disables the horizontal highlight-indicator. If disabled, the indicator is not drawn. + */ + @Generated + @Selector("setDrawHorizontalHighlightIndicatorEnabled:") + void setDrawHorizontalHighlightIndicatorEnabled(boolean value); + + /** + * Enables / disables the vertical highlight-indicator. If disabled, the indicator is not drawn. + */ + @Generated + @Selector("setDrawVerticalHighlightIndicatorEnabled:") + void setDrawVerticalHighlightIndicatorEnabled(boolean value); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IPieChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IPieChartDataSet.java index cfe68761..20481dd7 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IPieChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IPieChartDataSet.java @@ -19,115 +19,213 @@ @ObjCProtocolSourceName("IPieChartDataSet") @ObjCProtocolName("_TtP6Charts16IPieChartDataSet_") public interface IPieChartDataSet extends IChartDataSet { - @Generated - @Selector("automaticallyDisableSliceSpacing") - boolean automaticallyDisableSliceSpacing(); - - @Generated - @Selector("entryLabelColor") - UIColor entryLabelColor(); - - @Generated - @Selector("entryLabelFont") - UIFont entryLabelFont(); - - @Generated - @Selector("selectionShift") - @NFloat - double selectionShift(); - - @Generated - @Selector("setAutomaticallyDisableSliceSpacing:") - void setAutomaticallyDisableSliceSpacing(boolean value); - - @Generated - @Selector("setEntryLabelColor:") - void setEntryLabelColor(UIColor value); - - @Generated - @Selector("setEntryLabelFont:") - void setEntryLabelFont(UIFont value); - - @Generated - @Selector("setSelectionShift:") - void setSelectionShift(@NFloat double value); - - @Generated - @Selector("setSliceSpace:") - void setSliceSpace(@NFloat double value); - - @Generated - @Selector("setValueLineColor:") - void setValueLineColor(UIColor value); - - @Generated - @Selector("setValueLinePart1Length:") - void setValueLinePart1Length(@NFloat double value); - - @Generated - @Selector("setValueLinePart1OffsetPercentage:") - void setValueLinePart1OffsetPercentage(@NFloat double value); - - @Generated - @Selector("setValueLinePart2Length:") - void setValueLinePart2Length(@NFloat double value); - - @Generated - @Selector("setValueLineVariableLength:") - void setValueLineVariableLength(boolean value); - - @Generated - @Selector("setValueLineWidth:") - void setValueLineWidth(@NFloat double value); - - @Generated - @Selector("setXValuePosition:") - void setXValuePosition(@NInt long value); - - @Generated - @Selector("setYValuePosition:") - void setYValuePosition(@NInt long value); - - @Generated - @Selector("sliceSpace") - @NFloat - double sliceSpace(); - - @Generated - @Selector("valueLineColor") - UIColor valueLineColor(); - - @Generated - @Selector("valueLinePart1Length") - @NFloat - double valueLinePart1Length(); - - @Generated - @Selector("valueLinePart1OffsetPercentage") - @NFloat - double valueLinePart1OffsetPercentage(); - - @Generated - @Selector("valueLinePart2Length") - @NFloat - double valueLinePart2Length(); - - @Generated - @Selector("valueLineVariableLength") - boolean valueLineVariableLength(); - - @Generated - @Selector("valueLineWidth") - @NFloat - double valueLineWidth(); - - @Generated - @Selector("xValuePosition") - @NInt - long xValuePosition(); - - @Generated - @Selector("yValuePosition") - @NInt - long yValuePosition(); + /** + * When enabled, slice spacing will be 0.0 when the smallest value is going to be smaller than the slice spacing itself. + */ + @Generated + @Selector("automaticallyDisableSliceSpacing") + boolean automaticallyDisableSliceSpacing(); + + /** + * the color for the slice-text labels + */ + @Generated + @Selector("entryLabelColor") + UIColor entryLabelColor(); + + /** + * the font for the slice-text labels + */ + @Generated + @Selector("entryLabelFont") + UIFont entryLabelFont(); + + /** + * get/sets the color for the highlighted sector + */ + @Generated + @Selector("highlightColor") + UIColor highlightColor(); + + /** + * indicates the selection distance of a pie slice + */ + @Generated + @Selector("selectionShift") + @NFloat + double selectionShift(); + + /** + * When enabled, slice spacing will be 0.0 when the smallest value is going to be smaller than the slice spacing itself. + */ + @Generated + @Selector("setAutomaticallyDisableSliceSpacing:") + void setAutomaticallyDisableSliceSpacing(boolean value); + + /** + * the color for the slice-text labels + */ + @Generated + @Selector("setEntryLabelColor:") + void setEntryLabelColor(UIColor value); + + /** + * the font for the slice-text labels + */ + @Generated + @Selector("setEntryLabelFont:") + void setEntryLabelFont(UIFont value); + + /** + * get/sets the color for the highlighted sector + */ + @Generated + @Selector("setHighlightColor:") + void setHighlightColor(UIColor value); + + /** + * indicates the selection distance of a pie slice + */ + @Generated + @Selector("setSelectionShift:") + void setSelectionShift(@NFloat double value); + + /** + * the space in pixels between the pie-slices + * default: 0 + * maximum: 20 + */ + @Generated + @Selector("setSliceSpace:") + void setSliceSpace(@NFloat double value); + + /** + * When valuePosition is OutsideSlice and enabled, line will have the same color as the slice + */ + @Generated + @Selector("setUseValueColorForLine:") + void setUseValueColorForLine(boolean value); + + /** + * When valuePosition is OutsideSlice, indicates line color + */ + @Generated + @Selector("setValueLineColor:") + void setValueLineColor(UIColor value); + + /** + * When valuePosition is OutsideSlice, indicates length of first half of the line + */ + @Generated + @Selector("setValueLinePart1Length:") + void setValueLinePart1Length(@NFloat double value); + + /** + * When valuePosition is OutsideSlice, indicates offset as percentage out of the slice size + */ + @Generated + @Selector("setValueLinePart1OffsetPercentage:") + void setValueLinePart1OffsetPercentage(@NFloat double value); + + /** + * When valuePosition is OutsideSlice, indicates length of second half of the line + */ + @Generated + @Selector("setValueLinePart2Length:") + void setValueLinePart2Length(@NFloat double value); + + /** + * When valuePosition is OutsideSlice, this allows variable line length + */ + @Generated + @Selector("setValueLineVariableLength:") + void setValueLineVariableLength(boolean value); + + /** + * When valuePosition is OutsideSlice, indicates line width + */ + @Generated + @Selector("setValueLineWidth:") + void setValueLineWidth(@NFloat double value); + + @Generated + @Selector("setXValuePosition:") + void setXValuePosition(@NInt long value); + + @Generated + @Selector("setYValuePosition:") + void setYValuePosition(@NInt long value); + + /** + * the space in pixels between the pie-slices + * default: 0 + * maximum: 20 + */ + @Generated + @Selector("sliceSpace") + @NFloat + double sliceSpace(); + + /** + * When valuePosition is OutsideSlice and enabled, line will have the same color as the slice + */ + @Generated + @Selector("useValueColorForLine") + boolean useValueColorForLine(); + + /** + * When valuePosition is OutsideSlice, indicates line color + */ + @Generated + @Selector("valueLineColor") + UIColor valueLineColor(); + + /** + * When valuePosition is OutsideSlice, indicates length of first half of the line + */ + @Generated + @Selector("valueLinePart1Length") + @NFloat + double valueLinePart1Length(); + + /** + * When valuePosition is OutsideSlice, indicates offset as percentage out of the slice size + */ + @Generated + @Selector("valueLinePart1OffsetPercentage") + @NFloat + double valueLinePart1OffsetPercentage(); + + /** + * When valuePosition is OutsideSlice, indicates length of second half of the line + */ + @Generated + @Selector("valueLinePart2Length") + @NFloat + double valueLinePart2Length(); + + /** + * When valuePosition is OutsideSlice, this allows variable line length + */ + @Generated + @Selector("valueLineVariableLength") + boolean valueLineVariableLength(); + + /** + * When valuePosition is OutsideSlice, indicates line width + */ + @Generated + @Selector("valueLineWidth") + @NFloat + double valueLineWidth(); + + @Generated + @Selector("xValuePosition") + @NInt + long xValuePosition(); + + @Generated + @Selector("yValuePosition") + @NInt + long yValuePosition(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IRadarChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IRadarChartDataSet.java index 998d16fb..ab050e51 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IRadarChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IRadarChartDataSet.java @@ -17,67 +17,81 @@ @ObjCProtocolSourceName("IRadarChartDataSet") @ObjCProtocolName("_TtP6Charts18IRadarChartDataSet_") public interface IRadarChartDataSet extends ILineRadarChartDataSet { - @Generated - @Selector("drawHighlightCircleEnabled") - boolean drawHighlightCircleEnabled(); - - @Generated - @Selector("highlightCircleFillColor") - UIColor highlightCircleFillColor(); - - @Generated - @Selector("highlightCircleInnerRadius") - @NFloat - double highlightCircleInnerRadius(); - - @Generated - @Selector("highlightCircleOuterRadius") - @NFloat - double highlightCircleOuterRadius(); - - @Generated - @Selector("highlightCircleStrokeAlpha") - @NFloat - double highlightCircleStrokeAlpha(); - - @Generated - @Selector("highlightCircleStrokeColor") - UIColor highlightCircleStrokeColor(); - - @Generated - @Selector("highlightCircleStrokeWidth") - @NFloat - double highlightCircleStrokeWidth(); - - @Generated - @Selector("isDrawHighlightCircleEnabled") - boolean isDrawHighlightCircleEnabled(); - - @Generated - @Selector("setDrawHighlightCircleEnabled:") - void setDrawHighlightCircleEnabled(boolean value); - - @Generated - @Selector("setHighlightCircleFillColor:") - void setHighlightCircleFillColor(UIColor value); - - @Generated - @Selector("setHighlightCircleInnerRadius:") - void setHighlightCircleInnerRadius(@NFloat double value); - - @Generated - @Selector("setHighlightCircleOuterRadius:") - void setHighlightCircleOuterRadius(@NFloat double value); - - @Generated - @Selector("setHighlightCircleStrokeAlpha:") - void setHighlightCircleStrokeAlpha(@NFloat double value); - - @Generated - @Selector("setHighlightCircleStrokeColor:") - void setHighlightCircleStrokeColor(UIColor value); - - @Generated - @Selector("setHighlightCircleStrokeWidth:") - void setHighlightCircleStrokeWidth(@NFloat double value); + /** + * flag indicating whether highlight circle should be drawn or not + */ + @Generated + @Selector("drawHighlightCircleEnabled") + boolean drawHighlightCircleEnabled(); + + @Generated + @Selector("highlightCircleFillColor") + UIColor highlightCircleFillColor(); + + @Generated + @Selector("highlightCircleInnerRadius") + @NFloat + double highlightCircleInnerRadius(); + + @Generated + @Selector("highlightCircleOuterRadius") + @NFloat + double highlightCircleOuterRadius(); + + @Generated + @Selector("highlightCircleStrokeAlpha") + @NFloat + double highlightCircleStrokeAlpha(); + + /** + * The stroke color for highlight circle. + * If nil, the color of the dataset is taken. + */ + @Generated + @Selector("highlightCircleStrokeColor") + UIColor highlightCircleStrokeColor(); + + @Generated + @Selector("highlightCircleStrokeWidth") + @NFloat + double highlightCircleStrokeWidth(); + + @Generated + @Selector("isDrawHighlightCircleEnabled") + boolean isDrawHighlightCircleEnabled(); + + /** + * flag indicating whether highlight circle should be drawn or not + */ + @Generated + @Selector("setDrawHighlightCircleEnabled:") + void setDrawHighlightCircleEnabled(boolean value); + + @Generated + @Selector("setHighlightCircleFillColor:") + void setHighlightCircleFillColor(UIColor value); + + @Generated + @Selector("setHighlightCircleInnerRadius:") + void setHighlightCircleInnerRadius(@NFloat double value); + + @Generated + @Selector("setHighlightCircleOuterRadius:") + void setHighlightCircleOuterRadius(@NFloat double value); + + @Generated + @Selector("setHighlightCircleStrokeAlpha:") + void setHighlightCircleStrokeAlpha(@NFloat double value); + + /** + * The stroke color for highlight circle. + * If nil, the color of the dataset is taken. + */ + @Generated + @Selector("setHighlightCircleStrokeColor:") + void setHighlightCircleStrokeColor(UIColor value); + + @Generated + @Selector("setHighlightCircleStrokeWidth:") + void setHighlightCircleStrokeWidth(@NFloat double value); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IScatterChartDataSet.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IScatterChartDataSet.java index 57aa20ff..15fd6b21 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IScatterChartDataSet.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IScatterChartDataSet.java @@ -18,24 +18,40 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolSourceName("IScatterChartDataSet") @ObjCProtocolName("_TtP6Charts20IScatterChartDataSet_") -public interface IScatterChartDataSet extends - ILineScatterCandleRadarChartDataSet { - @Generated - @Selector("scatterShapeHoleColor") - UIColor scatterShapeHoleColor(); +public interface IScatterChartDataSet extends ILineScatterCandleRadarChartDataSet { + /** + * returns: + * Color for the hole in the shape. Setting to nil will behave as transparent. + * default: nil + */ + @Generated + @Selector("scatterShapeHoleColor") + UIColor scatterShapeHoleColor(); - @Generated - @Selector("scatterShapeHoleRadius") - @NFloat - double scatterShapeHoleRadius(); + /** + * returns: + * The radius of the hole in the shape (applies to Square, Circle and Triangle) + * Set this to <= 0 to remove holes. + * default: 0.0 + */ + @Generated + @Selector("scatterShapeHoleRadius") + @NFloat + double scatterShapeHoleRadius(); - @Generated - @Selector("scatterShapeSize") - @NFloat - double scatterShapeSize(); + /** + * The size the scatter shape will have + */ + @Generated + @Selector("scatterShapeSize") + @NFloat + double scatterShapeSize(); - @Generated - @Selector("shapeRenderer") - @MappedReturn(ObjCObjectMapper.class) - Object shapeRenderer(); + /** + * The IShapeRenderer responsible for rendering this DataSet. + */ + @Generated + @Selector("shapeRenderer") + @MappedReturn(ObjCObjectMapper.class) + IShapeRenderer shapeRenderer(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IShapeRenderer.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IShapeRenderer.java index 43dcb235..a1f61a66 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IShapeRenderer.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/IShapeRenderer.java @@ -22,11 +22,21 @@ @ObjCProtocolSourceName("IShapeRenderer") @ObjCProtocolName("_TtP6Charts14IShapeRenderer_") public interface IShapeRenderer { - @Generated - @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") - void renderShapeWithContextDataSetViewPortHandlerPointColor( - CGContextRef context, - @Mapped(ObjCObjectMapper.class) Object dataSet, - ChartViewPortHandler viewPortHandler, @ByValue CGPoint point, - UIColor color); + /** + * Renders the provided ScatterDataSet with a shape. + * \param context CGContext for drawing on + * + * \param dataSet The DataSet to be drawn + * + * \param viewPortHandler Contains information about the current state of the view + * + * \param point Position to draw the shape at + * + * \param color Color to draw the shape + */ + @Generated + @Selector("renderShapeWithContext:dataSet:viewPortHandler:point:color:") + void renderShapeWithContextDataSetViewPortHandlerPointColor(CGContextRef context, + @Mapped(ObjCObjectMapper.class) IScatterChartDataSet dataSet, ChartViewPortHandler viewPortHandler, + @ByValue CGPoint point, UIColor color); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/LineChartDataProvider.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/LineChartDataProvider.java index 3cc4ffa5..3d218be7 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/LineChartDataProvider.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/LineChartDataProvider.java @@ -17,13 +17,12 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolSourceName("LineChartDataProvider") @ObjCProtocolName("_TtP6Charts21LineChartDataProvider_") -public interface LineChartDataProvider extends - BarLineScatterCandleBubbleChartDataProvider { - @Generated - @Selector("getAxis:") - ChartYAxis getAxis(@NInt long axis); +public interface LineChartDataProvider extends BarLineScatterCandleBubbleChartDataProvider { + @Generated + @Selector("getAxis:") + ChartYAxis getAxis(@NInt long axis); - @Generated - @Selector("lineData") - LineChartData lineData(); + @Generated + @Selector("lineData") + LineChartData lineData(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ScatterChartDataProvider.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ScatterChartDataProvider.java index b27a743e..dffd9fa7 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ScatterChartDataProvider.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/charts/protocol/ScatterChartDataProvider.java @@ -15,9 +15,8 @@ @Runtime(ObjCRuntime.class) @ObjCProtocolSourceName("ScatterChartDataProvider") @ObjCProtocolName("_TtP6Charts24ScatterChartDataProvider_") -public interface ScatterChartDataProvider extends - BarLineScatterCandleBubbleChartDataProvider { - @Generated - @Selector("scatterData") - ScatterChartData scatterData(); +public interface ScatterChartDataProvider extends BarLineScatterCandleBubbleChartDataProvider { + @Generated + @Selector("scatterData") + ScatterChartData scatterData(); } \ No newline at end of file diff --git a/SimpleChart/src/main/java/org/moe/samples/simplechart/ui/AppViewController.java b/SimpleChart/src/main/java/org/moe/samples/simplechart/ui/AppViewController.java index 281e8007..716f6f18 100644 --- a/SimpleChart/src/main/java/org/moe/samples/simplechart/ui/AppViewController.java +++ b/SimpleChart/src/main/java/org/moe/samples/simplechart/ui/AppViewController.java @@ -67,7 +67,7 @@ public void viewDidLoad() { ChartLimitLine llXAxis = ChartLimitLine.alloc().initWithLimitLabel(10.0, "Index 10"); llXAxis.setLineWidth(4.0); llXAxis.setLineDashLengths(arrayOfFloats(10.0f, 10.0f, 0.0f)); - llXAxis.setLabelPosition(ChartLimitLabelPosition.RightBottom); + llXAxis.setLabelPosition(ChartLimitLabelPosition.BottomRight); llXAxis.setValueFont(UIFont.systemFontOfSize(10.f)); chartView.xAxis().setGridLineDashLengths(arrayOfFloats(10.0f, 10.0f)); @@ -76,13 +76,13 @@ public void viewDidLoad() { ChartLimitLine ll1 = ChartLimitLine.alloc().initWithLimitLabel(10.0, "Upper Limit"); ll1.setLineWidth(4.0); ll1.setLineDashLengths(arrayOfFloats(5.0f, 5.0f)); - ll1.setLabelPosition(ChartLimitLabelPosition.RightTop); + ll1.setLabelPosition(ChartLimitLabelPosition.TopRight); ll1.setValueFont(UIFont.systemFontOfSize(10.f)); ChartLimitLine ll2 = ChartLimitLine.alloc().initWithLimitLabel(10.0, "Lower Limit"); ll2.setLineWidth(4.0); ll2.setLineDashLengths(arrayOfFloats(5.0f, 5.0f)); - ll2.setLabelPosition(ChartLimitLabelPosition.RightBottom); + ll2.setLabelPosition(ChartLimitLabelPosition.BottomRight); ll2.setValueFont(UIFont.systemFontOfSize(10.f)); ChartYAxis leftAxis = chartView.leftAxis(); @@ -105,7 +105,7 @@ public void viewDidLoad() { values.add(ChartDataEntry.alloc().initWithXY(stepI, Math.sin(stepI))); } - LineChartDataSet set1 = LineChartDataSet.alloc().initWithValuesLabel(values, "DataSet 1"); + LineChartDataSet set1 = LineChartDataSet.alloc().initWithEntriesLabel(values, "DataSet 1"); set1.setLineDashLengths(arrayOfFloats(5.0f, 2.5f)); set1.setHighlightLineDashLengths(arrayOfFloats(5.0f, 2.5f)); diff --git a/SimpleChart/xcode/Podfile b/SimpleChart/xcode/Podfile index 4c26ab58..82b66c4b 100644 --- a/SimpleChart/xcode/Podfile +++ b/SimpleChart/xcode/Podfile @@ -2,5 +2,5 @@ platform :ios, '9.3' use_frameworks! target 'SimpleChart' do - pod 'Charts', '~> 3.0.1' + pod 'Charts', '~> 3.5.0' end diff --git a/SimpleChart/xcode/SimpleChart.xcodeproj/project.pbxproj b/SimpleChart/xcode/SimpleChart.xcodeproj/project.pbxproj index 61527cba..f835c323 100644 --- a/SimpleChart/xcode/SimpleChart.xcodeproj/project.pbxproj +++ b/SimpleChart/xcode/SimpleChart.xcodeproj/project.pbxproj @@ -165,7 +165,6 @@ 58C6F5211DA66CB600309CB6 /* Frameworks */, 58C6F5221DA66CB600309CB6 /* Resources */, 27CD70C0DFCD853DC54E7B6A /* [CP] Embed Pods Frameworks */, - E05E2B7C084A0BC42BD520D1 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -199,6 +198,7 @@ developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( + English, en, Base, ); @@ -240,7 +240,7 @@ files = ( ); inputPaths = ( - "${SRCROOT}/Pods/Target Support Files/Pods-SimpleChart/Pods-SimpleChart-frameworks.sh", + "${PODS_ROOT}/Target Support Files/Pods-SimpleChart/Pods-SimpleChart-frameworks.sh", "${BUILT_PRODUCTS_DIR}/Charts/Charts.framework", ); name = "[CP] Embed Pods Frameworks"; @@ -249,7 +249,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SimpleChart/Pods-SimpleChart-frameworks.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-SimpleChart/Pods-SimpleChart-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; 4B7E0232B8F841ADA8F1E5B7 /* Compile Sources (MOE) */ = { @@ -264,22 +264,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/bash; - shellScript = "set -e\n\nexport MOE_BUILD_SOURCE_SET=\"main\"\n\n# Check project directory\nif [ ! -d \"$MOE_PROJECT_DIR\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_DIR' doesn't point to a directory!\"; exit 1;\nfi\ncd \"$MOE_PROJECT_DIR\"\n\n# Export JAVA_HOME\nexport JAVA_HOME=$(/usr/libexec/java_home -v 1.8)\n\n# Utility function for finding the Gradle implementation\nfunction findGradle {\n CD=\"$PWD\"\n while [ \"$CD\" != \"\" ]; do\n echo \"Looking for gradlew in $CD\"\n if [ -x \"$CD/gradlew\" ]; then\n GRADLE_EXEC=$CD/gradlew\n return 0\n fi\n CD=\"${CD%/*}\"\n done\n\n echo \"Checking with 'which'\"\n GRADLE_EXEC=$(which 'gradle')\n\n if [ \"$GRADLE_EXEC\" = \"\" ]; then\n echo \"Failed to locate 'gradle' executable!\"\n exit 1\n fi\n}\n\n# Build project with Gradle\nif [ -z \"$MOE_GRADLE_EXTERNAL_BUILD\" ]; then\n findGradle\n \"$GRADLE_EXEC\" --no-daemon moeXcodeInternal -s\nfi\n\n# Check output directory\nif [ ! -d \"${MOE_PROJECT_BUILD_DIR}\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_BUILD_DIR' doesn't point to a directory!\"; exit 1;\nfi\n\n# Copy some resources\nmkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/application.jar\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/preregister.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nif [ \"${MOE_BUILD_SOURCE_SET}\" == \"test\" ]; then\n cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/classlist.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nfi\n\n# Copy android CA certificates on demand\nif [ \"${MOE_COPY_ANDROID_CACERTS}\" == \"YES\" ]; then\n rm -rf \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n mkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n unzip \"${MOE_SDK_PATH}/sdk/moe-core-certificates.zip\" -d \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\nfi\n\n# Copy and sign MOE framework\nrsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \\\n \"${MOE_FRAMEWORK_PATH}/MOE.framework\" \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/\"\nif [ \"${VALID_ARCHS}\" == \"arm64\" ] || [ \"${VALID_ARCHS}\" == \"x86_64\" ]; then\n if [ \"${PLATFORM_NAME}\" == \"iphonesimulator\" ]; then\n lipo -thin x86_64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n else\n lipo -thin arm64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n fi\nfi\nif [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n /usr/bin/codesign --force --sign $EXPANDED_CODE_SIGN_IDENTITY $OTHER_CODE_SIGN_FLAGS \\\n --preserve-metadata=identifier,entitlements \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework\"\nfi\n"; - }; - E05E2B7C084A0BC42BD520D1 /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "[CP] Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SimpleChart/Pods-SimpleChart-resources.sh\"\n"; - showEnvVarsInLog = 0; + shellScript = "set -e\n\nexport MOE_BUILD_SOURCE_SET=\"main\"\n\n# Check project directory\nif [ ! -d \"$MOE_PROJECT_DIR\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_DIR' doesn't point to a directory!\"; exit 1;\nfi\ncd \"$MOE_PROJECT_DIR\"\n\n# Export JAVA_HOME\nif [ -z \"$JAVA_HOME\" ]; then\n if [ -z \"$MOE_JAVA_VERSION_OVERRIDE\" ]; then\n export JAVA_HOME=$(/usr/libexec/java_home)\n else\n export JAVA_HOME=$(/usr/libexec/java_home -v \"$MOE_JAVA_VERSION_OVERRIDE\")\n fi\nfi\necho $JAVA_HOME\n\n# Utility function for finding the Gradle implementation\nfunction findGradle {\n CD=\"$PWD\"\n while [ \"$CD\" != \"\" ]; do\n echo \"Looking for gradlew in $CD\"\n if [ -x \"$CD/gradlew\" ]; then\n GRADLE_EXEC=$CD/gradlew\n return 0\n fi\n CD=\"${CD%/*}\"\n done\n\n echo \"Checking with 'which'\"\n GRADLE_EXEC=$(which 'gradle')\n\n if [ \"$GRADLE_EXEC\" = \"\" ]; then\n echo \"Failed to locate 'gradle' executable!\"\n exit 1\n fi\n}\n\n# Build project with Gradle\nif [ -z \"$MOE_GRADLE_EXTERNAL_BUILD\" ]; then\n findGradle\n \"$GRADLE_EXEC\" --no-daemon moeXcodeInternal -s\nfi\n\n# Check output directory\nif [ ! -d \"${MOE_PROJECT_BUILD_DIR}\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_BUILD_DIR' doesn't point to a directory!\"; exit 1;\nfi\n\n# Copy some resources\nmkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\n#cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/application.jar\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/preregister.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nif [ \"${MOE_BUILD_SOURCE_SET}\" == \"test\" ]; then\n cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/test_provider/classlist.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nfi\n\n## Copy android CA certificates on demand\n#if [ \"${MOE_COPY_ANDROID_CACERTS}\" == \"YES\" ]; then\n# rm -rf \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n# mkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n# unzip \"${MOE_SDK_PATH}/sdk/moe-core-certificates.zip\" -d \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n#fi\n#\n## Copy and sign MOE framework\n#rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \\\n# \"${MOE_FRAMEWORK_PATH}/MOE.framework\" \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/\"\n#if [ \"${ARCHS}\" == \"arm64\" ] || [ \"${ARCHS}\" == \"x86_64\" ]; then\n# if [ \"${PLATFORM_NAME}\" == \"iphonesimulator\" ]; then\n# lipo -thin x86_64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n# else\n# lipo -thin arm64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n# fi\n#fi\n#if [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n# /usr/bin/codesign --force --sign $EXPANDED_CODE_SIGN_IDENTITY $OTHER_CODE_SIGN_FLAGS \\\n# --preserve-metadata=identifier,entitlements \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework\"\n#fi\n"; }; EFDFA6C5CE7ACF08FF4283F1 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; @@ -311,7 +296,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/bash; - shellScript = "set -e\n\nexport MOE_BUILD_SOURCE_SET=\"test\"\n\n# Check project directory\nif [ ! -d \"$MOE_PROJECT_DIR\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_DIR' doesn't point to a directory!\"; exit 1;\nfi\ncd \"$MOE_PROJECT_DIR\"\n\n# Export JAVA_HOME\nexport JAVA_HOME=$(/usr/libexec/java_home -v 1.8)\n\n# Utility function for finding the Gradle implementation\nfunction findGradle {\n CD=\"$PWD\"\n while [ \"$CD\" != \"\" ]; do\n echo \"Looking for gradlew in $CD\"\n if [ -x \"$CD/gradlew\" ]; then\n GRADLE_EXEC=$CD/gradlew\n return 0\n fi\n CD=\"${CD%/*}\"\n done\n\n echo \"Checking with 'which'\"\n GRADLE_EXEC=$(which 'gradle')\n\n if [ \"$GRADLE_EXEC\" = \"\" ]; then\n echo \"Failed to locate 'gradle' executable!\"\n exit 1\n fi\n}\n\n# Build project with Gradle\nif [ -z \"$MOE_GRADLE_EXTERNAL_BUILD\" ]; then\n findGradle\n \"$GRADLE_EXEC\" --no-daemon moeXcodeInternal -s\nfi\n\n# Check output directory\nif [ ! -d \"${MOE_PROJECT_BUILD_DIR}\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_BUILD_DIR' doesn't point to a directory!\"; exit 1;\nfi\n\n# Copy some resources\nmkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/application.jar\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/preregister.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nif [ \"${MOE_BUILD_SOURCE_SET}\" == \"test\" ]; then\n cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/classlist.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nfi\n\n# Copy android CA certificates on demand\nif [ \"${MOE_COPY_ANDROID_CACERTS}\" == \"YES\" ]; then\n rm -rf \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n mkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n unzip \"${MOE_SDK_PATH}/sdk/moe-core-certificates.zip\" -d \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\nfi\n\n# Copy and sign MOE framework\nrsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \\\n \"${MOE_FRAMEWORK_PATH}/MOE.framework\" \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/\"\nif [ \"${VALID_ARCHS}\" == \"arm64\" ]; then\n if [ \"${PLATFORM_NAME}\" == \"iphonesimulator\" ]; then\n lipo -thin x86_64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n else\n lipo -thin arm64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n fi\nfi\nif [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n /usr/bin/codesign --force --sign $EXPANDED_CODE_SIGN_IDENTITY $OTHER_CODE_SIGN_FLAGS \\\n --preserve-metadata=identifier,entitlements \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework\"\nfi\n"; + shellScript = "set -e\n\nexport MOE_BUILD_SOURCE_SET=\"test\"\n\n# Check project directory\nif [ ! -d \"$MOE_PROJECT_DIR\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_DIR' doesn't point to a directory!\"; exit 1;\nfi\ncd \"$MOE_PROJECT_DIR\"\n\n# Export JAVA_HOME\nif [ -z \"$JAVA_HOME\" ]; then\n if [ -z \"$MOE_JAVA_VERSION_OVERRIDE\" ]; then\n export JAVA_HOME=$(/usr/libexec/java_home)\n else\n export JAVA_HOME=$(/usr/libexec/java_home -v \"$MOE_JAVA_VERSION_OVERRIDE\")\n fi\nfi\necho $JAVA_HOME\n\n# Utility function for finding the Gradle implementation\nfunction findGradle {\n CD=\"$PWD\"\n while [ \"$CD\" != \"\" ]; do\n echo \"Looking for gradlew in $CD\"\n if [ -x \"$CD/gradlew\" ]; then\n GRADLE_EXEC=$CD/gradlew\n return 0\n fi\n CD=\"${CD%/*}\"\n done\n\n echo \"Checking with 'which'\"\n GRADLE_EXEC=$(which 'gradle')\n\n if [ \"$GRADLE_EXEC\" = \"\" ]; then\n echo \"Failed to locate 'gradle' executable!\"\n exit 1\n fi\n}\n\n# Build project with Gradle\nif [ -z \"$MOE_GRADLE_EXTERNAL_BUILD\" ]; then\n findGradle\n \"$GRADLE_EXEC\" --no-daemon moeXcodeInternal -s\nfi\n\n# Check output directory\nif [ ! -d \"${MOE_PROJECT_BUILD_DIR}\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_BUILD_DIR' doesn't point to a directory!\"; exit 1;\nfi\n\n# Copy some resources\nmkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\n#cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/application.jar\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/preregister.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nif [ \"${MOE_BUILD_SOURCE_SET}\" == \"test\" ]; then\n cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/test_provider/classlist.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nfi\n\n## Copy android CA certificates on demand\n#if [ \"${MOE_COPY_ANDROID_CACERTS}\" == \"YES\" ]; then\n# rm -rf \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n# mkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n# unzip \"${MOE_SDK_PATH}/sdk/moe-core-certificates.zip\" -d \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n#fi\n#\n## Copy and sign MOE framework\n#rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \\\n# \"${MOE_FRAMEWORK_PATH}/MOE.framework\" \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/\"\n#if [ \"${ARCHS}\" == \"arm64\" ] || [ \"${ARCHS}\" == \"x86_64\" ]; then\n# if [ \"${PLATFORM_NAME}\" == \"iphonesimulator\" ]; then\n# lipo -thin x86_64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n# else\n# lipo -thin arm64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n# fi\n#fi\n#if [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n# /usr/bin/codesign --force --sign $EXPANDED_CODE_SIGN_IDENTITY $OTHER_CODE_SIGN_FLAGS \\\n# --preserve-metadata=identifier,entitlements \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework\"\n#fi\n"; }; /* End PBXShellScriptBuildPhase section */ @@ -361,23 +346,23 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEAD_CODE_STRIPPING = NO; ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + HEADER_SEARCH_PATHS = ( "$(inherited)", - "${MOE_FRAMEWORK_PATH}", + "${MOE_HEADER_SEARCH_PATHS}", ); INFOPLIST_FILE = "SimpleChart-Test/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MOE_COPY_ANDROID_CACERTS = NO; MOE_FRAMEWORK_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; - MOE_OTHER_LDFLAGS = "${MOE_SECT_OAT} ${MOE_SECT_ART} ${MOE_SEGPROT} ${MOE_PAGEZERO} ${MOE_CUSTOM_OTHER_LDFLAGS} -lstdc++ -framework MOE"; + MOE_HEADER_SEARCH_PATHS = "${MOE_LIB_PATH}/include"; + MOE_JAVA_VERSION_OVERRIDE = ""; + MOE_LIB_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; + MOE_OTHER_LDFLAGS = "${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/main_${arch}.o ${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/llvm_${arch}.o ${MOE_CUSTOM_OTHER_LDFLAGS} -Wl,-force_load,${MOE_LIB_PATH}/libmoe.a -lpthread -lsqlite3 -Wl,-framework,Foundation -Wl,-framework,UniformTypeIdentifiers -Wl,-framework,CoreServices"; "MOE_PAGEZERO[sdk=iphoneos*]" = ""; - "MOE_PAGEZERO[sdk=iphonesimulator*]" = "-pagezero_size 4096"; MOE_PROJECT_BUILD_DIR = "${MOE_PROJECT_DIR}/build"; MOE_PROJECT_DIR = "${SRCROOT}/../"; MOE_SDK_PATH = "${MOE_PROJECT_BUILD_DIR}/moe/sdk"; - MOE_SECT_ART = "-sectcreate __ARTDATA __artdata \"${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.art\""; MOE_SECT_OAT = "-sectcreate __OATDATA __oatdata \"${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.oat\""; - "MOE_SEGPROT[sdk=iphoneos*]" = "-segprot __OATDATA rx rx -segprot __ARTDATA rw rw"; "MOE_SEGPROT[sdk=iphonesimulator*]" = "-segprot __OATDATA rwx rx -segprot __ARTDATA rwx rw"; ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = ( @@ -396,23 +381,23 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEAD_CODE_STRIPPING = NO; ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + HEADER_SEARCH_PATHS = ( "$(inherited)", - "${MOE_FRAMEWORK_PATH}", + "${MOE_HEADER_SEARCH_PATHS}", ); INFOPLIST_FILE = "SimpleChart-Test/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MOE_COPY_ANDROID_CACERTS = NO; MOE_FRAMEWORK_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; - MOE_OTHER_LDFLAGS = "${MOE_SECT_OAT} ${MOE_SECT_ART} ${MOE_SEGPROT} ${MOE_PAGEZERO} ${MOE_CUSTOM_OTHER_LDFLAGS} -lstdc++ -framework MOE"; + MOE_HEADER_SEARCH_PATHS = "${MOE_LIB_PATH}/include"; + MOE_JAVA_VERSION_OVERRIDE = ""; + MOE_LIB_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; + MOE_OTHER_LDFLAGS = "${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/main_${arch}.o ${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/llvm_${arch}.o ${MOE_CUSTOM_OTHER_LDFLAGS} -Wl,-force_load,${MOE_LIB_PATH}/libmoe.a -lpthread -lsqlite3 -Wl,-framework,Foundation -Wl,-framework,UniformTypeIdentifiers -Wl,-framework,CoreServices"; "MOE_PAGEZERO[sdk=iphoneos*]" = ""; - "MOE_PAGEZERO[sdk=iphonesimulator*]" = "-pagezero_size 4096"; MOE_PROJECT_BUILD_DIR = "${MOE_PROJECT_DIR}/build"; MOE_PROJECT_DIR = "${SRCROOT}/../"; MOE_SDK_PATH = "${MOE_PROJECT_BUILD_DIR}/moe/sdk"; - MOE_SECT_ART = "-sectcreate __ARTDATA __artdata \"${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.art\""; MOE_SECT_OAT = "-sectcreate __OATDATA __oatdata \"${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.oat\""; - "MOE_SEGPROT[sdk=iphoneos*]" = "-segprot __OATDATA rx rx -segprot __ARTDATA rw rw"; "MOE_SEGPROT[sdk=iphonesimulator*]" = "-segprot __OATDATA rwx rx -segprot __ARTDATA rwx rw"; ONLY_ACTIVE_ARCH = NO; OTHER_LDFLAGS = ( @@ -429,6 +414,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + "ARCHS[sdk=iphoneos*]" = arm64; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; @@ -450,6 +436,7 @@ DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; @@ -464,8 +451,8 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.3; - MOE_VERSION = 1.4.2; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + MOE_VERSION = 2.0.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -477,6 +464,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + "ARCHS[sdk=iphoneos*]" = arm64; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; @@ -498,6 +486,7 @@ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; @@ -506,8 +495,8 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.3; - MOE_VERSION = 1.4.2; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + MOE_VERSION = 2.0.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; @@ -521,31 +510,32 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEAD_CODE_STRIPPING = NO; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + HEADER_SEARCH_PATHS = ( "$(inherited)", - "${MOE_FRAMEWORK_PATH}", + "${MOE_HEADER_SEARCH_PATHS}", ); INFOPLIST_FILE = SimpleChart/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MOE_COPY_ANDROID_CACERTS = NO; MOE_FRAMEWORK_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; - MOE_OTHER_LDFLAGS = "${MOE_SECT_OAT} ${MOE_SECT_ART} ${MOE_SEGPROT} ${MOE_PAGEZERO} ${MOE_CUSTOM_OTHER_LDFLAGS} -lstdc++ -framework MOE"; + MOE_HEADER_SEARCH_PATHS = "${MOE_LIB_PATH}/include"; + MOE_JAVA_VERSION_OVERRIDE = ""; + MOE_LIB_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; + MOE_OTHER_LDFLAGS = "${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/main_${arch}.o ${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/llvm_${arch}.o ${MOE_CUSTOM_OTHER_LDFLAGS} -Wl,-force_load,${MOE_LIB_PATH}/libmoe.a -lpthread -lsqlite3 -Wl,-framework,Foundation -Wl,-framework,UniformTypeIdentifiers -Wl,-framework,CoreServices"; "MOE_PAGEZERO[sdk=iphoneos*]" = ""; - "MOE_PAGEZERO[sdk=iphonesimulator*]" = "-pagezero_size 4096"; MOE_PROJECT_BUILD_DIR = "${MOE_PROJECT_DIR}/build"; MOE_PROJECT_DIR = "${SRCROOT}/../"; MOE_SDK_PATH = "${MOE_PROJECT_BUILD_DIR}/moe/sdk"; - MOE_SECT_ART = "-sectcreate __ARTDATA __artdata \"${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.art\""; MOE_SECT_OAT = "-sectcreate __OATDATA __oatdata \"${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.oat\""; - "MOE_SEGPROT[sdk=iphoneos*]" = "-segprot __OATDATA rx rx -segprot __ARTDATA rw rw"; "MOE_SEGPROT[sdk=iphonesimulator*]" = "-segprot __OATDATA rwx rx -segprot __ARTDATA rwx rw"; ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = ( "$(inherited)", "${MOE_OTHER_LDFLAGS}", ); - PRODUCT_BUNDLE_IDENTIFIER = org.moe.samples.SimpleChart; + PRODUCT_BUNDLE_IDENTIFIER = org.moe.samples.SimpleCharts; PRODUCT_NAME = "$(TARGET_NAME)"; STRIP_STYLE = "non-global"; SWIFT_VERSION = 3.0; @@ -558,31 +548,32 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEAD_CODE_STRIPPING = NO; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + HEADER_SEARCH_PATHS = ( "$(inherited)", - "${MOE_FRAMEWORK_PATH}", + "${MOE_HEADER_SEARCH_PATHS}", ); INFOPLIST_FILE = SimpleChart/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MOE_COPY_ANDROID_CACERTS = NO; MOE_FRAMEWORK_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; - MOE_OTHER_LDFLAGS = "${MOE_SECT_OAT} ${MOE_SECT_ART} ${MOE_SEGPROT} ${MOE_PAGEZERO} ${MOE_CUSTOM_OTHER_LDFLAGS} -lstdc++ -framework MOE"; + MOE_HEADER_SEARCH_PATHS = "${MOE_LIB_PATH}/include"; + MOE_JAVA_VERSION_OVERRIDE = ""; + MOE_LIB_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; + MOE_OTHER_LDFLAGS = "${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/main_${arch}.o ${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/llvm_${arch}.o ${MOE_CUSTOM_OTHER_LDFLAGS} -Wl,-force_load,${MOE_LIB_PATH}/libmoe.a -lpthread -lsqlite3 -Wl,-framework,Foundation -Wl,-framework,UniformTypeIdentifiers -Wl,-framework,CoreServices"; "MOE_PAGEZERO[sdk=iphoneos*]" = ""; - "MOE_PAGEZERO[sdk=iphonesimulator*]" = "-pagezero_size 4096"; MOE_PROJECT_BUILD_DIR = "${MOE_PROJECT_DIR}/build"; MOE_PROJECT_DIR = "${SRCROOT}/../"; MOE_SDK_PATH = "${MOE_PROJECT_BUILD_DIR}/moe/sdk"; - MOE_SECT_ART = "-sectcreate __ARTDATA __artdata \"${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.art\""; MOE_SECT_OAT = "-sectcreate __OATDATA __oatdata \"${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.oat\""; - "MOE_SEGPROT[sdk=iphoneos*]" = "-segprot __OATDATA rx rx -segprot __ARTDATA rw rw"; "MOE_SEGPROT[sdk=iphonesimulator*]" = "-segprot __OATDATA rwx rx -segprot __ARTDATA rwx rw"; ONLY_ACTIVE_ARCH = NO; OTHER_LDFLAGS = ( "$(inherited)", "${MOE_OTHER_LDFLAGS}", ); - PRODUCT_BUNDLE_IDENTIFIER = org.moe.samples.SimpleChart; + PRODUCT_BUNDLE_IDENTIFIER = org.moe.samples.SimpleCharts; PRODUCT_NAME = "$(TARGET_NAME)"; STRIP_STYLE = "non-global"; SWIFT_VERSION = 3.0; diff --git a/SpeakHere/build.gradle b/SpeakHere/build.gradle index dc351803..316dba9c 100644 --- a/SpeakHere/build.gradle +++ b/SpeakHere/build.gradle @@ -7,11 +7,19 @@ buildscript { repositories { jcenter() mavenLocal() + maven { + url 'https://oss.sonatype.org/content/repositories/snapshots/' + } + } dependencies { - // MOE plugin - classpath group: 'org.multi-os-engine', name: 'moe-gradle', version: '1.4.+' + // Multi-OS Engine plugin + classpath group: 'org.multi-os-engine', name: 'moe-gradle', version: '2.0.0-SNAPSHOT' + } + configurations.all { + resolutionStrategy.cacheChangingModulesFor 1, 'seconds' } + } /*******************/ diff --git a/SpeakHere/dynamic-proxies.json b/SpeakHere/dynamic-proxies.json new file mode 100644 index 00000000..a11269de --- /dev/null +++ b/SpeakHere/dynamic-proxies.json @@ -0,0 +1,3 @@ +[ + ["apple.uikit.protocol.UIBarPositioning"] +] \ No newline at end of file diff --git a/SpeakHere/gradle/wrapper/gradle-wrapper.properties b/SpeakHere/gradle/wrapper/gradle-wrapper.properties index fb6aeaef..848bee9d 100644 --- a/SpeakHere/gradle/wrapper/gradle-wrapper.properties +++ b/SpeakHere/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Tue Oct 14 10:42:54 CEST 2014 +#Mon May 17 01:04:39 CEST 2021 distributionBase=GRADLE_USER_HOME +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip +zipStoreBase=GRADLE_USER_HOME diff --git a/SpeakHere/src/main/java/com/migeran/speakhere/AQPlayer.java b/SpeakHere/src/main/java/com/migeran/speakhere/AQPlayer.java index eb6d7fe3..176a327e 100644 --- a/SpeakHere/src/main/java/com/migeran/speakhere/AQPlayer.java +++ b/SpeakHere/src/main/java/com/migeran/speakhere/AQPlayer.java @@ -29,9 +29,9 @@ import apple.audiotoolbox.opaque.AudioFileID; import apple.audiotoolbox.opaque.AudioQueueRef; import apple.audiotoolbox.struct.AudioQueueBuffer; -import apple.coreaudio.struct.AudioChannelLayout; -import apple.coreaudio.struct.AudioStreamBasicDescription; -import apple.coreaudio.struct.AudioStreamPacketDescription; +import apple.coreaudiotypes.struct.AudioChannelLayout; +import apple.coreaudiotypes.struct.AudioStreamBasicDescription; +import apple.coreaudiotypes.struct.AudioStreamPacketDescription; import apple.corefoundation.enums.CFStringBuiltInEncodings; import apple.corefoundation.enums.CFURLPathStyle; import apple.corefoundation.opaque.CFStringRef; diff --git a/SpeakHere/src/main/java/com/migeran/speakhere/AQRecorder.java b/SpeakHere/src/main/java/com/migeran/speakhere/AQRecorder.java index 90422819..f22f239e 100644 --- a/SpeakHere/src/main/java/com/migeran/speakhere/AQRecorder.java +++ b/SpeakHere/src/main/java/com/migeran/speakhere/AQRecorder.java @@ -1,5 +1,34 @@ package com.migeran.speakhere; +import org.moe.natj.c.CRuntime; +import org.moe.natj.general.ann.Keep; +import org.moe.natj.general.ann.ReferenceInfo; +import org.moe.natj.general.ann.RegisterOnStartup; +import org.moe.natj.general.ptr.BytePtr; +import org.moe.natj.general.ptr.ConstPtr; +import org.moe.natj.general.ptr.IntPtr; +import org.moe.natj.general.ptr.Ptr; +import org.moe.natj.general.ptr.VoidPtr; +import org.moe.natj.general.ptr.impl.PtrFactory; +import org.moe.natj.general.ptr.impl.PtrUtils; + +import java.io.File; + +import apple.audiotoolbox.c.AudioToolbox.Function_AudioQueueNewInput; +import apple.audiotoolbox.enums.AudioFileFlags; +import apple.audiotoolbox.enums.Enums; +import apple.audiotoolbox.opaque.AudioFileID; +import apple.audiotoolbox.opaque.AudioQueueRef; +import apple.audiotoolbox.struct.AudioQueueBuffer; +import apple.avfoundation.AVAudioSession; +import apple.coreaudiotypes.struct.AudioStreamPacketDescription; +import apple.coreaudiotypes.struct.AudioTimeStamp; +import apple.coreaudiotypes.struct.AudioStreamBasicDescription; +import apple.corefoundation.enums.CFStringBuiltInEncodings; +import apple.corefoundation.opaque.CFStringRef; +import apple.corefoundation.opaque.CFURLRef; +import apple.foundation.c.Foundation; + import static apple.audiotoolbox.c.AudioToolbox.AudioFileClose; import static apple.audiotoolbox.c.AudioToolbox.AudioFileCreateWithURL; import static apple.audiotoolbox.c.AudioToolbox.AudioFileGetPropertyInfo; @@ -17,33 +46,6 @@ import static apple.corefoundation.c.CoreFoundation.CFStringCreateWithCString; import static apple.corefoundation.c.CoreFoundation.CFURLCreateWithString; import static apple.corefoundation.c.CoreFoundation.kCFAllocatorDefault; -import apple.audiotoolbox.c.AudioToolbox.Function_AudioQueueNewInput; -import apple.audiotoolbox.enums.AudioFileFlags; -import apple.audiotoolbox.enums.Enums; -import apple.audiotoolbox.opaque.AudioFileID; -import apple.audiotoolbox.opaque.AudioQueueRef; -import apple.audiotoolbox.struct.AudioQueueBuffer; -import apple.avfoundation.AVAudioSession; -import apple.coreaudio.struct.AudioStreamBasicDescription; -import apple.coreaudio.struct.AudioStreamPacketDescription; -import apple.coreaudio.struct.AudioTimeStamp; -import apple.corefoundation.enums.CFStringBuiltInEncodings; -import apple.corefoundation.opaque.CFStringRef; -import apple.corefoundation.opaque.CFURLRef; -import apple.foundation.c.Foundation; - -import java.io.File; - -import org.moe.natj.c.CRuntime; -import org.moe.natj.general.ann.Keep; -import org.moe.natj.general.ann.ReferenceInfo; -import org.moe.natj.general.ptr.BytePtr; -import org.moe.natj.general.ptr.ConstPtr; -import org.moe.natj.general.ptr.IntPtr; -import org.moe.natj.general.ptr.Ptr; -import org.moe.natj.general.ptr.VoidPtr; -import org.moe.natj.general.ptr.impl.PtrFactory; -import org.moe.natj.general.ptr.impl.PtrUtils; @Keep public class AQRecorder implements Function_AudioQueueNewInput { @@ -206,9 +208,9 @@ void SetupAudioFormat(int inFormatID) throws CAXException { mRecordFormat.setMSampleRate(preferredSampleRate); mRecordFormat.setMChannelsPerFrame((int)session.inputNumberOfChannels()); mRecordFormat.setMFormatID(inFormatID); - if (inFormatID == apple.coreaudio.enums.Enums.kAudioFormatLinearPCM) { + if (inFormatID == apple.coreaudiotypes.enums.Enums.kAudioFormatLinearPCM) { // if we want pcm, default to signed 16-bit little-endian - mRecordFormat.setMFormatFlags(apple.coreaudio.enums.Enums.kLinearPCMFormatFlagIsSignedInteger | apple.coreaudio.enums.Enums.kLinearPCMFormatFlagIsPacked); + mRecordFormat.setMFormatFlags(apple.coreaudiotypes.enums.Enums.kLinearPCMFormatFlagIsSignedInteger | apple.coreaudiotypes.enums.Enums.kLinearPCMFormatFlagIsPacked); mRecordFormat.setMBitsPerChannel(16); mRecordFormat.setMBytesPerFrame((mRecordFormat.mBitsPerChannel() / 8) * mRecordFormat.mChannelsPerFrame()); mRecordFormat.setMFramesPerPacket(1); @@ -221,7 +223,7 @@ public void StartRecord(String inRecordFile) { mFileName = CFStringCreateWithCString(kCFAllocatorDefault(), inRecordFile, CFStringBuiltInEncodings.UTF8); // specify the recording format - SetupAudioFormat(apple.coreaudio.enums.Enums.kAudioFormatLinearPCM); + SetupAudioFormat(apple.coreaudiotypes.enums.Enums.kAudioFormatLinearPCM); // create the queue Ptr queueRef = PtrFactory.newOpaquePtrReference(AudioQueueRef.class); @@ -270,7 +272,7 @@ public void StartRecord(String inRecordFile) { } catch (CAXException e) { System.err.println("Error: " + e.getMessage() + " (" + e.getError() + ")"); } catch (Exception e) { - System.err.println("An unknown error occurred"); + e.printStackTrace(); } } diff --git a/SpeakHere/src/main/java/com/migeran/speakhere/Main.java b/SpeakHere/src/main/java/com/migeran/speakhere/Main.java index d3e435ed..fbf213dd 100644 --- a/SpeakHere/src/main/java/com/migeran/speakhere/Main.java +++ b/SpeakHere/src/main/java/com/migeran/speakhere/Main.java @@ -1,20 +1,25 @@ package com.migeran.speakhere; import apple.NSObject; +import apple.foundation.NSDictionary; +import apple.uikit.UIApplication; import apple.uikit.UIWindow; import apple.uikit.c.UIKit; import apple.uikit.protocol.UIApplicationDelegate; import org.moe.natj.general.Pointer; import org.moe.natj.general.ann.Generated; +import org.moe.natj.general.ann.RegisterOnStartup; +import org.moe.natj.objc.ann.Selector; +@RegisterOnStartup public class Main extends NSObject implements UIApplicationDelegate { public static void main(String[] args) { UIKit.UIApplicationMain(0, null, null, Main.class.getName()); } - @Generated("NatJ") + @Selector("alloc") public static native Main alloc(); @Generated("NatJ") diff --git a/SpeakHere/src/main/java/com/migeran/speakhere/ui/AQLevelMeter.java b/SpeakHere/src/main/java/com/migeran/speakhere/ui/AQLevelMeter.java index 790a38db..1ca2d67c 100644 --- a/SpeakHere/src/main/java/com/migeran/speakhere/ui/AQLevelMeter.java +++ b/SpeakHere/src/main/java/com/migeran/speakhere/ui/AQLevelMeter.java @@ -6,7 +6,7 @@ import apple.audiotoolbox.enums.Enums; import apple.audiotoolbox.opaque.AudioQueueRef; import apple.audiotoolbox.struct.AudioQueueLevelMeterState; -import apple.coreaudio.struct.AudioStreamBasicDescription; +import apple.coreaudiotypes.struct.AudioStreamBasicDescription; import apple.coregraphics.c.CoreGraphics; import apple.coregraphics.struct.CGPoint; import apple.coregraphics.struct.CGRect; diff --git a/SpeakHere/src/main/java/com/migeran/speakhere/ui/SpeakHereViewController.java b/SpeakHere/src/main/java/com/migeran/speakhere/ui/SpeakHereViewController.java index e9a89f8e..ca27ca22 100644 --- a/SpeakHere/src/main/java/com/migeran/speakhere/ui/SpeakHereViewController.java +++ b/SpeakHere/src/main/java/com/migeran/speakhere/ui/SpeakHereViewController.java @@ -4,7 +4,7 @@ import apple.avfoundation.c.AVFoundation; import apple.avfoundation.enums.AVAudioSessionRouteChangeReason; import apple.avfoundation.protocol.AVAudioSessionDelegate; -import apple.coreaudio.struct.AudioStreamBasicDescription; +import apple.coreaudiotypes.struct.AudioStreamBasicDescription; import apple.foundation.NSBundle; import apple.foundation.NSDictionary; import apple.foundation.NSNotification; @@ -18,6 +18,7 @@ import apple.uikit.c.UIKit; import apple.uikit.enums.UIBarPosition; import apple.uikit.enums.UIStatusBarStyle; +import apple.uikit.protocol.UIBarPositioning; import apple.uikit.protocol.UINavigationBarDelegate; import java.io.File; @@ -408,7 +409,7 @@ public void inputIsAvailableChanged(boolean isInputAvailable) { } @Override - public long positionForBar(@Mapped(ObjCObjectMapper.class) Object bar) { + public long positionForBar(UIBarPositioning bar) { return UIBarPosition.TopAttached; } diff --git a/SpeakHere/xcode/SpeakHere.xcodeproj/project.pbxproj b/SpeakHere/xcode/SpeakHere.xcodeproj/project.pbxproj index e933ffd2..1079f233 100644 --- a/SpeakHere/xcode/SpeakHere.xcodeproj/project.pbxproj +++ b/SpeakHere/xcode/SpeakHere.xcodeproj/project.pbxproj @@ -166,6 +166,8 @@ ); buildRules = ( ); + dependencies = ( + ); name = "SpeakHere-Test"; productName = "SpeakHere-Test"; productReference = 364BD2C0E91D85C1B44A059C /* SpeakHere-Test.app */; @@ -183,6 +185,8 @@ ); buildRules = ( ); + dependencies = ( + ); name = SpeakHere; productName = SpeakHere; productReference = 9AF8409940640CF892B49072 /* SpeakHere.app */; @@ -202,6 +206,7 @@ developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( + English, en, Base, ); @@ -249,7 +254,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/bash; - shellScript = "set -e\n\nexport MOE_BUILD_SOURCE_SET=\"test\"\n\n# Check project directory\nif [ ! -d \"$MOE_PROJECT_DIR\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_DIR' doesn't point to a directory!\"; exit 1;\nfi\ncd \"$MOE_PROJECT_DIR\"\n\n# Export JAVA_HOME\nexport JAVA_HOME=$(/usr/libexec/java_home -v 1.8)\n\n# Utility function for finding the Gradle implementation\nfunction findGradle {\n CD=\"$PWD\"\n while [ \"$CD\" != \"\" ]; do\n echo \"Looking for gradlew in $CD\"\n if [ -x \"$CD/gradlew\" ]; then\n GRADLE_EXEC=$CD/gradlew\n return 0\n fi\n CD=\"${CD%/*}\"\n done\n\n echo \"Checking with 'which'\"\n GRADLE_EXEC=$(which 'gradle')\n\n if [ \"$GRADLE_EXEC\" = \"\" ]; then\n echo \"Failed to locate 'gradle' executable!\"\n exit 1\n fi\n}\n\n# Build project with Gradle\nif [ -z \"$MOE_GRADLE_EXTERNAL_BUILD\" ]; then\n findGradle\n \"$GRADLE_EXEC\" --no-daemon moeXcodeInternal -s\nfi\n\n# Check output directory\nif [ ! -d \"${MOE_PROJECT_BUILD_DIR}\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_BUILD_DIR' doesn't point to a directory!\"; exit 1;\nfi\n\n# Copy some resources\nmkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/application.jar\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/preregister.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nif [ \"${MOE_BUILD_SOURCE_SET}\" == \"test\" ]; then\n cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/classlist.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nfi\n\n# Copy android CA certificates on demand\nif [ \"${MOE_COPY_ANDROID_CACERTS}\" == \"YES\" ]; then\n rm -rf \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n mkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n unzip \"${MOE_SDK_PATH}/sdk/moe-core-certificates.zip\" -d \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\nfi\n\n# Copy and sign MOE framework\nrsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \\\n \"${MOE_FRAMEWORK_PATH}/MOE.framework\" \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/\"\nif [ \"${VALID_ARCHS}\" == \"arm64\" ] || [ \"${VALID_ARCHS}\" == \"x86_64\" ]; then\n if [ \"${PLATFORM_NAME}\" == \"iphonesimulator\" ]; then\n lipo -thin x86_64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n else\n lipo -thin arm64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n fi\nfi\nif [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n /usr/bin/codesign --force --sign $EXPANDED_CODE_SIGN_IDENTITY $OTHER_CODE_SIGN_FLAGS \\\n --preserve-metadata=identifier,entitlements \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework\"\nfi\n"; + shellScript = "set -e\n\nexport MOE_BUILD_SOURCE_SET=\"test\"\n\n# Check project directory\nif [ ! -d \"$MOE_PROJECT_DIR\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_DIR' doesn't point to a directory!\"; exit 1;\nfi\ncd \"$MOE_PROJECT_DIR\"\n\n# Export JAVA_HOME\nexport JAVA_HOME=$(/usr/libexec/java_home -v 1.8)\n\n# Utility function for finding the Gradle implementation\nfunction findGradle {\n CD=\"$PWD\"\n while [ \"$CD\" != \"\" ]; do\n echo \"Looking for gradlew in $CD\"\n if [ -x \"$CD/gradlew\" ]; then\n GRADLE_EXEC=$CD/gradlew\n return 0\n fi\n CD=\"${CD%/*}\"\n done\n\n echo \"Checking with 'which'\"\n GRADLE_EXEC=$(which 'gradle')\n\n if [ \"$GRADLE_EXEC\" = \"\" ]; then\n echo \"Failed to locate 'gradle' executable!\"\n exit 1\n fi\n}\n\n# Build project with Gradle\nif [ -z \"$MOE_GRADLE_EXTERNAL_BUILD\" ]; then\n findGradle\n \"$GRADLE_EXEC\" --no-daemon moeXcodeInternal -s\nfi\n\n# Check output directory\nif [ ! -d \"${MOE_PROJECT_BUILD_DIR}\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_BUILD_DIR' doesn't point to a directory!\"; exit 1;\nfi\n\n# Copy some resources\nmkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\n#cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/application.jar\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/preregister.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nif [ \"${MOE_BUILD_SOURCE_SET}\" == \"test\" ]; then\n cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/test_provider/classlist.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nfi\n\n## Copy android CA certificates on demand\n#if [ \"${MOE_COPY_ANDROID_CACERTS}\" == \"YES\" ]; then\n# rm -rf \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n# mkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n# unzip \"${MOE_SDK_PATH}/sdk/moe-core-certificates.zip\" -d \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n#fi\n#\n## Copy and sign MOE framework\n#rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \\\n# \"${MOE_FRAMEWORK_PATH}/MOE.framework\" \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/\"\n#if [ \"${ARCHS}\" == \"arm64\" ] || [ \"${ARCHS}\" == \"x86_64\" ]; then\n# if [ \"${PLATFORM_NAME}\" == \"iphonesimulator\" ]; then\n# lipo -thin x86_64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n# else\n# lipo -thin arm64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n# fi\n#fi\n#if [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n# /usr/bin/codesign --force --sign $EXPANDED_CODE_SIGN_IDENTITY $OTHER_CODE_SIGN_FLAGS \\\n# --preserve-metadata=identifier,entitlements \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework\"\n#fi\n"; }; BD6BBA5D1A4209F08B67D5D6 /* Compile Sources (MOE) */ = { isa = PBXShellScriptBuildPhase; @@ -263,7 +268,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/bash; - shellScript = "set -e\n\nexport MOE_BUILD_SOURCE_SET=\"main\"\n\n# Check project directory\nif [ ! -d \"$MOE_PROJECT_DIR\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_DIR' doesn't point to a directory!\"; exit 1;\nfi\ncd \"$MOE_PROJECT_DIR\"\n\n# Export JAVA_HOME\nexport JAVA_HOME=$(/usr/libexec/java_home -v 1.8)\n\n# Utility function for finding the Gradle implementation\nfunction findGradle {\n CD=\"$PWD\"\n while [ \"$CD\" != \"\" ]; do\n echo \"Looking for gradlew in $CD\"\n if [ -x \"$CD/gradlew\" ]; then\n GRADLE_EXEC=$CD/gradlew\n return 0\n fi\n CD=\"${CD%/*}\"\n done\n\n echo \"Checking with 'which'\"\n GRADLE_EXEC=$(which 'gradle')\n\n if [ \"$GRADLE_EXEC\" = \"\" ]; then\n echo \"Failed to locate 'gradle' executable!\"\n exit 1\n fi\n}\n\n# Build project with Gradle\nif [ -z \"$MOE_GRADLE_EXTERNAL_BUILD\" ]; then\n findGradle\n \"$GRADLE_EXEC\" --no-daemon moeXcodeInternal -s\nfi\n\n# Check output directory\nif [ ! -d \"${MOE_PROJECT_BUILD_DIR}\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_BUILD_DIR' doesn't point to a directory!\"; exit 1;\nfi\n\n# Copy some resources\nmkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/application.jar\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/preregister.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nif [ \"${MOE_BUILD_SOURCE_SET}\" == \"test\" ]; then\n cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/classlist.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nfi\n\n# Copy android CA certificates on demand\nif [ \"${MOE_COPY_ANDROID_CACERTS}\" == \"YES\" ]; then\n rm -rf \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n mkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n unzip \"${MOE_SDK_PATH}/sdk/moe-core-certificates.zip\" -d \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\nfi\n\n# Copy and sign MOE framework\nrsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \\\n \"${MOE_FRAMEWORK_PATH}/MOE.framework\" \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/\"\nif [ \"${VALID_ARCHS}\" == \"arm64\" ] || [ \"${VALID_ARCHS}\" == \"x86_64\" ]; then\n if [ \"${PLATFORM_NAME}\" == \"iphonesimulator\" ]; then\n lipo -thin x86_64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n else\n lipo -thin arm64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n fi\nfi\nif [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n /usr/bin/codesign --force --sign $EXPANDED_CODE_SIGN_IDENTITY $OTHER_CODE_SIGN_FLAGS \\\n --preserve-metadata=identifier,entitlements \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework\"\nfi\n"; + shellScript = "set -e\n\nexport MOE_BUILD_SOURCE_SET=\"main\"\n\n# Check project directory\nif [ ! -d \"$MOE_PROJECT_DIR\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_DIR' doesn't point to a directory!\"; exit 1;\nfi\ncd \"$MOE_PROJECT_DIR\"\n\n# Export JAVA_HOME\nexport JAVA_HOME=$(/usr/libexec/java_home -v 1.8)\n\n# Utility function for finding the Gradle implementation\nfunction findGradle {\n CD=\"$PWD\"\n while [ \"$CD\" != \"\" ]; do\n echo \"Looking for gradlew in $CD\"\n if [ -x \"$CD/gradlew\" ]; then\n GRADLE_EXEC=$CD/gradlew\n return 0\n fi\n CD=\"${CD%/*}\"\n done\n\n echo \"Checking with 'which'\"\n GRADLE_EXEC=$(which 'gradle')\n\n if [ \"$GRADLE_EXEC\" = \"\" ]; then\n echo \"Failed to locate 'gradle' executable!\"\n exit 1\n fi\n}\n\n# Build project with Gradle\nif [ -z \"$MOE_GRADLE_EXTERNAL_BUILD\" ]; then\n findGradle\n \"$GRADLE_EXEC\" --no-daemon moeXcodeInternal -s\nfi\n\n# Check output directory\nif [ ! -d \"${MOE_PROJECT_BUILD_DIR}\" ]; then\n echo \"$0:$LINENO:1: error: 'MOE_PROJECT_BUILD_DIR' doesn't point to a directory!\"; exit 1;\nfi\n\n# Copy some resources\nmkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}\"\n#cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/application.jar\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\ncp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/preregister.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nif [ \"${MOE_BUILD_SOURCE_SET}\" == \"test\" ]; then\n cp \"${MOE_PROJECT_BUILD_DIR}/moe/${MOE_BUILD_SOURCE_SET}/test_provider/classlist.txt\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/\"\nfi\n\n## Copy android CA certificates on demand\n#if [ \"${MOE_COPY_ANDROID_CACERTS}\" == \"YES\" ]; then\n# rm -rf \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n# mkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n# unzip \"${MOE_SDK_PATH}/sdk/moe-core-certificates.zip\" -d \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/android_root/etc/security/cacerts\"\n#fi\n#\n## Copy and sign MOE framework\n#rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \\\n# \"${MOE_FRAMEWORK_PATH}/MOE.framework\" \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/\"\n#if [ \"${ARCHS}\" == \"arm64\" ] || [ \"${ARCHS}\" == \"x86_64\" ]; then\n# if [ \"${PLATFORM_NAME}\" == \"iphonesimulator\" ]; then\n# lipo -thin x86_64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n# else\n# lipo -thin arm64 -output \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework/MOE\" \"${MOE_FRAMEWORK_PATH}/MOE.framework/MOE\"\n# fi\n#fi\n#if [ -n \"${EXPANDED_CODE_SIGN_IDENTITY}\" -a \"${CODE_SIGNING_REQUIRED}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n# /usr/bin/codesign --force --sign $EXPANDED_CODE_SIGN_IDENTITY $OTHER_CODE_SIGN_FLAGS \\\n# --preserve-metadata=identifier,entitlements \"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MOE.framework\"\n#fi\n"; }; /* End PBXShellScriptBuildPhase section */ @@ -314,24 +319,25 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; DEAD_CODE_STRIPPING = NO; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + HEADER_SEARCH_PATHS = ( "$(inherited)", - "${MOE_FRAMEWORK_PATH}", + "${MOE_HEADER_SEARCH_PATHS}", ); INFOPLIST_FILE = "$(SRCROOT)/SpeakHere/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 14.3; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MOE_COPY_ANDROID_CACERTS = NO; MOE_FRAMEWORK_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; - MOE_OTHER_LDFLAGS = "${MOE_SECT_OAT} ${MOE_SECT_ART} ${MOE_SEGPROT} ${MOE_PAGEZERO} ${MOE_CUSTOM_OTHER_LDFLAGS} -lstdc++ -framework MOE"; + MOE_HEADER_SEARCH_PATHS = "${MOE_LIB_PATH}/include"; + MOE_LIB_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; + MOE_OTHER_LDFLAGS = "${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/main_${arch}.o ${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/llvm_${arch}.o ${MOE_CUSTOM_OTHER_LDFLAGS} -Wl,-force_load,${MOE_LIB_PATH}/libmoe.a -lstdc++ -lpthread -lsqlite3 -Wl,-framework,Foundation -Wl,-framework,UniformTypeIdentifiers -Wl,-framework,CoreServices"; "MOE_PAGEZERO[sdk=iphoneos*]" = ""; - "MOE_PAGEZERO[sdk=iphonesimulator*]" = "-pagezero_size 4096"; MOE_PROJECT_BUILD_DIR = "${MOE_PROJECT_DIR}/build"; MOE_PROJECT_DIR = "${SRCROOT}/../"; MOE_SDK_PATH = "${MOE_PROJECT_BUILD_DIR}/moe/sdk"; - MOE_SECT_ART = "-sectcreate __ARTDATA __artdata \"${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.art\""; MOE_SECT_OAT = "-sectcreate __OATDATA __oatdata \"${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.oat\""; - "MOE_SEGPROT[sdk=iphoneos*]" = "-segprot __OATDATA rx rx -segprot __ARTDATA rw rw"; "MOE_SEGPROT[sdk=iphonesimulator*]" = "-segprot __OATDATA rwx rx -segprot __ARTDATA rwx rw"; ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = ( @@ -349,24 +355,25 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; DEAD_CODE_STRIPPING = NO; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + HEADER_SEARCH_PATHS = ( "$(inherited)", - "${MOE_FRAMEWORK_PATH}", + "${MOE_HEADER_SEARCH_PATHS}", ); INFOPLIST_FILE = "$(SRCROOT)/SpeakHere/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 14.3; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MOE_COPY_ANDROID_CACERTS = NO; MOE_FRAMEWORK_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; - MOE_OTHER_LDFLAGS = "${MOE_SECT_OAT} ${MOE_SECT_ART} ${MOE_SEGPROT} ${MOE_PAGEZERO} ${MOE_CUSTOM_OTHER_LDFLAGS} -lstdc++ -framework MOE"; + MOE_HEADER_SEARCH_PATHS = "${MOE_LIB_PATH}/include"; + MOE_LIB_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; + MOE_OTHER_LDFLAGS = "${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/main_${arch}.o ${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/llvm_${arch}.o ${MOE_CUSTOM_OTHER_LDFLAGS} -Wl,-force_load,${MOE_LIB_PATH}/libmoe.a -lstdc++ -lpthread -lsqlite3 -Wl,-framework,Foundation -Wl,-framework,UniformTypeIdentifiers -Wl,-framework,CoreServices"; "MOE_PAGEZERO[sdk=iphoneos*]" = ""; - "MOE_PAGEZERO[sdk=iphonesimulator*]" = "-pagezero_size 4096"; MOE_PROJECT_BUILD_DIR = "${MOE_PROJECT_DIR}/build"; MOE_PROJECT_DIR = "${SRCROOT}/../"; MOE_SDK_PATH = "${MOE_PROJECT_BUILD_DIR}/moe/sdk"; - MOE_SECT_ART = "-sectcreate __ARTDATA __artdata \"${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.art\""; MOE_SECT_OAT = "-sectcreate __OATDATA __oatdata \"${MOE_PROJECT_BUILD_DIR}/moe/main/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.oat\""; - "MOE_SEGPROT[sdk=iphoneos*]" = "-segprot __OATDATA rx rx -segprot __ARTDATA rw rw"; "MOE_SEGPROT[sdk=iphonesimulator*]" = "-segprot __OATDATA rwx rx -segprot __ARTDATA rwx rw"; ONLY_ACTIVE_ARCH = NO; OTHER_LDFLAGS = ( @@ -383,6 +390,8 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + "ARCHS[sdk=iphoneos*]" = arm64; + "ARCHS[sdk=iphonesimulator*]" = x86_64; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; @@ -421,9 +430,9 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MOE_VERSION = 1.4.2; + MOE_VERSION = 2.0.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -437,31 +446,31 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; DEAD_CODE_STRIPPING = NO; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + HEADER_SEARCH_PATHS = ( "$(inherited)", - "${MOE_FRAMEWORK_PATH}", + "${MOE_HEADER_SEARCH_PATHS}", ); INFOPLIST_FILE = "$(SRCROOT)/SpeakHere-Test/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MOE_COPY_ANDROID_CACERTS = NO; MOE_FRAMEWORK_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; - MOE_OTHER_LDFLAGS = "${MOE_SECT_OAT} ${MOE_SECT_ART} ${MOE_SEGPROT} ${MOE_PAGEZERO} ${MOE_CUSTOM_OTHER_LDFLAGS} -lstdc++ -framework MOE"; + MOE_HEADER_SEARCH_PATHS = "${MOE_LIB_PATH}/include"; + MOE_LIB_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; + MOE_OTHER_LDFLAGS = "${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/main_${arch}.o ${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/llvm_${arch}.o ${MOE_CUSTOM_OTHER_LDFLAGS} -Wl,-force_load,${MOE_LIB_PATH}/libmoe.a -lstdc++ -lpthread -lsqlite3 -Wl,-framework,Foundation -Wl,-framework,UniformTypeIdentifiers -Wl,-framework,CoreServices"; "MOE_PAGEZERO[sdk=iphoneos*]" = ""; - "MOE_PAGEZERO[sdk=iphonesimulator*]" = "-pagezero_size 4096"; MOE_PROJECT_BUILD_DIR = "${MOE_PROJECT_DIR}/build"; MOE_PROJECT_DIR = "${SRCROOT}/../"; MOE_SDK_PATH = "${MOE_PROJECT_BUILD_DIR}/moe/sdk"; - MOE_SECT_ART = "-sectcreate __ARTDATA __artdata \"${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.art\""; MOE_SECT_OAT = "-sectcreate __OATDATA __oatdata \"${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.oat\""; - "MOE_SEGPROT[sdk=iphoneos*]" = "-segprot __OATDATA rx rx -segprot __ARTDATA rw rw"; "MOE_SEGPROT[sdk=iphonesimulator*]" = "-segprot __OATDATA rwx rx -segprot __ARTDATA rwx rw"; ONLY_ACTIVE_ARCH = NO; OTHER_LDFLAGS = ( "${MOE_OTHER_LDFLAGS}", "$(inherited)", ); - PRODUCT_BUNDLE_IDENTIFIER = "com.migeran.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_BUNDLE_IDENTIFIER = com.migeran.SpeakHere; PRODUCT_NAME = "SpeakHere-Test"; STRIP_STYLE = "non-global"; }; @@ -471,6 +480,8 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + "ARCHS[sdk=iphoneos*]" = arm64; + "ARCHS[sdk=iphonesimulator*]" = x86_64; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; @@ -502,9 +513,9 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MOE_VERSION = 1.4.2; + MOE_VERSION = 2.0.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SYMROOT = "$(SRCROOT)/../build/moe/xcodebuild/sym"; @@ -518,31 +529,31 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; DEAD_CODE_STRIPPING = NO; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + HEADER_SEARCH_PATHS = ( "$(inherited)", - "${MOE_FRAMEWORK_PATH}", + "${MOE_HEADER_SEARCH_PATHS}", ); INFOPLIST_FILE = "$(SRCROOT)/SpeakHere-Test/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MOE_COPY_ANDROID_CACERTS = NO; MOE_FRAMEWORK_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; - MOE_OTHER_LDFLAGS = "${MOE_SECT_OAT} ${MOE_SECT_ART} ${MOE_SEGPROT} ${MOE_PAGEZERO} ${MOE_CUSTOM_OTHER_LDFLAGS} -lstdc++ -framework MOE"; + MOE_HEADER_SEARCH_PATHS = "${MOE_LIB_PATH}/include"; + MOE_LIB_PATH = "${MOE_SDK_PATH}/sdk/${PLATFORM_NAME}"; + MOE_OTHER_LDFLAGS = "${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/main_${arch}.o ${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/llvm_${arch}.o ${MOE_CUSTOM_OTHER_LDFLAGS} -Wl,-force_load,${MOE_LIB_PATH}/libmoe.a -lstdc++ -lpthread -lsqlite3 -Wl,-framework,Foundation -Wl,-framework,UniformTypeIdentifiers -Wl,-framework,CoreServices"; "MOE_PAGEZERO[sdk=iphoneos*]" = ""; - "MOE_PAGEZERO[sdk=iphonesimulator*]" = "-pagezero_size 4096"; MOE_PROJECT_BUILD_DIR = "${MOE_PROJECT_DIR}/build"; MOE_PROJECT_DIR = "${SRCROOT}/../"; MOE_SDK_PATH = "${MOE_PROJECT_BUILD_DIR}/moe/sdk"; - MOE_SECT_ART = "-sectcreate __ARTDATA __artdata \"${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.art\""; MOE_SECT_OAT = "-sectcreate __OATDATA __oatdata \"${MOE_PROJECT_BUILD_DIR}/moe/test/xcode/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/${arch}.oat\""; - "MOE_SEGPROT[sdk=iphoneos*]" = "-segprot __OATDATA rx rx -segprot __ARTDATA rw rw"; "MOE_SEGPROT[sdk=iphonesimulator*]" = "-segprot __OATDATA rwx rx -segprot __ARTDATA rwx rw"; ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = ( "${MOE_OTHER_LDFLAGS}", "$(inherited)", ); - PRODUCT_BUNDLE_IDENTIFIER = "com.migeran.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_BUNDLE_IDENTIFIER = com.migeran.SpeakHere; PRODUCT_NAME = "SpeakHere-Test"; STRIP_STYLE = "non-global"; };