org.kabeja.dxf
Class DXFViewport

java.lang.Object
  extended by org.kabeja.dxf.DXFEntity
      extended by org.kabeja.dxf.DXFViewport

public class DXFViewport
extends DXFEntity

Author:
Field Summary
 
Fields inherited from class org.kabeja.dxf.DXFEntity
block, color, colorRGB, doc, extrusion, flags, id, layerID, lineType, linetypeScaleFactor, lineWeight, modelSpace, thickness, transparency, visibile
 
Constructor Summary
DXFViewport()
           
 
Method Summary
 void addFrozenLayer(java.lang.String layerName)
           
 double calculateZoomXPFactor()
           
 double getAspectRatio()
           
 double getBackClippingPlane()
           
 Bounds getBounds()
           
 Point getCenterPoint()
           
 double getCircleZoom()
           
 double getFastZoom()
           
 double getFrontClippingPlane()
           
 java.util.Iterator getFrozenLayerIterator()
           
 Point getGridSpacingPoint()
           
 double getHeight()
           
 double getLength()
          Returns the length of the entity or 0 if the entity has no length
 double getLensLength()
           
 Point getLowerLeftCorner()
           
 Bounds getModelspaceViewBounds()
           
 java.lang.String getPlotStyleName()
           
 double getRatio()
           
 int getRenderMode()
           
 double getSnapAngle()
           
 Point getSnapBasePoint()
           
 Point getSnapSpacingPoint()
           
 double getTwistAngle()
           
 java.lang.String getType()
           
 double getUcsElevation()
           
 Vector getUcsOrigin()
           
 int getUcsType()
           
 Vector getUcsXAxis()
           
 Vector getUcsYAxis()
           
 Point getUpperRightCorner()
           
 Point getViewCenterPoint()
           
 Vector getViewDirectionVector()
           
 double getViewHeight()
           
 java.lang.String getViewportID()
           
 int getViewportStatus()
           
 Point getViewTargetPoint()
           
 double getWidth()
           
 double getZoomXPFactor()
           
 boolean isActive()
           
 boolean isFrozenLayer(java.lang.String layerName)
           
 boolean isGrid()
           
 boolean isSnap()
           
 boolean isUseUCS()
           
 void setActive(boolean active)
           
 void setAspectRatio(double ratio)
           
 void setBackClippingPlane(double backClippingPlane)
           
 void setCenterPoint(Point centerPoint)
           
 void setCircleZoom(double circleZoom)
           
 void setFastZoom(double fastZoom)
           
 void setFrontClippingPlane(double frontClippingPlane)
           
 void setGrid(boolean grid)
           
 void setGridSpacingPoint(Point gridSpacingPoint)
           
 void setHeight(double height)
           
 void setLensLength(double lensLength)
           
 void setLowerLeftCorner(Point lowerLeftCorner)
           
 void setPlotStyleName(java.lang.String plotStyleName)
           
 void setRatio(double ratio)
           
 void setRenderMode(int renderMode)
           
 void setSnap(boolean snap)
           
 void setSnapAngle(double snapAngle)
           
 void setSnapBasePoint(Point snapBasePoint)
           
 void setSnapSpacingPoint(Point snapSpacingPoint)
           
 void setTwistAngle(double rotationAngle)
           
 void setUcsElevation(double ucsElevation)
           
 void setUcsOrigin(Vector ucsOrigin)
           
 void setUcsType(int ucsType)
           
 void setUcsXAxis(Vector ucsXAxis)
           
 void setUcsYAxis(Vector ucsYAxis)
           
 void setUpperRightCorner(Point upperRightCorner)
           
 void setUseUCS(boolean useUCS)
           
 void setViewCenterPoint(Point viewTargetPoint)
           
 void setViewDirectionVector(Vector viewDirectionPoint)
           
 void setViewHeight(double viewHeight)
           
 void setViewportID(java.lang.String name)
           
 void setViewportStatus(int viewportStatus)
           
 void setViewTargetPoint(Point viewTargetPoint)
           
 void setWidth(double width)
           
 
Methods inherited from class org.kabeja.dxf.DXFEntity
getColor, getColorRGB, getDXFDocument, getExtrusion, getFlags, getID, getLayerName, getLineType, getLinetypeScaleFactor, getLineWeight, getThickness, getTransparency, isBlockEntity, isModelSpace, isOmitLineType, isVisibile, setBlockEntity, setColor, setColorRGB, setDXFDocument, setExtrusion, setExtrusionX, setExtrusionY, setExtrusionZ, setFlags, setID, setLayerName, setLineType, setLinetypeScaleFactor, setLineWeight, setModelSpace, setThickness, setTransparency, setVisibile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DXFViewport

public DXFViewport()
Method Detail

getBackClippingPlane

public double getBackClippingPlane()
Returns:
Returns the backClippingPlane.

setBackClippingPlane

public void setBackClippingPlane(double backClippingPlane)
Parameters:
backClippingPlane - The backClippingPlane to set.

getCenterPoint

public Point getCenterPoint()
Returns:
Returns the centerPoint.

setCenterPoint

public void setCenterPoint(Point centerPoint)
Parameters:
centerPoint - The centerPoint to set.

getCircleZoom

public double getCircleZoom()
Returns:
Returns the circleZoom.

setCircleZoom

public void setCircleZoom(double circleZoom)
Parameters:
circleZoom - The circleZoom to set.

getFastZoom

public double getFastZoom()
Returns:
Returns the fastZoom.

setFastZoom

public void setFastZoom(double fastZoom)
Parameters:
fastZoom - The fastZoom to set.

getFrontClippingPlane

public double getFrontClippingPlane()
Returns:
Returns the frontClippingPlane.

