91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 59KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-14
  • 語言: 其他
  • 標簽: GUI??oop??

資源簡介

用GUI做的畫板,可以繪制圓形,橢圓,三角形,五角星,五邊形,可以實現(xiàn)文件保存以及讀取,前進和后退,顏色變化,功能齊全。

資源截圖

代碼片段和文件信息

/*
?*/
package?com.cloudgarden.layout;

/**
?*?Used?by?both?AnchorLayout?(SWT)?and?AnchorLayoutManager?(Swing)
?*/
public?class?AnchorConstraint?{

/**
?*?Meaning:?This?side?is?not?anchored.
?*/
public?static?final?int?ANCHOR_NONE?=?0;

/**
?*?(Relative?anchor)?Meaning:?This?side?is?anchored?so?that?it?always?
?*?occurs?a?fixed?fraction?of
?*?the?distance?along?it‘s?parent‘s?side.?The?position?is?calculated?by
?*?the?formula?“?position?=?(parent?side)*(value)/1000?“?so?for
?*?instance?if?top=100?and?topType?==?ANCHOR_REL?then?the
?*?value?of?y?for?this?side?would?be?(parent?height)*top/1000.
?*/
public?static?final?int?ANCHOR_REL?=?1;

/**
?*?(Absolute?anchor)?Meaning:?This?side?is?anchored?a?fixed?distance
?*?in?pixels?(given?by?the?value?for?this?side)?from?it‘s?parent‘s?respective?side.
?*?For?instance?if?bottomType?==?ANCHOR_ABS?and?bottom?=?100?then?the
?*?bottom?side?of?this?component?will?remain?fixed?100?pixels?from
?*?the?bottom?side?of?it‘s?parent?container.
?*/
public?static?final?int?ANCHOR_ABS?=?2;

public?int?top;
public?int?bottom;
public?int?left;
public?int?right;
public?int?topType;
public?int?bottomType;
public?int?rightType;
public?int?leftType;

public?AnchorConstraint()?{
this(0?0?0?0?ANCHOR_NONE?ANCHOR_NONE?ANCHOR_NONE?ANCHOR_NONE);
}

/**
?*?Creates?an?AnchorConstraint.
?*?@param?top?-?value?(relative?or?absolute)?for?top?side
?*?@param?right?-?like?‘top‘?but?for?right?side
?*?@param?bottom?-?like?‘top‘?but?for?bottom?side
?*?@param?left?-?like?‘top‘?but?for?left?side
?*?@param?topType?-?either?ANCHOR_ABS?ANCHOR_REL?or?ANCHOR_NONE
?*?to?indicate?whether?the?‘top‘?parameter?is?an?absolute?value?(in?pixels)?or
?*?a?fractional?value?(in?1/1000?ths)?of?the?height?of?this?component‘s?parent
?*?denoting?where?the?anchor?will?be?applied?(if?at?all).
?*?@param?rightType?-?like?‘topType‘?but?for?right?side
?*?@param?bottomType?-?like?‘topType‘?but?for?bottom?side
?*?@param?leftType?-?like?‘topType‘?but?for?left?side
?*/
public?AnchorConstraint(
int?top
int?right
int?bottom
int?left
int?topType
int?rightType
int?bottomType
int?leftType)?{
this.top?=?top;
this.bottom?=?bottom;
this.left?=?left;
this.right?=?right;
this.topType?=?topType;
this.rightType?=?rightType;
this.bottomType?=?bottomType;
this.leftType?=?leftType;
}

}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????226??2008-08-21?19:29??CAD\.classpath

?????文件????????379??2008-08-13?11:20??CAD\.project

????......R???????805??2008-08-14?16:58??CAD\icon\do.jpg

????......R??????1698??2008-08-14?16:58??CAD\icon\ellipse.jpg

????......R??????1628??2008-08-14?16:58??CAD\icon\line.jpg

????......R??????2136??2008-08-14?16:58??CAD\icon\pentacle.jpg

????......R??????2059??2008-08-14?16:58??CAD\icon\pentagon.jpg

????......R??????1759??2008-08-14?16:58??CAD\icon\rect.jpg

????......R??????2480??2008-08-14?16:58??CAD\icon\round.jpg

????......R???????780??2008-08-14?16:58??CAD\icon\select.jpg

????......R??????2196??2008-08-14?16:58??CAD\icon\triangle.jpg

????......R??????3943??2008-08-14?16:58??CAD\icon\turn.jpg

????......R???????791??2008-08-14?16:58??CAD\icon\undo.jpg

????....SHR???????375??2008-08-27?11:42??CAD\icon\vssver2.scc

????......R?????28547??2008-08-27?14:32??CAD\com\hb\cad\CADJframe.java

????......R??????3126??2008-08-14?17:47??CAD\com\hb\cad\ColorJDialog.java

????....SHR???????224??2008-08-27?14:35??CAD\com\hb\cad\vssver2.scc

????......R??????9928??2008-08-27?14:32??CAD\com\hb\cad\shapes\NewEllipse2D.java

????......R??????6281??2008-08-27?11:43??CAD\com\hb\cad\shapes\NewLine2D.java

????......R?????14794??2008-08-26?19:42??CAD\com\hb\cad\shapes\NewPentacle2D.java

????......R?????12058??2008-08-26?18:29??CAD\com\hb\cad\shapes\NewRectangle2D.java

????......R??????9073??2008-08-27?14:32??CAD\com\hb\cad\shapes\NewRound2D.java

????......R?????15939??2008-08-26?18:30??CAD\com\hb\cad\shapes\NewTriangle2D.java

????....SHR???????370??2008-08-27?14:35??CAD\com\hb\cad\shapes\vssver2.scc

????......R?????13980??2008-08-26?19:46??CAD\com\hb\cad\shapes\NewPentagon2D.java

????......R?????16127??2008-08-26?19:56??CAD\com\hb\cad\canvas\CanvasJPanel.java

????....SHR???????131??2008-08-27?14:35??CAD\com\hb\cad\canvas\vssver2.scc

?????文件???????4317??2008-08-27?16:35??CAD\com\hb\cad\baseShapeInterface\baseShapeInterface.java

????....SHR???????149??2008-08-27?14:35??CAD\com\hb\cad\baseShapeInterface\vssver2.scc

????......R??????1176??2008-08-26?18:54??CAD\com\hb\cad\ReadAndWrite.java

............此處省略16個文件信息

評論

共有 條評論