Package com.storedobject.chart
Class VisiblePart
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.VisiblePart
- All Implemented Interfaces:
ComponentPart
,ComponentProperty
,VisibleProperty
- Direct Known Subclasses:
Area
,Axis
,Axis.Line
,Axis.Pointer
,Axis.PointerHandle
,CoordinateSystem
,GaugeChart.AxisLine
,Legend
,Title
,Toolbox
,ToolboxButton
,Tooltip
Represents an abstract
ComponentPart
with some common base properties.- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this property is currently visible.void
setVisible
(boolean visible) Sets the visibility of this property.void
validate()
This method is invoked bySOChart
to check if the component or part is valid or not.Methods inherited from class com.storedobject.chart.AbstractPart
encodeJSON, equals, getId, getLabelTag, getName, getSerial, getZ, hashCode, hasId, setSerial, setZ
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.chart.ComponentPart
className, getRenderingIndex, setName, setRenderingIndex
Methods inherited from interface com.storedobject.chart.VisibleProperty
hide, show
-
Constructor Details
-
VisiblePart
public VisiblePart()
-
-
Method Details
-
setVisible
public void setVisible(boolean visible) Description copied from interface:VisibleProperty
Sets the visibility of this property.- Specified by:
setVisible
in interfaceVisibleProperty
- Parameters:
visible
- A boolean indicating whether this property should be visible (true) or hidden (false).
-
isVisible
public boolean isVisible()Description copied from interface:VisibleProperty
Checks if this property is currently visible.- Specified by:
isVisible
in interfaceVisibleProperty
- Returns:
- true if the property is visible, false otherwise.
-
validate
Description copied from interface:ComponentPart
This method is invoked bySOChart
to check if the component or part is valid or not.- Specified by:
validate
in interfaceComponentPart
- Throws:
ChartException
- Raises exception if the component or part is not valid.
-