com.stimulsoft.report.components.shapeTypes
Class StiShapeTypeService

java.lang.Object
  extended by com.stimulsoft.base.serializing.StiSerializedObject
      extended by com.stimulsoft.base.services.StiService
          extended by com.stimulsoft.report.components.shapeTypes.StiShapeTypeService
All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableRef, java.lang.Cloneable
Direct Known Subclasses:
StiArrowShapeType, StiBentArrowShapeType, StiChevronShapeType, StiComplexArrowShapeType, StiDiagonalDownLineShapeType, StiDiagonalUpLineShapeType, StiDivisionShapeType, StiEqualShapeType, StiFlowchartCardShapeType, StiFlowchartCollateShapeType, StiFlowchartDecisionShapeType, StiFlowchartManualInputShapeType, StiFlowchartOffPageConnectorShapeType, StiFlowchartPreparationShapeType, StiFlowchartSortShapeType, StiFrameShapeType, StiHorizontalLineShapeType, StiLeftAndRightLineShapeType, StiMinusShapeType, StiMultiplyShapeType, StiOvalShapeType, StiParallelogramShapeType, StiPlusShapeType, StiRectangleShapeType, StiRegularPentagonShapeType, StiRoundedRectangleShapeType, StiSnipDiagonalSideCornerRectangleShapeType, StiSnipSameSideCornerRectangleShapeType, StiTopAndBottomLineShapeType, StiTrapezoidShapeType, StiTriangleShapeType, StiVerticalLineShapeType

public abstract class StiShapeTypeService
extends StiService
implements IStiJsonReportObject


Field Summary
 
Fields inherited from class com.stimulsoft.base.services.StiService
properties
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiShapeTypeService()
           
 
Method Summary
 java.lang.String getServiceCategory()
          Gets a service category.
 java.lang.Class<?> getServiceType()
          Gets a service type.
 void LoadFromJsonObject(JSONObject jObject)
           
static StiShapeTypeService LoadFromJsonObjectInternal(JSONObject jObject)
           
 void paint(StiGraphics g, StiShape shape, StiRectangle rect, double zoom, double pageZoom)
          Draws the shape with the specified parameters.
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 java.lang.String toString()
           
 
Methods inherited from class com.stimulsoft.base.services.StiService
clone, getProperties, getServiceEnabled, getServiceInfo, getServiceName, isPropertyPresent, MemberwiseClone, packService, properties, setProperties, setServiceEnabled
 
Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StiShapeTypeService

public StiShapeTypeService()
Method Detail

getServiceCategory

public final java.lang.String getServiceCategory()
Gets a service category.

Overrides:
getServiceCategory in class StiService

getServiceType

public final java.lang.Class<?> getServiceType()
Gets a service type.

Specified by:
getServiceType in class StiService

paint

public void paint(StiGraphics g,
                  StiShape shape,
                  StiRectangle rect,
                  double zoom,
                  double pageZoom)
Draws the shape with the specified parameters.

Parameters:
g - Graphics for drawing.
shape - Component that invokes drawing.
rect - The rectangle that shows coordinates for drawing.
zoom - Zoom of drawing.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

SaveToJsonObject

public JSONObject SaveToJsonObject(StiJsonSaveMode mode)
                            throws JSONException
Specified by:
SaveToJsonObject in interface IStiJsonReportObject
Throws:
JSONException

LoadFromJsonObject

public void LoadFromJsonObject(JSONObject jObject)
                        throws JSONException
Specified by:
LoadFromJsonObject in interface IStiJsonReportObject
Throws:
JSONException

LoadFromJsonObjectInternal

public static StiShapeTypeService LoadFromJsonObjectInternal(JSONObject jObject)
                                                      throws JSONException
Throws:
JSONException


Copyright © 2018 Stimulsoft. All Rights Reserved.