Factory for NewtCanvas
Uses OpenGL acceletation provided by the Agile2D rendering pipeline (itself based upon JOGL 2.0). Agile2D homepage JOGL 2 javadoc JogAmp javadoc NEWT
Before instantiating an Agile2D ZVTM View, one must register the new view type:
View.registerViewPanelType(AgileGLJPanelFactory.AGILE_NEWT_VIEW, new AgileNewtCanvasFactory());
Then the view gets created as any other view:
View v = VirtualSpaceManager.INSTANCE.addFrameView(cameras, View.ANONYMOUS, AgileNewtCanvasFactory.AGILE_NEWT_VIEW, 800, 600, true);
a Camera is used to observe the virtual space which owns it - all cameras have unique IDs, as glyph - (x,y) coordinates, observation altitude and focal distance can be changed
Font.decode does not seem to work that well, or I don;t understand how it is supposed to work
Anyway, this one does what I want (decodes family+" "+style+" "+size)
Export the content of a virtual space as a DOM object (that can then be serialized as an XML document using the parser of your choice (returns null if any error occurs)
Export the content of a virtual space as a DOM object (that can then be serialized as an XML document using the parser of your choice (returns null if any error occurs)
Implementation of the Sigma Lens framework for use with ZVTM views (focus+context representations including distortion/fisheye lenses, speed-coupled blending lenses, and many more).
Call a GlyphFactory window that will return the glyph created in the window (programer sets the default value(s) for every field and specifies if the field can be changed or not)
Call a GlyphFactory window that will return the glyph created in the window (programer sets the default value(s) for every field and specifies if the field can be changed or not)
Use this method to get a GlyphIcon (you shoud not use a Ic* constructor directly nor GlyphIcon()) ; all objects returned by this method implement javax.swing.Icon
Get the list of glyphs currently under mouse (last entry is last glyph entered)
This returns a copy of the actual array managed by VCursor at the time the method is called
(in other words, the array returned by this method is not synchronized with the actual list over time)
Get index of the provided glyph in the list of menu items.
Menu items are sorted counter clockwise, starting with the element
placed at the start angle.
Two panel types/factories are available in zvtm-core:
View.STD_VIEW:double-buffered panel, drawing in an offscreen BufferedImage, supports lenses
View.OPENGL_VIEW: direct rendering on screen, works with Sun's OpenGL Java2D rendering pipeline
get the zoom-in limit/maximum magnification (like a floor the camera cannot go through)
default value 0 means that, at maximum magnification, the size of observed glyphs corresponds to their real size (e.g.
hide Glyph g
- use show() and hide() to change both the visibility and sensitivity of glyphs
- use Glyph.setVisible() to only change the glyph's visibility, but not its sensitivity.
hide() -
Method in class fr.inria.zvtm.widgets.Menu
Multi-scale scene manager: main ZUIST class instantiated by client application.
Used to parse XML descriptions of multi-scale scene configurations and manage them once instantiated.
true will draw a segment between origin of drag and current cursor pos until drag is finished (still visible for backward compatibility reasons - should use setDrawSegment instead)
draw a circle between origin of drag and current cursor pos until drag is finished (drag segment represents the radius of the circle, not its diameter) - use OVAL for any oval, CIRCLE for circle, NONE to stop drawing it
Make this glyph (in)visible (the glyph remains sensitive to cursor in/out events).
Use methods VirtualSpace.show(Glyph g) and VirtualSpace.hide(Glyph g) to make a glyph both (in)visible and (in)sensitive.
set a zoom-in limit/maximum magnification (like a floor the camera cannot go through)
value 0 means that, at maximum magnification, the size of observed glyphs corresponds to their real size (e.g.
show Glyph g
- use show() and hide() to change both the visibility and sensitivity of glyphs
- use Glyph.setVisible() to only change the glyph's visibility, but not its sensitivity.
show() -
Method in class fr.inria.zvtm.widgets.Menu
Call this method directly if scroll bars should be updated for reasons other than changes to glyphs in the controlled camera's virtual space or changes to that camera itself.
Call this method directly if scroll bars should be updated for reasons other than changes to glyphs in the controlled camera's virtual space or changes to that camera itself.
Call this method directly if scroll bars should be updated for reasons other than changes to glyphs in the controlled camera's virtual space or changes to that camera itself.
A view is a window and can be composed of one or several cameras superimposed - use EView or IView
A view is repainted on a regular basis when active - for inactive views, the default is to repaint only if the mouse is inside the view (but the frame is not selected) - this can be changed to repaint the view automatically even if it is not selected and if the mouse is not inside, using setRepaintPolicy()
View() -
Constructor for class fr.inria.zvtm.engine.View
Profile: linear - Distance metric: L(2) (circular shape) Rendering enhanced through alpha blending between focus and context in spatially-distorted transition zone. Size expressed as an absolute value in pixels
Profile: linear - Distance metric: L(2) (circular shape) Rendering enhanced through alpha blending between focus and context in spatially-distorted transition zone. Size expressed as an absolute value in pixels