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 All, JCoverFlow is updated v1.6.

Added Event --> OnMouseClicked below an example:

B4X:
Sub CoverFlow_OnMouseClicked(Position As Int, Value As Object)

    If MainForm.RootPane.NumberOfNodes > 2  Then
        MainForm.RootPane.RemoveNodeAt(2)
    End If

    Dim x As Int = (MainForm.WindowWidth /2)-250
    MainForm.RootPane.AddNode(img,x,0,500,300)
    img2.Initialize("",Value)
    img.SetImage(img2)
    Log("Position = " & Position)
    Log("Value = " & Value)
End Sub
 

inakigarm

Well-Known Member
Licensed User
Longtime User
Hi @Giuseppe:

Trying to test your library but no luck !!

I've tested the B4J program with B4J versions form 2.80 to 3.61 and the main screen appears with menus but I can't see nothing in the coverflow panel setting the path to my images folder; I've tried with the options and nothin works (nor CoverFlow.ShowFromDirectoryChooser nor CoverFlow.ShowFromFolder nor CoverFlow.ShowFromFolder2("C:\\","Imatges") when selecting Populate and Show from Menu

I can run the program without errors but can't upload or see any images (Log (CoverFlow.Length)=0)

Any idea ?? Thanks !

(Windows 8.1 with java 8.45)
 

Douglas Farias

Expert
Licensed User
Longtime User
cant run your examples, can you make a new example for the last version pls?

tryed
CoverFlow.ShowFromDirectoryChooser("Choose a directory with images")
and dont works
CoverFlow.ShowFromFolder("C:/Images",".png")
 

alienhunter

Active Member
Licensed User
Longtime User
Hi
thanks for the update , i have a problem with the iCoverFlow.ItemsSize , since this is "CoverFlow.ItemsSize = 700dip" it will be a rectangle where other pictures have a different width , say 800x600 and the images look distorted :) , can we please specify this or keep the pictures ratio ?
thanks
Vielen Dank
greetings/ gruss Alfred
 

aidymp

Well-Known Member
Licensed User
Longtime User
Has anyone got this to work? doesn't seem to like any images?
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi
thanks for the update , i have a problem with the iCoverFlow.ItemsSize , since this is "CoverFlow.ItemsSize = 700dip" it will be a rectangle where other pictures have a different width , say 800x600 and the images look distorted :) , can we please specify this or keep the pictures ratio ?
thanks
Vielen Dank
greetings/ gruss Alfred


Hi, yesterday evening after I read the message I found out the problem why with jdk 1.8.0_66 it crash OnLoadStart and OnLoadComplete I really dont know why but to day I'm going to fix it.
https://www.b4x.com/android/forum/threads/jcoverflow-library-v1-6.36027/page-3#post-383066
With jdk 1.7.0.XX work fine.

have a look to the thumbnail.
 

Attachments

  • Immagine1.jpg
    Immagine1.jpg
    350.7 KB · Views: 428

aidymp

Well-Known Member
Licensed User
Longtime User
Hi, yesterday evening after I read the message I found out the problem why with jdk 1.8.0_66 it crash OnLoadStart and OnLoadComplete I really dont know why but to day I'm going to fix it.
With jdk 1.7.0.XX work fine.

have a look to the thumbnail.

If you fix it, it would be awesome! Thanks!
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi all, jCoverFlow is update to v1.70 what is new:

fixed the problem with jdk 1.8.0_66

added new event: _OnLoadFailed(Value As Object)

changed the event: _OnLoadComplete(Value As Object) to _OnLoadComplete(Value As Boolean, Length As Object). Returns the length of the items.

Any issue please report.
 

aidymp

Well-Known Member
Licensed User
Longtime User
Hi all, jCoverFlow is update to v1.70 what is new:

fixed the problem with jdk 1.8.0_66

added new event: _OnLoadFailed(Value As Object)

changed the event: _OnLoadComplete(Value As Object) to _OnLoadComplete(Value As Boolean, Length As Object). Returns the length of the items.

Any issue please report.

I have literally been say waiting for the update on this! :) trying now! thanks
 

aidymp

Well-Known Member
Licensed User
Longtime User
Hi all, jCoverFlow is update to v1.70 what is new:

fixed the problem with jdk 1.8.0_66

added new event: _OnLoadFailed(Value As Object)

changed the event: _OnLoadComplete(Value As Object) to _OnLoadComplete(Value As Boolean, Length As Object). Returns the length of the items.

Any issue please report.

So far working well!!

Thank you
 

Laurent95

Active Member
Licensed User
Longtime User
Hi all, jCoverFlow is update to v1.70 what is new:

fixed the problem with jdk 1.8.0_66

added new event: _OnLoadFailed(Value As Object)

changed the event: _OnLoadComplete(Value As Object) to _OnLoadComplete(Value As Boolean, Length As Object). Returns the length of the items.

Any issue please report.

Hi Giuseppe,

In first thank you for the update with Java 8 and your work.
I try to find the complete path returned by CoverFlow.ShowFromDirectoryChooser, seems wei can't get it ?
Or in another way, can we have a variable to put the last complete path instead of c:\ within the function?
But that means to have the path returned by the function. :D
It's a bit cumbersome to retrieve the complete path all the time.
Thanks.

Best regards
Laurent.
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
Hello!
This Library is awesome!

Would it be possible to have the Source Code?

Thanks!
 
Top