Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand Color Palette Table (CPT) Support #15

Open
gwlucastrig opened this issue Mar 7, 2022 · 3 comments
Open

Expand Color Palette Table (CPT) Support #15

gwlucastrig opened this issue Mar 7, 2022 · 3 comments

Comments

@gwlucastrig
Copy link
Owner

I have identified a requirement to expand the Color Palette Table (CPT) support classes and to provide a demo application to show how to use them. In particular, the CPT classes should be capable of parsing the sample files given in Generic Mapping Tools project space at https://github.com/GenericMappingTools/gmt/tree/master/share/cpt.

Work is in progress. Preliminary code is available in the current development space. A demo application is available at org.gridfour.demo.utils.palette.ColorPaletteTableRender.java

Here's an example output from the Generic Mapping Tools files:

ColorPaletteTableRender

@gwlucastrig
Copy link
Owner Author

I am considering the addition of a package called org.gridfour.imaging to store utilities related to the production of images. If I do, I will probably move the color-palette-table package to a new location org.gridfour.image.cpt.

@gwlucastrig
Copy link
Owner Author

gwlucastrig commented Jun 4, 2022

Code that addresses this issue is included in the Gridfour Core 1.0.2 release now available via the Maven Central Repository or (as always) through Github. You may read the Javadoc at The Gridfour Application Notes Page.

I will be leaving this issue open until I prepare some example application code.

@gwlucastrig
Copy link
Owner Author

The latest version of the CPT API is available in the Core module of the Gridfour API.

The CPT classes depend on the Java AWT. In the future, we may move them to a separate package in order to remove dependencies on the AWT from the Core package. This change will allow the core Gridfour API to operate under Android OS (which does not support the Java AWT).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant