📄 abstractrenderer.java
字号:
return b.booleanValue();
}
/**
* Sets the visibility of the item labels for ALL series.
*
* @param visible the flag.
*/
public void setItemLabelsVisible(boolean visible) {
if (visible) {
setItemLabelsVisible(Boolean.TRUE);
}
else {
setItemLabelsVisible(Boolean.FALSE);
}
// The following alternative is not supported in JDK 1.2.2:
// setItemLabelsVisible(Boolean.valueOf(visible));
}
/**
* Sets the visibility of the item labels for ALL series (optional).
*
* @param visible the flag (<code>null</code> permitted).
*/
public void setItemLabelsVisible(Boolean visible) {
this.itemLabelsVisible = visible;
}
/**
* Sets the visibility of the item labels for a series.
*
* @param series the series.
* @param visible the flag.
*/
public void setSeriesItemLabelsVisible(int series, Boolean visible) {
this.itemLabelsVisibleList.setBoolean(series, visible);
}
/**
* Returns the base setting for item label visibility.
*
* @return A flag.
*/
public Boolean getBaseItemLabelsVisible() {
return this.baseItemLabelsVisible;
}
/**
* Sets the base setting for item label visibility.
*
* @param visible the flag.
*/
public void setBaseItemLabelsVisible(Boolean visible) {
this.baseItemLabelsVisible = visible;
}
// ITEM LABEL FONT...
/**
* Returns the font for an item label.
*
* @param row the row.
* @param column the column.
*
* @return The font.
*/
public Font getItemLabelFont(int row, int column) {
return getSeriesItemLabelFont(row);
}
/**
* Returns the font for all the item labels in a series.
*
* @param series the series.
*
* @return The font.
*/
public Font getSeriesItemLabelFont(int series) {
// return the override, if there is one...
if (this.itemLabelFont != null) {
return this.itemLabelFont;
}
// otherwise look up the font table
Font font = (Font) this.itemLabelFontList.get(series);
if (font == null) {
font = this.baseItemLabelFont;
}
return font;
}
/**
* Sets the item label font for ALL series (optional).
*
* @param font the font.
*/
public void setItemLabelFont(Font font) {
this.itemLabelFont = font;
}
/**
* Sets the item label font for a series.
*
* @param series the series.
* @param font the font.
*/
public void setSeriesItemLabelFont(int series, Font font) {
this.itemLabelFontList.set(series, font);
}
/**
* Returns the base item label font.
*
* @return The base item label font.
*/
public Font getBaseItemLabelFont() {
return this.baseItemLabelFont;
}
/**
* Sets the base item label font.
*
* @param font the font.
*/
public void setBaseItemLabelFont(Font font) {
this.baseItemLabelFont = font;
}
// ITEM LABEL PAINT...
/**
* Returns the paint used to draw an item label.
*
* @param row the row index (zero based).
* @param column the column index (zero based).
*
* @return The paint.
*/
public Paint getItemLabelPaint(int row, int column) {
return getSeriesItemLabelPaint(row);
}
/**
* Returns the paint used to draw the item labels for a series.
*
* @param series the series index (zero based).
*
* @return The paint.
*/
public Paint getSeriesItemLabelPaint(int series) {
// return the override, if there is one...
if (this.itemLabelPaint != null) {
return this.itemLabelPaint;
}
// otherwise look up the paint table
Paint paint = (Paint) this.itemLabelPaintList.getPaint(series);
if (paint == null) {
paint = this.baseItemLabelPaint;
}
return paint;
}
/**
* Sets the item label paint for ALL series.
*
* @param paint the paint (<code>null</code> permitted).
*/
public void setItemLabelPaint(Paint paint) {
this.itemLabelPaint = paint;
}
/**
* Sets the item label paint for a series.
*
* @param series the series (zero based index).
* @param paint the paint (<code>null</code> permitted).
*/
public void setSeriesItemLabelPaint(int series, Paint paint) {
this.itemLabelPaintList.setPaint(series, paint);
}
/**
* Returns the base item label paint.
*
* @return The base item label paint.
*/
public Paint getBaseItemLabelPaint() {
return this.baseItemLabelPaint;
}
/**
* Sets the base item label paint.
*
* @param paint the paint.
*/
public void setBaseItemLabelPaint(Paint paint) {
this.baseItemLabelPaint = paint;
}
// ITEM LABEL ANCHOR...
/**
* Returns the item label anchor.
*
* @param row the row.
* @param column the column.
*
* @return The item label anchor.
*/
public ItemLabelAnchor getItemLabelAnchor(int row, int column) {
return getSeriesItemLabelAnchor(row);
}
/**
* Returns the item label anchor for all labels in a series.
*
* @param series the series.
*
* @return The anchor point.
*/
public ItemLabelAnchor getSeriesItemLabelAnchor(int series) {
// return the override, if there is one...
if (this.itemLabelAnchor != null) {
return this.itemLabelAnchor;
}
// otherwise look up the anchor table
ItemLabelAnchor anchor = (ItemLabelAnchor) this.itemLabelAnchorList.get(series);
if (anchor == null) {
anchor = this.baseItemLabelAnchor;
}
return anchor;
}
/**
* Sets the item label anchor.
*
* @param anchor the anchor.
*/
public void setItemLabelAnchor(ItemLabelAnchor anchor) {
this.itemLabelAnchor = anchor;
}
/**
* Sets the series item label anchor.
*
* @param series the series.
* @param anchor the anchor.
*/
public void setSeriesItemLabelAnchor(int series, ItemLabelAnchor anchor) {
this.itemLabelAnchorList.set(series, anchor);
}
/**
* Returns the base item label anchor.
*
* @return The anchor point.
*/
public ItemLabelAnchor getBaseItemLabelAnchor() {
return this.baseItemLabelAnchor;
}
/**
* Sets the base item label anchor.
*
* @param anchor the anchor.
*/
public void setBaseItemLabelAnchor(ItemLabelAnchor anchor) {
this.baseItemLabelAnchor = anchor;
}
// TEXT ANCHOR...
/**
* Returns the text anchor for an item label. This is a point relative to the label that
* will be aligned with another anchor point that is relative to the data item.
*
* @param row the row.
* @param column the column.
*
* @return The text anchor.
*/
public TextAnchor getItemLabelTextAnchor(int row, int column) {
return getSeriesItemLabelTextAnchor(row);
}
/**
* Returns the text anchor for all item labels in a series.
*
* @param series the series.
*
* @return The text anchor.
*/
public TextAnchor getSeriesItemLabelTextAnchor(int series) {
// return the override, if there is one...
if (this.itemLabelTextAnchor != null) {
return this.itemLabelTextAnchor;
}
// otherwise look up the anchor table
TextAnchor anchor = (TextAnchor) this.itemLabelTextAnchorList.get(series);
if (anchor == null) {
anchor = this.baseItemLabelTextAnchor;
}
return anchor;
}
/**
* Sets the item label text anchor for ALL series (optional).
*
* @param anchor the anchor (<code>null</code> permitted).
*/
public void setItemLabelTextAnchor(TextAnchor anchor) {
this.itemLabelTextAnchor = anchor;
}
/**
* Sets the item label text anchor for a series.
*
* @param series the series.
* @param anchor the anchor.
*/
public void setSeriesItemLabelTextAnchor(int series, TextAnchor anchor) {
this.itemLabelTextAnchorList.set(series, anchor);
}
/**
* Returns the base item label text anchor.
*
* @return The text anchor.
*/
public TextAnchor getBaseItemLabelTextAnchor() {
return this.baseItemLabelTextAnchor;
}
/**
* Sets the default item label text anchor.
*
* @param anchor the anchor.
*/
public void setBaseItemLabelTextAnchor(TextAnchor anchor) {
this.baseItemLabelTextAnchor = anchor;
}
// ROTATION ANCHOR...
/**
* Returns the rotation anchor for an item label.
*
* @param row the row.
* @param column the column.
*
* @return The rotation anchor.
*/
public TextAnchor getItemLabelRotationAnchor(int row, int column) {
return getSeriesItemLabelRotationAnchor(row);
}
/**
* Returns the rotation anchor for all item labels in a series.
*
* @param series the series.
*
* @return The rotation anchor.
*/
public TextAnchor getSeriesItemLabelRotationAnchor(int series) {
// return the override, if there is one...
if (this.itemLabelRotationAnchor != null) {
return this.itemLabelRotationAnchor;
}
// otherwise look up the anchor table
TextAnchor anchor = (TextAnchor) this.itemLabelRotationAnchorList.get(series);
if (anchor == null) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -