|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ijchart.xychart.marker.AbstractMarker
com.ijchart.xychart.marker.CategoryMarker
public class CategoryMarker
Title: IJChart
Description: a chart library for the Java(tm) platform.
A marker for a category.Copyright: Copyright (c) 2013
Company:
| Field Summary | |
|---|---|
static boolean |
DEFAULT_DRAW_AS_LINE
A default flag that the marker should be drawn as a line rather than a region. |
| Fields inherited from class com.ijchart.xychart.marker.AbstractMarker |
|---|
DEFAULT_FILL_PAINT, DEFAULT_TEXT_POSITION |
| Constructor Summary | |
|---|---|
CategoryMarker(java.lang.Object datasetRowOrColumnKey)
Creates a new category marker for the specified category. |
|
CategoryMarker(java.lang.Object datasetRowOrColumnKey,
java.awt.Paint fillPaint)
Creates a new category marker. |
|
CategoryMarker(java.lang.Object datasetRowOrColumnKey,
java.awt.Paint fillPaint,
java.awt.Paint borderPaint,
java.awt.Stroke borderStroke,
float fillAlpha)
Creates a new category marker. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a clone of the marker. |
boolean |
equals(java.lang.Object obj)
Tests the marker for equality with an arbitrary object. |
java.lang.Object |
getKey()
Returns the dataset rowKey or colKey value. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isDrawAsLine()
Returns the flag that controls whether the marker is drawn as a region or a line. |
void |
setDrawAsLine(boolean drawAsLine)
Sets the flag that controls whether the marker is drawn as a region or as a line, and sends a MarkerChangeEvent to all registered
listeners. |
void |
setKey(java.lang.Object datasetRowOrColumnKey)
Sets the dataset rowKey and sends a MarkerChangeEvent
to all registered listeners. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class com.ijchart.xychart.marker.AbstractMarker |
|---|
addChangeListener, fireMarkerChanged, getBorderPaint, getBorderStroke, getFillAlpha, getFillPaint, getListeners, getMargin, getText, getTextFont, getTextHorizontalAlign, getTextPaint, getTextPosition, getTextVerticalAlign, isDrawBorder, isDrawText, isFillShape, notifyListeners, removeChangeListener, setBorderPaint, setBorderStroke, setDrawBorder, setDrawText, setFillAlpha, setFillPaint, setFillShape, setMargin, setText, setTextFont, setTextHorizontalAlign, setTextPaint, setTextPosition, setTextVerticalAlign |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final boolean DEFAULT_DRAW_AS_LINE
| Constructor Detail |
|---|
public CategoryMarker(java.lang.Object datasetRowOrColumnKey)
datasetRowOrColumnKey - Object
The dataset rowKey or colKey value (null not permitted).
public CategoryMarker(java.lang.Object datasetRowOrColumnKey,
java.awt.Paint fillPaint)
datasetRowOrColumnKey - Object
The dataset rowKey or colKey value.fillPaint -
The fill paint (null not permitted).
public CategoryMarker(java.lang.Object datasetRowOrColumnKey,
java.awt.Paint fillPaint,
java.awt.Paint borderPaint,
java.awt.Stroke borderStroke,
float fillAlpha)
datasetRowOrColumnKey - Object
The dataset rowKey or colKey value.fillPaint -
The fill paint (null not permitted).borderPaint -
The border paint (null permitted).borderStroke -
The border stroke (null permitted).fillAlpha -
The alpha transparency (must be in the range 0.0f to 1.0f).| Method Detail |
|---|
public java.lang.Object getKey()
public void setKey(java.lang.Object datasetRowOrColumnKey)
MarkerChangeEvent
to all registered listeners.
datasetRowOrColumnKey -
The dataset rowKey or colKey value.public boolean isDrawAsLine()
public void setDrawAsLine(boolean drawAsLine)
MarkerChangeEvent to all registered
listeners.
drawAsLine - boolean
A boolean.public int hashCode()
hashCode in class AbstractMarkerpublic boolean equals(java.lang.Object obj)
equals in class AbstractMarkerobj - the object (null permitted).
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class AbstractMarkerjava.lang.CloneNotSupportedException - never.public java.lang.String toString()
toString in class AbstractMarker
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||