|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.graph.Visualizable
inetsoft.graph.BoundedVisualizable
inetsoft.graph.guide.VLabel
public class VLabel
Visual label is a base class for all visual object rendering label. The position of the label is the bottom-left corner of the text. Both position and size are in math coordinate.
| Field Summary | |
|---|---|
static int |
MOVE_ARC
Hint to only move along the perimeter of an arc. |
static int |
MOVE_FREE
Free movement layout. |
static int |
MOVE_NONE
No movement. |
static int |
MOVE_RIGHT
Hint to only move horizontally to the right. |
static int |
MOVE_UP
Hint to only move vertically to the top. |
| Constructor Summary | |
|---|---|
VLabel(Object label)
Constructor. |
|
VLabel(Object label,
TextSpec textSpec)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getAlignmentX()
Gets the the horizontal alignment. |
int |
getAlignmentY()
Gets the the vertical alignment. |
int |
getCollisionModifier()
Get the text collision resolution option. |
Color |
getColor()
Get the text color of this label. |
Font |
getFont()
Get the font of this label. |
Insets |
getInsets()
Get the label insets. |
Object |
getLabel()
Get label value. |
Dimension2D |
getMaxSize()
Get the label max size. |
protected double |
getMinHeight0()
Get min height. |
protected double |
getMinWidth0()
Get min width. |
protected double |
getPreferredHeight0()
Get preferred height. |
protected double |
getPreferredWidth0()
Get preferred width. |
String |
getText()
Get the formatted text string. |
Point2D |
getTextPosition()
Get the text position of vlabel (bottom-left). |
TextSpec |
getTextSpec()
Get the text attributes. |
Shape |
getTransformedBounds()
Get the text bounds after screen transformation. |
boolean |
isLabelForm()
Check whether label could be a LabelForm. |
boolean |
isTruncate()
Check whether label could be truncated with "..". |
void |
paint(Graphics2D g)
Paint the visual object on the graphics. |
void |
setAlignmentX(int alignx)
Set the default horizontal alignment. |
void |
setAlignmentY(int aligny)
Set the default vertical alignment. |
void |
setCollisionModifier(int modifier)
Set the text collision resolution option. |
void |
setInsets(Insets insets)
Set the label insets. |
void |
setLabelForm(boolean flag)
Set whether label could be a LabelForm. |
void |
setMaxSize(Dimension2D maxSize)
Set the label max size. |
void |
setTextSpec(TextSpec spec)
Set the text attributes. |
void |
setTruncate(boolean truncated)
Set whethert label could be truncated. |
String |
toString()
Get the string representation. |
| Methods inherited from class inetsoft.graph.BoundedVisualizable |
|---|
getBounds, getPosition, getSize, setBounds, setBounds, setPosition, setSize |
| Methods inherited from class inetsoft.graph.Visualizable |
|---|
clone, compareTo, getGraphable, getMinHeight, getMinWidth, getPreferredHeight, getPreferredWidth, getScreenTransform, getZIndex, invalidate, setScreenTransform, setZIndex |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MOVE_NONE
public static final int MOVE_FREE
public static final int MOVE_RIGHT
public static final int MOVE_UP
public static final int MOVE_ARC
| Constructor Detail |
|---|
public VLabel(Object label)
label - the output string.
public VLabel(Object label,
TextSpec textSpec)
label - the output string.textSpec - new text spec.| Method Detail |
|---|
public void paint(Graphics2D g)
paint in class Visualizablepublic Point2D getTextPosition()
protected double getMinHeight0()
getMinHeight0 in class Visualizableprotected double getMinWidth0()
getMinWidth0 in class Visualizableprotected double getPreferredWidth0()
getPreferredWidth0 in class Visualizableprotected double getPreferredHeight0()
getPreferredHeight0 in class Visualizablepublic Shape getTransformedBounds()
public Dimension2D getMaxSize()
public void setMaxSize(Dimension2D maxSize)
public String getText()
public void setAlignmentX(int alignx)
public void setAlignmentY(int aligny)
public int getAlignmentX()
public int getAlignmentY()
public Object getLabel()
public void setTextSpec(TextSpec spec)
public TextSpec getTextSpec()
public Color getColor()
public Font getFont()
public void setInsets(Insets insets)
public Insets getInsets()
public int getCollisionModifier()
public void setCollisionModifier(int modifier)
public boolean isTruncate()
public void setTruncate(boolean truncated)
public String toString()
toString in class Objectpublic boolean isLabelForm()
public void setLabelForm(boolean flag)
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||