Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–137 unchanged (137 lines)
138 /**
139 * Creates a new plot.
140 *
141 * @param dataset the dataset (<code>null</code> permitted).
142 */
143 public MultiplePiePlot(CategoryDataset dataset) {
144 super();
145 this.dataset = dataset;
146 PiePlot piePlot = new PiePlot(null);
147 this.pieChart = new JFreeChart(piePlot);
148 this.pieChart.removeLegend();
149 this.dataExtractOrder = TableOrder.BY_COLUMN;
150 this.pieChart.setBackgroundPaint(null);
151 TextTitle seriesTitle = new TextTitle("Series Title",
…lines 152–620 unchanged (469 lines)

After

…lines 1–137 unchanged (137 lines)
138 /**
139 * Creates a new plot.
140 *
141 * @param dataset the dataset (<code>null</code> permitted).
142 */
143 public MultiplePiePlot(CategoryDataset dataset) {
144 super();
145 setDataset(dataset);
146 PiePlot piePlot = new PiePlot(null);
147 this.pieChart = new JFreeChart(piePlot);
148 this.pieChart.removeLegend();
149 this.dataExtractOrder = TableOrder.BY_COLUMN;
150 this.pieChart.setBackgroundPaint(null);
151 TextTitle seriesTitle = new TextTitle("Series Title",
…lines 152–620 unchanged (469 lines)

Before

program
block_comment "/* ========================================================="...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "plot"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "Color"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "Font"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "Graphics2D"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "Paint"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "Rectangle"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "geom"
. "."
identifier "Point2D"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "geom"
. "."
identifier "Rectangle2D"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "ObjectInputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "ObjectOutputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "Serializable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "HashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Iterator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "ChartRenderingInfo"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "JFreeChart"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "LegendItem"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "LegendItemCollection"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "event"
. "."
identifier "PlotChangeEvent"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "title"
. "."
identifier "TextTitle"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "util"
. "."
identifier "ObjectUtilities"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "util"
. "."
identifier "PaintUtilities"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "util"
. "."
identifier "RectangleEdge"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "util"
. "."
identifier "RectangleInsets"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "util"
. "."
identifier "SerialUtilities"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "util"
. "."
identifier "TableOrder"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "data"
. "."
identifier "category"
. "."
identifier "CategoryDataset"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "data"
. "."
identifier "category"
. "."
identifier "CategoryToPieDataset"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "data"
. "."
identifier "general"
. "."
identifier "DatasetChangeEvent"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "data"
. "."
identifier "general"
. "."
identifier "DatasetUtilities"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "data"
. "."
identifier "general"
. "."
identifier "PieDataset"
; ";"
block_comment "/**\r\n * A plot that displays multiple pie plots using data f"...
class_declaration
modifiers
public "public"
class "class"
identifier "MultiplePiePlot"
superclass
extends "extends"
type_identifier "Plot"
super_interfaces
implements "implements"
type_list
type_identifier "Cloneable"
, ","
type_identifier "Serializable"
class_body
{ "{"
block_comment "/** For serialization. */"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
unary_expression
- "-"
decimal_integer_literal "355377800470807389L"
; ";"
block_comment "/** The chart object that draws the individual pie charts. *"...
field_declaration
modifiers
private "private"
type_identifier "JFreeChart"
variable_declarator
identifier "pieChart"
; ";"
block_comment "/** The dataset. */"
field_declaration
modifiers
private "private"
type_identifier "CategoryDataset"
variable_declarator
identifier "dataset"
; ";"
block_comment "/** The data extract order (by row or by column). */"
field_declaration
modifiers
private "private"
type_identifier "TableOrder"
variable_declarator
identifier "dataExtractOrder"
; ";"
block_comment "/** The pie section limit percentage. */"
field_declaration
modifiers
private "private"
floating_point_type
double "double"
variable_declarator
identifier "limit"
= "="
decimal_floating_point_literal "0.0"
; ";"
block_comment "/**\r\n * The key for the aggregated items.\r\n * @since"...
field_declaration
modifiers
private "private"
type_identifier "Comparable"
variable_declarator
identifier "aggregatedItemsKey"
; ";"
block_comment "/**\r\n * The paint for the aggregated items.\r\n * @sin"...
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Paint"
variable_declarator
identifier "aggregatedItemsPaint"
; ";"
block_comment "/**\r\n * The colors to use for each section.\r\n * @sin"...
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Map"
variable_declarator
identifier "sectionPaints"
; ";"
block_comment "/**\r\n * Creates a new plot with no data.\r\n */"
constructor_declaration
modifiers
public "public"
identifier "MultiplePiePlot"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
this "this"
argument_list
( "("
null_literal "null"
) ")"
; ";"
} "}"
block_comment "/**\r\n * Creates a new plot.\r\n *\r\n * @param datas"...
constructor_declaration
modifiers
public "public"
identifier "MultiplePiePlot"
formal_parameters
( "("
formal_parameter
type_identifier "CategoryDataset"
identifier "dataset"
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
super "super"
argument_list
( "("
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "dataset"
= "="
identifier "dataset"
; ";"
local_variable_declaration
type_identifier "PiePlot"
variable_declarator
identifier "piePlot"
= "="
object_creation_expression
new "new"
type_identifier "PiePlot"
argument_list
( "("
null_literal "null"
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "pieChart"
= "="
object_creation_expression
new "new"
type_identifier "JFreeChart"
argument_list
( "("
identifier "piePlot"
) ")"
; ";"
expression_statement
method_invocation
field_access
this "this"
. "."
identifier "pieChart"
. "."
identifier "removeLegend"
argument_list
( "("
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "dataExtractOrder"
= "="
field_access
identifier "TableOrder"
. "."
identifier "BY_COLUMN"
; ";"
expression_statement
method_invocation
field_access
this "this"
. "."
identifier "pieChart"
. "."
identifier "setBackgroundPaint"
argument_list
( "("
null_literal "null"
) ")"
; ";"
local_variable_declaration (+34 nodes collapsed)
expression_statement
method_invocation
identifier "seriesTitle"
. "."
identifier "setPosition"
argument_list
( "("
field_access
identifier "RectangleEdge"
. "."
identifier "BOTTOM"
) ")"
; ";"
expression_statement
method_invocation
field_access
this "this"
. "."
identifier "pieChart"
. "."
identifier "setTitle"
argument_list
( "("
identifier "seriesTitle"
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "aggregatedItemsKey"
= "="
string_literal
" "\""
string_fragment "Other"
" "\""
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "aggregatedItemsPaint"
= "="
field_access
identifier "Color"
. "."
identifier "lightGray"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "sectionPaints"
= "="
object_creation_expression
new "new"
type_identifier "HashMap"
argument_list
( "("
) ")"
; ";"
} "}"
block_comment "/**\r\n * Returns the dataset used by the plot.\r\n *\r\n "...
method_declaration
modifiers
public "public"
type_identifier "CategoryDataset"
identifier "getDataset"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "dataset"
; ";"
} "}"
block_comment "/**\r\n * Sets the dataset used by the plot and sends a {@"...
method_declaration (+107 nodes collapsed)
block_comment "/**\r\n * Returns the pie chart that is used to draw the i"...
method_declaration
modifiers
public "public"
type_identifier "JFreeChart"
identifier "getPieChart"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "pieChart"
; ";"
} "}"
block_comment "/**\r\n * Sets the chart that is used to draw the individu"...
method_declaration (+97 nodes collapsed)
block_comment "/**\r\n * Returns the data extract order (by row or by col"...
method_declaration
modifiers
public "public"
type_identifier "TableOrder"
identifier "getDataExtractOrder"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "dataExtractOrder"
; ";"
} "}"
block_comment "/**\r\n * Sets the data extract order (by row or by column"...
method_declaration (+55 nodes collapsed)
block_comment "/**\r\n * Returns the limit (as a percentage) below which "...
method_declaration
modifiers
public "public"
floating_point_type
double "double"
identifier "getLimit"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "limit"
; ";"
} "}"
block_comment "/**\r\n * Sets the limit below which pie sections are aggr"...
method_declaration (+31 nodes collapsed)
block_comment "/**\r\n * Returns the key for aggregated items in the pie "...
method_declaration
modifiers
public "public"
type_identifier "Comparable"
identifier "getAggregatedItemsKey"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "aggregatedItemsKey"
; ";"
} "}"
block_comment "/**\r\n * Sets the key for aggregated items in the pie plo"...
method_declaration (+55 nodes collapsed)
block_comment "/**\r\n * Returns the paint used to draw the pie section r"...
method_declaration
modifiers
public "public"
type_identifier "Paint"
identifier "getAggregatedItemsPaint"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "aggregatedItemsPaint"
; ";"
} "}"
block_comment "/**\r\n * Sets the paint used to draw the pie section repr"...
method_declaration (+55 nodes collapsed)
block_comment "/**\r\n * Returns a short string describing the type of pl"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getPlotType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
string_literal
" "\""
string_fragment "Multiple Pie Plot"
" "\""
; ";"
line_comment "// TODO: need to fetch this from localised resources\r"
} "}"
block_comment "/**\r\n * Draws the plot on a Java 2D graphics device (suc"...
method_declaration (+969 nodes collapsed)
block_comment "/**\r\n * For each key in the dataset, check the <code>sec"...
method_declaration (+335 nodes collapsed)
block_comment "/**\r\n * Returns a collection of legend items for the pie"...
method_declaration (+366 nodes collapsed)
block_comment "/**\r\n * Tests this plot for equality with an arbitrary o"...
method_declaration (+220 nodes collapsed)
block_comment "/**\r\n * Provides serialization support.\r\n *\r\n * "...
method_declaration (+41 nodes collapsed)
block_comment "/**\r\n * Provides serialization support.\r\n *\r\n * "...
method_declaration (+58 nodes collapsed)
} "}"

