com.iver.cit.jdwglib.dwg.objects
Class DwgLinearDimension
java.lang.Object
com.iver.cit.jdwglib.dwg.DwgObject
com.iver.cit.jdwglib.dwg.objects.DwgLinearDimension
- public class DwgLinearDimension
- extends DwgObject
The DwgLinearDimension class represents a DWG Linear dimension
- Author:
- jmorell
Methods inherited from class com.iver.cit.jdwglib.dwg.DwgObject |
getColor, getExtendedData, getGraphicData, getHandle, getLayerHandle, getLayerHandleCode, getLinetypeFlags, getMode, getNumReactors, getPlotstyleFlags, getSizeInBits, getSubEntityHandle, getType, getVersion, getXDicObjHandle, isGraphicsFlag, isNoLinks, readObjectHeaderV15, readObjectTailV15, setColor, setExtendedData, setGraphicData, setGraphicsFlag, setHandle, setLayerHandle, setLayerHandleCode, setLinetypeFlags, setMode, setNoLinks, setNumReactors, setPlotstyleFlags, setSizeInBits, setSubEntityHandle, setType, setVersion, setXDicObjHandle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DwgLinearDimension
public DwgLinearDimension()
readDwgLinearDimensionV15
public void readDwgLinearDimensionV15(int[] data,
int offset)
throws java.lang.Exception
- Read a Linear dimension in the DWG format Version 15
- Parameters:
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value begins
- Throws:
java.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.
getElevation
public double getElevation()
- Returns:
- Returns the elevation.
setElevation
public void setElevation(double elevation)
- Parameters:
elevation
- The elevation to set.
clone
public java.lang.Object clone()
getActualMeasurement
public double getActualMeasurement()
- Returns:
- Returns the actualMeasurement.
setActualMeasurement
public void setActualMeasurement(double actualMeasurement)
- Parameters:
actualMeasurement
- The actualMeasurement to set.
getAnonBlockHandle
public int getAnonBlockHandle()
- Returns:
- Returns the anonBlockHandle.
setAnonBlockHandle
public void setAnonBlockHandle(int anonBlockHandle)
- Parameters:
anonBlockHandle
- The anonBlockHandle to set.
getAttachmentPoint
public int getAttachmentPoint()
- Returns:
- Returns the attachmentPoint.
setAttachmentPoint
public void setAttachmentPoint(int attachmentPoint)
- Parameters:
attachmentPoint
- The attachmentPoint to set.
getDimensionRotation
public double getDimensionRotation()
- Returns:
- Returns the dimensionRotation.
setDimensionRotation
public void setDimensionRotation(double dimensionRotation)
- Parameters:
dimensionRotation
- The dimensionRotation to set.
getDimstyleHandle
public int getDimstyleHandle()
- Returns:
- Returns the dimstyleHandle.
setDimstyleHandle
public void setDimstyleHandle(int dimstyleHandle)
- Parameters:
dimstyleHandle
- The dimstyleHandle to set.
getExtRotation
public double getExtRotation()
- Returns:
- Returns the extRotation.
setExtRotation
public void setExtRotation(double extRotation)
- Parameters:
extRotation
- The extRotation to set.
getExtrusion
public double[] getExtrusion()
- Returns:
- Returns the extrusion.
setExtrusion
public void setExtrusion(double[] extrusion)
- Parameters:
extrusion
- The extrusion to set.
getFlags
public int getFlags()
- Returns:
- Returns the flags.
setFlags
public void setFlags(int flags)
- Parameters:
flags
- The flags to set.
getHorizDir
public double getHorizDir()
- Returns:
- Returns the horizDir.
setHorizDir
public void setHorizDir(double horizDir)
- Parameters:
horizDir
- The horizDir to set.
getInsRotation
public double getInsRotation()
- Returns:
- Returns the insRotation.
setInsRotation
public void setInsRotation(double insRotation)
- Parameters:
insRotation
- The insRotation to set.
getInsScale
public double[] getInsScale()
- Returns:
- Returns the insScale.
setInsScale
public void setInsScale(double[] insScale)
- Parameters:
insScale
- The insScale to set.
getLinespaceFactor
public double getLinespaceFactor()
- Returns:
- Returns the linespaceFactor.
setLinespaceFactor
public void setLinespaceFactor(double linespaceFactor)
- Parameters:
linespaceFactor
- The linespaceFactor to set.
getLinespaceStyle
public int getLinespaceStyle()
- Returns:
- Returns the linespaceStyle.
setLinespaceStyle
public void setLinespaceStyle(int linespaceStyle)
- Parameters:
linespaceStyle
- The linespaceStyle to set.
getPt10
public double[] getPt10()
- Returns:
- Returns the pt10.
setPt10
public void setPt10(double[] pt10)
- Parameters:
pt10
- The pt10 to set.
getPt12
public java.awt.geom.Point2D getPt12()
- Returns:
- Returns the pt12.
setPt12
public void setPt12(java.awt.geom.Point2D pt12)
- Parameters:
pt12
- The pt12 to set.
getPt13
public double[] getPt13()
- Returns:
- Returns the pt13.
setPt13
public void setPt13(double[] pt13)
- Parameters:
pt13
- The pt13 to set.
getPt14
public double[] getPt14()
- Returns:
- Returns the pt14.
setPt14
public void setPt14(double[] pt14)
- Parameters:
pt14
- The pt14 to set.
getRotation
public double getRotation()
- Returns:
- Returns the rotation.
setRotation
public void setRotation(double rotation)
- Parameters:
rotation
- The rotation to set.
getText
public java.lang.String getText()
- Returns:
- Returns the text.
setText
public void setText(java.lang.String text)
- Parameters:
text
- The text to set.
getTextMidpoint
public java.awt.geom.Point2D getTextMidpoint()
- Returns:
- Returns the textMidpoint.
setTextMidpoint
public void setTextMidpoint(java.awt.geom.Point2D textMidpoint)
- Parameters:
textMidpoint
- The textMidpoint to set.