com.linksoft.chart
Class ChartLabel
java.lang.Object
com.linksoft.chart.ChartLabel
- All Implemented Interfaces:
- com.linksoft.chart.IFloatingObject
- public class ChartLabel
- extends java.lang.Object
- implements com.linksoft.chart.IFloatingObject
Copyright (c) 2002-2005 LinkSoft Systems, Inc. All Rights Reserved
|
Constructor Summary |
ChartLabel(java.lang.String pformat,
java.lang.String pvalue,
boolean pvertical,
boolean pCenter)
|
|
Method Summary |
protected int |
calcRelativeX(java.lang.String s,
int x)
|
protected int |
calcRelativeY(java.lang.String s,
int y)
|
protected int |
calcX(java.lang.String s)
|
protected int |
calcY(java.lang.String s)
|
java.lang.String |
getClickInfo()
|
java.lang.String |
getName()
|
java.awt.Polygon |
getObjectBounds()
|
protected int |
getRotatedHeight()
|
protected int |
getRotatedWidth()
|
java.lang.String |
getTip()
|
int |
getX()
|
int |
getY()
|
void |
initialize(ChartGraphics g,
Chart c)
|
void |
paint(ChartGraphics g,
int x,
int y,
int width,
int height)
|
protected void |
preProcessPositionTags(ChartGraphics g,
int x,
int y,
int width,
int height)
|
protected void |
preProcessTags(ChartGraphics g)
|
protected void |
render(ChartGraphics g2)
|
void |
setX(int x)
|
void |
setY(int y)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALIGN_LEFT
protected static int ALIGN_LEFT
ALIGN_CENTER
protected static int ALIGN_CENTER
ALIGN_RIGHT
protected static int ALIGN_RIGHT
BORDER_RECT
protected static int BORDER_RECT
BORDER_ROUNDRECT
protected static int BORDER_ROUNDRECT
BORDER_OVAL
protected static int BORDER_OVAL
clickableArea
protected java.awt.Polygon clickableArea
chart
protected Chart chart
background
protected FillStyle background
border
protected LineStyle border
borderShape
protected int borderShape
clickInfo
protected java.lang.String clickInfo
rotation
protected int rotation
rotationAlign
protected int rotationAlign
positionX
protected int positionX
positionY
protected int positionY
align
protected int align
anchorX
protected int anchorX
anchorY
protected int anchorY
marginX
protected int marginX
marginY
protected int marginY
lineToAnchor
protected LineStyle lineToAnchor
name
protected java.lang.String name
tip
protected java.lang.String tip
ignorePosition
protected boolean ignorePosition
layerId
public static final java.lang.String layerId
- See Also:
- Constant Field Values
ChartLabel
public ChartLabel(java.lang.String pformat,
java.lang.String pvalue,
boolean pvertical,
boolean pCenter)
getRotatedWidth
protected int getRotatedWidth()
getRotatedHeight
protected int getRotatedHeight()
initialize
public void initialize(ChartGraphics g,
Chart c)
paint
public void paint(ChartGraphics g,
int x,
int y,
int width,
int height)
preProcessTags
protected void preProcessTags(ChartGraphics g)
preProcessPositionTags
protected void preProcessPositionTags(ChartGraphics g,
int x,
int y,
int width,
int height)
render
protected void render(ChartGraphics g2)
calcRelativeX
protected int calcRelativeX(java.lang.String s,
int x)
calcRelativeY
protected int calcRelativeY(java.lang.String s,
int y)
calcX
protected int calcX(java.lang.String s)
calcY
protected int calcY(java.lang.String s)
getName
public java.lang.String getName()
getClickInfo
public java.lang.String getClickInfo()
getTip
public java.lang.String getTip()
getX
public int getX()
- Specified by:
getX in interface com.linksoft.chart.IFloatingObject
setX
public void setX(int x)
- Specified by:
setX in interface com.linksoft.chart.IFloatingObject
getY
public int getY()
- Specified by:
getY in interface com.linksoft.chart.IFloatingObject
setY
public void setY(int y)
- Specified by:
setY in interface com.linksoft.chart.IFloatingObject
getObjectBounds
public java.awt.Polygon getObjectBounds()
- Specified by:
getObjectBounds in interface com.linksoft.chart.IFloatingObject