|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.richtext.uiimpl.TabRulerImpl
TabRuler is a Component which presents a user interface for setting the leading margin, trailing margin, first line indent, and tab types and positions.
TabRuler does not implement TextPanelListener directly; however,
it can receive updates from a MTextPanel. To have a TabRuler listen
to a panel, call listenToPanel
. TabRuler responds to
user manipulation by modifying the paragraph styles on its MTextPanel
(if any).
Field Summary | |
static java.awt.Color |
DEFAULT_BACK_COLOR
The default background color for TabRulers. |
Constructor Summary | |
TabRulerImpl(int baseline,
int origin,
MTextPanel textPanel,
java.awt.Component host)
Create a new TabRuler. |
Method Summary | |
java.awt.Color |
getBackColor()
Return the background color of this TabRuler. |
int |
getFirstLineIndent()
Return the first line indent of this TabRuler. |
int |
getLeadingMargin()
Return the leading margin of this TabRuler. |
java.awt.Dimension |
getMinimumSize()
Component override. |
java.awt.Dimension |
getPreferredSize()
Component override. |
MTabRuler |
getRuler()
Return the MTabRuler represented by this TabRuler. |
int |
getTrailingMargin()
Return the trailing margin of this TabRuler. |
void |
listenToTextPanel(MTextPanel textPanel)
Listen to the given MTextPanel and reflect its changes, and update its paragraph styles when TabRuler is manipulated. |
void |
mouseClicked(java.awt.event.MouseEvent e)
MouseListener method. |
void |
mouseDragged(java.awt.event.MouseEvent e)
MouseListener method. |
void |
mouseEntered(java.awt.event.MouseEvent e)
MouseListener method. |
void |
mouseExited(java.awt.event.MouseEvent e)
MouseListener method. |
void |
mouseMoved(java.awt.event.MouseEvent e)
MouseListener method. |
void |
mousePressed(java.awt.event.MouseEvent e)
MouseListener method. |
void |
mouseReleased(java.awt.event.MouseEvent e)
MouseListener method. |
void |
paint(java.awt.Graphics g)
Component method override. |
void |
setBackColor(java.awt.Color backColor)
Set the background color of this TabRuler. |
java.lang.String |
toString()
Return debugging info. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.awt.Color DEFAULT_BACK_COLOR
setBackColor(java.awt.Color)
Constructor Detail |
public TabRulerImpl(int baseline, int origin, MTextPanel textPanel, java.awt.Component host)
baseline
- the y-coordinate of the ruler's baselineorigin
- the x-coordinate in this Component where
the left margin appearstextPanel
- the MTextPanel to listen to. This TabRuler
will reflect the MTextPanel's paragraph styles, and update
the paragraph styles when manipulated.Method Detail |
public void listenToTextPanel(MTextPanel textPanel)
textPanel
- the MTextPanel to listen topublic java.awt.Color getBackColor()
public void setBackColor(java.awt.Color backColor)
backColor
- the new background color of this TabRulerpublic java.lang.String toString()
toString
in class java.lang.Object
public MTabRuler getRuler()
public int getLeadingMargin()
public int getFirstLineIndent()
public final int getTrailingMargin()
public void paint(java.awt.Graphics g)
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public java.awt.Dimension getMinimumSize()
public java.awt.Dimension getPreferredSize()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |