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–1184 unchanged (1184 lines)
1185 labely - h / 2.0f, w, h);
1186 state.cursorRight(insets.getLeft() + labelBounds.getWidth()
1187 + insets.getRight());
1188
1189 }
1190 if (plotState != null && hotspot != null) {
1191 ChartRenderingInfo owner = plotState.getOwner();
1192 EntityCollection entities = owner.getEntityCollection();
1193 if (entities != null) {
1194 entities.add(new AxisLabelEntity(this, hotspot,
1195 this.labelToolTip, this.labelURL));
1196 }
1197 }
1198 return state;
1199
1200 }
1201
1202 /**
…lines 1203–1373 unchanged (171 lines)

After

…lines 1–1185 unchanged (1185 lines)
1186 state.cursorRight(insets.getLeft() + labelBounds.getWidth()
1187 + insets.getRight());
1188
1189 }
1190 if (plotState != null && hotspot != null) {
1191 ChartRenderingInfo owner = plotState.getOwner();
1192 if (owner != null) {
1193 EntityCollection entities = owner.getEntityCollection();
1194 if (entities != null) {
1195 entities.add(new AxisLabelEntity(this, hotspot,
1196 this.labelToolTip, this.labelURL));
1197 }
1198 }
1199 }
1200 return state;
1201
1202 }
1203
1204 /**
…lines 1205–1375 unchanged (171 lines)

Before

program
block_comment "/* ========================================================="...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "axis"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "BasicStroke"
; ";"
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 "FontMetrics"
; ";"
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 "Shape"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "Stroke"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "geom"
. "."
identifier "AffineTransform"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "geom"
. "."
identifier "Line2D"
; ";"
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 "Arrays"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "EventListener"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "javax"
. "."
identifier "swing"
. "."
identifier "event"
. "."
identifier "EventListenerList"
; ";"
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
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "entity"
. "."
identifier "AxisLabelEntity"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "entity"
. "."
identifier "EntityCollection"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "event"
. "."
identifier "AxisChangeEvent"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "event"
. "."
identifier "AxisChangeListener"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "plot"
. "."
identifier "Plot"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "plot"
. "."
identifier "PlotRenderingInfo"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "text"
. "."
identifier "TextAnchor"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "text"
. "."
identifier "TextUtilities"
; ";"
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"
; ";"
block_comment "/**\r\n * The base class for all axes in JFreeChart. Subclass"...
class_declaration
modifiers
public "public"
abstract "abstract"
class "class"
identifier "Axis"
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"
= "="
decimal_integer_literal "7719289504573298271L"
; ";"
block_comment "/** The default axis visibility. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "DEFAULT_AXIS_VISIBLE"
= "="
true "true"
; ";"
block_comment "/** The default axis label font. */"
field_declaration (+27 nodes collapsed)
block_comment "/** The default axis label paint. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "Paint"
variable_declarator
identifier "DEFAULT_AXIS_LABEL_PAINT"
= "="
field_access
identifier "Color"
. "."
identifier "black"
; ";"
block_comment "/** The default axis label insets. */"
field_declaration (+23 nodes collapsed)
block_comment "/** The default axis line paint. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "Paint"
variable_declarator
identifier "DEFAULT_AXIS_LINE_PAINT"
= "="
field_access
identifier "Color"
. "."
identifier "gray"
; ";"
block_comment "/** The default axis line stroke. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "Stroke"
variable_declarator
identifier "DEFAULT_AXIS_LINE_STROKE"
= "="
object_creation_expression
new "new"
type_identifier "BasicStroke"
argument_list
( "("
decimal_floating_point_literal "1.0f"
) ")"
; ";"
block_comment "/** The default tick labels visibility. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "DEFAULT_TICK_LABELS_VISIBLE"
= "="
true "true"
; ";"
block_comment "/** The default tick label font. */"
field_declaration (+27 nodes collapsed)
block_comment "/** The default tick label paint. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "Paint"
variable_declarator
identifier "DEFAULT_TICK_LABEL_PAINT"
= "="
field_access
identifier "Color"
. "."
identifier "black"
; ";"
block_comment "/** The default tick label insets. */"
field_declaration (+23 nodes collapsed)
block_comment "/** The default tick marks visible. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "DEFAULT_TICK_MARKS_VISIBLE"
= "="
true "true"
; ";"
block_comment "/** The default tick stroke. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "Stroke"
variable_declarator
identifier "DEFAULT_TICK_MARK_STROKE"
= "="
object_creation_expression
new "new"
type_identifier "BasicStroke"
argument_list
( "("
decimal_integer_literal "1"
) ")"
; ";"
block_comment "/** The default tick paint. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "Paint"
variable_declarator
identifier "DEFAULT_TICK_MARK_PAINT"
= "="
field_access
identifier "Color"
. "."
identifier "gray"
; ";"
block_comment "/** The default tick mark inside length. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
floating_point_type
float "float"
variable_declarator
identifier "DEFAULT_TICK_MARK_INSIDE_LENGTH"
= "="
decimal_floating_point_literal "0.0f"
; ";"
block_comment "/** The default tick mark outside length. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
floating_point_type
float "float"
variable_declarator
identifier "DEFAULT_TICK_MARK_OUTSIDE_LENGTH"
= "="
decimal_floating_point_literal "2.0f"
; ";"
block_comment "/** A flag indicating whether or not the axis is visible. */"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "visible"
; ";"
block_comment "/** The label for the axis. */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "label"
; ";"
block_comment "/** The font for displaying the axis label. */"
field_declaration
modifiers
private "private"
type_identifier "Font"
variable_declarator
identifier "labelFont"
; ";"
block_comment "/** The paint for drawing the axis label. */"
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Paint"
variable_declarator
identifier "labelPaint"
; ";"
block_comment "/** The insets for the axis label. */"
field_declaration
modifiers
private "private"
type_identifier "RectangleInsets"
variable_declarator
identifier "labelInsets"
; ";"
block_comment "/** The label angle. */"
field_declaration
modifiers
private "private"
floating_point_type
double "double"
variable_declarator
identifier "labelAngle"
; ";"
block_comment "/**\r\n * The tool tip text for the label (<code>null</cod"...
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "labelToolTip"
; ";"
block_comment "/**\r\n * The URL for the label (<code>null</code> is perm"...
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "labelURL"
; ";"
block_comment "/** A flag that controls whether or not the axis line is vis"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "axisLineVisible"
; ";"
block_comment "/** The stroke used for the axis line. */"
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Stroke"
variable_declarator
identifier "axisLineStroke"
; ";"
block_comment "/** The paint used for the axis line. */"
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Paint"
variable_declarator
identifier "axisLinePaint"
; ";"
block_comment "/** \r\n * A flag that indicates whether or not tick label"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "tickLabelsVisible"
; ";"
block_comment "/** The font used to display the tick labels. */"
field_declaration
modifiers
private "private"
type_identifier "Font"
variable_declarator
identifier "tickLabelFont"
; ";"
block_comment "/** The color used to display the tick labels. */"
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Paint"
variable_declarator
identifier "tickLabelPaint"
; ";"
block_comment "/** The blank space around each tick label. */"
field_declaration
modifiers
private "private"
type_identifier "RectangleInsets"
variable_declarator
identifier "tickLabelInsets"
; ";"
block_comment "/** \r\n * A flag that indicates whether or not tick marks"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "tickMarksVisible"
; ";"
block_comment "/** The length of the tick mark inside the data area (zero p"...
field_declaration
modifiers
private "private"
floating_point_type
float "float"
variable_declarator
identifier "tickMarkInsideLength"
; ";"
block_comment "/** The length of the tick mark outside the data area (zero "...
field_declaration
modifiers
private "private"
floating_point_type
float "float"
variable_declarator
identifier "tickMarkOutsideLength"
; ";"
block_comment "/** The stroke used to draw tick marks. */"
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Stroke"
variable_declarator
identifier "tickMarkStroke"
; ";"
block_comment "/** The paint used to draw tick marks. */"
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Paint"
variable_declarator
identifier "tickMarkPaint"
; ";"
block_comment "/** The fixed (horizontal or vertical) dimension for the axi"...
field_declaration
modifiers
private "private"
floating_point_type
double "double"
variable_declarator
identifier "fixedDimension"
; ";"
block_comment "/** \r\n * A reference back to the plot that the axis is a"...
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Plot"
variable_declarator
identifier "plot"
; ";"
block_comment "/** Storage for registered listeners. */"
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "EventListenerList"
variable_declarator
identifier "listenerList"
; ";"
block_comment "/**\r\n * Constructs an axis, using default values where n"...
constructor_declaration (+216 nodes collapsed)
block_comment "/**\r\n * Returns <code>true</code> if the axis is visible"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isVisible"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "visible"
; ";"
} "}"
block_comment "/**\r\n * Sets a flag that controls whether or not the axi"...
method_declaration (+52 nodes collapsed)
block_comment "/**\r\n * Returns the label for the axis.\r\n *\r\n * "...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getLabel"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "label"
; ";"
} "}"
block_comment "/**\r\n * Sets the label for the axis and sends an {@link "...
method_declaration (+116 nodes collapsed)
block_comment "/**\r\n * Returns the font for the axis label.\r\n *\r\n "...
method_declaration
modifiers
public "public"
type_identifier "Font"
identifier "getLabelFont"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "labelFont"
; ";"
} "}"
block_comment "/**\r\n * Sets the font for the axis label and sends an {@"...
method_declaration (+83 nodes collapsed)
block_comment "/**\r\n * Returns the color/shade used to draw the axis la"...
method_declaration
modifiers
public "public"
type_identifier "Paint"
identifier "getLabelPaint"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "labelPaint"
; ";"
} "}"
block_comment "/**\r\n * Sets the paint used to draw the axis label and s"...
method_declaration (+62 nodes collapsed)
block_comment "/**\r\n * Returns the insets for the label (that is, the a"...
method_declaration
modifiers
public "public"
type_identifier "RectangleInsets"
identifier "getLabelInsets"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "labelInsets"
; ";"
} "}"
block_comment "/**\r\n * Sets the insets for the axis label, and sends an"...
method_declaration (+83 nodes collapsed)
block_comment "/**\r\n * Returns the angle of the axis label.\r\n *\r\n "...
method_declaration
modifiers
public "public"
floating_point_type
double "double"
identifier "getLabelAngle"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "labelAngle"
; ";"
} "}"
block_comment "/**\r\n * Sets the angle for the label and sends an {@link"...
method_declaration (+38 nodes collapsed)
block_comment "/**\r\n * Returns the tool tip text for the axis label.\r\n "...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getLabelToolTip"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "labelToolTip"
; ";"
} "}"
block_comment "/**\r\n * Sets the tool tip text for the axis label and se"...
method_declaration (+37 nodes collapsed)
block_comment "/**\r\n * Returns the URL text for the axis label.\r\n *"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getLabelURL"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "labelURL"
; ";"
} "}"
block_comment "/**\r\n * Sets the URL for the axis label and sends an {@l"...
method_declaration (+37 nodes collapsed)
block_comment "/**\r\n * A flag that controls whether or not the axis lin"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isAxisLineVisible"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "axisLineVisible"
; ";"
} "}"
block_comment "/**\r\n * Sets a flag that controls whether or not the axi"...
method_declaration (+37 nodes collapsed)
block_comment "/**\r\n * Returns the paint used to draw the axis line.\r\n "...
method_declaration
modifiers
public "public"
type_identifier "Paint"
identifier "getAxisLinePaint"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "axisLinePaint"
; ";"
} "}"
block_comment "/**\r\n * Sets the paint used to draw the axis line and se"...
method_declaration (+62 nodes collapsed)
block_comment "/**\r\n * Returns the stroke used to draw the axis line.\r\n"...
method_declaration
modifiers
public "public"
type_identifier "Stroke"
identifier "getAxisLineStroke"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "axisLineStroke"
; ";"
} "}"
block_comment "/**\r\n * Sets the stroke used to draw the axis line and s"...
method_declaration (+62 nodes collapsed)
block_comment "/**\r\n * Returns a flag indicating whether or not the tic"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isTickLabelsVisible"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickLabelsVisible"
; ";"
} "}"
block_comment "/**\r\n * Sets the flag that determines whether or not the"...
method_declaration (+52 nodes collapsed)
block_comment "/**\r\n * Returns the font used for the tick labels (if sh"...
method_declaration
modifiers
public "public"
type_identifier "Font"
identifier "getTickLabelFont"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickLabelFont"
; ";"
} "}"
block_comment "/**\r\n * Sets the font for the tick labels and sends an {"...
method_declaration (+83 nodes collapsed)
block_comment "/**\r\n * Returns the color/shade used for the tick labels"...
method_declaration
modifiers
public "public"
type_identifier "Paint"
identifier "getTickLabelPaint"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickLabelPaint"
; ";"
} "}"
block_comment "/**\r\n * Sets the paint used to draw tick labels (if they"...
method_declaration (+62 nodes collapsed)
block_comment "/**\r\n * Returns the insets for the tick labels.\r\n *\r"...
method_declaration
modifiers
public "public"
type_identifier "RectangleInsets"
identifier "getTickLabelInsets"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickLabelInsets"
; ";"
} "}"
block_comment "/**\r\n * Sets the insets for the tick labels and sends an"...
method_declaration (+83 nodes collapsed)
block_comment "/**\r\n * Returns the flag that indicates whether or not t"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isTickMarksVisible"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickMarksVisible"
; ";"
} "}"
block_comment "/**\r\n * Sets the flag that indicates whether or not the "...
method_declaration (+52 nodes collapsed)
block_comment "/**\r\n * Returns the inside length of the tick marks.\r\n "...
method_declaration
modifiers
public "public"
floating_point_type
float "float"
identifier "getTickMarkInsideLength"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickMarkInsideLength"
; ";"
} "}"
block_comment "/**\r\n * Sets the inside length of the tick marks and sen"...
method_declaration (+38 nodes collapsed)
block_comment "/**\r\n * Returns the outside length of the tick marks.\r\n "...
method_declaration
modifiers
public "public"
floating_point_type
float "float"
identifier "getTickMarkOutsideLength"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickMarkOutsideLength"
; ";"
} "}"
block_comment "/**\r\n * Sets the outside length of the tick marks and se"...
method_declaration (+38 nodes collapsed)
block_comment "/**\r\n * Returns the stroke used to draw tick marks.\r\n "...
method_declaration
modifiers
public "public"
type_identifier "Stroke"
identifier "getTickMarkStroke"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickMarkStroke"
; ";"
} "}"
block_comment "/**\r\n * Sets the stroke used to draw tick marks and send"...
method_declaration (+83 nodes collapsed)
block_comment "/**\r\n * Returns the paint used to draw tick marks (if th"...
method_declaration
modifiers
public "public"
type_identifier "Paint"
identifier "getTickMarkPaint"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickMarkPaint"
; ";"
} "}"
block_comment "/**\r\n * Sets the paint used to draw tick marks and sends"...
method_declaration (+62 nodes collapsed)
block_comment "/**\r\n * Returns the plot that the axis is assigned to. "...
method_declaration
modifiers
public "public"
type_identifier "Plot"
identifier "getPlot"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "plot"
; ";"
} "}"
block_comment "/**\r\n * Sets a reference to the plot that the axis is as"...
method_declaration (+30 nodes collapsed)
block_comment "/**\r\n * Returns the fixed dimension for the axis.\r\n "...
method_declaration
modifiers
public "public"
floating_point_type
double "double"
identifier "getFixedDimension"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "fixedDimension"
; ";"
} "}"
block_comment "/**\r\n * Sets the fixed dimension for the axis.\r\n * <"...
method_declaration (+24 nodes collapsed)
block_comment "/**\r\n * Configures the axis to work with the current plo"...
method_declaration
modifiers
public "public"
abstract "abstract"
void_type "void"
identifier "configure"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\r\n * Estimates the space (height or width) required t"...
method_declaration (+29 nodes collapsed)
block_comment "/**\r\n * Draws the axis on a Java 2D graphics device (suc"...
method_declaration (+34 nodes collapsed)
block_comment "/**\r\n * Calculates the positions of the ticks for the ax"...
method_declaration (+25 nodes collapsed)
block_comment "/**\r\n * Registers an object for notification of changes "...
method_declaration (+32 nodes collapsed)
block_comment "/**\r\n * Deregisters an object for notification of change"...
method_declaration (+32 nodes collapsed)
block_comment "/**\r\n * Returns <code>true</code> if the specified objec"...
method_declaration (+48 nodes collapsed)
block_comment "/**\r\n * Notifies all registered listeners that the axis "...
method_declaration (+107 nodes collapsed)
block_comment "/**\r\n * Returns a rectangle that encloses the axis label"...
method_declaration (+257 nodes collapsed)
block_comment "/**\r\n * Draws the axis label.\r\n *\r\n * @param lab"...
method_declaration
modifiers
protected "protected"
type_identifier "AxisState"
identifier "drawLabel"
formal_parameters (+30 nodes collapsed)
block
{ "{"
line_comment "// it is unlikely that 'state' will be null, but check anywa"...
if_statement (+25 nodes collapsed)
if_statement (+34 nodes collapsed)
local_variable_declaration
type_identifier "Font"
variable_declarator
identifier "font"
= "="
method_invocation
identifier "getLabelFont"
argument_list
( "("
) ")"
; ";"
local_variable_declaration
type_identifier "RectangleInsets"
variable_declarator
identifier "insets"
= "="
method_invocation
identifier "getLabelInsets"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "g2"
. "."
identifier "setFont"
argument_list
( "("
identifier "font"
) ")"
; ";"
expression_statement
method_invocation
identifier "g2"
. "."
identifier "setPaint"
argument_list
( "("
method_invocation
identifier "getLabelPaint"
argument_list
( "("
) ")"
) ")"
; ";"
local_variable_declaration
type_identifier "FontMetrics"
variable_declarator
identifier "fm"
= "="
method_invocation
identifier "g2"
. "."
identifier "getFontMetrics"
argument_list
( "("
) ")"
; ";"
local_variable_declaration
type_identifier "Rectangle2D"
variable_declarator
identifier "labelBounds"
= "="
method_invocation
identifier "TextUtilities"
. "."
identifier "getTextBounds"
argument_list
( "("
identifier "label"
, ","
identifier "g2"
, ","
identifier "fm"
) ")"
; ";"
local_variable_declaration
type_identifier "Shape"
variable_declarator
identifier "hotspot"
= "="
null_literal "null"
; ";"
if_statement (+1126 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
binary_expression
identifier "plotState"
!= "!="
null_literal "null"
&& "&&"
binary_expression
identifier "hotspot"
!= "!="
null_literal "null"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "ChartRenderingInfo"
variable_declarator
identifier "owner"
= "="
method_invocation
identifier "plotState"
. "."
identifier "getOwner"
argument_list
( "("
) ")"
; ";"
local_variable_declaration
type_identifier "EntityCollection"
variable_declarator
identifier "entities"
= "="
method_invocation
identifier "owner"
. "."
identifier "getEntityCollection"
argument_list
( "("
) ")"
; ";"
if_statement (+40 nodes collapsed)
} "}"
return_statement
return "return"
identifier "state"
; ";"
} "}"
block_comment "/**\r\n * Draws an axis line at the current cursor positio"...
method_declaration (+265 nodes collapsed)
block_comment "/**\r\n * Returns a clone of the axis.\r\n * \r\n * @r"...
method_declaration (+59 nodes collapsed)
block_comment "/**\r\n * Tests this axis for equality with another object"...
method_declaration (+632 nodes collapsed)
block_comment "/**\r\n * Provides serialization support.\r\n *\r\n * "...
method_declaration (+116 nodes collapsed)
block_comment "/**\r\n * Provides serialization support.\r\n *\r\n * "...
method_declaration (+138 nodes collapsed)
} "}"

