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 TypeMethodDescriptionbooleanChecks if this property is currently visible.voidsetVisible(boolean visible) Sets the visibility of this property.voidvalidate()This method is invoked bySOChartto 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, setZMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.chart.ComponentPart
className, getRenderingIndex, setName, setRenderingIndexMethods 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:VisiblePropertySets the visibility of this property.- Specified by:
setVisiblein interfaceVisibleProperty- Parameters:
visible- A boolean indicating whether this property should be visible (true) or hidden (false).
-
isVisible
public boolean isVisible()Description copied from interface:VisiblePropertyChecks if this property is currently visible.- Specified by:
isVisiblein interfaceVisibleProperty- Returns:
- true if the property is visible, false otherwise.
-
validate
Description copied from interface:ComponentPartThis method is invoked bySOChartto check if the component or part is valid or not.- Specified by:
validatein interfaceComponentPart- Throws:
ChartException- Raises exception if the component or part is not valid.
-