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

Need to investigate on an abstract superclass for BlElement #679

Open
plantec opened this issue Jan 22, 2025 · 3 comments
Open

Need to investigate on an abstract superclass for BlElement #679

plantec opened this issue Jan 22, 2025 · 3 comments

Comments

@plantec
Copy link
Collaborator

plantec commented Jan 22, 2025

Having a basic BlElement could be beneficial for memory usage and also for time consumption:

  • To have a video element based on GStream that doesn't need to consider borders, etc... just a rectangle where low-level will render there a stream.
  • BlTextElement may not need all what inherites from BlElement. Just render text and no background, border, outskirts, etc.
  • image with Form
  • Image with SVG ... right now all internal groups of a SVG are imported as a new BlElement and each of those SVG parts will have initialized event handlers, outskirts, etc, etc.
@plantec
Copy link
Collaborator Author

plantec commented Jan 22, 2025

related to #678

@tinchodias
Copy link
Collaborator

The Node class hierarchy of JavaFX8 can help us to think on this issue:

Image

https://docs.oracle.com/javase/8/javafx/api/javafx/scene/Node.html

@tinchodias
Copy link
Collaborator

Our BlElement partially matches Shape because it has transformation, stroke and fill. But we have a geometry as a collaborator object while they model the geometries as Shape subclasses.

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

No branches or pull requests

2 participants