B4J Library jCoverFlow library v1.70

Hi guys, I am pleased to introduce JCoverflow 1.6 for B4J.

In to the zip is included the library and a demo.

Just follow the Demo.


Any comment or any suggestion will be appreciated.


jCoverFlow
Author:
GiuseppeSalvi
Version: 1.6
  • JCoverFlow
    Events:
    • OnLoadComplete (Value As Boolean, Length As Object)
    • OnLoadStart (Value As Boolean, Items As Object)
    • OnLoadFailed (Value As Object)
    Fields:
    • SCROLL_INVERSE As Int
    • SCROLL_NORMAL As Int
    Methods:
    • Initialize (EventName As String)
      Initialize CoverFlow
    • IsInitialized As Boolean
    • PopulateCoverFlow (message As String)
      Populate CoverFlow with Images
    • Resample
      Reprocess the CoverFlow
    • Reset
      Reset CoverFlow
    • SetCacheFolder (dir As String, cache As String)
      Set your own Cache folder
      Example:
      CoverFlow.SetCacheFolder("C:\Users\YOUR USER NAME\Pictures","/JCoverFlow/data/cache/thumb")
    • Show
      Show CoverFlow
    • Snapshot As ImageWrapper
    Properties:
    • BackGroundStyle As String [write only]
      Set BackGround Style
      Example:
      jCoverFlow.BackGroundStyle = "-fx-background-color: linear-gradient(to bottom, black 60%, #141414 60.1%, black 100%);"
    • BorderColor As String [write only]
      Set Border Color
    • BorderInsets As Double [write only]
      Set Border Insets
    • BorderRadius As Double [write only]
      Set Border Radius
    • BorderVisible As Boolean
      Get or Sets Border Visible
    • BorderWidth As Double [write only]
      Set Border Width
    • Enabled As Boolean
    • Height As Double
      Get or Sets CoverFlow Height
    • Id As String
    • ItemsSize As Double [write only]
      Sets Items Width and Height
    • Left As Double
    • Length As Int [read only]
      Return Items lenght
    • MouseCursor As Cursor
    • ScrollBarSize As Double [write only]
      Set ScrollBar size
    • ScrollBarStyle As String [write only]
      Set ScrollBar Style
      Example:
      jCoverFlow.ScrollBarStyle = "-fx-base: #202020; -fx-background: #202020;"
    • ScrollBarVisible As Boolean
      Get or Sets ScrollBar Visible
    • ScrollMode As Int [write only]
      Set Scroll Mode. It's already set in the normal mode.
      1 = Normal
      2 = Inverse
    • Spacing As Double [write only]
      Set Spacing between the items
    • Style As String
    • StyleClasses As List [read only]
    • Tag As Object
    • TextVisible As Boolean
      Get or Sets ScrollBar Visible
    • Top As Double
    • Version As String [read only]
      Return Author and Version of this library
    • Visible As Boolean
    • Width As Double
      Get or Sets CoverFlow Width
 

Attachments

  • coverflow_with_Border.jpg
    coverflow_with_Border.jpg
    285.1 KB · Views: 1,201
  • coverflow_with_out_Border.jpg
    coverflow_with_out_Border.jpg
    286.8 KB · Views: 1,023
  • Items_800x800_NormalMode.jpg
    Items_800x800_NormalMode.jpg
    205.6 KB · Views: 921
  • Items_800x800_InverseMode.jpg
    Items_800x800_InverseMode.jpg
    212.7 KB · Views: 894
  • jCoverFlow v1.3 Lib.zip
    25.5 KB · Views: 614
  • jCoverFlow v1.4.zip
    49.5 KB · Views: 698
  • jCoverFlow v1.60.zip
    27.7 KB · Views: 658
  • JCoverFlow_v1.70.zip
    31.2 KB · Views: 537
Last edited:

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi jdiperla, I update the JCoverFlow v1.2.

Add:
SetCacheFolder(dir As String, cache As String)

Now you decide, in which folder you want to create the cache, and the name of the folder you want to give to the cache.