After

program
block_comment "/* ========================================================="...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "axis"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "BasicStroke"
; ";"
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 "FontMetrics"
; ";"
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 "Shape"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "Stroke"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "geom"
. "."
identifier "AffineTransform"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "awt"
. "."
identifier "geom"
. "."
identifier "Line2D"
; ";"
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 "Arrays"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "EventListener"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "javax"
. "."
identifier "swing"
. "."
identifier "event"
. "."
identifier "EventListenerList"
; ";"
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
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "entity"
. "."
identifier "AxisLabelEntity"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "entity"
. "."
identifier "EntityCollection"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "event"
. "."
identifier "AxisChangeEvent"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "event"
. "."
identifier "AxisChangeListener"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "plot"
. "."
identifier "Plot"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "plot"
. "."
identifier "PlotRenderingInfo"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "text"
. "."
identifier "TextAnchor"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "chart"
. "."
identifier "text"
. "."
identifier "TextUtilities"
; ";"
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"
; ";"
block_comment "/**\r\n * The base class for all axes in JFreeChart. Subclass"...
class_declaration
modifiers
public "public"
abstract "abstract"
class "class"
identifier "Axis"
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"
= "="
decimal_integer_literal "7719289504573298271L"
; ";"
block_comment "/** The default axis visibility. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "DEFAULT_AXIS_VISIBLE"
= "="
true "true"
; ";"
block_comment "/** The default axis label font. */"
field_declaration (+27 nodes collapsed)
block_comment "/** The default axis label paint. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "Paint"
variable_declarator
identifier "DEFAULT_AXIS_LABEL_PAINT"
= "="
field_access
identifier "Color"
. "."
identifier "black"
; ";"
block_comment "/** The default axis label insets. */"
field_declaration (+23 nodes collapsed)
block_comment "/** The default axis line paint. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "Paint"
variable_declarator
identifier "DEFAULT_AXIS_LINE_PAINT"
= "="
field_access
identifier "Color"
. "."
identifier "gray"
; ";"
block_comment "/** The default axis line stroke. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "Stroke"
variable_declarator
identifier "DEFAULT_AXIS_LINE_STROKE"
= "="
object_creation_expression
new "new"
type_identifier "BasicStroke"
argument_list
( "("
decimal_floating_point_literal "1.0f"
) ")"
; ";"
block_comment "/** The default tick labels visibility. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "DEFAULT_TICK_LABELS_VISIBLE"
= "="
true "true"
; ";"
block_comment "/** The default tick label font. */"
field_declaration (+27 nodes collapsed)
block_comment "/** The default tick label paint. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "Paint"
variable_declarator
identifier "DEFAULT_TICK_LABEL_PAINT"
= "="
field_access
identifier "Color"
. "."
identifier "black"
; ";"
block_comment "/** The default tick label insets. */"
field_declaration (+23 nodes collapsed)
block_comment "/** The default tick marks visible. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "DEFAULT_TICK_MARKS_VISIBLE"
= "="
true "true"
; ";"
block_comment "/** The default tick stroke. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "Stroke"
variable_declarator
identifier "DEFAULT_TICK_MARK_STROKE"
= "="
object_creation_expression
new "new"
type_identifier "BasicStroke"
argument_list
( "("
decimal_integer_literal "1"
) ")"
; ";"
block_comment "/** The default tick paint. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "Paint"
variable_declarator
identifier "DEFAULT_TICK_MARK_PAINT"
= "="
field_access
identifier "Color"
. "."
identifier "gray"
; ";"
block_comment "/** The default tick mark inside length. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
floating_point_type
float "float"
variable_declarator
identifier "DEFAULT_TICK_MARK_INSIDE_LENGTH"
= "="
decimal_floating_point_literal "0.0f"
; ";"
block_comment "/** The default tick mark outside length. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
floating_point_type
float "float"
variable_declarator
identifier "DEFAULT_TICK_MARK_OUTSIDE_LENGTH"
= "="
decimal_floating_point_literal "2.0f"
; ";"
block_comment "/** A flag indicating whether or not the axis is visible. */"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "visible"
; ";"
block_comment "/** The label for the axis. */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "label"
; ";"
block_comment "/** The font for displaying the axis label. */"
field_declaration
modifiers
private "private"
type_identifier "Font"
variable_declarator
identifier "labelFont"
; ";"
block_comment "/** The paint for drawing the axis label. */"
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Paint"
variable_declarator
identifier "labelPaint"
; ";"
block_comment "/** The insets for the axis label. */"
field_declaration
modifiers
private "private"
type_identifier "RectangleInsets"
variable_declarator
identifier "labelInsets"
; ";"
block_comment "/** The label angle. */"
field_declaration
modifiers
private "private"
floating_point_type
double "double"
variable_declarator
identifier "labelAngle"
; ";"
block_comment "/**\r\n * The tool tip text for the label (<code>null</cod"...
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "labelToolTip"
; ";"
block_comment "/**\r\n * The URL for the label (<code>null</code> is perm"...
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "labelURL"
; ";"
block_comment "/** A flag that controls whether or not the axis line is vis"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "axisLineVisible"
; ";"
block_comment "/** The stroke used for the axis line. */"
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Stroke"
variable_declarator
identifier "axisLineStroke"
; ";"
block_comment "/** The paint used for the axis line. */"
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Paint"
variable_declarator
identifier "axisLinePaint"
; ";"
block_comment "/** \r\n * A flag that indicates whether or not tick label"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "tickLabelsVisible"
; ";"
block_comment "/** The font used to display the tick labels. */"
field_declaration
modifiers
private "private"
type_identifier "Font"
variable_declarator
identifier "tickLabelFont"
; ";"
block_comment "/** The color used to display the tick labels. */"
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Paint"
variable_declarator
identifier "tickLabelPaint"
; ";"
block_comment "/** The blank space around each tick label. */"
field_declaration
modifiers
private "private"
type_identifier "RectangleInsets"
variable_declarator
identifier "tickLabelInsets"
; ";"
block_comment "/** \r\n * A flag that indicates whether or not tick marks"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "tickMarksVisible"
; ";"
block_comment "/** The length of the tick mark inside the data area (zero p"...
field_declaration
modifiers
private "private"
floating_point_type
float "float"
variable_declarator
identifier "tickMarkInsideLength"
; ";"
block_comment "/** The length of the tick mark outside the data area (zero "...
field_declaration
modifiers
private "private"
floating_point_type
float "float"
variable_declarator
identifier "tickMarkOutsideLength"
; ";"
block_comment "/** The stroke used to draw tick marks. */"
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Stroke"
variable_declarator
identifier "tickMarkStroke"
; ";"
block_comment "/** The paint used to draw tick marks. */"
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Paint"
variable_declarator
identifier "tickMarkPaint"
; ";"
block_comment "/** The fixed (horizontal or vertical) dimension for the axi"...
field_declaration
modifiers
private "private"
floating_point_type
double "double"
variable_declarator
identifier "fixedDimension"
; ";"
block_comment "/** \r\n * A reference back to the plot that the axis is a"...
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "Plot"
variable_declarator
identifier "plot"
; ";"
block_comment "/** Storage for registered listeners. */"
field_declaration
modifiers
private "private"
transient "transient"
type_identifier "EventListenerList"
variable_declarator
identifier "listenerList"
; ";"
block_comment "/**\r\n * Constructs an axis, using default values where n"...
constructor_declaration (+216 nodes collapsed)
block_comment "/**\r\n * Returns <code>true</code> if the axis is visible"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isVisible"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "visible"
; ";"
} "}"
block_comment "/**\r\n * Sets a flag that controls whether or not the axi"...
method_declaration (+52 nodes collapsed)
block_comment "/**\r\n * Returns the label for the axis.\r\n *\r\n * "...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getLabel"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "label"
; ";"
} "}"
block_comment "/**\r\n * Sets the label for the axis and sends an {@link "...
method_declaration (+116 nodes collapsed)
block_comment "/**\r\n * Returns the font for the axis label.\r\n *\r\n "...
method_declaration
modifiers
public "public"
type_identifier "Font"
identifier "getLabelFont"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "labelFont"
; ";"
} "}"
block_comment "/**\r\n * Sets the font for the axis label and sends an {@"...
method_declaration (+83 nodes collapsed)
block_comment "/**\r\n * Returns the color/shade used to draw the axis la"...
method_declaration
modifiers
public "public"
type_identifier "Paint"
identifier "getLabelPaint"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "labelPaint"
; ";"
} "}"
block_comment "/**\r\n * Sets the paint used to draw the axis label and s"...
method_declaration (+62 nodes collapsed)
block_comment "/**\r\n * Returns the insets for the label (that is, the a"...
method_declaration
modifiers
public "public"
type_identifier "RectangleInsets"
identifier "getLabelInsets"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "labelInsets"
; ";"
} "}"
block_comment "/**\r\n * Sets the insets for the axis label, and sends an"...
method_declaration (+83 nodes collapsed)
block_comment "/**\r\n * Returns the angle of the axis label.\r\n *\r\n "...
method_declaration
modifiers
public "public"
floating_point_type
double "double"
identifier "getLabelAngle"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "labelAngle"
; ";"
} "}"
block_comment "/**\r\n * Sets the angle for the label and sends an {@link"...
method_declaration (+38 nodes collapsed)
block_comment "/**\r\n * Returns the tool tip text for the axis label.\r\n "...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getLabelToolTip"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "labelToolTip"
; ";"
} "}"
block_comment "/**\r\n * Sets the tool tip text for the axis label and se"...
method_declaration (+37 nodes collapsed)
block_comment "/**\r\n * Returns the URL text for the axis label.\r\n *"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getLabelURL"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "labelURL"
; ";"
} "}"
block_comment "/**\r\n * Sets the URL for the axis label and sends an {@l"...
method_declaration (+37 nodes collapsed)
block_comment "/**\r\n * A flag that controls whether or not the axis lin"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isAxisLineVisible"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "axisLineVisible"
; ";"
} "}"
block_comment "/**\r\n * Sets a flag that controls whether or not the axi"...
method_declaration (+37 nodes collapsed)
block_comment "/**\r\n * Returns the paint used to draw the axis line.\r\n "...
method_declaration
modifiers
public "public"
type_identifier "Paint"
identifier "getAxisLinePaint"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "axisLinePaint"
; ";"
} "}"
block_comment "/**\r\n * Sets the paint used to draw the axis line and se"...
method_declaration (+62 nodes collapsed)
block_comment "/**\r\n * Returns the stroke used to draw the axis line.\r\n"...
method_declaration
modifiers
public "public"
type_identifier "Stroke"
identifier "getAxisLineStroke"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "axisLineStroke"
; ";"
} "}"
block_comment "/**\r\n * Sets the stroke used to draw the axis line and s"...
method_declaration (+62 nodes collapsed)
block_comment "/**\r\n * Returns a flag indicating whether or not the tic"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isTickLabelsVisible"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickLabelsVisible"
; ";"
} "}"
block_comment "/**\r\n * Sets the flag that determines whether or not the"...
method_declaration (+52 nodes collapsed)
block_comment "/**\r\n * Returns the font used for the tick labels (if sh"...
method_declaration
modifiers
public "public"
type_identifier "Font"
identifier "getTickLabelFont"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickLabelFont"
; ";"
} "}"
block_comment "/**\r\n * Sets the font for the tick labels and sends an {"...
method_declaration (+83 nodes collapsed)
block_comment "/**\r\n * Returns the color/shade used for the tick labels"...
method_declaration
modifiers
public "public"
type_identifier "Paint"
identifier "getTickLabelPaint"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickLabelPaint"
; ";"
} "}"
block_comment "/**\r\n * Sets the paint used to draw tick labels (if they"...
method_declaration (+62 nodes collapsed)
block_comment "/**\r\n * Returns the insets for the tick labels.\r\n *\r"...
method_declaration
modifiers
public "public"
type_identifier "RectangleInsets"
identifier "getTickLabelInsets"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickLabelInsets"
; ";"
} "}"
block_comment "/**\r\n * Sets the insets for the tick labels and sends an"...
method_declaration (+83 nodes collapsed)
block_comment "/**\r\n * Returns the flag that indicates whether or not t"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isTickMarksVisible"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickMarksVisible"
; ";"
} "}"
block_comment "/**\r\n * Sets the flag that indicates whether or not the "...
method_declaration (+52 nodes collapsed)
block_comment "/**\r\n * Returns the inside length of the tick marks.\r\n "...
method_declaration
modifiers
public "public"
floating_point_type
float "float"
identifier "getTickMarkInsideLength"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickMarkInsideLength"
; ";"
} "}"
block_comment "/**\r\n * Sets the inside length of the tick marks and sen"...
method_declaration (+38 nodes collapsed)
block_comment "/**\r\n * Returns the outside length of the tick marks.\r\n "...
method_declaration
modifiers
public "public"
floating_point_type
float "float"
identifier "getTickMarkOutsideLength"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickMarkOutsideLength"
; ";"
} "}"
block_comment "/**\r\n * Sets the outside length of the tick marks and se"...
method_declaration (+38 nodes collapsed)
block_comment "/**\r\n * Returns the stroke used to draw tick marks.\r\n "...
method_declaration
modifiers
public "public"
type_identifier "Stroke"
identifier "getTickMarkStroke"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickMarkStroke"
; ";"
} "}"
block_comment "/**\r\n * Sets the stroke used to draw tick marks and send"...
method_declaration (+83 nodes collapsed)
block_comment "/**\r\n * Returns the paint used to draw tick marks (if th"...
method_declaration
modifiers
public "public"
type_identifier "Paint"
identifier "getTickMarkPaint"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "tickMarkPaint"
; ";"
} "}"
block_comment "/**\r\n * Sets the paint used to draw tick marks and sends"...
method_declaration (+62 nodes collapsed)
block_comment "/**\r\n * Returns the plot that the axis is assigned to. "...
method_declaration
modifiers
public "public"
type_identifier "Plot"
identifier "getPlot"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "plot"
; ";"
} "}"
block_comment "/**\r\n * Sets a reference to the plot that the axis is as"...
method_declaration (+30 nodes collapsed)
block_comment "/**\r\n * Returns the fixed dimension for the axis.\r\n "...
method_declaration
modifiers
public "public"
floating_point_type
double "double"
identifier "getFixedDimension"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "fixedDimension"
; ";"
} "}"
block_comment "/**\r\n * Sets the fixed dimension for the axis.\r\n * <"...
method_declaration (+24 nodes collapsed)
block_comment "/**\r\n * Configures the axis to work with the current plo"...
method_declaration
modifiers
public "public"
abstract "abstract"
void_type "void"
identifier "configure"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\r\n * Estimates the space (height or width) required t"...
method_declaration (+29 nodes collapsed)
block_comment "/**\r\n * Draws the axis on a Java 2D graphics device (suc"...
method_declaration (+34 nodes collapsed)
block_comment "/**\r\n * Calculates the positions of the ticks for the ax"...
method_declaration (+25 nodes collapsed)
block_comment "/**\r\n * Registers an object for notification of changes "...
method_declaration (+32 nodes collapsed)
block_comment "/**\r\n * Deregisters an object for notification of change"...
method_declaration (+32 nodes collapsed)
block_comment "/**\r\n * Returns <code>true</code> if the specified objec"...
method_declaration (+48 nodes collapsed)
block_comment "/**\r\n * Notifies all registered listeners that the axis "...
method_declaration (+107 nodes collapsed)
block_comment "/**\r\n * Returns a rectangle that encloses the axis label"...
method_declaration (+257 nodes collapsed)
block_comment "/**\r\n * Draws the axis label.\r\n *\r\n * @param lab"...
method_declaration
modifiers
protected "protected"
type_identifier "AxisState"
identifier "drawLabel"
formal_parameters (+30 nodes collapsed)
block
{ "{"
line_comment "// it is unlikely that 'state' will be null, but check anywa"...
if_statement (+25 nodes collapsed)
if_statement (+34 nodes collapsed)
local_variable_declaration
type_identifier "Font"
variable_declarator
identifier "font"
= "="
method_invocation
identifier "getLabelFont"
argument_list
( "("
) ")"
; ";"
local_variable_declaration
type_identifier "RectangleInsets"
variable_declarator
identifier "insets"
= "="
method_invocation
identifier "getLabelInsets"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "g2"
. "."
identifier "setFont"
argument_list
( "("
identifier "font"
) ")"
; ";"
expression_statement
method_invocation
identifier "g2"
. "."
identifier "setPaint"
argument_list
( "("
method_invocation
identifier "getLabelPaint"
argument_list
( "("
) ")"
) ")"
; ";"
local_variable_declaration
type_identifier "FontMetrics"
variable_declarator
identifier "fm"
= "="
method_invocation
identifier "g2"
. "."
identifier "getFontMetrics"
argument_list
( "("
) ")"
; ";"
local_variable_declaration
type_identifier "Rectangle2D"
variable_declarator
identifier "labelBounds"
= "="
method_invocation
identifier "TextUtilities"
. "."
identifier "getTextBounds"
argument_list
( "("
identifier "label"
, ","
identifier "g2"
, ","
identifier "fm"
) ")"
; ";"
local_variable_declaration
type_identifier "Shape"
variable_declarator
identifier "hotspot"
= "="
null_literal "null"
; ";"
if_statement (+1126 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
binary_expression
identifier "plotState"
!= "!="
null_literal "null"
&& "&&"
binary_expression
identifier "hotspot"
!= "!="
null_literal "null"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "ChartRenderingInfo"
variable_declarator
identifier "owner"
= "="
method_invocation
identifier "plotState"
. "."
identifier "getOwner"
argument_list
( "("
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "owner"
!= "!="
null_literal "null"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "EntityCollection"
variable_declarator
identifier "entities"
= "="
method_invocation
identifier "owner"
. "."
identifier "getEntityCollection"
argument_list
( "("
) ")"
; ";"
if_statement (+40 nodes collapsed)
} "}"
} "}"
return_statement
return "return"
identifier "state"
; ";"
} "}"
block_comment "/**\r\n * Draws an axis line at the current cursor positio"...
method_declaration (+265 nodes collapsed)
block_comment "/**\r\n * Returns a clone of the axis.\r\n * \r\n * @r"...
method_declaration (+59 nodes collapsed)
block_comment "/**\r\n * Tests this axis for equality with another object"...
method_declaration (+632 nodes collapsed)
block_comment "/**\r\n * Provides serialization support.\r\n *\r\n * "...
method_declaration (+116 nodes collapsed)
block_comment "/**\r\n * Provides serialization support.\r\n *\r\n * "...
method_declaration (+138 nodes collapsed)
} "}"