Package com.anylogic.engine.markup
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.QueuePath
- Methods inherited from class com.anylogic.engine.markup.AbstractMarkupSubunit
- Methods inherited from class java.lang.Object
- Methods inherited from interface com.anylogic.engine.markup.QueueUnit
- Constructor Detail
- Method Detail
- java.lang.Object
-
- com.anylogic.engine.markup.AbstractMarkupSubunit<ServiceWLine<?>>
-
- com.anylogic.engine.markup.QueuePath
-
- com.anylogic.engine.markup.QueueSerpentine
- All Implemented Interfaces:
QueueUnit
,java.io.Serializable
public class QueueSerpentine extends QueuePath
- See Also:
- Serialized Form
QueueSerpentine() |
|
QueueSerpentine(double width,
java.awt.Color beltBarrierColor,
MarkupSegment... segments) |
|
QueueSerpentine(int capacity,
double width,
java.awt.Color beltBarrierColor,
MarkupSegment... segments) |
|
Constructor | Description |
---|
void |
addSegment(MarkupSegment segment) |
Adds segment to this markup element
|
java.awt.Color |
getBeltBarrierColor() |
Returns the color of belt barrier
|
double |
getWidth() |
Returns the width of the queue in pixels
|
void |
setBeltBarrierColor(java.awt.Color beltBarrierColor) |
Sets the color of belt barrier
|
void |
setWidth(double width) |
Sets the width of this queue
|
Modifier and Type | Method | Description |
---|
arcTo, capacity, contains, contains, containsSq, getBoundingRectangle, getBounds, getEndPoint, getEndPoint, getEndPosition, getEndPosition, getExceededQueuePolicy, getNearestPoint, getPeds, getPositionAtOffset, getPositionAtOffsetFromEnd, getSegment, getSegmentCount, getStartPoint, getStartPoint, getStartPosition, getStartPosition, isCapacityLimited, isReverse, iterator, length, lineTo, setCapacity, size, startDrawing
getName, getOwner
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public QueueSerpentine()
public QueueSerpentine(double width, java.awt.Color beltBarrierColor, MarkupSegment... segments)
public QueueSerpentine(int capacity, double width, java.awt.Color beltBarrierColor, MarkupSegment... segments)
public double getWidth()
Returns the width of the queue in pixels
- Returns:
- the width of the queue in pixels
public void setWidth(double width)
Sets the width of this queue
- Parameters:
width
- new width (in pixels)
public java.awt.Color getBeltBarrierColor()
Returns the color of belt barrier
- Returns:
- the color of belt barrier
public void setBeltBarrierColor(java.awt.Color beltBarrierColor)
Sets the color of belt barrier
- Parameters:
beltBarrierColor
- the color of belt barrier
public void addSegment(MarkupSegment segment)
Description copied from class:
QueuePath
Adds segment to this markup element
- Overrides:
addSegment
in classQueuePath
- Parameters:
segment
- the segment, should be initialized if was created using no-argument constructor
-
How can we improve this article?
-