|
||||||||||
| 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.JPanel
org.jfree.demo.DrawStringPanel
public class DrawStringPanel
A panel used by the DrawStringDemo class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| 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 | |
|---|---|
DrawStringPanel(String text,
boolean rotate)
Creates a new panel. |
|
| Method Summary | |
|---|---|
Font |
getFont()
Returns the font. |
Dimension |
getPreferredSize()
Returns the preferred size for the panel. |
void |
paintComponent(Graphics g)
Paints the panel. |
void |
setAnchor(TextAnchor anchor)
Sets the text anchor. |
void |
setAngle(double angle)
Sets the rotation angle. |
void |
setFont(Font font)
Sets the font. |
void |
setRotationAnchor(TextAnchor anchor)
Sets the rotation anchor. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DrawStringPanel(String text,
boolean rotate)
text - the text.rotate - a flag that controls whether or not the text is rotated.| Method Detail |
|---|
public Dimension getPreferredSize()
getPreferredSize in class JComponentpublic void setAnchor(TextAnchor anchor)
anchor - the text anchor.public void setRotationAnchor(TextAnchor anchor)
anchor - the rotation anchor.public void setAngle(double angle)
angle - the rotation angle.public Font getFont()
getFont in interface MenuContainergetFont in class Componentpublic void setFont(Font font)
setFont in class JComponentfont - the font.public void paintComponent(Graphics g)
paintComponent in class JComponentg - the graphics device.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||