Graphics Reference
In-Depth Information
Figure . . Interface in a class diagram
Figure . . Composition and aggregation in class diagrams
InUML,composition indicates thatoneclassBbelongstoanother classA.Class B
is the “part” class of the “whole” class A. If “whole” class A is destroyed, so is “part”
class B. In a class diagram, class A and classBareconnectedbyalinesegmentwhich
ends at the “whole” class A with a filled diamond.
Aggregationissimilartocomposition,butisalessrigorouswayofgroupingthings.
Let class A aggregate class B. At this time, “part” class B continues to exist even if
“whole”classAisdestroyed.Inaclassdiagram,“whole”classAispointedtobyan
empty diamond (see Fig. . ).
Design and Implementation
of a Java Graphics Library
17.3
In this section, we illustrate the details of the techniques described above using a sta-
tistical graphics library, Jasplot (JAva Statistical PLOT),which was originally written
for our general-purpose statistical sotware Jasp (JAva-based Statistical Processor)
(Nakano et al., ; Yamamoto et al., ; Nakano et al., ). Jasplot has since
been improved from the original version so that it is now independent of Jasp.
Overview of Jasplot
17.3.1
Jasplot is a Java library for drawing interactive statistical graphs. It is supposed to be
used fromprograms written byusersand tobeused fromother sotware like Jasp.In
theAppendix,webrieflyexplain howtouseJasplotfromJavaprograms.Atthisstage,
Jasplot is integrated into Jasp, which has its own language (Kobayashi et al., ).
AllofthefunctionsofJasplotcaneasilybeusedbywritingJaspprogramsinJasp.he
Jasp language is an extension of Pnuts, a script language. As script languages (such as
Pnuts, Python and Ruby) are designed to write programs easily, Jasp is the easy way
to utilize Jasplot.
Search WWH ::




Custom Search