Crossfire JXClient, Trunk
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel:
Collaboration graph

Public Member Functions

Dimension getMinimumSize ()
 
Dimension getPreferredSize ()
 
TooltipText getTooltip ()
 
 GUIMultiLineLabel (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @Nullable final BufferedImage picture, @NotNull final Font textFont, @NotNull final Color textColor, @Nullable final Color backgroundColor, @NotNull final Alignment alignment, @NotNull final String text, @NotNull final GuiFactory guiFactory)
 
void notifyOpen ()
 
void paintComponent (@NotNull final Graphics g)
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.label.AbstractLabel
void setText (@NotNull final String text)
 
void setTextHighlight (final boolean textHighlight)
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement
void dispose ()
 
int getDialogBorderBottom ()
 
int getDialogBorderLeft ()
 
int getDialogBorderRight ()
 
int getDialogBorderTop ()
 
String getName ()
 
void inhibitListeners ()
 
boolean isDefault ()
 
boolean isIgnore ()
 
void mouseClicked (@NotNull final MouseEvent e)
 
void mouseDragged (@NotNull final MouseEvent e)
 
void mouseEntered (@NotNull final MouseEvent e)
 
void mouseExited (@NotNull final MouseEvent e)
 
void mouseMoved (@NotNull final MouseEvent e)
 
void mousePressed (@NotNull final MouseEvent e)
 
void mouseReleased (@NotNull final MouseEvent e)
 
void mouseWheelMoved (final int wheelRotation)
 
void setChanged ()
 
void setChangedListener (@Nullable final GUIElementChangedListener changedListener)
 
void setDefault (final boolean isDefault)
 
void setIgnore ()
 
String toString ()
 

Protected Member Functions

void textChanged ()
 
- Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.label.GUILabel
void drawLine (@NotNull final Graphics2D g, final int y0, final int h0, @NotNull final String text)
 
 GUILabel (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @Nullable final BufferedImage picture, @NotNull final String text, @NotNull final Font textFont, @NotNull final Color textColor, @NotNull final Color textHighlightColor, @Nullable final Color backgroundColor, @NotNull final Alignment textAlignment, @NotNull final GuiFactory guiFactory)
 
- Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.label.AbstractLabel
 AbstractLabel (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final String text, @NotNull final Font textFont, @NotNull final Color textColor, @NotNull final Color textHighlightColor, @Nullable final BufferedImage backgroundPicture, @Nullable final Color backgroundColor, @NotNull final GuiFactory guiFactory)
 
String getText ()
 
Color getTextColor ()
 
Font getTextFont ()
 
- Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement
 AbstractGUIElement (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, final boolean opaque, @NotNull final GuiFactory guiFactory)
 
TooltipText newTooltipText (@Nullable final String tooltipText)
 
void tooltipChanged ()
 

Private Member Functions

Dimension getTextSize ()
 

Private Attributes

String[] lines
 

Static Private Attributes

static final Pattern LINE_SEPARATOR_PATTERN = Pattern.compile(" *\n")
 
static final long serialVersionUID = 1
 

Detailed Description

A AbstractLabel that renders the text as a list of plain strings. The lines are separated by newline characters.

Author
Andreas Kirschbaum

Definition at line 46 of file GUIMultiLineLabel.java.

Constructor & Destructor Documentation

◆ GUIMultiLineLabel()

com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.GUIMultiLineLabel ( @NotNull final TooltipManager  tooltipManager,
@NotNull final GUIElementListener  elementListener,
@NotNull final String  name,
@Nullable final BufferedImage  picture,
@NotNull final Font  textFont,
@NotNull final Color  textColor,
@Nullable final Color  backgroundColor,
@NotNull final Alignment  alignment,
@NotNull final String  text,
@NotNull final GuiFactory  guiFactory 
)

Member Function Documentation

◆ getMinimumSize()

Dimension com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.getMinimumSize ( )

Definition at line 118 of file GUIMultiLineLabel.java.

References com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.getTextSize().

Here is the call graph for this function:

◆ getPreferredSize()

Dimension com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.getPreferredSize ( )

Definition at line 111 of file GUIMultiLineLabel.java.

References com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.getTextSize().

Here is the call graph for this function:

◆ getTextSize()

Dimension com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.getTextSize ( )
private

◆ getTooltip()

TooltipText com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.getTooltip ( )

Returns the current tooltip text.

Returns
the tooltip text or
null
to not show a tooltip

Reimplemented from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.

Definition at line 151 of file GUIMultiLineLabel.java.

◆ notifyOpen()

void com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.notifyOpen ( )

Called each time the enclosing dialog is opened (or raised).

Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.

Definition at line 146 of file GUIMultiLineLabel.java.

◆ paintComponent()

void com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.paintComponent ( @NotNull final Graphics  g)

◆ textChanged()

void com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.textChanged ( )
protected

Member Data Documentation

◆ LINE_SEPARATOR_PATTERN

final Pattern com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.LINE_SEPARATOR_PATTERN = Pattern.compile(" *\n")
staticprivate

◆ lines

String [] com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.lines
private

◆ serialVersionUID

final long com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.serialVersionUID = 1
staticprivate

The serial version UID.

Definition at line 51 of file GUIMultiLineLabel.java.


The documentation for this class was generated from the following file: