|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.graph.LegendSpec
public class LegendSpec
This class contains legend formatting attributes.
| Constructor Summary | |
|---|---|
LegendSpec()
Create a legend specification. |
|
| Method Summary | |
|---|---|
Object |
clone()
Make a copy of this object. |
Color |
getBackground()
Get the background fill color. |
int |
getBorder()
Get the border line style of the legends. |
Color |
getBorderColor()
Get the legend border color. |
Point2D |
getPlotPosition()
Get the position relative to the plot area. |
Point2D |
getPosition()
Get the position of the legend. |
Dimension2D |
getPreferredSize()
Get the preferred size of the legend. |
TextFrame |
getTextFrame()
Get a text frame for mapping scale values to axis label. |
TextSpec |
getTextSpec()
Get the text label attributes. |
String |
getTitle()
Get the title to show on the legend. |
TextSpec |
getTitleTextSpec()
Get the legend title text attributes. |
boolean |
isPartial()
Check if items can be ignored if there is no sufficient space. |
boolean |
isTitleVisible()
Check if the legend title should be displayed. |
boolean |
isVisible()
Get the legend visibility. |
void |
setBackground(Color bg)
Set the background fill color. |
void |
setBorder(int border)
Set the border line style for the legends, e.g. |
void |
setBorderColor(Color borderColor)
Set the legend border color. |
void |
setPartial(boolean partial)
Set if items can be ignored if there is no sufficient space. |
void |
setPlotPosition(Point2D epos)
Set the position relative to the plot area. |
void |
setPosition(Point2D position)
Set the lower-left corner position for the legend. |
void |
setPreferredSize(Dimension2D preferredSize)
Set the preferred size for the legend. |
void |
setTextFrame(TextFrame textFrame)
Set a text frame to map scale values to axis labels. |
void |
setTextSpec(TextSpec textSpec)
Set the text label attributes. |
void |
setTitle(String title)
Set the legend title. |
void |
setTitleTextSpec(TextSpec textSpec)
Set the legend title text attributes. |
void |
setTitleVisible(boolean vis)
Set whether the legend title should be displayed. |
void |
setVisible(boolean visible)
Set the legend visibility. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LegendSpec()
| Method Detail |
|---|
public boolean isVisible()
public void setVisible(boolean visible)
public String getTitle()
public void setTitle(String title)
public Dimension2D getPreferredSize()
public void setPreferredSize(Dimension2D preferredSize)
public Point2D getPosition()
public void setPosition(Point2D position)
position - the point location in graph. If the value is between 0 and
1 (non-inclusive), it's treated as a proportion of the width/height. If the
value is negative, it's the distance from the right/top of the graph.public void setPlotPosition(Point2D epos)
public Point2D getPlotPosition()
public TextSpec getTextSpec()
public void setTextSpec(TextSpec textSpec)
public void setTextFrame(TextFrame textFrame)
public TextFrame getTextFrame()
public int getBorder()
public void setBorder(int border)
public Color getBorderColor()
public void setBorderColor(Color borderColor)
public TextSpec getTitleTextSpec()
public void setTitleTextSpec(TextSpec textSpec)
public boolean isTitleVisible()
public void setTitleVisible(boolean vis)
public Color getBackground()
public void setBackground(Color bg)
public void setPartial(boolean partial)
public boolean isPartial()
public Object clone()
clone in class Object
|
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 | ||||||||