public class Panel extends Shape
Title: Panel class.
Description: Chart background panel characteristics
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Modifier and Type | Field and Description |
---|---|
static Color |
defaultColor |
protected Graphics3D |
internalCanvas |
bBevel, bBorderRound, bBrush, bImageBevel, bTransparent, defaultVisible, pPen, shadow, shapeBounds, visible
chart, InternalUse
Constructor and Description |
---|
Panel() |
Panel(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
Rectangle |
applyMargins(Rectangle r)
Applies panel margins.
|
void |
backImageClear()
Obsolete. Please Set Panel.Image=null.
|
Rectangle |
draw(IGraphics3D g,
Rectangle r)
Paints the Chart in your preferred Canvas and region.
|
boolean |
getBackImageInside()
Obsolete. Please use Walls.Back.Image instead.
|
ChartPen |
getBorderPen()
Obsolete. Please use the Pen method instead.
|
double |
getMarginBottom()
Bottom margin expressed as percentage of Chart Drawing.
Each Chart.Panel class has four margin properties: LeftMargin, RightMargin, TopMargin, BottomMargin. |
double |
getMarginLeft()
Left margin expressed as percentage of Chart Drawing.
Each Chart.Panel class has four margin parameters: LeftMargin, RightMargin, TopMargin, BottomMargin. |
double |
getMarginRight()
Right margin expressed as percentage of Chart Drawing.
Each Chart.Panel class has four margin properties: LeftMargin, RightMargin, TopMargin, BottomMargin. |
double |
getMarginTop()
Top margin expressed as percentage of Chart Drawing.
Each Chart.Panel class has four margin properties: LeftMargin, RightMargin, TopMargin, BottomMargin. |
PanelMarginUnits |
getMarginUnits()
The units in which the Margins are expressed.
Either as a percentage of the pixel height and width of the Chart Drawing Canvas, or in pixels from the panel borders. Default value: Percent |
boolean |
getVisible()
Shows or hides the Panel.
|
void |
setBackImageInside(boolean value)
Obsolete. Please use Walls.Back.Image instead.
|
void |
setMarginBottom(double value)
Sets Bottom margin as percentage of Chart Drawing.
Default value: 8 |
void |
setMarginLeft(double value)
Sets Left margin as percentage of Chart Drawing.
Default value: 12 |
void |
setMarginRight(double value)
Sets Right margin as percentage of Chart Drawing.
Default value: 12 |
void |
setMarginTop(double value)
Sets Top margin as percentage of Chart Drawing.
Default value: 8 |
void |
setMarginUnits(PanelMarginUnits value)
Sets the units in which the Margins are expressed.
Default value: Percent |
void |
setTransparent(boolean value)
Enables/disables transparency of shape.
|
void |
setVisible(boolean value)
Shows or hides the Panel.
|
assign, getBevel, getBevelInner, getBevelOuter, getBevelWidth, getBorderRound, getBottom, getBrush, getColor, getGradient, getHeight, getImage, getImageBevel, getImageMode, getImageTransparent, getLeft, getPen, getRight, getShadow, getShapeBounds, getTop, getTransparency, getTransparent, getWidth, paint, setBevel, setBevelInner, setBevelOuter, setBevelWidth, setBorderRound, setBottom, setBrush, setChart, setColor, setDefaultVisible, setHeight, setImage, setImageMode, setImageTransparent, setLeft, setPen, setRight, setShapeBounds, setTop, setTransparency, setWidth
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
protected Graphics3D internalCanvas
public static final Color defaultColor
public Panel(IBaseChart c)
public Panel()
public ChartPen getBorderPen()
public boolean getVisible()
getVisible
in class Shape
public void setVisible(boolean value)
setVisible
in class Shape
value
- booleanpublic void setTransparent(boolean value)
Shape
setTransparent
in class Shape
value
- booleanpublic Rectangle draw(IGraphics3D g, Rectangle r)
g
- IGraphics3Dr
- Rectanglepublic Rectangle applyMargins(Rectangle r)
r
- public void backImageClear()
public PanelMarginUnits getMarginUnits()
public void setMarginUnits(PanelMarginUnits value)
value
- PanelMarginUnitspublic double getMarginLeft()
public void setMarginLeft(double value)
value
- doublegetMarginLeft()
public double getMarginTop()
public void setMarginTop(double value)
value
- doublegetMarginTop()
public double getMarginRight()
public void setMarginRight(double value)
value
- doublegetMarginRight()
public double getMarginBottom()
public void setMarginBottom(double value)
value
- doublegetMarginBottom()
public boolean getBackImageInside()
public void setBackImageInside(boolean value)
value
- boolean