|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent com.jidesoft.chart.preference.PointShapeLabel
public class PointShapeLabel
This component is used as a renderer in a JComboBox when selecting the point shape to use when configuring the appearance of a chart. This class is used by the PointShapeChooser and you probably don't need to use it directly.
PointShapeChooser
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
PointShapeLabel()
Zero argument constructor for the class |
|
PointShapeLabel(Color color)
Create an instance of the class, using the supplied color as the color for the shapes. |
Method Summary | |
---|---|
protected ChartStyle |
createStyle()
Creates a ChartStyle used when rendering the point of the label. |
Component |
getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
This is the method of the ListCellRenderer interface. |
PointShape |
getShape()
Returns the current shape that will be rendered |
protected void |
init()
|
boolean |
isSelected()
Specify whether the point shape is currently selected. |
void |
paintComponent(Graphics g)
|
void |
setSelected(boolean selected)
Specify whether the point shape is selected |
void |
setShape(PointShape shape)
Specify the current shape |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PointShapeLabel()
public PointShapeLabel(Color color)
color
- the color to use for the shapesMethod Detail |
---|
protected void init()
protected ChartStyle createStyle()
public PointShape getShape()
public void setShape(PointShape shape)
shape
- the current point shapepublic boolean isSelected()
public void setSelected(boolean selected)
selected
- a boolean value to indicate whether the point shape is selectedpublic void paintComponent(Graphics g)
paintComponent
in class JComponent
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
getListCellRendererComponent
in interface ListCellRenderer
ListCellRenderer.getListCellRendererComponent(javax.swing.JList, java.lang.Object, int, boolean, boolean)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |