com.xj.anylogic.engine.presentation
Class ShapeLineFill

java.lang.Object
  extended by com.xj.anylogic.engine.presentation.Shape
      extended by com.xj.anylogic.engine.presentation.ShapeLineFill
All Implemented Interfaces:
com.xj.anylogic.engine.internal.Child, Locatable2D, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
ShapeMultiplePoints, ShapeOval, ShapeRectangle

public abstract class ShapeLineFill
extends Shape

An intermediate base class - for all shapes that have line and fill.

Author:
XJ Technologies Company Ltd. www.anylogic.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.xj.anylogic.engine.presentation.Shape
UNKNOWN_NAME
 
Constructor Summary
ShapeLineFill()
           
 
Method Summary
 java.awt.Color getFillColor()
          Returns the fill color of the shape, or null if shape has no fill color or has textured fill (in this case getFillTexture() should be used instead)
 Texture getFillTexture()
          Returns the fill texture of the shape, if the shape has fill texture
 java.awt.Color getLineColor()
          Returns the line color of the shape, or null if shape has no line color or has textured line (in this case getLineTexture() should be used instead)
 int getLineStyle()
          Returns the line style of the shape: ActiveObject.
 Texture getLineTexture()
          Returns the line texture of the shape, if the shape has line texture
 double getLineWidth()
          Returns the line width of the shape.
 void setFillColor(java.awt.Color fillColor)
          Sets the fill color of the shape.
 void setFillColor(java.lang.Object fillColor)
          Sets the fill color (or Texture) of the shape.
 void setLineColor(java.awt.Color lineColor)
          Sets the line color of the shape.
 void setLineColor(java.lang.Object lineColor)
          Sets the line color (or Texture) of the shape.
 void setLineStyle(int style)
          Sets the line style of the shape: ActiveObject.
 void setLineWidth(double width)
          Sets the line width of the shape, 0 means thinnest possible
 
Methods inherited from class com.xj.anylogic.engine.presentation.Shape
canHandleClick, clone, contains, draw, getGroup, getName, getPresentable, getRotation, getScaleX, getScaleY, getX, getY, isVisible, onClick, onClickAt, restoreOwner, setPos, setRotation, setScale, setScale, setScaleX, setScaleY, setVisible, setX, setY
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeLineFill

public ShapeLineFill()
Method Detail

setLineColor

public void setLineColor(java.awt.Color lineColor)
Sets the line color of the shape.

Parameters:
lineColor - the new line color, null = do not draw the shape line

setLineColor

public void setLineColor(java.lang.Object lineColor)
Sets the line color (or Texture) of the shape.

Parameters:
lineColor - the new line color, null = do not draw the shape line

getLineColor

public java.awt.Color getLineColor()
Returns the line color of the shape, or null if shape has no line color or has textured line (in this case getLineTexture() should be used instead)

Returns:
the line color of the shape

getLineTexture

public Texture getLineTexture()
Returns the line texture of the shape, if the shape has line texture

Returns:
the line texture of the shape

setFillColor

public void setFillColor(java.awt.Color fillColor)
Sets the fill color of the shape.

Parameters:
fillColor - the new fill color, null = do not fill the shape

setFillColor

public void setFillColor(java.lang.Object fillColor)
Sets the fill color (or Texture) of the shape.

Parameters:
fillColor - the new fill color, null = do not fill the shape

getFillColor

public java.awt.Color getFillColor()
Returns the fill color of the shape, or null if shape has no fill color or has textured fill (in this case getFillTexture() should be used instead)

Returns:
the fill color of the shape

getFillTexture

public Texture getFillTexture()
Returns the fill texture of the shape, if the shape has fill texture

Returns:
the fill texture of the shape

setLineWidth

public void setLineWidth(double width)
Sets the line width of the shape, 0 means thinnest possible

Parameters:
width - the new line width of the shape

getLineWidth

public double getLineWidth()
Returns the line width of the shape.

Returns:
the line width of the shape

setLineStyle

public void setLineStyle(int style)
Sets the line style of the shape: ActiveObject. {LINE_STYLE_SOLID, LINE_STYLE_DOTTED or LINE_STYLE_DASHED}

Parameters:
style - the new style of the shape

getLineStyle

public int getLineStyle()
Returns the line style of the shape: ActiveObject. {LINE_STYLE_SOLID, LINE_STYLE_DOTTED or LINE_STYLE_DASHED}

Returns:
the line style of the shape


Copyright © 1991-2008 XJ Technlogies. All Rights Reserved.