When the coverflow builds the cache, the size is reduced mean (700 MB) in just (16 MB) with excellent quality, minor bug fixed.
 
Last edited:

juergen_pool

Member
Licensed User
Longtime User
Hi lonleystar,
first of all: Great work!

It would be very nice, if we can set the Picture-Folder (not only the Cache-Folder) by code, ist this possible?
 

alienhunter

Active Member
Licensed User
Longtime User
hi jurgen, what do u mean about Picture-Folder an example pleas.

Are U From Germany? if yes u can write also in Deutsch.

I guess
like this would be nice to set the folder that you want to open

B4X:
Dim files as jcovershowfolder
files.show("C:\temp", *.jpg")

without having to navigate to the folder with file open select folder

vielen dank und gruss aus Canada
 

juergen_pool

Member
Licensed User
Longtime User
Hallo lonleystar,

ich möchte den Ordner mit den Bildern im Code auch direkt setzen können, wie in CoverFlow-B4A: "PopulateCoverflow (dir As String, path As String)"

Grüße aus Norddeutschland
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi Jurgen, Alienhunter and All, jCoverFlow is updated to v1.3.

Hallo Jurgen, Alienhunter und euch alle, jCoverflow ist aktualisiert zu v1.3.


What's new:

CoverFlow.ShowFromDirectoryChooser("Choose a directory with images") instead PopulateCoverFlow

CoverFlow.ShowFromFolder("C:/Images",".jpg") as requested by Alienhunter. Post #25

CoverFlow.ShowFromFolder2("C:/","Images") as requested by Jurgen_pool. Post #27


Grüße aus Süddeutschland.
 

juergen_pool

Member
Licensed User
Longtime User
Hallo lonleystar,

funktioniert bei mir leider nicht. Kannst Du uns ein lauffähiges Beispielprojekt für die aktuelle Lib zur Verfügung stellen?
(Sorry, dosn't work for me. Can we have a working example for the Library 1.3?)

Grüße / Greatings
Jürgen
 

lonleystar

Well-Known Member
Licensed User
Longtime User
hi jurge, i just test it now and work fine.

the way is this:

CoverFlow.ShowFromFolder2("C:\\","Images") as u ask.

CoverFlow.ShowFromFolder("C:\\Images",".png") as alienhunter ask, it´ll populate the gallery with just png or etc.etc.

CoverFlow.ShowFromDirectoryChooser("Choose a directory with images") this instead CoverFlow.PopulateCoverFlow("Choose a directory with images")


CoverFlow.SetCacheFolder("C:\\","JCoverFlow/data/cache/thumb") this is used to store the thumbnails as cache, not to choosen it as image folder, it is just for cache.

that´s all.

I upload the jCoverFlow v1.4 whit Demo, fixed minor bug.
 

Laurent95

Active Member
Licensed User
Longtime User
Hi guys, I am pleased to introduce JCoverflow 1.0 for B4J.

Hi Giuseppe,
Mmmm nice girlfriends and appartment guy, but you brings them only in zoo ;)
Opppppsssss don't show this message to your regular :)

Ok, nice job, like always, thanks for share your work.

Laurent.
 

luke2012

Well-Known Member
Licensed User
Longtime User
Complimenti per la libreria che ho già avuto modo di apprezzare già su B4A.
Esiste una versione per le Web Apps ? :)
 

juergen_pool

Member
Licensed User
Longtime User
Hi Giuseppe,

as i said before, very nice. But know i need some Action when i select/click the picture in the middle. How can i do this?

Hallo Giuseppe,

gut gemacht! Nun möchte ich eine Aktion auslösen, wenn ich das Bild in der Mitte anklicke. Wie kann ich das tun?

Gruß

Juergen
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi Giuseppe,

as i said before, very nice. But know i need some Action when i select/click the picture in the middle. How can i do this?

Hallo Giuseppe,

gut gemacht! Nun möchte ich eine Aktion auslösen, wenn ich das Bild in der Mitte anklicke. Wie kann ich das tun?

Gruß

Juergen


Hi Juergen, I'll work on it I've little bit time now.

Thanks for the idea.
 
Top