setFrontClippingPlane

public void setFrontClippingPlane(double frontClippingPlane)
Parameters:
frontClippingPlane - The frontClippingPlane to set.

isGrid

public boolean isGrid()
Returns:
Returns the grid.

setGrid

public void setGrid(boolean grid)
Parameters:
grid - The grid to set.

getGridSpacingPoint

public Point getGridSpacingPoint()
Returns:
Returns the gridSpacingPoint.

setGridSpacingPoint

public void setGridSpacingPoint(Point gridSpacingPoint)
Parameters:
gridSpacingPoint - The gridSpacingPoint to set.

getHeight

public double getHeight()
Returns:
Returns the height.

setHeight

public void setHeight(double height)
Parameters:
height - The height to set.

getLensLength

public double getLensLength()
Returns:
Returns the lensLength.

setLensLength

public void setLensLength(double lensLength)
Parameters:
lensLength - The lensLength to set.

getLowerLeftCorner

public Point getLowerLeftCorner()
Returns:
Returns the lowerLeftCorner.

setLowerLeftCorner

public void setLowerLeftCorner(Point lowerLeftCorner)
Parameters:
lowerLeftCorner - The lowerLeftCorner to set.

getViewportID

public java.lang.String getViewportID()
Returns:
Returns the name.

setViewportID

public void setViewportID(java.lang.String name)
Parameters:
name - The name to set.

getAspectRatio

public double getAspectRatio()
Returns:
Returns the ratio.

setAspectRatio

public void setAspectRatio(double ratio)
Parameters:
ratio - The ratio to set.

setTwistAngle

public void setTwistAngle(double rotationAngle)
Parameters:
rotationAngle - The rotationAngle to set.

isSnap

public boolean isSnap()
Returns:
Returns the snap.

setSnap

public void setSnap(boolean snap)
Parameters:
snap - The snap to set.

getSnapBasePoint

public Point getSnapBasePoint()
Returns:
Returns the snapBasePoint.

setSnapBasePoint

public void setSnapBasePoint(Point snapBasePoint)
Parameters:
snapBasePoint - The snapBasePoint to set.

getUpperRightCorner

public Point getUpperRightCorner()
Returns:
Returns the upperRightCorner.

setUpperRightCorner

public void setUpperRightCorner(Point upperRightCorner)
Parameters:
upperRightCorner - The upperRightCorner to set.

getViewDirectionVector

public Vector getViewDirectionVector()
Returns:
Returns the viewDirectionPoint.

setViewDirectionVector

public void setViewDirectionVector(Vector viewDirectionPoint)
Parameters:
viewDirectionPoint - The viewDirectionPoint to set.

getViewCenterPoint

public Point getViewCenterPoint()
Returns:
Returns the viewTargetPoint.

setViewCenterPoint

public void setViewCenterPoint(Point viewTargetPoint)
Parameters:
viewTargetPoint - The viewTargetPoint to set.

isActive

public boolean isActive()
Returns:
Returns the active.

setActive

public void setActive(boolean active)
Parameters:
active - The active to set.

getBounds

public Bounds getBounds()
Specified by:
getBounds in class DXFEntity

getLength

public double getLength()
Description copied from class: DXFEntity
Returns the length of the entity or 0 if the entity has no length

Specified by:
getLength in class DXFEntity
Returns:

getType

public java.lang.String getType()
Specified by:
getType in class DXFEntity

getWidth

public double getWidth()

setWidth

public void setWidth(double width)

setRenderMode

public void setRenderMode(int renderMode)

getViewHeight

public double getViewHeight()

setViewHeight

public void setViewHeight(double viewHeight)

getUcsOrigin

public Vector getUcsOrigin()

setUcsOrigin

public void setUcsOrigin(Vector ucsOrigin)

getUcsXAxis

public Vector getUcsXAxis()

setUcsXAxis

public void setUcsXAxis(Vector ucsXAxis)

getUcsYAxis

public Vector getUcsYAxis()

setUcsYAxis

public void setUcsYAxis(Vector ucsYAxis)

getUcsType

public int getUcsType()

setUcsType

public void setUcsType(int ucsType)

getUcsElevation

public double getUcsElevation()

setUcsElevation

public void setUcsElevation(double ucsElevation)

isUseUCS

public boolean isUseUCS()

setUseUCS

public void setUseUCS(boolean useUCS)

getRatio

public double getRatio()

setRatio

public void setRatio(double ratio)

getRenderMode

public int getRenderMode()

getSnapAngle

public double getSnapAngle()

setSnapAngle

public void setSnapAngle(double snapAngle)

getViewTargetPoint

public Point getViewTargetPoint()

setViewTargetPoint

public void setViewTargetPoint(Point viewTargetPoint)

getSnapSpacingPoint

public Point getSnapSpacingPoint()

setSnapSpacingPoint

public void setSnapSpacingPoint(Point snapSpacingPoint)

getPlotStyleName

public java.lang.String getPlotStyleName()

setPlotStyleName

public void setPlotStyleName(java.lang.String plotStyleName)

getViewportStatus

public int getViewportStatus()

setViewportStatus

public void setViewportStatus(int viewportStatus)

getTwistAngle

public double getTwistAngle()

addFrozenLayer

public void addFrozenLayer(java.lang.String layerName)

isFrozenLayer

public boolean isFrozenLayer(java.lang.String layerName)

getFrozenLayerIterator

public java.util.Iterator getFrozenLayerIterator()

getZoomXPFactor

public double getZoomXPFactor()

calculateZoomXPFactor

public double calculateZoomXPFactor()

getModelspaceViewBounds

public Bounds getModelspaceViewBounds()