Yes. This is why JHotDraw uses the SVG file format.
Hello Werner, Thank you for your comeback. In your work, have you already put forward the hypothesis for JHotdraw to make a system for saving figures to an easily readable and reopenable text document so as not to depend on all of the format / serialization constraints. Have a good day. Regards, Julien LEGRAND
You can wrap calls to JHotDraw SVGInputFormat.read() and SVGOutputFormat.write() into an implementation of com.thoughtworks.xstream.converters.Converter.
Hello Werner, We use xstream from the serialization on jhotdraw 7.6 Xstream create big file for the save. Good day. Kind regards, Julien
Hello Werner, Thank you for your answer and your solution. At present we use a system of protection by serialization and we shall wish we in past to refrain constraints which imposes the sérialisation. Can Jhotdraw be used without the system of serialization? Is it necessary use/to modify a model of application to be able to configure the system of save of file? Good day. Kind regards, Julien
Hi Julien, Which version of JHotDraw are you using? (They are quite different). Here is an example program with JHotDraw 7: package ch.randelshofer.demo; import org.jhotdraw.draw.Drawing; import org.jhotdraw.samples.svg.SVGDrawingPanel; import org.jhotdraw.samples.svg.io.SVGInputFormat; import org.jhotdraw.samples.svg.io.SVGOutputFormat; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.SwingUtilities; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent;...
Hi Julien, Which version of JHotDraw are you using? (They are quite different). Here is an example program with JHotDraw 7: package ch.randelshofer.demo; import org.jhotdraw.draw.Drawing; import org.jhotdraw.samples.svg.SVGDrawingPanel; import org.jhotdraw.samples.svg.io.SVGInputFormat; import org.jhotdraw.samples.svg.io.SVGOutputFormat; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.SwingUtilities; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent;...
Hello, I thank you on your work for making on the Framework Jhotdraw Je shall wish to be able to create a button of protection in an application which we develop internally. Now, I do not have to find example prescribe in the code which allows to realize this feature. That is why I allows me to open this topic towards this problem. I would need an example of realization of a simple button who shall allow to throw(launch) the system of protection already implemented in Jhotdraw. Thank you in advance...
Hello, I thank you on your work for making on the Framework Jhotdraw Je shall wish to be able to create a button of protection in an application which we develop internally. Now, I do not have to find example prescribe in the code which allows to realize this feature. That is why I allows me to open this topic towards this problem. I would need an example of realization of a simple button who shall allow to throw(launch) the system of protection already implemented in Jhotdraw. Thank you in advance...
Updates workspace.
LayersInspector dnd did not work when list view was scrolled.
Refactors CSS tokenizers.
Adds SimpleRegionFigure.
Improves export of multiline text.
Adds DimensionRectangle2D converter.
Adds module-info. Replaces @NotNull by @Nonnull annotations.
Defaults to withoutComma.
CssParser now skips comments.
Refactors selector models.
Renames CssSizeInsets to CssDimensionInsets.
Adds alignment actions.
Refactors BezierNodePathBuilder and ...Iterator.
Updates workspace.
Refactors converters.
Fixes bugs.
Improves error message.
Adds SimpleRegionFigure.
Bug fixes.
Fixes typo.
RectangleFigure uses now Dimension-aware coordinates.
Adds DimensionRectangle2D converter.
Renames CssSize to CssDimension.
Adds module-info. Replaces @NotNull by @Nonnull annotations.
Fixes CSS issues.
Refactors CSS data types.
CssSize units are now nonnull.
Replaces occurences of "nextArrows" by "vertices".
Fixes layout bug.
Updates documentation.
Bug fixes.
Adds HashIndexedSet.
Removes constant for delimiters.
Renames Label classes to make them easier distinguishable.
Refactors graph API.
Adds more usages of WorkState class.
Refactors Graph APIs.
Fixes parsing error.
Refactors CssFontConverter.
Refactors Graph APIs.
Fixes issues in FontableFigure and TextStrokeableFigure.
Sets minimal width to 100 pixels.
Enhances Css Parser. Fixes bugs involving FXWorker.
Refactors Graph APIs.
Fixes typo.
Adds method findAllVertexPaths.
Invalidation of parent nodes is not needed
Refactors readable collections.
DirectedGraphPathBuilder takes now a goal predicate.
More handles take now colors and size from DrawingView.
Fixes yellow code.
Renames Label classes to make them easier distinguishable.
Refactors collections.
Minor fixes.
CssSize units are now nonnull.
Updates to Java 11.
Exports additional packages.
Accesses resources via "Label" classes rather than directly instantiating a ResourceBundleUtil.
Increases max nodes per layer to Integer.MAX_VALUE.
Adds zoom +/- buttons. Increase zoomable range.
DirectedGraphPathBuilder takes now a goal predicate.
Adds ToDoubleTriFunction.
Retrieves owner figure from Handle.
Renames ViewController to ActivityViewController because the name ViewController is too generic.
Refactors Graph APIs.
Fixes layout bug.
Improves performance.
Minor fixes.
Fixes CSS issues.
Adds RenderContext as argument to more methods.
Fixes bugs in converters.
Downgrades to Java SE 8.
Adds CssStrokeConverter.
Improves performance.
Adds license headers.
Various bug fixes.
Enhances Graph API.
Fixes Dnd.
Bug fixes.
Bug fixes.
Renames "ReadOnly" to "Readable".
Adds default shape.
Adds default shape.
Fixes and enhancements.
Formats code.
Fixes label translation.
Upgrades more code to Java 11.
Adds help texts.
CssSize units are now nonnull.
Fixes compilation error.
Updates documentation.