After

program
block_comment "/* ========================================================="...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "plot"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "Color"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "Font"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "Graphics2D"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "Paint"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "Rectangle"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "geom"
. "."
identifier "Point2D"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "geom"
. "."
identifier "Rectangle2D"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "ObjectInputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "ObjectOutputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "Serializable"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "HashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Iterator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "ChartRenderingInfo"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "JFreeChart"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "LegendItem"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "LegendItemCollection"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "event"
. "."
identifier "PlotChangeEvent"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "title"
. "."
identifier "TextTitle"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "util"
. "."
identifier "ObjectUtilities"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "util"
. "."
identifier "PaintUtilities"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "util"
. "."
identifier "RectangleEdge"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "util"
. "."
identifier "RectangleInsets"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "util"
. "."
identifier "SerialUtilities"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "util"
. "."
identifier "TableOrder"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "data"
. "."
identifier "category"
. "."
identifier "CategoryDataset"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "data"
. "."
identifier "category"
. "."
identifier "CategoryToPieDataset"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "data"
. "."
identifier "general"
. "."
identifier "DatasetChangeEvent"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "data"
. "."
identifier "general"
. "."
identifier "DatasetUtilities"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "data"
. "."
identifier "general"
. "."
identifier "PieDataset"
; ";"
block_comment "/**\r\n * A plot that displays multiple pie plots using data f"...
class_declaration
modifiers
public "public"
class "class"
identifier "MultiplePiePlot"
superclass
extends "extends"
type_identifier "Plot"
super_interfaces
implements "implements"
type_list
type_identifier "Cloneable"
, ","
type_identifier "Serializable"
class_body
{ "{"
block_comment "/** For serialization. */"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
unary_expression
- "-"
decimal_integer_literal "355377800470807389L"
; ";"
block_comment "/** The chart object that draws the individual pie charts. *"...
field_declaration
modifiers
private "private"
type_identifier "JFreeChart"
variable_declarator
identifier "pieChart"
; ";"
block_comment "/** The dataset. */"
field_declaration
modifiers
private "private"
type_identifier "CategoryDataset"
variable_declarator
identifier "dataset"
; ";"
block_comment "/** The data extract order (by row or by column). */"
field_declaration
modifiers
private "private"
type_identifier "TableOrder"
variable_declarator
identifier "dataExtractOrder"
; ";"
block_comment "/** The pie section limit percentage. */"
field_declaration
modifiers
private "private"
floating_point_type
double "double"
variable_declarator
identifier "limit"
= "="
decimal_floating_point_literal "0.0"
; ";"
block_comment "/**\r\n * The key for the aggregated items.\r\n * @since"...
field_declaration
modifiers
private "private"
type_identifier "Comparable"
variable_declarator
identifier "aggregatedItemsKey"
; ";"
block_comment "/**\r\n * The paint for the aggregated items.\r\n * @sin"...
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Paint"
variable_declarator
identifier "aggregatedItemsPaint"
; ";"
block_comment "/**\r\n * The colors to use for each section.\r\n * @sin"...
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Map"
variable_declarator
identifier "sectionPaints"
; ";"
block_comment "/**\r\n * Creates a new plot with no data.\r\n */"
constructor_declaration
modifiers
public "public"
identifier "MultiplePiePlot"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
this "this"
argument_list
( "("
null_literal "null"
) ")"
; ";"
} "}"
block_comment "/**\r\n * Creates a new plot.\r\n *\r\n * @param datas"...
constructor_declaration
modifiers
public "public"
identifier "MultiplePiePlot"
formal_parameters
( "("
formal_parameter
type_identifier "CategoryDataset"
identifier "dataset"
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
super "super"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "setDataset"
argument_list
( "("
identifier "dataset"
) ")"
; ";"
local_variable_declaration
type_identifier "PiePlot"
variable_declarator
identifier "piePlot"
= "="
object_creation_expression
new "new"
type_identifier "PiePlot"
argument_list
( "("
null_literal "null"
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "pieChart"
= "="
object_creation_expression
new "new"
type_identifier "JFreeChart"
argument_list
( "("
identifier "piePlot"
) ")"
; ";"
expression_statement
method_invocation
field_access
this "this"
. "."
identifier "pieChart"
. "."
identifier "removeLegend"
argument_list
( "("
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "dataExtractOrder"
= "="
field_access
identifier "TableOrder"
. "."
identifier "BY_COLUMN"
; ";"
expression_statement
method_invocation
field_access
this "this"
. "."
identifier "pieChart"
. "."
identifier "setBackgroundPaint"
argument_list
( "("
null_literal "null"
) ")"
; ";"
local_variable_declaration (+34 nodes collapsed)
expression_statement
method_invocation
identifier "seriesTitle"
. "."
identifier "setPosition"
argument_list
( "("
field_access
identifier "RectangleEdge"
. "."
identifier "BOTTOM"
) ")"
; ";"
expression_statement
method_invocation
field_access
this "this"
. "."
identifier "pieChart"
. "."
identifier "setTitle"
argument_list
( "("
identifier "seriesTitle"
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "aggregatedItemsKey"
= "="
string_literal
" "\""
string_fragment "Other"
" "\""
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "aggregatedItemsPaint"
= "="
field_access
identifier "Color"
. "."
identifier "lightGray"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "sectionPaints"
= "="
object_creation_expression
new "new"
type_identifier "HashMap"
argument_list
( "("
) ")"
; ";"
} "}"
block_comment "/**\r\n * Returns the dataset used by the plot.\r\n *\r\n "...
method_declaration
modifiers
public "public"
type_identifier "CategoryDataset"
identifier "getDataset"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "dataset"
; ";"
} "}"
block_comment "/**\r\n * Sets the dataset used by the plot and sends a {@"...
method_declaration (+107 nodes collapsed)
block_comment "/**\r\n * Returns the pie chart that is used to draw the i"...
method_declaration
modifiers
public "public"
type_identifier "JFreeChart"
identifier "getPieChart"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "pieChart"
; ";"
} "}"
block_comment "/**\r\n * Sets the chart that is used to draw the individu"...
method_declaration (+97 nodes collapsed)
block_comment "/**\r\n * Returns the data extract order (by row or by col"...
method_declaration
modifiers
public "public"
type_identifier "TableOrder"
identifier "getDataExtractOrder"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "dataExtractOrder"
; ";"
} "}"
block_comment "/**\r\n * Sets the data extract order (by row or by column"...
method_declaration (+55 nodes collapsed)
block_comment "/**\r\n * Returns the limit (as a percentage) below which "...
method_declaration
modifiers
public "public"
floating_point_type
double "double"
identifier "getLimit"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "limit"
; ";"
} "}"
block_comment "/**\r\n * Sets the limit below which pie sections are aggr"...
method_declaration (+31 nodes collapsed)
block_comment "/**\r\n * Returns the key for aggregated items in the pie "...
method_declaration
modifiers
public "public"
type_identifier "Comparable"
identifier "getAggregatedItemsKey"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "aggregatedItemsKey"
; ";"
} "}"
block_comment "/**\r\n * Sets the key for aggregated items in the pie plo"...
method_declaration (+55 nodes collapsed)
block_comment "/**\r\n * Returns the paint used to draw the pie section r"...
method_declaration
modifiers
public "public"
type_identifier "Paint"
identifier "getAggregatedItemsPaint"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "aggregatedItemsPaint"
; ";"
} "}"
block_comment "/**\r\n * Sets the paint used to draw the pie section repr"...
method_declaration (+55 nodes collapsed)
block_comment "/**\r\n * Returns a short string describing the type of pl"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getPlotType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
string_literal
" "\""
string_fragment "Multiple Pie Plot"
" "\""
; ";"
line_comment "// TODO: need to fetch this from localised resources\r"
} "}"
block_comment "/**\r\n * Draws the plot on a Java 2D graphics device (suc"...
method_declaration (+969 nodes collapsed)
block_comment "/**\r\n * For each key in the dataset, check the <code>sec"...
method_declaration (+335 nodes collapsed)
block_comment "/**\r\n * Returns a collection of legend items for the pie"...
method_declaration (+366 nodes collapsed)
block_comment "/**\r\n * Tests this plot for equality with an arbitrary o"...
method_declaration (+220 nodes collapsed)
block_comment "/**\r\n * Provides serialization support.\r\n *\r\n * "...
method_declaration (+41 nodes collapsed)
block_comment "/**\r\n * Provides serialization support.\r\n *\r\n * "...
method_declaration (+58 nodes collapsed)
} "}"