|
RADi Runtime Library v1.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JComboBox
de.muntjak.radiloader.AComboBox
public class AComboBox
AComboBox
is a JComboBox
which can
be set up to paint its editor component and item's text antialiased.
setTextAntialiased(boolean)
,
setFractionalMetrics(boolean)
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComboBox |
---|
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager |
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComboBox |
---|
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, selectedItemReminder |
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 | |
---|---|
AComboBox()
Creates a new AComboBox with textAntialiased
and fractionalMetrics flags being false . |
|
AComboBox(Object[] content)
Creates a new AComboBox with textAntialiased
and fractionalMetrics flags being false . |
Method Summary | |
---|---|
boolean |
isFractionalMetrics()
Returns the value of the fractionalMetrics property. |
boolean |
isTextAntialiased()
Returns the value of the textAntialiased property. |
void |
paintComponent(Graphics g)
Before calling super.paintComponent(Graphics) , the graphic's
rendering hints will be set as described in
setTextAntialiased
and setFractionalMetrics . |
void |
setFractionalMetrics(boolean b)
Sets the fractionalMetrics property. |
void |
setListCellRenderer(de.muntjak.radiloader.RadiListCellRenderer r)
As the combo box data is loaded and a renderer is specified, this method will be called to register the renderer. |
void |
setTextAntialiased(boolean b)
Sets the textAntialiased property value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AComboBox()
AComboBox
with textAntialiased
and fractionalMetrics
flags being false
.
public AComboBox(Object[] content)
AComboBox
with textAntialiased
and fractionalMetrics
flags being false
.
The data model is created from the given array.
Method Detail |
---|
public boolean isFractionalMetrics()
fractionalMetrics
property.
fractionalMetrics
propertysetFractionalMetrics(boolean)
public boolean isTextAntialiased()
textAntialiased
property.
textAntialiased
propertysetTextAntialiased(boolean)
public void paintComponent(Graphics g)
super.paintComponent(Graphics)
, the graphic's
rendering hints will be set as described in
setTextAntialiased
and setFractionalMetrics
.
paintComponent
in class JComponent
public void setFractionalMetrics(boolean b)
fractionalMetrics
property. The value of
this property will be ignored if textAntialiased
is false
.
The default value for this property is false
.
b
- if true
and textAntialiased
is also true
, the component will set
RenderingHints.KEY_FRACTIONALMETRICS
to RenderingHints.VALUE_FRACTIONALMETRICS_ON
before being paintedpublic void setListCellRenderer(de.muntjak.radiloader.RadiListCellRenderer r)
textAntialiased
and fractionalMetrics
properties will be set according to this component's settings.
r
- a RadiListCellRenderer
(not documented)public void setTextAntialiased(boolean b)
textAntialiased
property value.false
.
b
- if true, the component will set
RenderingHints.KEY_TEXT_ANTIALIASING
to RenderingHints.VALUE_TEXT_ANTIALIAS_ON
before being painted
|
RADi Runtime Library v1.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |